edu.uci.ics.jung.visualization.renderers
Interface VertexLabelRenderer
-
- All Known Implementing Classes:
- DefaultVertexLabelRenderer
public interface VertexLabelRenderer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description <V> java.awt.ComponentgetVertexLabelRendererComponent(javax.swing.JComponent vv, java.lang.Object value, java.awt.Font font, boolean isSelected, V vertex)Returns the component used for drawing the label.
-
-
-
Method Detail
-
getVertexLabelRendererComponent
<V> java.awt.Component getVertexLabelRendererComponent(javax.swing.JComponent vv, java.lang.Object value, java.awt.Font font, boolean isSelected, V vertex)Returns the component used for drawing the label. This method is used to configure the renderer appropriately before drawing.- Type Parameters:
V- the vertex type- Parameters:
vv- the component that is asking the renderer to drawvalue- the value of the cell to be rendered; the details of how to render the value are up to the renderer implementation. For example, ifvalueis the string "true", it could be rendered as the string or as a checked checkbox.font- the font to use in rendering the labelisSelected- whether the vertex is currently selectedvertex- the edge whose label is being drawn- Returns:
- the component used for drawing the label
-
-
DataMelt 3.0 © DataMelt by jWork.ORG