net.simplace.simulation.graphpanel.renderer.SimFieldLabelRenderer

DefaultVertexLabelRenderer is similar to the cell renderers used by the JTable and JTree jfc classes.


public class SimFieldLabelRenderer extends javax.swing.JLabel implements
edu.uci.ics.jung.visualization.renderers.VertexLabelRenderer,
java.io.Serializable {
// Public Constructors
public SimFieldLabelRenderer(Color aPickedVertexLabelColor, SimEnvGraphPanel
aGraphPanel);

// Class Variables
protected static Border noFocusBorder;
// Protected Instance Variables
protected Color pickedVertexLabelColor;

// Public Instance Methods
public void setForeground(Color c); // Defines javax.swing.JComponent

Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.
public void setBackground(Color c); // Defines javax.swing.JComponent

Overrides JComponent.setBackground to assign the unselected-background color to the specified color.
public void updateUI(); // Overrides javax.swing.JLabel

Notification from the UIManager that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the UIManager.
public Component getVertexLabelRendererComponent(JComponent vv, Object value,
Font font, boolean isSelected, Object aFieldContainer);

Returns the default label renderer for a Vertex
returns the default label renderer
public boolean isOpaque(); // Defines javax.swing.JComponent

Overridden for performance reasons. See the Implementation Note for more information.
public void validate(); // Overrides java.awt.Container

Overridden for performance reasons. See the Implementation Note for more information.
public void revalidate(); // Defines javax.swing.JComponent

Overridden for performance reasons. See the Implementation Note for more information.
public void repaint(long tm, int x, int y, int width, int height);
// Defines javax.swing.JComponent


Overridden for performance reasons. See the Implementation Note for more information.
public void repaint(Rectangle r); // Defines javax.swing.JComponent

Overridden for performance reasons. See the Implementation Note for more information.
public void firePropertyChange(String propertyName, boolean oldValue,
boolean newValue); // Defines javax.swing.JComponent

Overridden for performance reasons. See the Implementation Note for more information.

// Protected Instance Methods
protected void firePropertyChange(String propertyName, Object oldValue,
Object newValue); // Defines java.awt.Component

Overridden for performance reasons. See the Implementation Note for more information.
protected void setValue(Object value);

Sets the String object for the cell being rendered to value.


}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JLabel (javax.swing.SwingConstants, javax.accessibility.Accessible) - SimFieldLabelRenderer (edu.uci.ics.jung.visualization.renderers.VertexLabelRenderer, java.io.Serializable)