|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.ImageIcon cytoscape.visual.ui.icon.VisualPropertyIcon cytoscape.visual.ui.icon.NodeIcon
public class NodeIcon
Icon for node shapes.
Field Summary |
---|
Fields inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon |
---|
DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE |
Constructor Summary | |
---|---|
NodeIcon()
Creates a new NodeIcon object. |
|
NodeIcon(NodeShape ns)
|
|
NodeIcon(Shape shape,
int width,
int height,
String name)
Creates a new NodeShapeIcon object. |
|
NodeIcon(Shape shape,
int width,
int height,
String name,
Color color)
Creates a new NodeShapeIcon object. |
Method Summary | |
---|---|
NodeIcon |
clone()
DOCUMENT ME! |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw icon using Java2D. |
void |
setIconHeight(int height)
DOCUMENT ME! |
void |
setIconWidth(int width)
DOCUMENT ME! |
Methods inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon |
---|
getColor, getIconHeight, getIconWidth, getName, getShape, setBottomPadding, setColor, 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 |
---|
public NodeIcon()
public NodeIcon(NodeShape ns)
public NodeIcon(Shape shape, int width, int height, String name)
shape
- width
- height
- name
- public NodeIcon(Shape shape, int width, int height, String name, Color color)
shape
- DOCUMENT ME!width
- DOCUMENT ME!height
- DOCUMENT ME!name
- DOCUMENT ME!color
- DOCUMENT ME!Method Detail |
---|
public void setIconWidth(int width)
setIconWidth
in class VisualPropertyIcon
width
- DOCUMENT ME!public void setIconHeight(int height)
setIconHeight
in class VisualPropertyIcon
height
- DOCUMENT ME!public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
paintIcon
in class ImageIcon
c
- DOCUMENT ME!g
- DOCUMENT ME!x
- DOCUMENT ME!y
- DOCUMENT ME!public NodeIcon clone()
clone
in class Object
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |