| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.option.RealizerCellRenderer.NodeRealizerIcon
public static class RealizerCellRenderer.NodeRealizerIcon
This is a special icon that renders a realizer into an icon
| Constructor Summary | |
|---|---|
| RealizerCellRenderer.NodeRealizerIcon(NodeRealizer realizer,
                                      int width,
                                      int height)Creates an icon for the given realizer and size with the default inset. | |
| Method Summary | |
|---|---|
|  int | getIconHeight()Returns the total height of this icon including insets. | 
|  int | getIconWidth()Returns the total width of this icon including insets. | 
|  void | paintIcon(java.awt.Component c,
          java.awt.Graphics g,
          int x,
          int y)Draws the icon at the specified location. | 
| protected  void | paintRealizer(NodeRealizer nr,
              java.awt.Graphics2D g2d)Paints the given node realizer. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RealizerCellRenderer.NodeRealizerIcon(NodeRealizer realizer,
                                             int width,
                                             int height)
realizer - the realizer to create an icon forwidth - the width of the iconheight - the height of the icon| Method Detail | 
|---|
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
paintRealizer(y.view.NodeRealizer, java.awt.Graphics2D).
paintIcon in interface javax.swing.Iconc - ignoredg - the graphics context to draw upon.x - x-coordinate of the icon's location.y - y-coordinate of the icon's location.
protected void paintRealizer(NodeRealizer nr,
                             java.awt.Graphics2D g2d)
 Called from paintIcon(java.awt.Component, java.awt.Graphics, int, int).
 The calling method will dispose the graphics context afterwards.
 
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||