corelib.services.web.components.diagrams
Class DiagramView

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.diagrams.DiagramView
Direct Known Subclasses:
CurveView, HistogramView, PieView

public abstract class DiagramView
extends WebComponent

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).

Since:
0.4.0
Author:
Dominique Liard
See Also:
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

DiagramView

public DiagramView()
Method Detail

isDrawLegend

public boolean isDrawLegend()
Indicates if a legend must be drawn onto the produced diagram.

Returns:
true if a legend must be drawn, false otherwise.

setDrawLegend

public void setDrawLegend(boolean drawLegend)
Changes the draw legend behavior.

Parameters:
drawLegend - true if a legend must be drawn, false otherwise.

isDrawValues

public boolean isDrawValues()
Indicates if model values must be drawn onto the produced diagram.

Returns:
true if model values must be drawn, false otherwise.

setDrawValues

public void setDrawValues(boolean drawValues)
Changes the model values drawing behavior.

Parameters:
drawValues - true if model values must be drawn, false otherwise.

viewInstanciationCode

protected java.lang.String viewInstanciationCode()
Returns the Javascript code snippet use for produce the view class. This method can be redefined on subclasses.

Returns:
the Javascript code snippet use for produce the view class.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.