|
|||||||||
| 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.chart2D.axis.Axis2D
lt.monarch.chart.chart2D.axis.Axis2DX
public class Axis2DX extends Axis2D
Graphical representation of the X coordinate axis of the 2D chart.
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class lt.monarch.chart.chart2D.axis.Axis2D |
|---|
Axis2D.AxisLabelEntity |
| Modifier and Type | Field and Description |
|---|---|
protected double |
maxLabelHeigth
Height of the longest rotated label projection. |
protected double |
preferredHeight
Preferred height of the axis |
protected double |
rightInset
Specifies how big insets from the right should be left |
protected double |
totalLabelHeigth
Height of the total label height. |
protected AbstractAxisLabel[] |
visibleLabels
Storage of label objects that are currently painted on the screen. |
| Fields inherited from class lt.monarch.chart.chart2D.axis.Axis2D |
|---|
arrowPolygon, arrowPolygon2, arrowSettings, axisAlign, axisOrientation, dataModel, dragFrom, dragTo, finestVisibleScale, isMoreZoomAvailable, isScrollable, isVisible, isZooming, isZoomingEnabled, labelSettings, mappedAxis, mappedValue, mappedValueCoord, metaModel, mouseClick, mouseListener, mouseMotionListener, pt2D1, pt2D2, range, rangeListener, tickSettings |
| 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 |
|---|
Axis2DX(AxisMapper mapper)
Constructs a new graphical representation of the X coordinate axis of the 2D chart with the specified axis mapper. |
Axis2DX(AxisMapper mapper,
MetaDataModel metaModel,
DataModel dataModel)
Constructs a new graphical representation of the X coordinate axis of the 2D chart with the specified axis mapper. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawAxis(AbstractGraphics g)
Draws axis line |
protected void |
drawLabels(AbstractGraphics g,
LinearLabelLayouter layouter)
Draws the labels of the axis in the specified Graphics context. |
protected void |
drawTicksLabels(AbstractGraphics g,
LinearLabelLayouter layouter)
Prepares labels for drawing |
protected void |
drawTitle(AbstractGraphics g,
LinearLabelLayouter layouter,
AxisTitle axisTitle)
Draws the title of the axis and updates label layouter that is used to layout the axis labels. |
protected Rectangle2D |
getActiveArea()
Returns the Rectangle representing active area. |
double |
getHeight()
Gets the height of the Axis |
java.awt.Insets |
getPreferredInsets()
Queries preferred insets for the axis. |
Axis2DX |
getStackAxis2DX()
Returns the base X axis. |
int |
getTitleHeight(AbstractGraphics g)
Returns vertical amount of space needed to draw axis title. |
AbstractAxisLabel[] |
getVisibleLabels()
Returns objects of visible labels. |
protected Axis2D[] |
getZoomableAxes()
Gets all zoomable axes for the specified orientation |
void |
prepare(AbstractGraphics g)
Calculates axis boundaries and range. |
void |
setStackAxis2DX(Axis2DX baseAxis)
Stacks this X axis on top of the base X axis. |
| Methods inherited from class lt.monarch.chart.chart2D.axis.Axis2D |
|---|
activate, createAxisLabel, deactivate, digitizePosition, draw, drawArrow, drawSecondArrow, drawZoomRectangle, getArrowPolygon, getArrowSettings, getAxisAlign, getAxisAlignment, getBounds, getChartObjectBounds, getFinestScale, getLabelSettings, getMappedAxis, getMappedValue, getMappedValueCoord, getMetaDataModel, getProjector, getStyle, getTickLength, getTickSettings, isScrollable, isVisible, isZoomingEnabled, setAxisAlign, setAxisPosition, setBounds, setMappedValueCoord, setScrollable, setVisible, setZoomingEnabled |
| Methods inherited from class lt.monarch.chart.mapper.Axis |
|---|
getFont, getMapper, getSortPosition, getTextStyle, getTitle, getTitles, getTitleSettings, setTitle, setTitle |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, invalidate, layout, repaint, repaint, setChart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double rightInset
protected double preferredHeight
protected double maxLabelHeigth
protected double totalLabelHeigth
protected AbstractAxisLabel[] visibleLabels
| Constructor Detail |
|---|
public Axis2DX(AxisMapper mapper)
mapper - AxisMapper object that defines axis entityStyle.
public Axis2DX(AxisMapper mapper,
MetaDataModel metaModel,
DataModel dataModel)
mapper - AxisMapper object that defines axis entityStyle.metaModel - meta data modeldataModel - data model| Method Detail |
|---|
public double getHeight()
public void prepare(AbstractGraphics g)
Axis2D
prepare in class Axis2Dg - current Graphics context.
protected void drawLabels(AbstractGraphics g,
LinearLabelLayouter layouter)
Axis2D
drawLabels in class Axis2Dg - the Graphics context in which the axis labels to paintlayouter - the Layouter used to layout axis labelsprotected void drawAxis(AbstractGraphics g)
Axis2D
drawAxis in class Axis2Dg - graphics context
protected void drawTicksLabels(AbstractGraphics g,
LinearLabelLayouter layouter)
drawTicksLabels in class Axis2Dg - graphics context
protected void drawTitle(AbstractGraphics g,
LinearLabelLayouter layouter,
AxisTitle axisTitle)
Axis2D
drawTitle in class Axis2Dg - the Graphics context in which the axis title to paintlayouter - the label layouter used to layout axis labelsaxisTitle - the axis title to drawpublic int getTitleHeight(AbstractGraphics g)
g - the Graphics context in which to paint axispublic AbstractAxisLabel[] getVisibleLabels()
Axis2D
getVisibleLabels in class Axis2Dpublic void setStackAxis2DX(Axis2DX baseAxis)
baseAxis - X axis, to be used as the base for the axispublic Axis2DX getStackAxis2DX()
public java.awt.Insets getPreferredInsets()
Axis2D
getPreferredInsets in class Axis2Dprotected Rectangle2D getActiveArea()
getActiveArea in class Axis2Dprotected Axis2D[] getZoomableAxes()
Axis2D
getZoomableAxes in class Axis2D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||