|
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.control.LyController
leon.control.LyAreaController
leon.control.LyGraphicalChartController
public class LyGraphicalChartController
This class implements the graphical chart area. This controller is associated with a builder LyGraphicalChartBuilder). It is also related to a behavior that implements LyChartBehaviorInterface. Usually, this behavior is an instance of LyChartBehavior.
LyGraphicalChartBuilder
,
LyChartBehaviorInterface
,
LyChartBehavior
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static java.lang.String |
DEMAND_CHART_DATA
View chart data. |
static java.lang.String |
DEMAND_OVERWRITE_FILE
Application end. |
static java.lang.String |
DEMAND_PRINT_CHART
Saving the chart image. |
static java.lang.String |
DEMAND_SAVE_DATA
Save chart data. |
static java.lang.String |
DEMAND_SAVE_DEF_CHART
Saving the chart definition. |
static java.lang.String |
DEMAND_SAVE_IMG_CHART
Saving the chart image. |
static int |
FILE_NAME_WIDTH
Length of the field to enter the name of the save file (for chart definition). |
static java.lang.String |
OVERWRITE_DEF
Preview inputs. |
static java.lang.String |
OVERWRITE_DEF_NO
Preview inputs. |
static java.lang.String |
OVERWRITE_DEF_YES
Preview inputs. |
static java.lang.String |
SAVE_PREFERENCE
Preview inputs. |
static java.lang.String |
SAVE_PREFERENCE_NO
Preview inputs. |
static java.lang.String |
SAVE_PREFERENCE_YES
Preview inputs. |
static java.lang.String |
SELECT_FILE
Preview inputs. |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyGraphicalChartController(LySession session,
LyController parent,
LyAction action)
Constructor. |
|
LyGraphicalChartController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo)
Constructor. |
|
LyGraphicalChartController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects)
Constructor. |
|
LyGraphicalChartController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects,
LyChartController chartController)
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. |
LyChart |
getChartComponent()
Accessor to the chart component (view). |
LyChartController |
getChartController()
Retrieves the LyChartController parent if there is one (ie the chart is defined by parametring windows). |
LyChartInfo |
getChartInfo()
Retrieves the ChartInfo. |
LyClassInfo |
getClassInfo()
Retrieves the ClassInfo. |
LyObjectList |
getContent()
Get content of the chart. |
java.lang.String |
getTitle()
Gets title associated with this controller. |
boolean |
isViewResizable()
Indicates if the view for this import controller is resizable. |
void |
print(int page)
Implementation of LyPrintListenerInterface. |
void |
reloadChartComponent()
Reloads the chart component in the parent view. |
void |
reset(boolean full)
Reset all the content of the view. |
void |
run()
Starting printChart request. |
void |
setChartInfo(LyChartInfo chartInfo)
Sets the ChartInfo. |
boolean |
setContext(LyWorkSpace context)
Set the current context for the controller. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String DEMAND_PRINT_CHART
public static final java.lang.String DEMAND_SAVE_IMG_CHART
public static final java.lang.String DEMAND_SAVE_DEF_CHART
public static final java.lang.String DEMAND_CHART_DATA
public static final java.lang.String DEMAND_OVERWRITE_FILE
public static final java.lang.String SELECT_FILE
public static final java.lang.String OVERWRITE_DEF
public static final java.lang.String OVERWRITE_DEF_YES
public static final java.lang.String OVERWRITE_DEF_NO
public static final java.lang.String SAVE_PREFERENCE
public static final java.lang.String SAVE_PREFERENCE_YES
public static final java.lang.String SAVE_PREFERENCE_NO
public static final int FILE_NAME_WIDTH
public static final java.lang.String DEMAND_SAVE_DATA
Constructor Detail |
---|
public LyGraphicalChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects, LyChartController chartController)
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).chartController
- the parent chart controllerpublic LyGraphicalChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
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).public LyGraphicalChartController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo)
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.public LyGraphicalChartController(LySession session, LyController parent, LyAction action)
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 |
---|
public java.lang.Class<?> getBehaviorInterface()
getBehaviorInterface
in class LyAreaController
public LyObjectList getContent()
getContent
in class LyAreaController
public void reset(boolean full)
LyAreaController
reset
in class LyAreaController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or not
(only reset graphical area).LyAreaController.reset(boolean)
public void reloadChartComponent()
public boolean setContext(LyWorkSpace context)
LyAreaController
setContext
in interface LyContextInterface
setContext
in class LyAreaController
context
- Current context, or null if no context is set for the view
LyAreaController.setContext(leon.data.LyWorkSpace)
public boolean isViewResizable()
isViewResizable
in class LyAreaController
public LyChartController getChartController()
public LyClassInfo getClassInfo()
getClassInfo
in class LyAreaController
public LyChartInfo getChartInfo()
public LyChart getChartComponent()
public void setChartInfo(LyChartInfo chartInfo)
chartInfo
- the ChartInfo instance;public void actionDemand(LyActionDemand demand)
actionDemand
in class LyAreaController
demand
- the demand caught by the listenerLyController.demandPerformed(leon.view.event.LyDemand)
public void free(LyController controller)
free
in class LyAreaController
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.LyAreaController.free()
public void run()
run
in interface java.lang.Runnable
public void print(int page)
print
in interface LyPrintListenerInterface
page
- the page to printpublic java.lang.String getTitle()
getTitle
in class LyAreaController
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |