Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.ui.icon
Class ArrowIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by cytoscape.visual.ui.icon.VisualPropertyIcon
          extended by cytoscape.visual.ui.icon.ArrowIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public class ArrowIcon
extends VisualPropertyIcon

Icon for arrow shape.

Since:
Cytoscape 2.5
Version:
0.5
Author:
kono
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon
DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE
 
Constructor Summary
ArrowIcon(Shape shape)
          Creates a new ArrowIcon object.
ArrowIcon(Shape shape, int width, int height, String name)
          Creates a new ArrowIcon object.
ArrowIcon(Shape shape, int width, int height, String name, Color color)
          Creates a new ArrowIcon object.
 
Method Summary
 void paintIcon(Component c, Graphics g, int x, int y)
          Draw icon using Java2D.
 
Methods inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon
getColor, getIconHeight, getIconWidth, getName, getShape, setBottomPadding, setColor, setIconHeight, setIconWidth, setLeftPadding, setName
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrowIcon

public ArrowIcon(Shape shape)
Creates a new ArrowIcon object.


ArrowIcon

public ArrowIcon(Shape shape,
                 int width,
                 int height,
                 String name)
Creates a new ArrowIcon object.

Parameters:
shape - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!
name - DOCUMENT ME!

ArrowIcon

public ArrowIcon(Shape shape,
                 int width,
                 int height,
                 String name,
                 Color color)
Creates a new ArrowIcon object.

Parameters:
shape - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!
name - DOCUMENT ME!
color - DOCUMENT ME!
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Draw icon using Java2D.

Specified by:
paintIcon in interface Icon
Overrides:
paintIcon in class ImageIcon
Parameters:
c - DOCUMENT ME!
g - DOCUMENT ME!
x - DOCUMENT ME!
y - DOCUMENT ME!

www.cytoscape.org