Interface EdgeLabelRenderer
- All Known Implementing Classes:
DefaultEdgeLabelRenderer
public interface EdgeLabelRenderer
- Author:
- Tom Nelson
-
Method Summary
Modifier and TypeMethodDescription<E> ComponentgetEdgeLabelRendererComponent(JComponent component, Object value, Font font, boolean isSelected, E edge) Returns the component used for drawing the label.booleanvoidsetRotateEdgeLabels(boolean state)
-
Method Details
-
getEdgeLabelRendererComponent
<E> Component getEdgeLabelRendererComponent(JComponent component, Object value, Font font, boolean isSelected, E edge) Returns the component used for drawing the label. This method is used to configure the renderer appropriately before drawing.- Type Parameters:
E- the edge type- Parameters:
component- 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 edge is currently selectededge- the edge whose label is being drawn- Returns:
- the component used for drawing the label
-
isRotateEdgeLabels
boolean isRotateEdgeLabels() -
setRotateEdgeLabels
void setRotateEdgeLabels(boolean state)
-