com::cosylab::gui::components::r2::chart::DefaultChartArea Class Reference

Inheritance diagram for com::cosylab::gui::components::r2::chart::DefaultChartArea:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::gui::components::r2::chart::DefaultChartArea:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DefaultChartArea ()
 DefaultChartArea (ChartService service)
void addDataModel (ChartDataModel model)
void drawData (Chartics chartics, ChartUpdateRequest request)
java.awt.Rectangle getChartRectangle ()
ChartService getChartService ()
ChartDataModel getDataModel (int index)
int getDataModelCount ()
com.cosylab.gui.components.r2.chart.ChartDataModel[] getDataModels ()
Point getMaxValue ()
Point getMinValue ()
java.awt.Dimension getSize ()
void removeDataModel (ChartDataModel model)
void setChartService (ChartService newChartService)
void setSize (java.awt.Dimension newDrawSize)

Protected Member Functions

void setRectangle (java.awt.Rectangle rec)

Protected Attributes

java.util.ArrayList models = new java.util.ArrayList(1)
ChartService chartService
java.awt.Rectangle chartRectangle = new java.awt.Rectangle()
java.awt.Dimension size = new java.awt.Dimension(10,10)

Package Attributes

java.util.HashMap model2service = new java.util.HashMap()

Detailed Description

Insert the type's description here. Creation date: (11/26/00 17:50:44)

Author:
:

Constructor & Destructor Documentation

com::cosylab::gui::components::r2::chart::DefaultChartArea::DefaultChartArea (  )  [inline]

ChartArea constructor comment.

com::cosylab::gui::components::r2::chart::DefaultChartArea::DefaultChartArea ( ChartService  service  )  [inline]

ChartArea constructor comment.

References setChartService().


Member Function Documentation

void com::cosylab::gui::components::r2::chart::DefaultChartArea::addDataModel ( ChartDataModel  model  )  [inline]
void com::cosylab::gui::components::r2::chart::DefaultChartArea::drawData ( Chartics  chartics,
ChartUpdateRequest  request 
) [inline]
java.awt.Rectangle com::cosylab::gui::components::r2::chart::DefaultChartArea::getChartRectangle (  )  [inline]

Rectangle bounded with horizontal and vertical scale, inside size.

Returns:
java.awt.Dimension

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References chartRectangle.

ChartService com::cosylab::gui::components::r2::chart::DefaultChartArea::getChartService (  )  [inline]

Insert the method's description here. Creation date: (11/26/00 18:04:36)

Returns:
si.ijs.anka.databush.utilities.ChartService

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References chartService.

ChartDataModel com::cosylab::gui::components::r2::chart::DefaultChartArea::getDataModel ( int  index  )  [inline]

Insert the method's description here. Creation date: (11/27/00 15:34:11)

Returns:
si.ijs.anka.databush.utilities.ChartDataModel
Parameters:
index int

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References models.

int com::cosylab::gui::components::r2::chart::DefaultChartArea::getDataModelCount (  )  [inline]

Returns number of contained data models in this chart area.

Returns:
int

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References models.

com.cosylab.gui.components.r2.chart.ChartDataModel [] com::cosylab::gui::components::r2::chart::DefaultChartArea::getDataModels (  )  [inline]

Insert the method's description here. Creation date: (28.1.2002 15:56:59)

Returns:
com.cosylab.gui.chart.ChartDataModel[]

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References models.

Point com::cosylab::gui::components::r2::chart::DefaultChartArea::getMaxValue (  )  [inline]

Insert the method's description here. Creation date: (11/27/00 15:29:08)

Returns:
si.ijs.anka.databush.utilities.Point

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References models, and com::cosylab::gui::components::r2::chart::Point::y.

Point com::cosylab::gui::components::r2::chart::DefaultChartArea::getMinValue (  )  [inline]

Insert the method's description here. Creation date: (11/27/00 15:29:08)

Returns:
si.ijs.anka.databush.utilities.Point

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References models, and com::cosylab::gui::components::r2::chart::Point::y.

java.awt.Dimension com::cosylab::gui::components::r2::chart::DefaultChartArea::getSize (  )  [inline]

Outer dimension of chart= ChartRectangle + margins.

Returns:
java.awt.Dimension

Implements com::cosylab::gui::components::r2::chart::ChartArea.

References size.

void com::cosylab::gui::components::r2::chart::DefaultChartArea::removeDataModel ( ChartDataModel  model  )  [inline]
void com::cosylab::gui::components::r2::chart::DefaultChartArea::setChartService ( ChartService  newChartService  )  [inline]

Insert the method's description here. Creation date: (11/26/00 18:04:36)

Parameters:
newChartService si.ijs.anka.databush.utilities.ChartService

Implements com::cosylab::gui::components::r2::chart::ChartArea.

Reimplemented in com::cosylab::gui::components::r2::chart::HistoryTrendChartArea.

References chartService, models, and com::cosylab::gui::components::r2::chart::ChartDataService::setChartService().

Referenced by DefaultChartArea().

void com::cosylab::gui::components::r2::chart::DefaultChartArea::setRectangle ( java.awt.Rectangle  rec  )  [inline, protected]

Sets the size of area, which chart can use.

Parameters:
newDrawSize java.awt.Dimension

References chartRectangle, and models.

Referenced by com::cosylab::gui::components::r2::chart::TrendChartArea::setSize(), and setSize().

void com::cosylab::gui::components::r2::chart::DefaultChartArea::setSize ( java.awt.Dimension  newDrawSize  )  [inline]

Sets the size of area, which chart can use.

Parameters:
newDrawSize java.awt.Dimension

Implements com::cosylab::gui::components::r2::chart::ChartArea.

Reimplemented in com::cosylab::gui::components::r2::chart::HistoryTrendChartArea, and com::cosylab::gui::components::r2::chart::TrendChartArea.

References chartRectangle, setRectangle(), and size.


Member Data Documentation

java.awt.Rectangle com::cosylab::gui::components::r2::chart::DefaultChartArea::chartRectangle = new java.awt.Rectangle() [protected]
java.util.HashMap com::cosylab::gui::components::r2::chart::DefaultChartArea::model2service = new java.util.HashMap() [package]
java.util.ArrayList com::cosylab::gui::components::r2::chart::DefaultChartArea::models = new java.util.ArrayList(1) [protected]
java.awt.Dimension com::cosylab::gui::components::r2::chart::DefaultChartArea::size = new java.awt.Dimension(10,10) [protected]

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2