public class ConstantEdgePaintFunction extends java.lang.Object implements EdgePaintFunction
Paint for any specified edge.| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Paint |
draw_paint |
protected java.awt.Paint |
fill_paint |
TRANSPARENT| Constructor and Description |
|---|
ConstantEdgePaintFunction(java.awt.Paint paint)
Sets both draw and fill
Paint instances to paint. |
ConstantEdgePaintFunction(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(Edge e) |
java.awt.Paint |
getFillPaint(Edge e) |
protected java.awt.Paint draw_paint
protected java.awt.Paint fill_paint
public ConstantEdgePaintFunction(java.awt.Paint paint)
Paint instances to paint.public ConstantEdgePaintFunction(java.awt.Paint draw_paint,
java.awt.Paint fill_paint)
Paint to draw_paint and
the filling Paint to fill_paint.public java.awt.Paint getDrawPaint(Edge e)
getDrawPaint in interface EdgePaintFunctionEdgePaintFunction.getDrawPaint(edu.uci.ics.jung.graph.Edge)public java.awt.Paint getFillPaint(Edge e)
getFillPaint in interface EdgePaintFunctionEdgePaintFunction.getFillPaint(edu.uci.ics.jung.graph.Edge)