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(ArrowShape arrow,
int width)
- Creates a new ArrowIcon object.
- Parameters:
arrow
- The ArrowShape to create the icon for.width
- The width of the icon.
ArrowIcon
public ArrowIcon(ArrowShape arrow)
- Creates a new ArrowIcon object.
- Parameters:
arrow
- The ArrowShape to create the icon for.
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
- The component that the icon is being rendered in.
Used to calculate width and height of the icon.g
- The Graphics used to render the icon.x
- Not used in this implementation.y
- Not used in this implementation.
Copyright 2010 Cytoscape Consortium. All rights reserved.