|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.OBBase
com.oberon.ooql.sdk.AdminBase
com.oberon.ooql.sdk.Graph
public class Graph
Graph Admin Object: generates chart images for application usage
| Field Summary |
|---|
| Fields inherited from class com.oberon.ooql.sdk.AdminBase |
|---|
bsOptions, HIDDEN_OPTION |
| Constructor Summary | |
|---|---|
Graph()
|
|
Graph(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.String |
compareSimple(Graph refGraph,
boolean checkImage)
Return the template of OOQL command to update this Graph object and let it become equals to another reference object. |
java.lang.String |
compareUpdate(Graph refGraph,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this Graph object and let it become equals to another reference object. |
void |
create(boolean force,
Framework framework)
Create a new Graph object on the database |
void |
create(Framework framework)
Create a new Graph object on the database |
void |
destroy(Framework framework)
Remove the Graph object from the database |
byte[] |
draw(GraphValues values,
Framework framework)
Generates a chart image based on the Graph style parameters and input data values |
static byte[] |
drawGraph(java.lang.String graphName,
java.lang.String XMLvalues,
Framework framework)
Generates a chart image based on the Graph style parameters and input data values |
void |
fromXML(org.jdom.Element rootElement)
Load the Graph object properties from XML element tree |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Graph object with the settled properties |
java.lang.String |
getCreateCommand(boolean force,
boolean simple)
Return the OOQL command to create this Graph object with the settled properties |
int |
getHeight()
Get the Graph height |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this Graph object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Graph object with the modified properties. |
java.lang.String |
getStyle()
Get the Graph style as XML String |
GraphStyler |
getStyler()
Get the Graph styler containing the chart parameters |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
int |
getType()
Get the Graph type |
java.lang.String |
getTypeAsString()
Get the Graph type as String |
int |
getWidth()
Get the Graph width |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Graph object: connect the memory instance with the database instance |
static Graph |
open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open an administrative object and read properties from the database or retrieve them from memory |
byte[] |
preview(Framework framework)
Generates a preview image based on the Graph style parameters |
void |
setStyle(GraphStyler graphStyler)
Set the Graph style |
void |
setStyle(java.lang.String xmlStyle)
Set the Graph style |
void |
setStyleFile(java.lang.String filePath)
Set the Graph style from an XML file |
void |
setType(int type)
Set the Graph type |
java.lang.String |
toString()
Return the Graph object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Graph object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Graph object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Graph object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
write(boolean force,
Framework framework)
Update the Graph object to the database |
void |
write(Framework framework)
Update the Graph object to the database |
| Methods inherited from class com.oberon.ooql.sdk.OBBase |
|---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Graph()
public Graph(java.lang.String name)
throws OberonException
name - the name of the administrative object
OberonException - if the name contains invalid characters| Method Detail |
|---|
public static Graph open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
name - the object nameframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
link in class AdminBaseframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
create in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void create(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(Framework framework)
throws OberonException
write in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public byte[] preview(Framework framework)
throws OberonException
OberonException
public byte[] draw(GraphValues values,
Framework framework)
throws OberonException
OberonException
public void unlink(Framework framework)
throws OberonException
unlink in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions
public void destroy(Framework framework)
throws OberonException
destroy in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public static byte[] drawGraph(java.lang.String graphName,
java.lang.String XMLvalues,
Framework framework)
throws java.lang.Exception
graphName - the Graph nameXMLvalues - input data values in XML format (see GraphValues)framework - the current framework
java.lang.Exceptionpublic void setType(int type)
type - the chart type; see the GraphStyler TYPE constantspublic int getType()
public java.lang.String getTypeAsString()
public int getWidth()
public int getHeight()
public void setStyle(GraphStyler graphStyler)
graphStyler - the GraphStyler containing the chart parameterspublic void setStyle(java.lang.String xmlStyle)
xmlStyle - the XML String representing the chart parameters
public void setStyleFile(java.lang.String filePath)
throws OberonException
filePath - the XML file path/name representing the chart parameters
OberonExceptionpublic java.lang.String getStyle()
public GraphStyler getStyler()
public java.lang.String getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
getProperty in class OBBasepropertyName - OOQL property identifier/name (example: type , style ...)filterArgs - extra arguments used to compute propertiestoken - separator token for complex propertiesframework - the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
getTargetNames in class OBBasecomposedName - OOQL property identifier/namefilterArgs - extra arguments used to compute propertiesframework - the current framework
public java.lang.String toString()
toString in class AdminBasepublic java.lang.String toString(Framework framework)
toString in class AdminBaseframework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML in class AdminBaseframework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
toXML in class AdminBasegetImage - true to include "imagedata" element with the base64 encoded image datafullDump - true to include detailed informationframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML in class AdminBasepublic java.lang.String getCreateCommand(boolean force)
getCreateCommand in class AdminBaseforce - if true append the "force" options at the end
public java.lang.String getCreateCommand(boolean force,
boolean simple)
simple - if true return the command templatepublic java.lang.String getSaveCommand(boolean force)
getSaveCommand in class AdminBaseforce - if true append the "force" options at the end
public java.lang.String compareUpdate(Graph refGraph,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
throws OberonException
refGraph - the reference Graph objectcheckImage - if true compare also the image iconoverwrite - if true update the database object instanceforce - if true ignores optional propertiesframework - the current framework
OberonExceptionfromXML(Element)
public java.lang.String compareSimple(Graph refGraph,
boolean checkImage)
throws OberonException
refGraph - the reference Graph objectcheckImage - if true compare also the image icon
OberonException
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||