|
Cytoscape 2.8.0 API | |||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.ImageIcon |
---|
ImageIcon.AccessibleImageIcon |
Field Summary | |
---|---|
protected Graphics2D |
g2d
|
protected Shape |
newShape
|
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 | |
---|---|
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! |
int |
getIconHeight()
Get height of icon. |
int |
getIconWidth()
Get width of icon. |
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, getName, getShape, setBottomPadding, setColor, 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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Shape newShape
protected Graphics2D g2d
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 int getIconWidth()
VisualPropertyIcon
getIconWidth
in interface Icon
getIconWidth
in class VisualPropertyIcon
public int getIconHeight()
VisualPropertyIcon
getIconHeight
in interface Icon
getIconHeight
in class VisualPropertyIcon
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
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |