Klasse SimFieldLabelRenderer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
net.simplace.client.sim.graphpanel.renderer.SimFieldLabelRenderer
Alle implementierten Schnittstellen:
edu.uci.ics.jung.visualization.renderers.VertexLabelRenderer, ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class SimFieldLabelRenderer extends JLabel implements edu.uci.ics.jung.visualization.renderers.VertexLabelRenderer, Serializable
DefaultVertexLabelRenderer is similar to the cell renderers used by the JTable and JTree jfc classes.
Autor:
Tom Nelson
Siehe auch:
  • Felddetails

    • noFocusBorder

      protected static Border noFocusBorder
    • pickedVertexLabelColor

      protected Color pickedVertexLabelColor
  • Konstruktordetails

    • SimFieldLabelRenderer

      public SimFieldLabelRenderer(Color aPickedVertexLabelColor, SimEnvGraphPanel aGraphPanel)
      Creates a default table cell renderer.
      Parameter:
      aPickedVertexLabelColor -
      aGraphPanel -
  • Methodendetails

    • setForeground

      public void setForeground(Color c)
      Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.
      Setzt außer Kraft:
      setForeground in Klasse JComponent
      Parameter:
      c - set the foreground color to this value
    • setBackground

      public void setBackground(Color c)
      Overrides JComponent.setBackground to assign the unselected-background color to the specified color.
      Setzt außer Kraft:
      setBackground in Klasse JComponent
      Parameter:
      c - set the background color to this value
    • updateUI

      public void updateUI()
      Notification from the UIManager that the look and feel [LUngültige Eingabe: "&F"] has changed. Replaces the current UI object with the latest version from the UIManager.
      Setzt außer Kraft:
      updateUI in Klasse JLabel
      Siehe auch:
    • getVertexLabelRendererComponent

      public <FWSimFieldContainer> Component getVertexLabelRendererComponent(JComponent vv, Object value, Font font, boolean isSelected, FWSimFieldContainer aFieldContainer)
      Returns the default label renderer for a Vertex
      Angegeben von:
      getVertexLabelRendererComponent in Schnittstelle edu.uci.ics.jung.visualization.renderers.VertexLabelRenderer
      Parameter:
      vv - the VisualizationViewer to render on
      value - the value to assign to the label for Vertex
      font -
      isSelected -
      aFieldContainer - the Vertex
      Gibt zurück:
      the default label renderer
    • isOpaque

      public boolean isOpaque()
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      isOpaque in Klasse JComponent
    • validate

      public void validate()
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      validate in Klasse Container
    • revalidate

      public void revalidate()
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      revalidate in Klasse JComponent
    • repaint

      public void repaint(long tm, int x, int y, int width, int height)
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      repaint in Klasse JComponent
    • repaint

      public void repaint(Rectangle r)
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      repaint in Klasse JComponent
    • firePropertyChange

      protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      firePropertyChange in Klasse Component
    • firePropertyChange

      public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
      Overridden for performance reasons. See the Implementation Note for more information.
      Setzt außer Kraft:
      firePropertyChange in Klasse JComponent
    • setValue

      protected void setValue(Object value)
      Sets the String object for the cell being rendered to value.
      Parameter:
      value - the string value for this cell; if value is null it sets the text value to an empty string
      Siehe auch: