Cytoscape 2.8.0 API

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

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
 
Fields inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon
bottomPad, color, DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE, height, leftPad, name, shape, width
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
ArrowIcon(ArrowShape arrow)
          Creates a new ArrowIcon object.
ArrowIcon(ArrowShape arrow, int width)
          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, loadImage, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
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 - 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.

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.