cytoscape.visual.ui.icon
Class ArrowIcon
java.lang.Object
javax.swing.ImageIcon
cytoscape.visual.ui.icon.VisualPropertyIcon
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
Methods inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon |
getColor, getIconHeight, getIconWidth, getName, getShape, setBottomPadding, setColor, setIconHeight, setIconWidth, setLeftPadding, setName |
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!
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!