|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolo.PNode
edu.umd.cs.piccolox.swt.PSWTImage
PImage is a wrapper around a java.awt.Image. If this node is copied or serialized that image will be converted into a BufferedImage if it is not already one.
Field Summary | |
static java.lang.String |
PROPERTY_IMAGE
The property name that identifies a change of this node's image (see getImage ). |
Fields inherited from class edu.umd.cs.piccolo.PNode |
PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE |
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
PSWTImage(PSWTCanvas canvas)
|
|
PSWTImage(PSWTCanvas canvas,
org.eclipse.swt.graphics.Image newImage)
|
|
PSWTImage(PSWTCanvas canvas,
java.lang.String fileName)
|
Method Summary | |
org.eclipse.swt.graphics.Image |
getImage()
Returns the image that is shown by this node. |
protected void |
paint(PPaintContext paintContext)
Paint this node behind any of its children nodes. |
protected java.lang.String |
paramString()
Returns a string representing the state of this node. |
void |
setImage(org.eclipse.swt.graphics.Image newImage)
Set the image that is wrapped by this PImage node. |
void |
setImage(java.lang.String fileName)
Set the image that is wrapped by this PImage node. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_IMAGE
getImage
). Both old and new value will be set correctly
to Image objects in any property change event.
Constructor Detail |
public PSWTImage(PSWTCanvas canvas)
public PSWTImage(PSWTCanvas canvas, org.eclipse.swt.graphics.Image newImage)
public PSWTImage(PSWTCanvas canvas, java.lang.String fileName)
Method Detail |
public org.eclipse.swt.graphics.Image getImage()
public void setImage(java.lang.String fileName)
public void setImage(org.eclipse.swt.graphics.Image newImage)
protected void paint(PPaintContext paintContext)
PNode
paint
in class PNode
paintContext
- the paint context to use for painting the nodeprotected java.lang.String paramString()
null
.
paramString
in class PNode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |