|
JHotDraw 7.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageHolderFigure
The interface of a Figure
which has some editable image contents.
The ImageTool
can be used to create figures which implement this
interface.
Prototype
The image tool creates new figures by cloning a prototype figure object.
That's the reason why Figure
extends the Cloneable
interface.
Prototype: ImageHolderFigure
;
Client: ImageTool
.
Prototype
The image input format creates new image holder figures by cloning a prototype figure
object and assigning an image to it, which was read from data input.
That's the reason why Figure
extends the Cloneable
interface.
Prototype: ImageHolderFigure
;
Client: ImageInputFormat
.
Field Summary |
---|
Fields inherited from interface org.jhotdraw.draw.Figure |
---|
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
getBufferedImage()
Gets the buffered image from the figure. |
byte[] |
getImageData()
Gets the image data. |
void |
loadImage(java.io.File f)
Loads an image from a File. |
void |
loadImage(java.io.InputStream in)
Loads an image from an Input Stream. |
void |
setBufferedImage(java.awt.image.BufferedImage image)
Sets the buffered image for the figure. |
void |
setImage(byte[] imageData,
java.awt.image.BufferedImage bufferedImage)
Sets the image. |
Methods inherited from interface org.jhotdraw.xml.DOMStorable |
---|
read, write |
Method Detail |
---|
void loadImage(java.io.File f) throws java.io.IOException
java.io.IOException
void loadImage(java.io.InputStream in) throws java.io.IOException
java.io.IOException
java.awt.image.BufferedImage getBufferedImage()
void setBufferedImage(java.awt.image.BufferedImage image)
void setImage(byte[] imageData, java.awt.image.BufferedImage bufferedImage) throws java.io.IOException
imageData
- The image data. If this is null, a buffered image must
be provided.bufferedImage
- An image constructed from the imageData. If this
is null, imageData must be provided.
java.io.IOException
byte[] getImageData()
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |