public class ColoredPath
extends java.lang.Object
Constructor and Description |
---|
ColoredPath(java.awt.Color color)
Creates an empty path of the specified color.
|
ColoredPath(java.util.List<java.lang.Integer> path,
java.awt.Color color)
Creates a specified path of the specified color.
|
public ColoredPath(java.awt.Color color)
color
- the color of the new pathpublic ColoredPath(java.util.List<java.lang.Integer> path, java.awt.Color color)
path
- a list of integers representing the pathcolor
- the color of the new pathpublic void append(int id)
id
- the Id by which the path is extendedpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- a Color object representing the new color of the pathpublic java.util.List<java.lang.Integer> getPath()