|
||||||||||
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 ITableControl
ITableControl.setDataBook(javax.rad.model.IDataBook)
public void setDataBook(IDataBook pDataBook)
setDataBook
in interface ITableControl
pDataBook
- the DataBookITableControl.getDataBook()
public int getChartStyle()
getChartStyle
in interface IChart
IChart.STYLE_AREA
,
IChart.STYLE_BARS
,
IChart.STYLE_LINES
,
IChart.STYLE_PIE
public void setChartStyle(int pChartStyle)
setChartStyle
in interface IChart
pChartStyle
- the char style.IChart.STYLE_AREA
,
IChart.STYLE_BARS
,
IChart.STYLE_LINES
,
IChart.STYLE_PIE
public java.lang.String getTitle()
getTitle
in interface IChart
public void setTitle(java.lang.String pTitle)
setTitle
in interface IChart
pTitle
- the title.public java.lang.String getXAxisTitle()
getXAxisTitle
in interface IChart
public void setXAxisTitle(java.lang.String pXAxisTitle)
setXAxisTitle
in interface IChart
pXAxisTitle
- the x axis title.public java.lang.String getYAxisTitle()
getYAxisTitle
in interface IChart
public void setYAxisTitle(java.lang.String pYAxisTitle)
setYAxisTitle
in interface IChart
pYAxisTitle
- the y axis title.public java.lang.String getXColumnName()
getXColumnName
in interface IChart
public void setXColumnName(java.lang.String pXColumnName)
setXColumnName
in interface IChart
pXColumnName
- the x column name.public java.lang.String[] getYColumnNames()
getYColumnNames
in interface IChart
public void setYColumnNames(java.lang.String[] pYColumnNames)
setYColumnNames
in interface IChart
pYColumnNames
- y column names.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
setTranslation
in interface IChart
pTranslation
- the translation mappingpublic TranslationMap getTranslation()
getTranslation
in interface ITranslatable
getTranslation
in interface IChart
public void setTranslationEnabled(boolean pEnabled)
setTranslationEnabled
in interface ITranslatable
pEnabled
- true
to enable the translation, false
to disablepublic boolean isTranslationEnabled()
isTranslationEnabled
in interface ITranslatable
true
if translation is performed, false
otherwisepublic java.lang.String translate(java.lang.String pText)
translate
in interface ITranslator
pText
- the text to translate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |