edu.uci.ics.jung.graph.decorators
Class ConstantVertexColorFunction
java.lang.Object
edu.uci.ics.jung.graph.decorators.ConstantVertexColorFunction
- All Implemented Interfaces:
- VertexColorFunction
public class ConstantVertexColorFunction
- extends Object
- implements VertexColorFunction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fore_color
protected Color fore_color
back_color
protected Color back_color
picked_color
protected Color picked_color
pi
protected PickedInfo pi
ConstantVertexColorFunction
public ConstantVertexColorFunction(PickedInfo pi,
Color fore_color,
Color back_color,
Color picked_color)
getForeColor
public Color getForeColor(Vertex v)
- Description copied from interface:
VertexColorFunction
- Returns the
Color
to use for drawing the border and
text for the vertex v
.
- Specified by:
getForeColor
in interface VertexColorFunction
getBackColor
public Color getBackColor(Vertex v)
- Description copied from interface:
VertexColorFunction
- Returns the
Color
to use for drawing the interior
of the vertex v
.
- Specified by:
getBackColor
in interface VertexColorFunction