|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<AxisPaintTags>
lt.monarch.chart.mapper.Axis
lt.monarch.chart.chart3D.axis.Axis3D
public abstract class Axis3D extends Axis
Base class for all 3D chart axis classes
| Modifier and Type | Field and Description |
|---|---|
protected TextOrientation |
labelType
An orientation tag for axis labels. |
protected TitlePosition |
titlePosition
An orientation tag for axis title position. |
protected TextOrientation |
titleType
An orientation tag for axis title. |
| Fields inherited from class lt.monarch.chart.mapper.Axis |
|---|
isInvertedMapper, mapper, textStyle |
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
Axis3D(AxisMapper mapper)
Abstract axis constructor |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
drawAxis(AbstractGraphics g,
boolean drawLabels)
Draw axis line and tick of the axis |
protected abstract void |
drawTitle(AbstractGraphics g,
int maxLabelWidth)
Draws title of the axis |
protected Point3D |
findFlipPoint(Point3D zero,
Point3D max)
Calculates a flip point for the axis. |
protected Point2D |
findPerpendicular(Point3D zero,
Point3D max,
Point2D flipPoint)
Calculates a proper perpendicular vector to the axis line. |
TextOrientation |
getLabelType()
Gets label orientation type |
protected abstract int |
getPreferedMargin(AbstractGraphics g)
Non-API method. Returns space required for labels and title. |
TitlePosition |
getTitlePositoin()
Gets title position on the axis |
TextOrientation |
getTitleType()
Gets title orientation type |
void |
setLabelType(TextOrientation type)
Sets label orientation type |
void |
setTitlePosition(TitlePosition postion)
Sets title position on the axis |
void |
setTitleType(TextOrientation type)
Sets title orientation type |
| Methods inherited from class lt.monarch.chart.mapper.Axis |
|---|
activate, deactivate, getFont, getMapper, getSortPosition, getStyle, getTextStyle, getTitle, getTitles, getTitleSettings, setTitle, setTitle |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getChartObjectBounds, getPaintStyle, getParent, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.ChartObject |
|---|
draw |
| Field Detail |
|---|
protected TextOrientation titleType
protected TextOrientation labelType
protected TitlePosition titlePosition
| Constructor Detail |
|---|
public Axis3D(AxisMapper mapper)
mapper - axis mapper| Method Detail |
|---|
public void setTitleType(TextOrientation type)
type - title orientation typepublic TextOrientation getTitleType()
public void setLabelType(TextOrientation type)
type - label orientation typepublic TextOrientation getLabelType()
public void setTitlePosition(TitlePosition postion)
postion - title position on the axispublic TitlePosition getTitlePositoin()
protected abstract int getPreferedMargin(AbstractGraphics g)
protected abstract void drawTitle(AbstractGraphics g,
int maxLabelWidth)
g - graphics contextmaxLabelWidth - maximum label width
protected abstract void drawAxis(AbstractGraphics g,
boolean drawLabels)
g - graphics contextdrawLabels - true if to draw labels
protected Point3D findFlipPoint(Point3D zero,
Point3D max)
zero - the start point of axismax - the end point of axis
protected Point2D findPerpendicular(Point3D zero,
Point3D max,
Point2D flipPoint)
zero - the start point of axismax - the end point of axisflipPoint - the flip point
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||