javax.rad.genui.control
Class UIChart

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<IChart>
          extended by javax.rad.genui.control.UIChart
All Implemented Interfaces:
IControl, ITableControl, ITranslatable, IChart, IComponent, IResource, INamedObject

public class UIChart
extends UIComponent<IChart>
implements IChart

Platform and technology independent Table. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
Fields inherited from class javax.rad.genui.UIComponent
lLastTranslationModified, parent
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Fields inherited from interface javax.rad.ui.control.IChart
STYLE_AREA, STYLE_BARS, STYLE_LINES
 
Constructor Summary
  UIChart()
          Creates a new instance of UIChart.
protected UIChart(IChart pChart)
          Creates a new instance of UIChart with the given chart.
 
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.
 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 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.
 void updateTranslation()
          Notification for updating the translation.
 
Methods inherited from class javax.rad.genui.UIComponent
addNotify, beforeAddNotify, capture, createCellFormatter, createNodeFormatter, debug, error, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getResource, getSize, getToolTipText, getTranslation, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, removeNotify, requestFocus, setBackground, setBounds, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPreferredSize, setPreferredSize, setSize, setSize, setToolTipText, setTranslation, setTranslationEnabled, setVisible, translate
 
Methods inherited from class javax.rad.genui.UIResource
equals, getUIResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.control.IChart
getTranslation, setTranslation
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

UIChart

public UIChart()
Creates a new instance of UIChart.

See Also:
IChart

UIChart

protected UIChart(IChart pChart)
Creates a new instance of UIChart with the given chart.

Parameters:
pChart - the chart
See Also:
IChart
Method Detail

getDataBook

public IDataBook getDataBook()
Returns the DataBook displayed by this control.

Specified by:
getDataBook in interface ITableControl
Returns:
the DataBook.
See Also:
ITableControl.setDataBook(javax.rad.model.IDataBook)

setDataBook

public void setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control.

Specified by:
setDataBook in interface ITableControl
Parameters:
pDataBook - the DataBook
See Also:
ITableControl.getDataBook()

getChartStyle

public int getChartStyle()
Gets the chart style.

Specified by:
getChartStyle in interface IChart
Returns:
the chart style.

setChartStyle

public void setChartStyle(int pChartStyle)
Sets the chart style.

Specified by:
setChartStyle in interface IChart
Parameters:
pChartStyle - the char style.

getTitle

public String getTitle()
Gets the title.

Specified by:
getTitle in interface IChart
Returns:
the title.

setTitle

public void setTitle(String pTitle)
Sets the title.

Specified by:
setTitle in interface IChart
Parameters:
pTitle - the title.

getXAxisTitle

public String getXAxisTitle()
Gets the x axis title.

Specified by:
getXAxisTitle in interface IChart
Returns:
the x axis title.

setXAxisTitle

public void setXAxisTitle(String pXAxisTitle)
Sets the x axis title.

Specified by:
setXAxisTitle in interface IChart
Parameters:
pXAxisTitle - the x axis title.

getYAxisTitle

public String getYAxisTitle()
Gets the y axis title.

Specified by:
getYAxisTitle in interface IChart
Returns:
the y axis title.

setYAxisTitle

public void setYAxisTitle(String pYAxisTitle)
Sets the y axis title.

Specified by:
setYAxisTitle in interface IChart
Parameters:
pYAxisTitle - the y axis title.

getXColumnName

public String getXColumnName()
Gets the x column name.

Specified by:
getXColumnName in interface IChart
Returns:
the x column name.

setXColumnName

public void setXColumnName(String pXColumnName)
Sets the x column name.

Specified by:
setXColumnName in interface IChart
Parameters:
pXColumnName - the x column name.

getYColumnNames

public String[] getYColumnNames()
Gets the y column names.

Specified by:
getYColumnNames in interface IChart
Returns:
the y column names.

setYColumnNames

public void setYColumnNames(String[] pYColumnNames)
Sets the y column names.

Specified by:
setYColumnNames in interface IChart
Parameters:
pYColumnNames - y column names.

notifyRepaint

public void notifyRepaint()
The control need to check if the part is visible and then repaint the part.

Specified by:
notifyRepaint in interface IControl

startEditing

public void startEditing()
Informs the GUI control, that the editor should be opened.

Specified by:
startEditing in interface ITableControl

saveEditing

public void saveEditing()
                 throws ModelException
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow.

Specified by:
saveEditing in interface IControl
Throws:
ModelException - if the value can not be stored.

cancelEditing

public void cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook.

Specified by:
cancelEditing in interface IControl

updateTranslation

public void updateTranslation()
Notification for updating the translation. This method will be called when the UIComponent will be added to a displayable containment hierarchy, when its containment hierarchy is made displayable or the translation table will be changed.

Overrides:
updateTranslation in class UIComponent<IChart>
See Also:
UIComponent.setTranslation(TranslationMap), UIComponent.addNotify()


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.