LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyChartController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyMultiAreaController
              extended by leon.control.LyFormController
                  extended by leon.control.LyChartController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyAdvancedWorkSpaceListener, LyGuiListener, LyWorkSpaceListener, LyGetClassInfoInterface, LyInfoListener, LyEvaluator, LyDemandListener

public class LyChartController
extends LyFormController

This class implements the parameter chart edition forms. It implements a 'wizard' style controller for navigation between form page. At end, it invokes a graphical chart controller.

See Also:
LyFormController, LyGraphicalChartController

Field Summary
static java.lang.String __VERSION
          File version
static int AXIS_TITLES_WIDTH
          Input in the third window.
static java.lang.String BORDER_INT_X
          Input in the second window.
static java.lang.String BORDER_INT_Y
          Input in the second window.
static java.lang.String CHART_DISPLAY_OPTIONS
          Input in the third window.
static int DEFAULT_HEIGHT
          Height of the window.
static int DEFAULT_WIDTH
          Width of the window.
static java.lang.String DEMAND_MODIFY_STEP
          Show previous window.
static java.lang.String LG_INT_X_AREA
          Input in the second window.
static java.lang.String LG_INT_Y_AREA
          Input in the second window.
static java.lang.String PIES_BY
          Input in the second window.
static java.lang.String PIES_BY_X
          Input in the second window.
static java.lang.String PIES_BY_Y
          Input in the second window.
static java.lang.String SELECT_GRAPH_TYPE
          Input in the first window.
static java.lang.String SELECT_GROUP_FIELD
          Input in the second window.
static java.lang.String SELECT_X_FIELD
          Input in the first window.
static java.lang.String SELECT_Y_FIELDS
          Input in the first window.
static java.lang.String TITLE_AREA
          Input in the third window.
static int TITLE_HEIGHT
          Input in the third window.
static int TITLE_WIDTH
          Input in the third window.
static java.lang.String X_GRAD_AXIS
          Input in the third window.
static java.lang.String X_MAX_AXIS
          Input in the third window.
static java.lang.String X_MIN_AXIS
          Input in the third window.
static java.lang.String X_TITLE
          Input in the third window.
static java.lang.String X_TYPE_INTS
          Input in the second window.
static java.lang.String X_TYPE_VALUES
          Input in the second window.
static java.lang.String Y_GRAD_AXIS
          Input in the third window.
static java.lang.String Y_MAX_AXIS
          Input in the third window.
static java.lang.String Y_MIN_AXIS
          Input in the third window.
static java.lang.String Y_TITLE
          Input in the third window.
static java.lang.String Y_TYPE_INTS
          Input in the second window.
static java.lang.String Y_TYPE_VALUES
          Input in the second window.
 
Fields inherited from class leon.control.LyFormController
DEMAND_APPLY, DEMAND_NEXT_OBJECT, DEMAND_NEXT_STEP, DEMAND_PREVIOUS_OBJECT, DEMAND_PREVIOUS_STEP, DEMAND_SAVE, DEMAND_SELECTION, DEMAND_VALIDATE, FORM_FIELD_SEP
 
Fields inherited from class leon.control.LyAreaController
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Constructor Summary
LyChartController(LySession session, LyController parent, LyAction action)
          Constructor.
LyChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo)
          Constructor.
LyChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Default constructor.
LyChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects, LyChartInfo chartInfo)
          Constructor.
LyChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects, LyChartInfo chartInfo, LyGraphicalChartController graphicalChartController)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 void free(LyController controller)
          Free this controller on request of the specified controller.
 java.lang.Class<?> getBehaviorInterface()
          Method that gives the interface that must be implemented by the behavior associated to this controller.
 LyChartInfo getChartInfo()
          Gets the current LyChartInfo.
 boolean isViewResizable()
          Indicates if the view for this chart controller is resizable.
 LyArea resetArea1()
          Reset the first window.
 void resetArea2()
          show the second window.
 void resetArea3()
          show the third window.
 void saveWin3()
          Sets the params given by the third window in LyChartInfo : Titles (graphic and axis), Axis parameters.
 void setGraphicalChartAction(LyAction action)
          Set the action that must be used when showing graphical chart.
 
