|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.ChartView
ChartView is the abstract superclass of all chart views. It is responsible for drawing the chart. It is not a Component, but rather holds all the settings and parameters that determine how the chart is drawn. ChartView paints itself in the Graphics context passed to its paint method. Usually this is the Graphics context of its parent Chart.
Field Summary | |
protected Chart |
m_chart
The parent Chart of this ChartView |
Constructor Summary | |
ChartView(Chart chart)
Creates a ChartView for the specified parent Chart. |
Method Summary | |
java.awt.Color |
getBackground()
Gets the background color of this ChartView |
java.awt.Font |
getFont()
Gets the font of this ChartView. |
java.awt.Color |
getForeground()
Gets the foreground color of this ChartView |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this ChartView |
boolean |
isAutoScaleToFit()
Checks if this ChartView automatically scales its content to fill the whole available area. |
boolean |
isContoursVisible()
Checks whether the contours of the chart elements are visible. |
boolean |
isLabelsVisible()
Checks whether the labels of the chart elements are visible. |
java.awt.Point |
location()
Gets the location of the upper left corner of this ChartView. |
abstract void |
paint(java.awt.Graphics g)
Draws the chart in the specified Graphics context. |
void |
repaint()
Repaints this ChartView |
void |
reshape(int x,
int y,
int width,
int height)
Sets the size and the location of this ChartView within its parent Chart. |
void |
setAutoScaleToFit(boolean autoScaleToFit)
If autoScaleToFit is true the chart is scaled to fill the whole available area of this ChartView, otherwise the size of the chart has to be specified explicitly. |
void |
setBackground(java.awt.Color color)
Sets the background color of this ChartView |
void |
setContoursVisible(boolean contoursVisible)
Determines whether the contours of the chart elements (e.g. |
void |
setFont(java.awt.Font font)
Sets the Font of this ChartView. |
void |
setForeground(java.awt.Color color)
Sets the foreground color of this ChartView |
void |
setLabelsVisible(boolean labelsVisible)
Sets whether the labels of the chart elements (e.g. |
abstract void |
setModel(ChartModel model)
Sets the data Model of this ChartView. |
java.awt.Dimension |
size()
Gets the size of this ChartView. |
abstract void |
updateAggregates()
Updates the aggregate values for this chart (min or max values etc.). |
abstract void |
updateDrawables()
Updates all visible elements of this ChartView. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Chart m_chart
Constructor Detail |
public ChartView(Chart chart)
Method Detail |
public abstract void setModel(ChartModel model) throws java.lang.IllegalArgumentException
public abstract void updateDrawables()
public abstract void updateAggregates()
public abstract void paint(java.awt.Graphics g)
public void setAutoScaleToFit(boolean autoScaleToFit)
public boolean isAutoScaleToFit()
public void setLabelsVisible(boolean labelsVisible)
public boolean isLabelsVisible()
public void setContoursVisible(boolean contoursVisible)
public boolean isContoursVisible()
public void reshape(int x, int y, int width, int height)
public java.awt.Dimension size()
public java.awt.Point location()
public void setFont(java.awt.Font font)
public java.awt.Font getFont()
public void setForeground(java.awt.Color color)
public java.awt.Color getForeground()
public void setBackground(java.awt.Color color)
public java.awt.Color getBackground()
public java.awt.Dimension getPreferredSize()
public void repaint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |