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::ImprovedChartXAxis Class Reference

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ImprovedChartXAxis ()
void drawAxis (java.awt.Graphics g)
boolean isIsLogaritmic ()
void setIsLogaritmic (boolean newIsLogaritmic)

Private Member Functions

void drawLinearAxis (java.awt.Graphics g)
void drawLogaritmicAxis (java.awt.Graphics g)
void logDraw (int thick, int digit, java.awt.Graphics g) throws IllegalArgumentException

Private Attributes

boolean isLogaritmic = false
double xmin
double xminDraw
double xmax
double xmaxDraw
java.awt.FontMetrics fm
double yOrigin = -1.0
double ymax
double ymin

Detailed Description

This is class for drawing x axis.


Constructor & Destructor Documentation

com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::ImprovedChartXAxis  )  [inline]
 

ImprovedChartXAxis default constructor.


Member Function Documentation

void com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawAxis java.awt.Graphics  g  )  [inline]
 

This method draw X axis (with thickes, signatures etc.). It is more siphisticated than DefaultChartXAxis.

Parameters:
g java.awt.Graphics

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

void com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawLinearAxis java.awt.Graphics  g  )  [inline, private]
 

This is internal method, which is called by drawAxis() method and draw axis with linear scale.

void com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::drawLogaritmicAxis java.awt.Graphics  g  )  [inline, private]
 

This is internal method, which is called by drawAxis() method and draw axis with logaritmic scale.

boolean com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::isIsLogaritmic  )  [inline]
 

Tests if scale is logaritmic.

void com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::logDraw int  thick,
int  digit,
java.awt.Graphics  g
throws IllegalArgumentException [inline, private]
 

This is internal method that is used only by drawLogaritmicAxis() just to draw thickets and digits.

Used when ratio between xmax and xmin is greather than 10.

void com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::setIsLogaritmic boolean  newIsLogaritmic  )  [inline]
 

Sets if scale is logaritmic or linear.


Member Data Documentation

java.awt.FontMetrics com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::fm [private]
 

boolean com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::isLogaritmic = false [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::xmax [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::xmaxDraw [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::xmin [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::xminDraw [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::ymax [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::ymin [private]
 

double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::yOrigin = -1.0 [private]
 


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