|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<JVxChart>
com.sibvisions.rad.ui.swing.impl.control.SwingChart
public class SwingChart
The SwingChart is the IChart
implementation for swing.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, eventSource, factory, parent |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
resource |
| Fields inherited from interface javax.rad.ui.control.IChart |
|---|
STYLE_AREA, STYLE_BARS, STYLE_LINES, STYLE_PIE |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingChart()
Creates a new instance of SwingChart. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
int |
getChartStyle()
Gets the chart style. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
java.lang.String |
getTitle()
Gets the title. |
TranslationMap |
getTranslation()
Gets the translation for this table. |
java.lang.String |
getXAxisTitle()
Gets the x axis title. |
java.lang.String |
getXColumnName()
Gets the x column name. |
java.lang.String |
getYAxisTitle()
Gets the y axis title. |
java.lang.String[] |
getYColumnNames()
Gets the y column names. |
boolean |
isTranslationEnabled()
Gets whether the translation is en- or disabled. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow. |
void |
setChartStyle(int pChartStyle)
Sets the chart style. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control. |
void |
setTitle(java.lang.String pTitle)
Sets the title. |
void |
setTranslation(TranslationMap pTranslation)
Sets the translation for this table. |
void |
setTranslationEnabled(boolean pEnabled)
Sets the translation en- or disabled. |
void |
setXAxisTitle(java.lang.String pXAxisTitle)
Sets the x axis title. |
void |
setXColumnName(java.lang.String pXColumnName)
Sets the x column name. |
void |
setYAxisTitle(java.lang.String pYAxisTitle)
Sets the y axis title. |
void |
setYColumnNames(java.lang.String[] pYColumnNames)
Sets the y column names. |
void |
startEditing()
Informs the GUI control, that the editor should be opened. |
java.lang.String |
translate(java.lang.String pText)
Method to translate a given text. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture, getToolTipText, setBackground, setTabIndex, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
|---|
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
getResource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public SwingChart()
SwingChart.
| Method Detail |
|---|
public IDataBook getDataBook()
getDataBook in interface ITableControlITableControl.setDataBook(javax.rad.model.IDataBook)public void setDataBook(IDataBook pDataBook)
setDataBook in interface ITableControlpDataBook - the DataBookITableControl.getDataBook()public int getChartStyle()
getChartStyle in interface IChartIChart.STYLE_AREA,
IChart.STYLE_BARS,
IChart.STYLE_LINES,
IChart.STYLE_PIEpublic void setChartStyle(int pChartStyle)
setChartStyle in interface IChartpChartStyle - the char style.IChart.STYLE_AREA,
IChart.STYLE_BARS,
IChart.STYLE_LINES,
IChart.STYLE_PIEpublic java.lang.String getTitle()
getTitle in interface IChartpublic void setTitle(java.lang.String pTitle)
setTitle in interface IChartpTitle - the title.public java.lang.String getXAxisTitle()
getXAxisTitle in interface IChartpublic void setXAxisTitle(java.lang.String pXAxisTitle)
setXAxisTitle in interface IChartpXAxisTitle - the x axis title.public java.lang.String getYAxisTitle()
getYAxisTitle in interface IChartpublic void setYAxisTitle(java.lang.String pYAxisTitle)
setYAxisTitle in interface IChartpYAxisTitle - the y axis title.public java.lang.String getXColumnName()
getXColumnName in interface IChartpublic void setXColumnName(java.lang.String pXColumnName)
setXColumnName in interface IChartpXColumnName - the x column name.public java.lang.String[] getYColumnNames()
getYColumnNames in interface IChartpublic void setYColumnNames(java.lang.String[] pYColumnNames)
setYColumnNames in interface IChartpYColumnNames - y column names.public void notifyRepaint()
notifyRepaint in interface IControlpublic void startEditing()
startEditing in interface ITableControlpublic void cancelEditing()
DataBook.
cancelEditing in interface IControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public void setTranslation(TranslationMap pTranslation)
setTranslation in interface ITranslatablesetTranslation in interface IChartpTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface ITranslatablegetTranslation in interface IChartpublic void setTranslationEnabled(boolean pEnabled)
setTranslationEnabled in interface ITranslatablepEnabled - true to enable the translation, false to disablepublic boolean isTranslationEnabled()
isTranslationEnabled in interface ITranslatabletrue if translation is performed, false otherwisepublic java.lang.String translate(java.lang.String pText)
translate in interface ITranslatorpText - the text to translate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||