com.java4less.rchart
Class GaugePlotter

java.lang.Object
  |
  +--com.java4less.rchart.ChartComponent
        |
        +--com.java4less.rchart.Plotter
              |
              +--com.java4less.rchart.GaugePlotter

public class GaugePlotter
extends Plotter


Plotter used to create a gauge chart. It only admits DataSeries of type GaugeDataSerie.


Field Summary
 Axis axis1
          primary scale (external)
 int axis1LabelMargin
          axisLabel margin, distance between ticks and label.
 int axis1Margin
          pixels between border and ticks
 Axis axis2
          secondary scale (internal)
 int axis2LabelMargin
          axisLabel margin, distance between ticks and label.
 int axis2Margin
          pixels between border and ticks
 LineStyle border
          style of the border
 int endAngle
          end angle of the gauge (default is 200).
 FillStyle gaugeback
          Gauge background
 int maxminZoneMargin
          start position of the ring for the max min zone.
 int maxminZoneWidth
          width in pixels of the ring for the max and min zones
 double maxZone
          maxColor will be used to paint the ticks higher than maxZone.
 FillStyle maxZoneColor
          color of the ticks of the scale near to the maximum value
 double minZone
          minColor will be used to paint the ticks lower than minZone.
 FillStyle minZoneColor
          color of the ticks of the scale near to the minimum value
 int needleBase
          size of the circle painted as needle base (default is 8 which means 8% of the radius)
 double radiusModifier
          modifies the size of the gauge.
 int startAngle
          start angle of the gauge (default is -20).
 GaugePlotter subGauge1
          subgauge 1
 GaugePlotter subGauge2
          subgauge 2
 int subGaugeSize
          Subgauge size .
 
Fields inherited from class com.java4less.rchart.Plotter
back, backImage, depth, visibleHeight, visibleWidth, XScale, Y2Scale, YScale
 
Fields inherited from class com.java4less.rchart.ChartComponent
height, width, x, y
 
Constructor Summary
GaugePlotter()
          constructor
 
Methods inherited from class com.java4less.rchart.Plotter
addSerie, getCombinable, getNeedsAxis, getSerie, getSeriesCount, plot, plotBackground, replaceSerie, setSerie
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

needleBase

public int needleBase
size of the circle painted as needle base (default is 8 which means 8% of the radius)

radiusModifier

public double radiusModifier
modifies the size of the gauge. The default value is 1. A value of 0.5 will create a circle half the size of the default.

border

public LineStyle border
style of the border

axis1LabelMargin

public int axis1LabelMargin
axisLabel margin, distance between ticks and label. Use positive/negative to place the labels outside/inside the circle.

axis2LabelMargin

public int axis2LabelMargin
axisLabel margin, distance between ticks and label. Use positive/negative to place the labels outside/inside the circle.

axis2Margin

public int axis2Margin
pixels between border and ticks

axis1Margin

public int axis1Margin
pixels between border and ticks

axis1

public Axis axis1
primary scale (external)

axis2

public Axis axis2
secondary scale (internal)

maxZoneColor

public FillStyle maxZoneColor
color of the ticks of the scale near to the maximum value

maxminZoneWidth

public int maxminZoneWidth
width in pixels of the ring for the max and min zones

maxminZoneMargin

public int maxminZoneMargin
start position of the ring for the max min zone. This is the distence from the border

maxZone

public double maxZone
maxColor will be used to paint the ticks higher than maxZone.

minZoneColor

public FillStyle minZoneColor
color of the ticks of the scale near to the minimum value

minZone

public double minZone
minColor will be used to paint the ticks lower than minZone.

startAngle

public int startAngle
start angle of the gauge (default is -20).

endAngle

public int endAngle
end angle of the gauge (default is 200).

gaugeback

public FillStyle gaugeback
Gauge background

subGauge1

public GaugePlotter subGauge1
subgauge 1

subGauge2

public GaugePlotter subGauge2
subgauge 2

subGaugeSize

public int subGaugeSize
Subgauge size . % of the main gauge. Default is 30
Constructor Detail

GaugePlotter

public GaugePlotter()
constructor