|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.RealizerCellRenderer
public class RealizerCellRenderer
ListCellRenderer
and TableCellRenderer
implementation that renders objects of type NodeRealizer
and EdgeRealizer
nicely.
Nested Class Summary | |
---|---|
static class |
RealizerCellRenderer.EdgeRealizerIcon
A special icon that renders an edge realizer |
static class |
RealizerCellRenderer.NodeRealizerIcon
This is a special icon that renders a realizer into an icon |
Constructor Summary | |
---|---|
RealizerCellRenderer()
|
|
RealizerCellRenderer(int itemWidth,
int itemHeight)
|
Method Summary | |
---|---|
protected Icon |
createEdgeRealizerIcon(EdgeRealizer realizer,
int iconWidth,
int iconHeight)
Creates an icon that displays the specified realizer. |
protected String |
createEdgeToolTipText(EdgeRealizer realizer)
Creates a tool tip text for the icon that displays the specified realizer. |
protected Icon |
createNodeRealizerIcon(NodeRealizer realizer,
int iconWidth,
int iconHeight)
Creates an icon that displays the specified realizer. |
protected String |
createNodeToolTipText(NodeRealizer realizer)
Creates a tool tip text for the icon that displays the specified realizer. |
int |
getItemHeight()
|
int |
getItemWidth()
|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
setItemHeight(int itemHeight)
Sets the preferred height for the renderer. |
void |
setItemWidth(int itemWidth)
Sets the preferred width for the renderer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RealizerCellRenderer()
public RealizerCellRenderer(int itemWidth, int itemHeight)
Method Detail |
---|
public int getItemWidth()
public void setItemWidth(int itemWidth)
itemWidth
- the widthpublic int getItemHeight()
public void setItemHeight(int itemHeight)
itemHeight
- the heightpublic Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface ListCellRenderer
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
protected Icon createNodeRealizerIcon(NodeRealizer realizer, int iconWidth, int iconHeight)
getListCellRendererComponent(javax.swing.JList, Object, int, boolean, boolean)
and
getTableCellRendererComponent(javax.swing.JTable, Object, boolean, boolean, int, int)
to create icons for the renderer component.
realizer
- the node visualization to display.iconWidth
- the desired width of the created icon.iconHeight
- the desired height of the created icon.
protected Icon createEdgeRealizerIcon(EdgeRealizer realizer, int iconWidth, int iconHeight)
getListCellRendererComponent(javax.swing.JList, Object, int, boolean, boolean)
and
getTableCellRendererComponent(javax.swing.JTable, Object, boolean, boolean, int, int)
to create icons for the renderer component.
realizer
- the edge visualization to display.iconWidth
- the desired width of the created icon.iconHeight
- the desired height of the created icon.
protected String createNodeToolTipText(NodeRealizer realizer)
getListCellRendererComponent(javax.swing.JList, Object, int, boolean, boolean)
and
getTableCellRendererComponent(javax.swing.JTable, Object, boolean, boolean, int, int)
to create tool tip texts for the renderer component.
realizer
- the node visualization to display.
protected String createEdgeToolTipText(EdgeRealizer realizer)
getListCellRendererComponent(javax.swing.JList, Object, int, boolean, boolean)
and
getTableCellRendererComponent(javax.swing.JTable, Object, boolean, boolean, int, int)
to create tool tip texts for the renderer component.
realizer
- the edge visualization to display.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |