public interface GraphLabelRenderer
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getGraphLabelRendererComponent(javax.swing.JComponent vv,
java.lang.Object value,
java.awt.Font font,
boolean isSelected,
Edge edge)
Returns the component used for drawing the label.
|
java.awt.Component |
getGraphLabelRendererComponent(javax.swing.JComponent vv,
java.lang.Object value,
java.awt.Font font,
boolean isSelected,
Vertex vertex)
Returns the component used for drawing the label.
|
boolean |
isRotateEdgeLabels() |
void |
setRotateEdgeLabels(boolean state) |
java.awt.Component getGraphLabelRendererComponent(javax.swing.JComponent vv, java.lang.Object value, java.awt.Font font, boolean isSelected, Vertex vertex)
vv
- the VisualizationViewer
that is asking the
renderer to draw; can be null
value
- the value of the cell to be rendered. It is
up to the specific renderer to interpret
and draw the value. For example, if
value
is the string "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null
is a
valid valuevertex
- the vertex for the label being drawn.java.awt.Component getGraphLabelRendererComponent(javax.swing.JComponent vv, java.lang.Object value, java.awt.Font font, boolean isSelected, Edge edge)
vv
- the VisualizationViewer
that is asking the
renderer to draw; can be null
value
- the value of the cell to be rendered. It is
up to the specific renderer to interpret
and draw the value. For example, if
value
is the string "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null
is a
valid valueedge
- the edgefor the label being drawn.boolean isRotateEdgeLabels()
void setRotateEdgeLabels(boolean state)