|
||||||||||
| 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
public class 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.umd.cs.piccolo.PNode |
|---|
PNode.PSceneGraphDelegate |
| Field Summary |
|---|
| 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 |
| 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 PNodepaintContext - 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 | |||||||||