|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.io.IOHandler | +--y.io.ImageMapOutputHandler
A simple write-only IOHandler that produces a HTML image map.
The handler allows association of rectangular nodes and labels
to hyperlinks. The hyperlink data has to be provided by a
LinkMap
object.
Constructor Summary | |
ImageMapOutputHandler()
Constructs an ImageMapOutputHandler, which uses newlines and indents area elements by 2 spaces. |
Method Summary | |
boolean |
canRead()
Returns false, since this class can't read a graph. |
Graph2DView |
createDefaultGraph2DView(Graph2D graph)
Creates the default view used as image producer in case there is no current view associated with the graph2D. |
String |
createHTMLString(Graph2D graph)
Creates a string representation of a HTML ImageMap corresponding to the specified graph. |
String |
getFileFormatString()
Returns "HTML ImageMap" |
String |
getFileNameExtension()
Returns "html" |
int |
getIndentDepth()
Selector |
LinkMap |
getReferences()
Selector |
boolean |
isUseNewlines()
Selector |
boolean |
isWellFormed()
Returns wether this class generates wellformed (xml-like) tags. |
void |
read(Graph2D graph,
InputStream in)
Unsupported method. |
void |
setIndentDepth(int indentDepth)
Sets the indent depth. |
void |
setReferences(LinkMap references)
Selector |
void |
setUseNewlines(boolean useNewlines)
Sets the useNewlines flag. |
void |
setWellFormed(boolean wellFormed)
Sets the policy for the generated html/xhtml. |
void |
write(Graph2D graph,
OutputStream out)
Writes a HTML ImageMap corresponding to the specified graph to the specified stream. |
Methods inherited from class y.io.IOHandler |
canWrite, canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, write, writeSubset, writeSubset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageMapOutputHandler()
Method Detail |
public void read(Graph2D graph, InputStream in)
read
in class IOHandler
public void write(Graph2D graph, OutputStream out) throws IOException
write
in class IOHandler
IOException
graph
- out
- public String createHTMLString(Graph2D graph)
graph
-
public boolean isUseNewlines()
<area>
elements are separated by newlinespublic void setUseNewlines(boolean useNewlines)
useNewlines
- public int getIndentDepth()
<area> elements
public void setIndentDepth(int indentDepth)
indentDepth
- public Graph2DView createDefaultGraph2DView(Graph2D graph)
The returned view will be automatically registered as one of the graph's views. After the returned view is not needed anymore it is advisable to remove it from the list of registered view of the given graph.
Graph2D.removeView(View)
public LinkMap getReferences()
public void setReferences(LinkMap references)
references
- the new LinkMap instancepublic boolean canRead()
canRead
in class IOHandler
public String getFileFormatString()
getFileFormatString
in class IOHandler
public String getFileNameExtension()
getFileNameExtension
in class IOHandler
public boolean isWellFormed()
public void setWellFormed(boolean wellFormed)
|
© 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 |