|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
edu.uci.ics.jung.visualization.renderers.DefaultEdgeLabelRenderer
public class DefaultEdgeLabelRenderer
DefaultEdgeLabelRenderer is similar to the cell renderers used by the JTable and JTree jfc classes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static Border |
noFocusBorder
|
protected Color |
pickedEdgeLabelColor
|
protected boolean |
rotateEdgeLabels
|
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultEdgeLabelRenderer(Color pickedEdgeLabelColor)
|
|
DefaultEdgeLabelRenderer(Color pickedEdgeLabelColor,
boolean rotateEdgeLabels)
Creates a default table cell renderer. |
|
| Method Summary | ||
|---|---|---|
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Overridden for performance reasons. |
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Overridden for performance reasons. |
|
|
getEdgeLabelRendererComponent(JComponent vv,
Object value,
Font font,
boolean isSelected,
E edge)
Returns the default label renderer for an Edge |
|
boolean |
isOpaque()
Overridden for performance reasons. |
|
boolean |
isRotateEdgeLabels()
|
|
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Overridden for performance reasons. |
|
void |
repaint(Rectangle r)
Overridden for performance reasons. |
|
void |
revalidate()
Overridden for performance reasons. |
|
void |
setBackground(Color c)
Overrides JComponent.setBackground to assign
the unselected-background color to the specified color. |
|
void |
setForeground(Color c)
Overrides JComponent.setForeground to assign
the unselected-foreground color to the specified color. |
|
void |
setRotateEdgeLabels(boolean rotateEdgeLabels)
|
|
protected void |
setValue(Object value)
Sets the String object for the cell being rendered to
value. |
|
void |
updateUI()
Notification from the UIManager that the look and feel
[L&F] has changed. |
|
void |
validate()
Overridden for performance reasons. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Border noFocusBorder
protected Color pickedEdgeLabelColor
protected boolean rotateEdgeLabels
| Constructor Detail |
|---|
public DefaultEdgeLabelRenderer(Color pickedEdgeLabelColor)
public DefaultEdgeLabelRenderer(Color pickedEdgeLabelColor,
boolean rotateEdgeLabels)
| Method Detail |
|---|
public boolean isRotateEdgeLabels()
isRotateEdgeLabels in interface EdgeLabelRendererpublic void setRotateEdgeLabels(boolean rotateEdgeLabels)
setRotateEdgeLabels in interface EdgeLabelRendererrotateEdgeLabels - The rotateEdgeLabels to set.public void setForeground(Color c)
JComponent.setForeground to assign
the unselected-foreground color to the specified color.
setForeground in class JComponentc - set the foreground color to this valuepublic void setBackground(Color c)
JComponent.setBackground to assign
the unselected-background color to the specified color.
setBackground in class JComponentc - set the background color to this valuepublic void updateUI()
UIManager that the look and feel
[L&F] has changed.
Replaces the current UI object with the latest version from the
UIManager.
updateUI in class JLabelJComponent.updateUI()
public <E> Component getEdgeLabelRendererComponent(JComponent vv,
Object value,
Font font,
boolean isSelected,
E edge)
getEdgeLabelRendererComponent in interface EdgeLabelRenderervv - the VisualizationViewer to render onvalue - the value to assign to the label for
Edgeedge - the Edge
public boolean isOpaque()
isOpaque in class JComponentpublic void validate()
validate in class Containerpublic void revalidate()
revalidate in class JComponent
public void repaint(long tm,
int x,
int y,
int width,
int height)
repaint in class JComponentpublic void repaint(Rectangle r)
repaint in class JComponent
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
firePropertyChange in class Component
public void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
firePropertyChange in class JComponentprotected void setValue(Object value)
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 stringJLabel.setText(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||