y.option
Class RealizerCellRenderer.EdgeRealizerIcon

java.lang.Object
  extended by y.option.RealizerCellRenderer.EdgeRealizerIcon
All Implemented Interfaces:
Icon
Enclosing class:
RealizerCellRenderer

public static class RealizerCellRenderer.EdgeRealizerIcon
extends Object
implements Icon

A special icon that renders an edge realizer

 

Constructor Summary
RealizerCellRenderer.EdgeRealizerIcon(EdgeRealizer realizer, int width, int height)
          creates an icon for the given realizer.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealizerCellRenderer.EdgeRealizerIcon

public RealizerCellRenderer.EdgeRealizerIcon(EdgeRealizer realizer,
                                             int width,
                                             int height)
creates an icon for the given realizer.

Parameters:
realizer - the realizer to create an icon for
width - the width of the icon
height - the height of the icon
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

© Copyright 2000-2010,
yWorks GmbH.
All rights reserved.