Methods inherited from class leon.control.LyFormController
clearViewCache, contains, fieldControllerFactory, findFormField, getAreaController, getClassInfo, getCompositionRelation, getContent, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldMarks, getFields, getFieldValue, getFieldValue, getFormField, getImage, getImage, getKeyValue, getObject, getObjectList, getSelection, getState, getTabs, isChangingObject, isComposition, isDisplayed, menuDemand, objectAdded, objectChanged, objectRemoved, objectStateChanged, objectUserEvent, reset, resetFormContent, resetFromObject, setActiveField, setCompositionRelation, setContext, setFieldMarks, setObjects, setState, showError, workSpaceEventsGrouped
 
Methods inherited from class leon.control.LyMultiAreaController
addAreaController, addAreaControllerStack, canClose, getAreaController, getAreaController, getAreaControllersCount, getAreaControllerStack, getAreaControllerStackCount, getFinalAreaControllers, getLastModified, openSubAreaController, removeAreaController, removeAreaControllerStack, setAction, setContextClient, setIdle, setViewController, update
 
Methods inherited from class leon.control.LyAreaController
canFree, completeMenuBar, completeMessages, free, getAction, getAreaStackController, getBehavior, getBuilder, getContext, getContextClient, getContextTitle, getDefaultAction, getFastEditionAction, getHelpFile, getImageTooltip, getInfoLabel, getInfoLabel, getLabel, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getShortLabel, getTarget, getTitle, getViewController, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, reset, selectFileDemand, setContext, setPreference, showView, showView, testParameter, toString, updateTitleBar
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showWarning, updateViewFromValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values

DEFAULT_WIDTH

public static int DEFAULT_WIDTH
Width of the window.


DEFAULT_HEIGHT

public static int DEFAULT_HEIGHT
Height of the window.


DEMAND_MODIFY_STEP

public static final java.lang.String DEMAND_MODIFY_STEP
Show previous window.

See Also:
Constant Field Values

SELECT_Y_FIELDS

public static final java.lang.String SELECT_Y_FIELDS
Input in the first window.

See Also:
Constant Field Values

SELECT_X_FIELD

public static final java.lang.String SELECT_X_FIELD
Input in the first window.

See Also:
Constant Field Values

SELECT_GRAPH_TYPE

public static final java.lang.String SELECT_GRAPH_TYPE
Input in the first window.

See Also:
Constant Field Values

X_TYPE_VALUES

public static final java.lang.String X_TYPE_VALUES
Input in the second window.

See Also:
Constant Field Values

Y_TYPE_VALUES

public static final java.lang.String Y_TYPE_VALUES
Input in the second window.

See Also:
Constant Field Values

SELECT_GROUP_FIELD

public static final java.lang.String SELECT_GROUP_FIELD
Input in the second window.

See Also:
Constant Field Values

LG_INT_X_AREA

public static final java.lang.String LG_INT_X_AREA
Input in the second window.

See Also:
Constant Field Values

LG_INT_Y_AREA

public static final java.lang.String LG_INT_Y_AREA
Input in the second window.

See Also:
Constant Field Values

Y_TYPE_INTS

public static final java.lang.String Y_TYPE_INTS
Input in the second window.

See Also:
Constant Field Values

X_TYPE_INTS

public static final java.lang.String X_TYPE_INTS
Input in the second window.

See Also:
Constant Field Values

BORDER_INT_X

public static final java.lang.String BORDER_INT_X
Input in the second window.

See Also:
Constant Field Values

BORDER_INT_Y

public static final java.lang.String BORDER_INT_Y
Input in the second window.

See Also:
Constant Field Values

PIES_BY

public static final java.lang.String PIES_BY
Input in the second window.

See Also:
Constant Field Values

PIES_BY_X

public static final java.lang.String PIES_BY_X
Input in the second window.


PIES_BY_Y

public static final java.lang.String PIES_BY_Y
Input in the second window.


TITLE_AREA

public static final java.lang.String TITLE_AREA
Input in the third window.

See Also:
Constant Field Values

TITLE_WIDTH

public static final int TITLE_WIDTH
Input in the third window.

See Also:
Constant Field Values

TITLE_HEIGHT

public static final int TITLE_HEIGHT
Input in the third window.

See Also:
Constant Field Values

AXIS_TITLES_WIDTH

