|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.IOHandler
y.io.ImageMapOutputHandler
public class ImageMapOutputHandler
A simple write-only IOHandler that produces a HTML image map.
The handler allows association of rectangular nodes, edge paths
node labels and edge 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. |
double |
getEdgeHitSensitivity()
Returns the width of an additional hit-test-sensitive border applied to each hyperlinked edge path. |
String |
getFileFormatString()
Returns "HTML ImageMap" |
String |
getFileNameExtension()
Returns "html" |
int |
getIndentDepth()
Selector |
LinkMap |
getReferences()
Selector |
boolean |
isSuppressEmptyMaps()
Whether empty <map> elements should be suppressed or not. |
boolean |
isUseNewlines()
Selector |
boolean |
isWellFormed()
Returns whether this class generates well-formed (xml-like) tags. |
void |
read(Graph2D graph,
InputStream in)
Unsupported method. |
void |
setEdgeHitSensitivity(double sensitivity)
Sets the width of an additional hit-test-sensitive border applied to each hyperlinked edge path. |
void |
setIndentDepth(int indentDepth)
Sets the indent depth. |
void |
setReferences(LinkMap references)
Selector |
void |
setSuppressEmptyMaps(boolean suppress)
Sets whether empty <map> elements should be suppressed. |
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 IOHandlerIOExceptiongraph - out - public String createHTMLString(Graph2D graph)
graph -
public boolean isSuppressEmptyMaps()
<map> elements should be suppressed or not.
setSuppressEmptyMaps(boolean)public void setSuppressEmptyMaps(boolean suppress)
<map> elements should be suppressed.
By default, they are suppressed.
public boolean isUseNewlines()
<area> elements are separated by newlinespublic void setUseNewlines(boolean useNewlines)
useNewlines - public void setEdgeHitSensitivity(double sensitivity)
10.0.
public double getEdgeHitSensitivity()
public int getIndentDepth()
<area> elementspublic void setIndentDepth(int indentDepth)
indentDepth - public Graph2DView createDefaultGraph2DView(Graph2D graph)
Graph2D.removeView(View)public LinkMap getReferences()
public void setReferences(LinkMap references)
references - the new LinkMap instancepublic boolean canRead()
canRead in class IOHandlerpublic String getFileFormatString()
getFileFormatString in class IOHandlerpublic String getFileNameExtension()
getFileNameExtension in class IOHandlerpublic boolean isWellFormed()
public void setWellFormed(boolean wellFormed)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||