lt.monarch.chart.chart2D.axis
Class Axis2DRadar

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<AxisPaintTags>
      extended by lt.monarch.chart.mapper.Axis
          extended by lt.monarch.chart.chart2D.axis.Axis2D
              extended by lt.monarch.chart.chart2D.axis.Axis2DRadar
All Implemented Interfaces:
java.io.Serializable, ChartObject, StyleEditorEntity

public class Axis2DRadar
extends Axis2D

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.chart2D.axis.Axis2D
Axis2D.AxisLabelEntity
 
Field Summary
Modifier and Type Field and Description
 
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 Summary
Constructor and Description
Axis2DRadar(AxisMapper mapper, Orientation axisOrientation)
           
Axis2DRadar(AxisMapper mapper, Orientation axisOrientation, MetaDataModel metaModel, DataModel dataModel)
           
 
Method Summary
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)
           
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.
 int getIndex()
          Radar axis index
 Projector2D getProjector()
          Returns modified projector.
 AbstractAxisLabel[] getVisibleLabels()
          Returns objects of visible labels.
protected  Axis2D[] getZoomableAxes()
          Gets all zoomable axes for the specified orientation
 boolean isShowLabels()
          Are labels displayed on axis
 void prepare(AbstractGraphics g)
          Calculates axis boundaries and range.
 void setIndex(int index)
          Radar axis index
 void setShowLabels(boolean showLabels)
          Are labels displayed on axis
 void setTitle(int titleNr, AxisTitle title)
           
 
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, getPreferredInsets, 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
 
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
 

Constructor Detail

Axis2DRadar

public Axis2DRadar(AxisMapper mapper,
                   Orientation axisOrientation)

Axis2DRadar

public Axis2DRadar(AxisMapper mapper,
                   Orientation axisOrientation,
                   MetaDataModel metaModel,
                   DataModel dataModel)
Parameters:
mapper - the axis mapper
axisOrientation - axis orientation
metaModel - meta data model
dataModel - data model
Method Detail

drawAxis

protected void drawAxis(AbstractGraphics g)
Description copied from class: Axis2D
Draws axis line

Specified by:
drawAxis in class Axis2D
Parameters:
g - graphics context

drawLabels

protected void drawLabels(AbstractGraphics g,
                          LinearLabelLayouter layouter)
Description copied from class: Axis2D
Draws the labels of the axis in the specified Graphics context.

Specified by:
drawLabels in class Axis2D
Parameters:
g - the Graphics context in which the axis labels to paint
layouter - the Layouter used to layout axis labels

drawTicksLabels

protected void drawTicksLabels(AbstractGraphics g,
                               LinearLabelLayouter layouter)
Specified by:
drawTicksLabels in class Axis2D

setTitle

public void setTitle(int titleNr,
                     AxisTitle title)
Overrides:
setTitle in class Axis

drawTitle

protected void drawTitle(AbstractGraphics g,
                         LinearLabelLayouter layouter,
                         AxisTitle axisTitle)
Description copied from class: Axis2D
Draws the title of the axis and updates label layouter that is used to layout the axis labels. The layouter is updated by setting its visible range.

Specified by:
drawTitle in class Axis2D
Parameters:
g - the Graphics context in which the axis title to paint
layouter - the label layouter used to layout axis labels
axisTitle - the axis title to draw

getActiveArea

protected Rectangle2D getActiveArea()
Description copied from class: Axis2D
Returns the Rectangle representing active area. The active area is area where user can scroll and zoom axis by clicking and dragging mouse.

Specified by:
getActiveArea in class Axis2D
Returns:
the Rectangle representing active area

getVisibleLabels

public AbstractAxisLabel[] getVisibleLabels()
Description copied from class: Axis2D
Returns objects of visible labels.

Specified by:
getVisibleLabels in class Axis2D
Returns:
array of visible labels

getZoomableAxes

protected Axis2D[] getZoomableAxes()
Description copied from class: Axis2D
Gets all zoomable axes for the specified orientation

Specified by:
getZoomableAxes in class Axis2D
Returns:
array of zoomable axes

prepare

public void prepare(AbstractGraphics g)
Description copied from class: Axis2D
Calculates axis boundaries and range.

Specified by:
prepare in class Axis2D
Parameters:
g - current Graphics context.

getProjector

public Projector2D getProjector()
Returns modified projector.

Overrides:
getProjector in class Axis2D
Returns:
projector the modified projector

getIndex

public int getIndex()
Radar axis index


setIndex

public void setIndex(int index)
Radar axis index


isShowLabels

public boolean isShowLabels()
Are labels displayed on axis


setShowLabels

public void setShowLabels(boolean showLabels)
Are labels displayed on axis