|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.ImageIcon
com.tensegrity.gui.swing.icon.Icon
com.tensegrity.gui.swing.repository.VisualGraphObjectIcon
VisualGraphObjectIcon
| Nested Class Summary |
| Nested classes inherited from class javax.swing.ImageIcon |
javax.swing.ImageIcon.AccessibleImageIcon |
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swing.icon.Icon |
EMPTYICON_16x15 |
| Fields inherited from class javax.swing.ImageIcon |
component, tracker |
| Constructor Summary | |
VisualGraphObjectIcon(VisualGraphObject vgo)
Creates a new VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. |
|
VisualGraphObjectIcon(VisualGraphObject vgo,
double textscalefactor,
CoordinateSystem coordSystem)
Creates a new VisualGraphObjectIcon based on the given
VisualGraphObject and CoordinateSystem. |
|
VisualGraphObjectIcon(VisualGraphObject vgo,
double textscalefactor,
CoordinateSystem coordSystem,
int width,
int height)
Creates a new VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. |
|
VisualGraphObjectIcon(VisualGraphObject vgoIcon,
int width,
int height)
Creates a new VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. |
|
VisualGraphObjectIcon(VisualGraphObject vgoIcon,
int width,
int height,
int spacing)
Creates a new VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. |
|
| Method Summary | |
Renderer |
getRenderer()
Returns the renderer that is used to draw the icon |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics gfx,
int x,
int y)
|
void |
setRenderer(Renderer renderer)
Sets the renderer that should be used to draw the icon |
| Methods inherited from class com.tensegrity.gui.swing.icon.Icon |
filter, getColor, getGraphics, getHeight, getImage, getSize, getWidth, paint, setColor, setImage |
| Methods inherited from class javax.swing.ImageIcon |
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImageObserver, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VisualGraphObjectIcon(VisualGraphObject vgo,
double textscalefactor,
CoordinateSystem coordSystem,
int width,
int height)
VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. Use the width and height
parameter to specify a proper size.
vgo - the target VisualGraphObject.textscalefactor - a factor to scale the text (if there is any)coordSystem - the underlying CoordinateSystem for this Icon.width - width of the resulting icon.height - height of the resulting icon.
public VisualGraphObjectIcon(VisualGraphObject vgo,
double textscalefactor,
CoordinateSystem coordSystem)
VisualGraphObjectIcon based on the given
VisualGraphObject and CoordinateSystem.
vgo - the target VisualGraphObject.textscalefactor - a factor to scale the text (if there is any)coordSystem - the underlying CoordinateSystem for this Icon.public VisualGraphObjectIcon(VisualGraphObject vgo)
VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. Use the width and height
parameter to specify a proper size.
vgo - the target VisualGraphObject.
public VisualGraphObjectIcon(VisualGraphObject vgoIcon,
int width,
int height)
VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. Use the width and height
parameter to specify a proper size.
vgoIcon - the target VisualGraphObject.width - the width of the iconheight - the height of the icon
public VisualGraphObjectIcon(VisualGraphObject vgoIcon,
int width,
int height,
int spacing)
VisualGraphObjectIcon based on the given
VisualGraphObject, using the scalefactor for the text,
CoordinateSystem. Use the width and height
parameter to specify a proper size.
vgoIcon - the target VisualGraphObject.width - the width of the iconheight - the height of the iconspacing - the spacing of the content to the border on all sides| Method Detail |
public void paintIcon(java.awt.Component c,
java.awt.Graphics gfx,
int x,
int y)
paintIcon in interface javax.swing.IconpaintIcon in class Iconpublic Renderer getRenderer()
public void setRenderer(Renderer renderer)
renderer - the renderer that should be used to draw the icon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||