|
||||||||||
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 |
---|
eventComponentMoved, eventComponentResized, 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 |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, 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. |
String |
getTitle()
Gets the title. |
TranslationMap |
getTranslation()
Gets the translation for this table. |
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 |
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(String pTitle)
Sets the title. |
void |
setTranslation(TranslationMap pTranslation)
Sets the translation 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 com.sibvisions.rad.ui.swing.impl.SwingComponent |
---|
capture, getToolTipText, setBackground, 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 |
---|
equals, getResource, hashCode, 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
public void setChartStyle(int pChartStyle)
setChartStyle
in interface IChart
pChartStyle
- the char style.public String getTitle()
getTitle
in interface IChart
public void setTitle(String pTitle)
setTitle
in interface IChart
pTitle
- the title.public String getXAxisTitle()
getXAxisTitle
in interface IChart
public void setXAxisTitle(String pXAxisTitle)
setXAxisTitle
in interface IChart
pXAxisTitle
- the x axis title.public String getYAxisTitle()
getYAxisTitle
in interface IChart
public void setYAxisTitle(String pYAxisTitle)
setYAxisTitle
in interface IChart
pYAxisTitle
- the y axis title.public String getXColumnName()
getXColumnName
in interface IChart
public void setXColumnName(String pXColumnName)
setXColumnName
in interface IChart
pXColumnName
- the x column name.public String[] getYColumnNames()
getYColumnNames
in interface IChart
public void setYColumnNames(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |