public class HtmlBuilder
extends java.lang.Object
Constructor and Description |
---|
HtmlBuilder(Diagram diagram)
Initializes a new
HtmlBuilder instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createImageHtml(java.lang.String htmlFileName,
java.lang.String htmlTitle,
java.lang.String imgLocalPath,
java.lang.String imgURL,
java.lang.String imgFormat)
Exports a diagram image file and generates the code for an html page
that displays that file along with the html image map that
corresponds to the diagram.
|
java.lang.String |
createImageMap(java.lang.String mapName)
Creates an HTML image map.
|
java.lang.String |
createUseMapAttr(java.lang.String mapID)
Creates a USEMAP attribute for the specified image map.
|
boolean |
getAreasForTableCells()
Gets a value indicating whether image map AREA elements will be created
for tables' cells.
|
java.lang.String |
getExpandBtnHyperLink()
Gets a hyperlink assigned to the AREA elements created for
expand/collapse buttons.
|
java.lang.String |
getLinkTarget()
Gets the name of the target frame where hyperlinks should be opened.
|
float |
getScale() |
void |
setAreasForTableCells(boolean value)
Sets a value indicating whether image map AREA elements should be
created for tables' cells.
|
void |
setExpandBtnHyperLink(java.lang.String value)
Sets a hyperlink that should be assigned to the AREA elements created
for expand/collapse buttons.
|
void |
setLinkTarget(java.lang.String value)
Sets the name of the target frame where hyperlinks should be opened.
|
void |
setScale(float scale) |
public java.lang.String getLinkTarget()
String
object containing the target frame name.public void setLinkTarget(java.lang.String value)
value
- A String
containing the name of the target frame.public boolean getAreasForTableCells()
true
if cell areas will be created,
otherwise false
.public void setAreasForTableCells(boolean value)
value
- true
if cell areas should be created,
otherwise false
.public java.lang.String getExpandBtnHyperLink()
String
object containing the hyperlink.public void setExpandBtnHyperLink(java.lang.String value)
value
- A String
object containing the hyperlink.public java.lang.String createImageMap(java.lang.String mapName)
mapName
- A String
containing the map element ID.String
object containing the image map tags.public java.lang.String createUseMapAttr(java.lang.String mapID)
mapID
- A String
containing the map element ID.String
object containing the USEMAP code.public java.lang.String createImageHtml(java.lang.String htmlFileName, java.lang.String htmlTitle, java.lang.String imgLocalPath, java.lang.String imgURL, java.lang.String imgFormat) throws java.io.IOException
htmlFileName
- The name of the html file that should be created.htmlTitle
- The title of the HTML page.imgLocalPath
- The name of the exported image file.imgURL
- The URL of the image file.imgFormat
- The format of the exported image.String
object containing the HTML code.java.io.IOException
public float getScale()
public void setScale(float scale)