samples.graph
Class VertexImageShaperDemo.Checkmark

java.lang.Object
  extended by samples.graph.VertexImageShaperDemo.Checkmark
All Implemented Interfaces:
Icon
Enclosing class:
VertexImageShaperDemo

public static class VertexImageShaperDemo.Checkmark
extends Object
implements Icon

a simple Icon that draws a checkmark in the lower-right quadrant of its area. Used to draw a checkmark on Picked Vertices.


Constructor Summary
VertexImageShaperDemo.Checkmark()
           
VertexImageShaperDemo.Checkmark(Color color)
           
 
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

VertexImageShaperDemo.Checkmark

public VertexImageShaperDemo.Checkmark()

VertexImageShaperDemo.Checkmark

public VertexImageShaperDemo.Checkmark(Color color)
Method Detail

paintIcon

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

getIconWidth

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

getIconHeight

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