

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 |
This is class for drawing x axis.
| com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::ImprovedChartXAxis | ( | ) | [inline] |
ImprovedChartXAxis default constructor.
| 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.
| g | java.awt.Graphics |
Implements com::cosylab::gui::components::r2::chart::ChartAxis.
References com::cosylab::gui::components::r2::chart::AbstractChartAxis::chartSize, drawLinearAxis(), drawLogaritmicAxis(), isLogaritmic, com::cosylab::gui::components::r2::chart::Interval::max, com::cosylab::gui::components::r2::chart::Interval::min, xmax, xmin, com::cosylab::gui::components::r2::chart::AbstractChartAxis::xScale, ymax, ymin, and com::cosylab::gui::components::r2::chart::AbstractChartAxis::yScale.
| 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.
References com::cosylab::gui::components::r2::chart::AbstractChartAxis::chartSize, fm, com::cosylab::gui::components::r2::chart::AbstractChartAxis::font, com::cosylab::gui::components::r2::chart::AbstractChartAxis::fontColor, com::cosylab::gui::components::r2::chart::AbstractChartAxis::format, com::cosylab::gui::components::r2::chart::AbstractChartAxis::lineColor, com::cosylab::gui::components::r2::chart::AbstractChartAxis::majorTickLength, com::cosylab::gui::components::r2::chart::Interval::max, com::cosylab::gui::components::r2::chart::Interval::min, com::cosylab::gui::components::r2::chart::AbstractChartAxis::minorTickLength, com::cosylab::gui::components::r2::chart::AbstractChartAxis::preferedHeight, com::cosylab::gui::components::r2::chart::AbstractChartAxis::preferedWidth, com::cosylab::gui::components::r2::chart::AbstractChartAxis::setFormat(), com::cosylab::gui::components::r2::chart::AbstractChartAxis::textMargin, xmax, xmin, xminDraw, and com::cosylab::gui::components::r2::chart::AbstractChartAxis::xScale.
Referenced by drawAxis().
| 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.
References com::cosylab::gui::components::r2::chart::AbstractChartAxis::chartSize, fm, com::cosylab::gui::components::r2::chart::AbstractChartAxis::font, com::cosylab::gui::components::r2::chart::AbstractChartAxis::format, logDraw(), com::cosylab::gui::components::r2::chart::AbstractChartAxis::majorTickLength, com::cosylab::gui::components::r2::chart::AbstractChartAxis::preferedHeight, com::cosylab::gui::components::r2::chart::AbstractChartAxis::preferedWidth, com::cosylab::gui::components::r2::chart::AbstractChartAxis::setFormat(), com::cosylab::gui::components::r2::chart::AbstractChartAxis::textMargin, xmax, xmaxDraw, xmin, xminDraw, ymax, ymin, and yOrigin.
Referenced by drawAxis().
| boolean com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::isIsLogaritmic | ( | ) | [inline] |
Tests if scale is logaritmic.
References isLogaritmic.
| 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.
References com::cosylab::gui::components::r2::chart::AbstractChartAxis::chartSize, fm, com::cosylab::gui::components::r2::chart::AbstractChartAxis::format, com::cosylab::gui::components::r2::chart::AbstractChartAxis::majorTickLength, com::cosylab::gui::components::r2::chart::AbstractChartAxis::minorTickLength, com::cosylab::gui::components::r2::chart::AbstractChartAxis::setFormat(), com::cosylab::gui::components::r2::chart::AbstractChartAxis::textMargin, xmax, xmaxDraw, xmin, xminDraw, ymax, ymin, and yOrigin.
Referenced by drawLogaritmicAxis().
| void com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::setIsLogaritmic | ( | boolean | newIsLogaritmic | ) | [inline] |
Sets if scale is logaritmic or linear.
References isLogaritmic.
java.awt.FontMetrics com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::fm [private] |
Referenced by drawLinearAxis(), drawLogaritmicAxis(), and logDraw().
boolean com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::isLogaritmic = false [private] |
Referenced by drawAxis(), isIsLogaritmic(), and setIsLogaritmic().
double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::xmax [private] |
Referenced by drawAxis(), drawLinearAxis(), drawLogaritmicAxis(), and logDraw().
Referenced by drawLogaritmicAxis(), and logDraw().
double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::xmin [private] |
Referenced by drawAxis(), drawLinearAxis(), drawLogaritmicAxis(), and logDraw().
Referenced by drawLinearAxis(), drawLogaritmicAxis(), and logDraw().
double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::ymax [private] |
Referenced by drawAxis(), drawLogaritmicAxis(), and logDraw().
double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::ymin [private] |
Referenced by drawAxis(), drawLogaritmicAxis(), and logDraw().
double com::cosylab::gui::components::r2::chart::ImprovedChartXAxis::yOrigin = -1.0 [private] |
Referenced by drawLogaritmicAxis(), and logDraw().
1.6.2