|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alveole.studio.web.designer.graph.SelectionEdgePaintFunction
public class SelectionEdgePaintFunction
This class selects paint color for edges. It manages PickState and pains in blue when selected, false selse.
Field Summary | |
---|---|
protected java.awt.Paint |
selected
The paints for selected edges, and unselected edges. |
protected java.awt.Paint |
unselected
The paints for selected edges, and unselected edges. |
protected edu.uci.ics.jung.visualization.VisualizationViewer |
viewer
The main viewer. |
Fields inherited from interface edu.uci.ics.jung.graph.decorators.EdgePaintFunction |
---|
TRANSPARENT |
Constructor Summary | |
---|---|
SelectionEdgePaintFunction(edu.uci.ics.jung.visualization.VisualizationViewer viewer)
The constructor. |
Method Summary | |
---|---|
java.awt.Paint |
getDrawPaint(edu.uci.ics.jung.graph.Edge e)
Returns blue is edge is selected, black else. |
java.awt.Paint |
getFillPaint(edu.uci.ics.jung.graph.Edge e)
Returns blue is edge is selected, black else. |
java.awt.Paint |
getSelected()
Get color for selected edges. |
java.awt.Paint |
getUnselected()
Get color for non selected edges. |
void |
setSelected(java.awt.Paint selected)
Set color for selected edges. |
void |
setUnselected(java.awt.Paint unselected)
Set color for non selected edges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected edu.uci.ics.jung.visualization.VisualizationViewer viewer
protected java.awt.Paint selected
protected java.awt.Paint unselected
Constructor Detail |
---|
public SelectionEdgePaintFunction(edu.uci.ics.jung.visualization.VisualizationViewer viewer)
viewer
- Method Detail |
---|
public java.awt.Paint getDrawPaint(edu.uci.ics.jung.graph.Edge e)
getDrawPaint
in interface edu.uci.ics.jung.graph.decorators.EdgePaintFunction
public java.awt.Paint getFillPaint(edu.uci.ics.jung.graph.Edge e)
getFillPaint
in interface edu.uci.ics.jung.graph.decorators.EdgePaintFunction
public java.awt.Paint getSelected()
public void setSelected(java.awt.Paint selected)
public java.awt.Paint getUnselected()
public void setUnselected(java.awt.Paint unselected)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |