|
NetCharts Server | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--netcharts.server.api.ServerGeneratedPage
Object with HTML representation of chart image.
| Constructor Summary | |
ServerGeneratedPage()
Create an empty ServerGeneratedPage. |
|
ServerGeneratedPage(byte[] image,
java.lang.String mimeType,
java.lang.String html)
Create a ServerGeneratedPage with the given image data and mime type. |
|
ServerGeneratedPage(byte[] image,
java.lang.String mimeType,
java.lang.String html,
java.lang.String altText,
java.lang.String chartFile)
Create an ServerGeneratedPage with the given image data, mime type, HTML and unique ID. |
|
ServerGeneratedPage(byte[] image,
java.lang.String mimeType,
java.lang.String html,
java.lang.String altText,
java.lang.String chartFile,
java.lang.String uniqueID)
Create an ServerGeneratedPage with the given image data, mime type, MapElement vector and unique ID. |
|
| Method Summary | |
void |
createUniqueID()
Create the Unique ID of the image or retrieve it from the HTML. |
java.lang.String |
getAltText()
Get the alternate text of the image. |
java.lang.String |
getChartFile()
Get the chart file of the ServerGeneratedPage. |
java.lang.String |
getError()
Get the error. |
java.lang.String |
getHTML()
Get the unique ID of the ServerGeneratedPage. |
java.lang.String |
getHTMLFragment()
Retrieve the html code contained within the tag and the script. |
byte[] |
getImage()
Get the encoded image data. |
java.lang.String |
getMimeType()
Get the mime type of the encoded image. |
java.lang.String |
getUniqueID()
Get the unique ID of the ServerGeneratedPage. |
boolean |
load(byte[] serializedSGP)
Load and initialize the ServerGeneratedPage from an XML based serialized form. |
java.lang.String |
save()
Persist the ServerGeneratedImage into an XML based serialized form. |
java.lang.String |
save(java.lang.String encoding)
Persist the ServerGeneratedImage into an XML based serialized form. |
void |
setAltText(java.lang.String altText)
Set the alternate text of the image. |
void |
setChartFile(java.lang.String chartFile)
Set the chart file of the ServerGeneratedPage. |
void |
setError(java.lang.String error)
Set the error. |
void |
setHTML(java.lang.String html)
Set the unique ID of the ServerGeneratedPage. |
void |
setImage(byte[] image)
Set the encoded image data. |
boolean |
setImageSourceTag(java.lang.String newSource)
Modify the src parameter of the img tag. |
void |
setMimeType(java.lang.String mimeType)
Set the mime type of the encoded image. |
void |
setUniqueID(java.lang.String uniqueID)
Set the unique ID of the ServerGeneratedPage. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServerGeneratedPage()
public ServerGeneratedPage(byte[] image,
java.lang.String mimeType,
java.lang.String html)
image - The encoded image data.mimeType - The mime type of the encoded image.html - The resultant HTML of the page.
public ServerGeneratedPage(byte[] image,
java.lang.String mimeType,
java.lang.String html,
java.lang.String altText,
java.lang.String chartFile)
image - The encoded image data.mimeType - The mime type of the encoded image.html - The resultant HTML of the page.altText - The alternate of the encoded image.chartFile - The chart file of the ServerGeneratedPage.
public ServerGeneratedPage(byte[] image,
java.lang.String mimeType,
java.lang.String html,
java.lang.String altText,
java.lang.String chartFile,
java.lang.String uniqueID)
image - The encoded image data.mimeType - The mime type of the encoded image.html - The resultant HTML of the page.altText - The alternate of the encoded image.chartFile - The chart file of the ServerGeneratedPage.uniqueID - The unique ID of the encoded image.| Method Detail |
public boolean load(byte[] serializedSGP)
serializedSGI - The ServerGeneratedPage in XML form.public java.lang.String save()
public java.lang.String save(java.lang.String encoding)
The - string encoding to use for the xml document and the image data.public boolean setImageSourceTag(java.lang.String newSource)
public void createUniqueID()
public java.lang.String getHTMLFragment()
public void setImage(byte[] image)
public byte[] getImage()
public void setMimeType(java.lang.String mimeType)
public java.lang.String getMimeType()
public void setAltText(java.lang.String altText)
public java.lang.String getAltText()
public void setChartFile(java.lang.String chartFile)
public java.lang.String getChartFile()
public void setUniqueID(java.lang.String uniqueID)
public java.lang.String getUniqueID()
public void setHTML(java.lang.String html)
public java.lang.String getHTML()
public void setError(java.lang.String error)
public java.lang.String getError()
|
NetCharts Server | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2007 |
Last Modified: Jun 14, 2007 |