|
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.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingFieldItem
leon.view.win.swing.LySwingPanel
leon.view.win.swing.LySwingFreeChart
public class LySwingFreeChart
This class implements the Chart object (as described in the dtd) for swing viewer using JFreeChart components.
LyChartConverter
,
JFreeChart
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
LySwingFreeChart(LyChart chart)
Class constructor of a chart object for the Swing target. |
Method Summary | |
---|---|
void |
addColumn(LyColumn column,
int pos)
Inserts a sub-component column at given position. |
void |
free()
(non-Javadoc). |
LyChartConverter |
getChartConverter()
Retreives the chart Converter. |
java.awt.Component |
getComponent()
(non-Javadoc). |
int[] |
getComponentDimension()
Get the dimension of the component used to represent the chart. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
Always updates the current chart image if requested. |
void |
print(LyPrintListenerInterface listener)
Prints the content of the chart on a printer output. |
void |
printEnd(java.awt.PrintJob job,
LyChart canvas,
LyPrintListenerInterface listener)
Prints the content of the given chart on the specified print job. |
void |
removeColumn(LyColumn column)
Removes a sub-component column. |
Methods inherited from class leon.view.win.swing.LySwingPanel |
---|
setPopupMenu |
Methods inherited from class leon.view.win.swing.LySwingFieldItem |
---|
getActionTransmitter, getSelectionTransmitter |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingFreeChart(LyChart chart)
chart
- a CHART component defined for every type of view targets created by LyChartController
. The chart component is initialized and created
from a chart converter for JFreeChart.LyChartController
Method Detail |
---|
public void print(LyPrintListenerInterface listener)
print
in interface LyPrintInterface
listener
- the listener of this chartLyPrintInterface.print(LyPrintListenerInterface)
public void printEnd(java.awt.PrintJob job, LyChart canvas, LyPrintListenerInterface listener)
job
- printer handlercanvas
- the component to printlistener
- the listener of this chartpublic boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
img
- the image being observedinfoflags
- the bitwise inclusive OR of the following flags:
ImageObserver.WIDTH
ImageObserver.HEIGHT
ImageObserver.PROPERTIES
ImageObserver.SOMEBITS
ImageObserver.FRAMEBITS
ImageObserver.ALLBITS
ImageObserver.ERROR
ImageObserver.ABORT
x
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the height
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
public void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LyGraphicalObject
LyFreeInterface.free()
public void addColumn(LyColumn column, int pos)
This method is not implemented and don't do anything.
addColumn
in interface LyGraphicalChart
column
- the column to add to columns listpos
- the position where the sub-component is insertedpublic void removeColumn(LyColumn column)
This method is not implemented and don't do anything.
removeColumn
in interface LyGraphicalChart
column
- the column to remove to columns listpublic java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public LyChartConverter getChartConverter()
getChartConverter
in interface LyGetChartConverterInterface
LyGetChartConverterInterface.getChartConverter()
public int[] getComponentDimension()
getComponentDimension
in interface LyGetChartConverterInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |