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.
- c
set the foreground color to this value
public void
setBackground(Color c);
// Defines javax.swing.JComponent
Overrides
JComponent.setBackground
to assign the unselected-background color to the specified color.
- c
set the background color to this value
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
- vv
the
VisualizationViewer
to render on
- value
the value to assign to the label for
Vertex
- font
- isSelected
- aFieldContainer
the
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
.
- value
the string value for this cell; if value is
null
it sets the text value to an empty string
}
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)