public class ConstantVertexPaintFunction extends java.lang.Object implements VertexPaintFunction
Paint(s) for any specified vertex.| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Paint |
draw_paint |
protected java.awt.Paint |
fill_paint |
TRANSPARENT| Constructor and Description |
|---|
ConstantVertexPaintFunction(java.awt.Paint paint)
Sets both draw and fill
Paint instances to paint. |
ConstantVertexPaintFunction(java.awt.Paint draw_paint,
java.awt.Paint fill_paint)
Sets the drawing
Paint to draw_paint and
the filling Paint to fill_paint. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Paint |
getDrawPaint(Vertex e) |
java.awt.Paint |
getFillPaint(Vertex e) |
protected java.awt.Paint draw_paint
protected java.awt.Paint fill_paint
public ConstantVertexPaintFunction(java.awt.Paint paint)
Paint instances to paint.paint - public ConstantVertexPaintFunction(java.awt.Paint draw_paint,
java.awt.Paint fill_paint)
Paint to draw_paint and
the filling Paint to fill_paint.paint - public java.awt.Paint getDrawPaint(Vertex e)
getDrawPaint in interface VertexPaintFunctionVertexPaintFunction.getDrawPaint(edu.uci.ics.jung.graph.Vertex)public java.awt.Paint getFillPaint(Vertex e)
getFillPaint in interface VertexPaintFunctionVertexPaintFunction.getFillPaint(edu.uci.ics.jung.graph.Vertex)