public static final int AXIS_TITLES_WIDTH
Input in the third window.

See Also:
Constant Field Values

X_TITLE

public static final java.lang.String X_TITLE
Input in the third window.

See Also:
Constant Field Values

Y_TITLE

public static final java.lang.String Y_TITLE
Input in the third window.

See Also:
Constant Field Values

X_MIN_AXIS

public static final java.lang.String X_MIN_AXIS
Input in the third window.

See Also:
Constant Field Values

X_MAX_AXIS

public static final java.lang.String X_MAX_AXIS
Input in the third window.

See Also:
Constant Field Values

X_GRAD_AXIS

public static final java.lang.String X_GRAD_AXIS
Input in the third window.

See Also:
Constant Field Values

Y_MIN_AXIS

public static final java.lang.String Y_MIN_AXIS
Input in the third window.

See Also:
Constant Field Values

Y_MAX_AXIS

public static final java.lang.String Y_MAX_AXIS
Input in the third window.

See Also:
Constant Field Values

Y_GRAD_AXIS

public static final java.lang.String Y_GRAD_AXIS
Input in the third window.

See Also:
Constant Field Values

CHART_DISPLAY_OPTIONS

public static final java.lang.String CHART_DISPLAY_OPTIONS
Input in the third window.

See Also:
Constant Field Values
Constructor Detail

LyChartController

public LyChartController(LySession session,
                         LyController parent,
                         LyAction action,
                         LyClassInfo classInfo,
                         LyObjectList objects)
Default constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - always the classInfo of the specified objects.
objects - current context (not null because the view is contextual to a list of objects).

LyChartController

public LyChartController(LySession session,
                         LyController parent,
                         LyAction action,
                         LyClassInfo classInfo,
                         LyObjectList objects,
                         LyChartInfo chartInfo)
Constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - always the classInfo of the specified objects.
objects - current context (not null because the view is contextual to a list of objects).
chartInfo - the chartInfo of the predefined chart.

LyChartController

public LyChartController(LySession session,
                         LyController parent,
                         LyAction action,
                         LyClassInfo classInfo,
                         LyObjectList objects,
                         LyChartInfo chartInfo,
                         LyGraphicalChartController graphicalChartController)
Constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - always the classInfo of the specified objects.
objects - current context (not null because the view is contextual to a list of objects).
chartInfo - the chartInfo of the predefined chart.
graphicalChartController - the controller of the predefined chart.

LyChartController

public LyChartController(LySession session,
                         LyController parent,
                         LyAction action,
                         LyClassInfo classInfo)
Constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - always the classInfo of the specified objects.

LyChartController

public LyChartController(LySession session,
                         LyController parent,
                         LyAction action)
Constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
Method Detail

getChartInfo

public LyChartInfo getChartInfo()
Gets the current LyChartInfo.

Returns:
the current LyChartInfo.

setGraphicalChartAction

public void setGraphicalChartAction(LyAction action)
Set the action that must be used when showing graphical chart.

Parameters:
action - the action

getBehaviorInterface

public java.lang.Class<?> getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller.

Overrides:
getBehaviorInterface in class LyFormController
Returns:
Class representing the behavior interface of this controller.

isViewResizable

public boolean isViewResizable()
Indicates if the view for this chart controller is resizable. A call to isViewResizable() is done on the chart behavior.

Overrides:
isViewResizable in class LyFormController
Returns:
true if the view is resizable, false otherwise.

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when an action occurs. (LyDemandListener interface)

Overrides:
actionDemand in class LyFormController
Parameters:
demand - the type of demand
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

free

public void free(LyController controller)
Free this controller on request of the specified controller.

Overrides:
free in class LyFormController
Parameters:
controller - controller instance which requested the freeing of this controller. If the controller is the parent, this controller is freed otherwise the method does nothing. If the LyGraphicalController has a MODIFY nutton, enable it.
See Also:
LyAreaController.free()

saveWin3

public void saveWin3()
Sets the params given by the third window in LyChartInfo : Titles (graphic and axis), Axis parameters.


resetArea1

public LyArea resetArea1()
Reset the first window.

Returns:
the first form.

resetArea2

public void resetArea2()
show the second window.


resetArea3

public void resetArea3()
show the third window.


(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com