|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcwi.GraphXML.Elements.Picture
This class represents an image in GraphXML, used as a graph icon or a fill property. The image's URL can be retrieved as a Reference object, or the java.awt.Image can be generated. Note that the java.awt.Image is generated only on demand, ie, if the application wants to access the image through different means, it can do it without loss of efficiency.
The reason the class name is not "Image" because we wanted to avoid a clash with java.awt.Image...
Reference
,
Serialized FormNested Class Summary | |
(package private) class |
Picture.urlImageFilter
This filter is used to add a 'url' property to an image. |
Constructor Summary | |
(package private) |
Picture(Reference r)
|
Method Summary | |
static Picture |
create(org.w3c.dom.Node node,
ParserError parserError)
Retrieve the representation of a reference from a node, and returns a corresponding class instance. |
java.awt.Image |
getImage()
A utility function which returns the stored image in awt Image format, rather than a simple URL. |
Reference |
getReference()
Return the reference of the image |
java.net.URL |
getURL()
Return the direct URL of the image |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
Picture(Reference r)
Method Detail |
public Reference getReference()
public java.net.URL getURL()
public java.awt.Image getImage()
public static Picture create(org.w3c.dom.Node node, ParserError parserError)
node
- The node containing the reference.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |