public interface EdgeLabelRenderer
Modifier and Type | Method and Description |
---|---|
<E> Component |
getEdgeLabelRendererComponent(JComponent component,
Object value,
Font font,
boolean isSelected,
E edge)
Returns the component used for drawing the label.
|
boolean |
isRotateEdgeLabels() |
void |
setRotateEdgeLabels(boolean state) |
<E> Component getEdgeLabelRendererComponent(@Nullable JComponent component, @Nullable Object value, Font font, boolean isSelected, E edge)
E
- the edge typecomponent
- 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,
if value
is 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 drawnboolean isRotateEdgeLabels()
void setRotateEdgeLabels(boolean state)
Copyright © 2015. All rights reserved.