|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyChartBehavior
public class LyChartBehavior
This class implements the default behavior for actions that are controlled by a chart controller.
LyChartController
,
LyGraphicalChartController
,
LyChartBehaviorInterface
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyChartBehavior()
|
Method Summary | |
---|---|
void |
completeChart(LyGraphicalChartController controller,
LyChart chart)
Complete chart component before showing it. |
boolean |
displayLegendEmptyValues(LyGraphicalChartController controller)
Indicates whether empty values must be displayed on the legend. |
boolean |
generateSensitiveAreas(LyGraphicalChartController controller)
Indicates whether sensitive areas must be generated or not. |
java.lang.String |
getBarLegendLabel(LyGraphicalChartController controller,
LyFieldInfo fieldInfo,
LyObject object,
java.lang.Object value)
Gets the label that must be shown in the legend of a bar chart. |
LyObjectList |
getChartContext(LyController controller,
LySession session,
LyClassInfo classInfo,
LyObjectList objects,
LyWorkSpace parentContext)
Gets the chart context objects list. |
LyInfoList<LyFieldInfo> |
getGroupFields(LyChartController controller)
Gets fields that may be used as group variables in the chart. |
java.lang.String |
getImage(LyFormController formController,
LyObject object)
Gets the image associated to the given object for the given form. |
java.lang.String |
getScatterPlotLabel(LyGraphicalChartController controller,
LyObject object)
Gets the label that must be used for a point on a scatter plot chart. |
java.lang.String |
getScatterPlotLegendLabel(LyGraphicalChartController controller,
LyObject object)
Return the label that must be used for a point on a scatter plot legend. |
java.lang.Object |
getStringChartValue(LyGraphicalChartController controller,
LyFieldInfo fieldInfo,
LyObject object,
java.lang.Object value,
LyChartInfo.Type typeVar,
boolean yAxis)
Computes a printable string (if the given typeVar is text, number or date) or a Vector of strings (if the given fieldInfo is a multiple choice or relation) from the given value. |
java.lang.Object |
getValue(LyFormController form,
LyFieldInfo fieldInfo)
Gets value of the given fieldInfo. |
LyInfoList<LyFieldInfo> |
getXFields(LyChartController controller)
Gets fields that may be used as X variables in the chart. |
LyInfoList<LyFieldInfo> |
getYFields(LyChartController controller)
Gets fields that may be used as Y variables in the chart. |
boolean |
isDisplayed(LyFormController form,
LyFieldInfo fieldInfo)
Indicates if a fieldInfo is displayed in this form or not. |
boolean |
isLegendRightPositionned(LyGraphicalChartController controller)
Indicates if the legend must be positionned on the right of the chart. |
boolean |
isViewResizable(LyController controller)
Indicates whether a graphical chart view is resizable or not. |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
free, getSession, handleDemand, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyChartBehavior()
Method Detail |
---|
public boolean isViewResizable(LyController controller)
LyChartController
,
false otherwise.
isViewResizable
in interface LyChartBehaviorInterface
controller
- the current chart controller or graphical chart controller
public LyInfoList<LyFieldInfo> getXFields(LyChartController controller)
getFields(controller)
.
getXFields
in interface LyChartBehaviorInterface
controller
- The current chart controller.
getFields(LyChartController)
public LyInfoList<LyFieldInfo> getYFields(LyChartController controller)
getFields(controller)
.
getYFields
in interface LyChartBehaviorInterface
controller
- The current chart controller.
getFields(LyChartController)
public LyInfoList<LyFieldInfo> getGroupFields(LyChartController controller)
getGroupFields
in interface LyChartBehaviorInterface
controller
- The current chart controller.
public java.lang.String getImage(LyFormController formController, LyObject object)
getImage
in interface LyFormBehaviorInterface
formController
- the form controllerobject
- object whose image is looked for
public java.lang.Object getValue(LyFormController form, LyFieldInfo fieldInfo)
getValue
in interface LyFormBehaviorInterface
form
- the current LyFormController instance.fieldInfo
- the fieldInfo that contains the value
public LyObjectList getChartContext(LyController controller, LySession session, LyClassInfo classInfo, LyObjectList objects, LyWorkSpace parentContext)
getChartContext
in interface LyChartBehaviorInterface
controller
- the controllersession
- the current sessionclassInfo
- the classInfo that contains valuesobjects
- the selected objects of the current classparentContext
- the context of the parent class
public boolean isDisplayed(LyFormController form, LyFieldInfo fieldInfo)
isDisplayed
in interface LyFormBehaviorInterface
form
- the current LyFormController instance.fieldInfo
- the fieldInfo which is tested for addition in the view.
public java.lang.Object getStringChartValue(LyGraphicalChartController controller, LyFieldInfo fieldInfo, LyObject object, java.lang.Object value, LyChartInfo.Type typeVar, boolean yAxis)
getStringChartValue
in interface LyChartBehaviorInterface
controller
- the current controller instancefieldInfo
- the concerned field infoobject
- the concerned object (may be null)value
- the value to transform into a string. It comes from the given fieldInfotypeVar
- the field type defined in LyChartInfo
such
as LyChartInfo.Type.DATE
, LyChartInfo.Type.NUMBER
and LyChartInfo.Type.TEXT
yAxis
- indicates whether the value is computed for y or x axis
LyChartInfo
public java.lang.String getBarLegendLabel(LyGraphicalChartController controller, LyFieldInfo fieldInfo, LyObject object, java.lang.Object value)
getBarLegendLabel
in interface LyChartBehaviorInterface
controller
- the current controller instancefieldInfo
- the concerned field infoobject
- the concerned object (may be null)value
- the value to transform into a string for the legend label. Comes from the
given fieldInfo.
public java.lang.String getScatterPlotLabel(LyGraphicalChartController controller, LyObject object)
getScatterPlotLabel
in interface LyChartBehaviorInterface
controller
- the current controller instanceobject
- the object concerned
public java.lang.String getScatterPlotLegendLabel(LyGraphicalChartController controller, LyObject object)
getScatterPlotLegendLabel
in interface LyChartBehaviorInterface
controller
- the current controller instanceobject
- the object concerned
public boolean isLegendRightPositionned(LyGraphicalChartController controller)
isLegendRightPositionned
in interface LyChartBehaviorInterface
controller
- the current controller instance
public boolean displayLegendEmptyValues(LyGraphicalChartController controller)
displayLegendEmptyValues
in interface LyChartBehaviorInterface
controller
- the current controller instance
public boolean generateSensitiveAreas(LyGraphicalChartController controller)
generateSensitiveAreas
in interface LyChartBehaviorInterface
controller
- the current controller instance
public void completeChart(LyGraphicalChartController controller, LyChart chart)
completeChart
in interface LyChartBehaviorInterface
controller
- the current controller instancechart
- the chart component
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |