Class VisualGraphEdgeLabelRenderer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
edu.uci.ics.jung.visualization.renderers.DefaultEdgeLabelRenderer
ghidra.graph.viewer.renderer.VisualGraphEdgeLabelRenderer
All Implemented Interfaces:
edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer, ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class VisualGraphEdgeLabelRenderer extends edu.uci.ics.jung.visualization.renderers.DefaultEdgeLabelRenderer
Overrides the DefaultEdgeLabelRenderer so that the client can set the non-picked foreground color. See setNonPickedForegroundColor(Color).
See Also:
  • Constructor Details

    • VisualGraphEdgeLabelRenderer

      public VisualGraphEdgeLabelRenderer(Color pickedColor)
  • Method Details

    • getEdgeLabelRendererComponent

      public <E> Component getEdgeLabelRendererComponent(JComponent vv, Object value, Font font, boolean isSelected, E edge)
      Specified by:
      getEdgeLabelRendererComponent in interface edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer
      Overrides:
      getEdgeLabelRendererComponent in class edu.uci.ics.jung.visualization.renderers.DefaultEdgeLabelRenderer
    • setNonPickedForegroundColor

      public void setNonPickedForegroundColor(Color color)
      Sets the foreground color for this renderer when the edge is not picked/selected
      Parameters:
      color - the color