Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::gui::components::r2::chart::ChartArea Interface Reference

Inheritance diagram for com::cosylab::gui::components::r2::chart::ChartArea:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void addDataModel (ChartDataModel model)
void drawData (Chartics chartics, ChartUpdateRequest request)
java.awt.Rectangle getChartRectangle ()
ChartService getChartService ()
ChartDataModel getDataModel (int index)
Point getMaxValue ()
Point getMinValue ()
java.awt.Dimension getSize ()
void removeDataModel (ChartDataModel model)
void setChartService (ChartService newChartService)
void setSize (java.awt.Dimension newDrawSize)

Package Functions

int getDataModelCount ()
ChartDataModel[] getDataModels ()

Detailed Description

Chart area interface describes container that holds chart models and draws them on chart area. Interface receives chart relevant information through ChartSerivce, which is set to the chart area, when is added to the chart.


Member Function Documentation

void com::cosylab::gui::components::r2::chart::ChartArea::addDataModel ChartDataModel  model  ) 
 

Chart user can add chart model to this chart area.

Parameters:
model si.ijs.anka.databush.utilities.ChartDataModel model tobe added.

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea, com::cosylab::gui::components::r2::chart::FancyChartArea, com::cosylab::gui::components::r2::chart::HistoryTrendChartArea, and com::cosylab::gui::components::r2::chart::TrendChartArea.

void com::cosylab::gui::components::r2::chart::ChartArea::drawData Chartics  chartics,
ChartUpdateRequest  request
 

Thsi chart ares draws contined chart series to provided graphic context. Pixel with coordinate (0,0) is located in top left corner.

Parameters:
g java.awt.Graphics graphic context on which chart series to be drawn.

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea, com::cosylab::gui::components::r2::chart::FancyChartArea, and com::cosylab::gui::components::r2::chart::TrendChartArea.

java.awt.Rectangle com::cosylab::gui::components::r2::chart::ChartArea::getChartRectangle  ) 
 

Returns rectangle within which chart is drawn. Coordinats x and y are indicate rectangle location. Rectangle must fit in to reagon determined by size.

Returns:
java.awt.Rectangle reagion whitin size this ChartArea draws chart.

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

ChartService com::cosylab::gui::components::r2::chart::ChartArea::getChartService  ) 
 

Getter for ChartService.

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

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

ChartDataModel com::cosylab::gui::components::r2::chart::ChartArea::getDataModel int  index  ) 
 

Returns chart model at index position.

Returns:
com.cosylab.gui.chart.ChartDataModel model at index position
Parameters:
index int

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

int com::cosylab::gui::components::r2::chart::ChartArea::getDataModelCount  )  [package]
 

Number of contained data models

Returns:
int number ofcontained data models

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

ChartDataModel [] com::cosylab::gui::components::r2::chart::ChartArea::getDataModels  )  [package]
 

Returns array of contained data models.

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

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

Point com::cosylab::gui::components::r2::chart::ChartArea::getMaxValue  ) 
 

Returns maximal point on current chart.

Returns:
com.cosylab.gui.chart.Point maximal drawn point

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

Point com::cosylab::gui::components::r2::chart::ChartArea::getMinValue  ) 
 

Returns minimal point on current chart.

Returns:
com.cosylab.gui.chart.Point minimal drawn point

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

java.awt.Dimension com::cosylab::gui::components::r2::chart::ChartArea::getSize  ) 
 

Getter for sizeset to chartarea by chart.

Returns:
java.awt.Dimension size set to chart area by chart

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

void com::cosylab::gui::components::r2::chart::ChartArea::removeDataModel ChartDataModel  model  ) 
 

Removes chart modelfrom this chart area.

Parameters:
model si.ijs.anka.databush.utilities.ChartDataModel

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea.

void com::cosylab::gui::components::r2::chart::ChartArea::setChartService ChartService  newChartService  ) 
 

Chart sets chart service to this chart area.

Parameters:
newChartService con.cosylab.gui.chart.ChartService

Implemented in com::cosylab::gui::components::r2::chart::DefaultChartArea, and com::cosylab::gui::components::r2::chart::HistoryTrendChartArea.

void com::cosylab::gui::components::r2::chart::ChartArea::setSize java.awt.Dimension  newDrawSize  ) 
 

Chart uses this method to set size of avaliable space to the chart.

Parameters:
newDrawSize java.awt.Dimension

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


The documentation for this interface was generated from the following file:
Generated on Thu Apr 30 03:12:34 2009 for ACS Java API by doxygen 1.3.8