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)
int getDataModelCount ()
ChartDataModel[] getDataModels ()
Point getMaxValue ()
Point getMinValue ()
java.awt.Dimension getSize ()
void removeDataModel (ChartDataModel model)
void setChartService (ChartService newChartService)
void setSize (java.awt.Dimension newDrawSize)

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  ) 
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.

Referenced by com::cosylab::gui::components::r2::chart::BaseChart::drawData().

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.

Referenced by com::cosylab::gui::components::r2::chart::BaseChart::getChartDisplayablePointCount(), and com::cosylab::gui::components::r2::chart::BaseChart::updateImageBuffer().

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 (  ) 

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 (  ) 

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.

Referenced by com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer().

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.

Referenced by com::cosylab::gui::components::r2::chart::BaseChartCustomizer::updateCustomizer().

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  ) 
void com::cosylab::gui::components::r2::chart::ChartArea::setSize ( java.awt.Dimension  newDrawSize  ) 

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

Generated by  doxygen 1.6.2