|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageContent
Generic content of an image. Such content objects are used in (individual) data cell implementations and generic port objects.
Note: Objects of this interface must be read-only!
Implementations are required to provide at least a constructor with an
InputStream as only argument, which is used by the framework to
restore the image content.
| Method Summary | |
|---|---|
Dimension |
getPreferredSize()
Preferred dimension, width and height, for the given image to be rendered. |
String |
getSummary()
|
void |
paint(Graphics2D g,
int maxWidth,
int maxHeight)
Render image into argument graphics object. |
void |
save(OutputStream out)
Save the image content to an output stream. |
DataCell |
toImageCell()
Factory method to generate cell implementation. |
| Method Detail |
|---|
void paint(Graphics2D g,
int maxWidth,
int maxHeight)
g - To paint to.maxWidth - image maximum widthmaxHeight - image maximum heightDimension getPreferredSize()
DataCell toImageCell()
void save(OutputStream out)
throws IOException
out - To save to.
IOException - If that fails.String getSummary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||