|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyext.graphml.graph2D.ImageConverter
Implementation of the GraphMLParseContext.ResourceDecoder
and GraphMLWriteContext.ResourceEncoder interfaces that (de)serialize
Images to/from embedded Base64 encoded blocks.
| Constructor Summary | |
ImageConverter()
|
|
| Method Summary | |
protected Image |
createOptimizedImage(int w,
int h,
BufferedImage bufferedImage)
Create an optimized version of the raw image. |
Object |
decode(Node codeNode,
GraphMLParseContext context)
Decode an image from an embedded resource block. |
void |
encode(Object o,
XmlWriter xmlWriter,
GraphMLWriteContext context)
Encode an image to an embedded Base64 resource block. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageConverter()
| Method Detail |
public Object decode(Node codeNode,
GraphMLParseContext context)
decode in interface GraphMLParseContext.ResourceDecodercodeNode - the xml node that encloses the encoded image resourcecontext - the current parse context.
createOptimizedImage(int,int,java.awt.image.BufferedImage)
protected Image createOptimizedImage(int w,
int h,
BufferedImage bufferedImage)
GraphicsConfiguration for the current environment and
paints to an image created by GraphicsConfiguration.createCompatibleImage(int,int,int).
w - h - bufferedImage -
public void encode(Object o,
XmlWriter xmlWriter,
GraphMLWriteContext context)
encode in interface GraphMLWriteContext.ResourceEncodero - xmlWriter - context -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||