|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.services.web.components.WebComponent
corelib.services.web.components.diagrams.DiagramView
public abstract class DiagramView
This base class defines common behaviors for views used on a diagram component. A view draws the data stored into a diagram model.
You can use a derived view class (corelib.services.web.components.diagrams.DiagramView,
corelib.services.web.components.diagrams.CurveView or
corelib.services.web.components.diagrams.PieView. You can also derives your specific view:
in this case, the raw behavior must be implemented in Javascript (see JWT diagram architecture for more informations).
Diagram,
Model,
DiagramView,
CurveView,
PieView| Field Summary |
|---|
| Fields inherited from class corelib.services.web.components.WebComponent |
|---|
dataBindings, webPage, xmlNode |
| Constructor Summary | |
|---|---|
DiagramView()
|
|
| Method Summary | |
|---|---|
boolean |
isDrawLegend()
Indicates if a legend must be drawn onto the produced diagram. |
boolean |
isDrawValues()
Indicates if model values must be drawn onto the produced diagram. |
void |
setDrawLegend(boolean drawLegend)
Changes the draw legend behavior. |
void |
setDrawValues(boolean drawValues)
Changes the model values drawing behavior. |
protected java.lang.String |
viewInstanciationCode()
Returns the Javascript code snippet use for produce the view class. |
| Methods inherited from class corelib.services.web.components.WebComponent |
|---|
addBindingExpression, addChildComponent, component_init, component_load, component_preRepeaterDuplications, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiagramView()
| Method Detail |
|---|
public boolean isDrawLegend()
public void setDrawLegend(boolean drawLegend)
drawLegend - true if a legend must be drawn, false otherwise.public boolean isDrawValues()
public void setDrawValues(boolean drawValues)
drawValues - true if model values must be drawn, false otherwise.protected java.lang.String viewInstanciationCode()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||