|
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
public abstract class VisualPropertyIcon
Icon created from Shape object passed from rendering engine.
This icon is scalable (vector image).
Actual paint method is defined in child classes.
Field Summary | |
---|---|
static Color |
DEFAULT_ICON_COLOR
Default icon color. |
static int |
DEFAULT_ICON_SIZE
|
Constructor Summary | |
---|---|
VisualPropertyIcon(Shape shape,
int width,
int height,
String name)
Constructor without Color parameter. |
|
VisualPropertyIcon(Shape shape,
int width,
int height,
String name,
Color color)
Constructor with full parameter set. |
|
VisualPropertyIcon(String name,
Color color)
Creates a new VisualPropertyIcon object. |
Method Summary | |
---|---|
Color |
getColor()
Get color of icon |
int |
getIconHeight()
Get height of icon. |
int |
getIconWidth()
Get width of icon. |
String |
getName()
Get human-readable name of this icon. |
Shape |
getShape()
DOCUMENT ME! |
void |
setBottomPadding(int pad)
DOCUMENT ME! |
void |
setColor(Color color)
Set icon color. |
void |
setIconHeight(int height)
Set height. |
void |
setIconWidth(int width)
Set width. |
void |
setLeftPadding(int pad)
Insert space on the left. |
void |
setName(String name)
Set human-readable name of this icon. |
Methods inherited from class javax.swing.ImageIcon |
---|
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, paintIcon, setDescription, setImage, setImageObserver, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Color DEFAULT_ICON_COLOR
public static final int DEFAULT_ICON_SIZE
Constructor Detail |
---|
public VisualPropertyIcon(String name, Color color)
shape
- DOCUMENT ME!name
- DOCUMENT ME!public VisualPropertyIcon(Shape shape, int width, int height, String name)
shape
- width
- height
- name
- public VisualPropertyIcon(Shape shape, int width, int height, String name, Color color)
shape
- width
- height
- name
- color
- Method Detail |
---|
public Shape getShape()
public int getIconHeight()
getIconHeight
in interface Icon
getIconHeight
in class ImageIcon
public int getIconWidth()
getIconWidth
in interface Icon
getIconWidth
in class ImageIcon
public void setIconWidth(int width)
width
- Width of iconpublic void setIconHeight(int height)
height
- Height of iconpublic String getName()
public void setName(String name)
name
- public Color getColor()
public void setColor(Color color)
color
- Icon color.public void setLeftPadding(int pad)
pad
- DOCUMENT ME!public void setBottomPadding(int pad)
pad
- DOCUMENT ME!
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |