|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.io.IOHandler | +--y.io.TiledImageOutputHandler
This output handler is responsible for exporting a diagram to mutliple image tiles that make up a complete image. The genration of the single image tiles will be handled by a output handler delegate. Optionally this class can also generate a html page that displays the tiles in one large table.
Constructor Summary | |
TiledImageOutputHandler(IOHandler delegate)
Creates a new instance of TiledImageOutputHandler. |
Method Summary | |
boolean |
canRead()
Returns false. |
boolean |
canWrite()
This method is delegated to the internal IOHandler. |
String |
getFileFormatString()
This method is delegated to the internal IOHandler. |
String |
getFileNameExtension()
This method is delegated to the internal IOHandler. |
boolean |
isHTMLTableGenerationActive()
Returns whether or not to produce an HTL page. |
void |
read(Graph2D graph,
InputStream in)
This method is delegated to the internal IOHandler. |
void |
setColumnCount(int cols)
Sets the number of columns the output image will be split into. |
void |
setHTMLTableGenerationActive(boolean generate)
Whether or not to generate an HTML page that displays the image tiles in one large table. |
void |
setMaximumTileSize(int width,
int height)
Sets the maximum size for each output image tile. |
void |
setRowCount(int rows)
Sets the number of rows the output image will be split into. |
void |
write(Graph2D graph,
OutputStream out)
This method is delegated to the internal IOHandler. |
void |
write(Graph2D graph,
String name)
Exports a diagramm to multiple output files. |
Methods inherited from class y.io.IOHandler |
canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, writeSubset, writeSubset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TiledImageOutputHandler(IOHandler delegate)
delegate
- the delgate IOHandler that will be invoked
for each image tile with a different viewport.Method Detail |
public String getFileFormatString()
getFileFormatString
in class IOHandler
public void setHTMLTableGenerationActive(boolean generate)
.html
Its basename will be the same as the output file.
By default this feature is deactivated.
public boolean isHTMLTableGenerationActive()
TiledImageOutputHandler.setHTMLTableGenerationActive(boolean)
public void setMaximumTileSize(int width, int height)
TiledImageOutputHandler.setRowCount(int)
and TiledImageOutputHandler.setColumnCount(int)
.
public void setRowCount(int rows)
TiledImageOutputHandler.setMaximumTileSize(int,int)
.
public void setColumnCount(int cols)
TiledImageOutputHandler.setMaximumTileSize(int,int)
.
public boolean canRead()
canRead
in class IOHandler
public boolean canWrite()
canWrite
in class IOHandler
public void write(Graph2D graph, String name) throws IOException
The number of generated output
files can be controlled by either the methods TiledImageOutputHandler.setRowCount(int)
and TiledImageOutputHandler.setColumnCount(int)
or the method TiledImageOutputHandler.setMaximumTileSize(int, int)
.
The names of the output files will have the form {basename}{row}_{column}.{extension} given that the name parameter has the form {basename}.{extension}.
Additionally this method creates HTML file when requested.
write
in class IOHandler
IOException
name
- The name of the output filepublic String getFileNameExtension()
getFileNameExtension
in class IOHandler
public void read(Graph2D graph, InputStream in) throws IOException
read
in class IOHandler
IOException
public void write(Graph2D graph, OutputStream out) throws IOException
write
in class IOHandler
IOException
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |