|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.sibvisions.rad.ui.swing.ext.JVxChart
public class JVxChart
The JVxChart
is a simple chart panel which also implements the ITableControl
interface.
Nested Class Summary | |
---|---|
static class |
JVxChart.DataBookXYDataset
This class provides an AbstractIntervalXYDataset implementation for a DataBook. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
STYLE_AREA
Style constant for showing bars. |
static int |
STYLE_BARS
Style constant for showing bars. |
static int |
STYLE_LINES
Style constant for showing bars. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JVxChart()
Constructs an editor. |
Method Summary | |
---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook . |
ChartPanel |
getChartPanel()
Gets the ChartPanel displayed, or null if non is displayed. |
int |
getChartStyle()
Gets the style of the chart. |
IDataBook |
getDataBook()
Gets the DataBook shown by this control. |
String |
getTitle()
Gets the title. |
TranslationMap |
getTranslation()
Gets the translation mapping for this table. |
String |
getTranslation(String pText)
Gets the translation. |
String |
getXAxisTitle()
Gets the x axis title. |
String |
getXColumnName()
Gets the x column name. |
String |
getYAxisTitle()
Gets the y axis title. |
String[] |
getYColumnNames()
Gets the y column names. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
run()
The run method is invoked from AWT EventQueue. |
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow . |
void |
setChartStyle(int pChartStyle)
Sets the style of the chart. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook shown by this control. |
void |
setTitle(String pTitle)
Sets the title. |
void |
setTranslation(TranslationMap pTranslation)
Sets the translation mapping for this table. |
void |
setXAxisTitle(String pXAxisTitle)
Sets the x axis title. |
void |
setXColumnName(String pXColumnName)
Sets the x column name. |
void |
setYAxisTitle(String pYAxisTitle)
Sets the y axis title. |
void |
setYColumnNames(String[] pYColumnNames)
Sets the y column names. |
void |
startEditing()
Informs the GUI control, that the editor should be opened. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STYLE_LINES
public static final int STYLE_AREA
public static final int STYLE_BARS
Constructor Detail |
---|
public JVxChart()
Method Detail |
---|
public void notifyRepaint()
notifyRepaint
in interface IControl
public void startEditing()
startEditing
in interface ITableControl
public void cancelEditing()
DataBook
.
cancelEditing
in interface IControl
public void saveEditing() throws ModelException
IDataBook
or IDataRow
.
saveEditing
in interface IControl
ModelException
- if the value can not be stored.public void setTranslation(TranslationMap pTranslation)
setTranslation
in interface ITranslatable
pTranslation
- the translation mappingpublic TranslationMap getTranslation()
getTranslation
in interface ITranslatable
null
if there is no
translation mappingpublic void run()
run
in interface Runnable
public IDataBook getDataBook()
getDataBook
in interface ITableControl
setDataBook(javax.rad.model.IDataBook)
public void setDataBook(IDataBook pDataBook)
setDataBook
in interface ITableControl
pDataBook
- the DataBook.getDataBook()
public int getChartStyle()
STYLE_LINES
, STYLE_AREA
, STYLE_BARS
).public void setChartStyle(int pChartStyle)
pChartStyle
- the chart style (STYLE_LINES
, STYLE_AREA
, STYLE_BARS
).public String getTitle()
public void setTitle(String pTitle)
pTitle
- the title.public String getXAxisTitle()
public void setXAxisTitle(String pXAxisTitle)
pXAxisTitle
- the x axis title.public String getYAxisTitle()
public void setYAxisTitle(String pYAxisTitle)
pYAxisTitle
- the y axis title.public String getXColumnName()
public void setXColumnName(String pXColumnName)
pXColumnName
- the x column name.public String[] getYColumnNames()
public void setYColumnNames(String[] pYColumnNames)
pYColumnNames
- y column names.public String getTranslation(String pText)
pText
- the text.
public ChartPanel getChartPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |