com.steema.teechart.styles
Class CircularGauge

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.styles.Series
          extended by com.steema.teechart.styles.Circular
              extended by com.steema.teechart.styles.CircularGauge
All Implemented Interfaces:
ISeries
Direct Known Subclasses:
KnobGauge

public class CircularGauge
extends Circular


Nested Class Summary
 
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series
Series.MarkTextResolver
 
Field Summary
protected  float iAngleInc
           
protected  Point iCenter
           
protected  Rectangle iNewRectangle
           
 PointDouble[] iPoints
           
protected  double iRange
           
protected  float iStartAngle
           
protected  double totalAngle
           
 
Fields inherited from class com.steema.teechart.styles.Circular
circleHeight, circleWidth, iAdjustCircleForMarks, iCircleXCenter, iCircleYCenter, iXRadius, iYRadius, PIDEGREE, rCircleRect, rotDegree
 
Fields inherited from class com.steema.teechart.styles.Series
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory
 
Fields inherited from class com.steema.teechart.TeeBase
chart, InternalUse
 
Constructor Summary
CircularGauge()
           
CircularGauge(IBaseChart c)
           
 
Method Summary
protected  void addSampleValues(int numValues)
           
protected  double calcAngleFromLength(Point Point, double Length)
           
protected  void calcOrigRectangle()
           
protected  Point calcPoint(double angle, Point center, double radiusX, double radiusY)
           
protected  float calcSweepAngle()
           
protected  int calcValue(double value)
           
 void dispose()
           
 void doBeforeDrawValues()
           
 void draw()
           
protected  void drawAxis(Graphics3D g)
           
protected  void drawAxisMinorTick(Graphics3D g, Point Inner, Point Outer)
           
protected  void drawAxisTick(Graphics3D g, Point inner, Point innerPlus, Point innerMinus, Point outer, Point outerPlus, Point outerMinus)
           
protected  void drawCenter(Graphics3D g)
           
protected  void drawColorLines(Graphics3D g)
           
 boolean getAutoPositionLinearGauge()
           
 boolean getAutoPositionNumericGauge()
           
 boolean getAutoValueLinearGauge()
           
 boolean getAutoValueNumericGauge()
           
 Axis getAxis()
           
 GaugeSeriesPointer getCenter()
           
 Rectangle getCustomBounds()
           
 java.lang.String getDescription()
          Gets descriptive text.
 SeriesPointer getEndPoint()
           
 ChartBrush getFaceBrush()
           
 boolean getFillToSemiCircle()
           
 CFrame getFrame()
           
 Color[] getGaugeColorPalette()
           
 GaugeSeriesPointer getGreenLine()
           
 double getGreenLineEndValue()
           
 double getGreenLineStartValue()
           
 GaugeSeriesPointer getHand()
           
 int getHandDistance()
           
 int getHandOffset()
           
 boolean getLabelsInside()
           
 boolean getLabelsVisible()
           
 LinearGauge getLinearGauge()
           
 double getMaximum()
           
 double getMinimum()
           
 int getMinorTickDistance()
           
 GaugeSeriesPointer getMinorTicks()
           
 NumericGauge getNumericGauge()
           
 GaugeSeriesPointer getRedLine()
           
 double getRedLineEndValue()
           
 double getRedLineStartValue()
           
 boolean getRotateLabels()
           
 GaugeSeriesPointer getTicks()
           
 double getTotalAngle()
           
 double getValue()
           
protected  void onValueChanged()
           
 void prepareForGallery(boolean isEnabled)
           
 void setAutoPositionLinearGauge(boolean value)
           
 void setAutoPositionNumericGauge(boolean value)
           
 void setAutoValueLinearGauge(boolean value)
           
 void setAutoValueNumericGauge(boolean value)
           
 void setCenter(GaugeSeriesPointer value)
           
 void setChart(IBaseChart value)
          Chart associated with this object.
protected  void setCircleRect()
           
 void setCustomBounds(Rectangle value)
           
 void setEndPoint(SeriesPointer value)
           
 void setFaceBrush(ChartBrush value)
           
 void setFillToSemiCircle(boolean value)
           
 void setFrame(CFrame value)
           
 void setGaugeColorPalette(Color[] value)
           
 void setGreenLine(GaugeSeriesPointer value)
           
 void setGreenLineEndValue(double value)
           
 void setGreenLineStartValue(double value)
           
 void setHand(GaugeSeriesPointer value)
           
 void setHandDistance(int value)
           
 void setHandOffset(int value)
           
 void setLabelsInside(boolean value)
           
 void setLabelsVisible(boolean value)
           
 void setLinearGauge(LinearGauge value)
           
 void setMaximum(double value)
           
 void setMinimum(double value)
           
 void setMinorTickDistance(int value)
           
 void setMinorTicks(GaugeSeriesPointer value)
           
 void setNumericGauge(NumericGauge value)
           
 void setRedLine(GaugeSeriesPointer value)
           
 void setRedLineEndValue(double value)
           
 void setRedLineStartValue(double value)
           
 void setRotateLabels(boolean value)
           
 void setTicks(GaugeSeriesPointer value)
           
 void setTotalAngle(double value)
           
 void setValue(double value)
           
protected  void setValues()
           
static double truncate(double x)
           
 
Methods inherited from class com.steema.teechart.styles.Circular
adjustCircleRect, angleToPos, associatedToAxis, calcCircleBackColor, calcCircleGradient, calcRadius, clicked, getCircleBackColor, getCircled, getCircleGradient, getCircleHeight, getCircleRect, getCircleWidth, getCircleXCenter, getCircleYCenter, getCustomXRadius, getCustomYRadius, getRotationAngle, getUniqueCustomRadius, getXRadius, getYRadius, onDisposing, pointToAngle, pointToRadius, prepareLegendCanvas, readResolve, reCalcCircleRect, rotate, setActive, setCircleBackColor, setCircled, setCustomXRadius, setCustomYRadius, setParentProperties, setRotationAngle, setUniqueCustomRadius, shouldSerializeCircleBackColor
 
Methods inherited from class com.steema.teechart.styles.Series
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addChartValue, added, addedValue, addNull, addNullXY, addSeriesMouseListener, addSeriesPaintListener, addValues, assign, assignDispose, assignValues, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, doAfterDrawValues, doBeforeDrawChart, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawLegendShape, drawMark, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValue, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBrush, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxXValue, getMaxYValue, getMaxZValue, getMiddleZ, getMinXValue, getMinYValue, getMinZValue, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getPoint, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueColor, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasDataSource, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, numSampleValues, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setColor, setColorEach, setColorMember, setColors, setCursor, setCustomHorizAxis, setCustomHorizAxis, setCustomVertAxis, setCustomVertAxis, setDataSource, setDefaultNullValue, setDepth, setEndZ, setFunction, setHorizontal, setHorizontalAxis, setLabelMember, setLabels, setMarks, setMarkTextResolver, setMiddleZ, setNull, setNull, setPercentFormat, setSeriesColor, setShowInLegend, setStartZ, setSubGallery, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValue
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.steema.teechart.styles.ISeries
getChart, invalidate
 

Field Detail

iCenter

protected Point iCenter

iRange

protected double iRange

iStartAngle

protected float iStartAngle

iAngleInc

protected float iAngleInc

iNewRectangle

protected Rectangle iNewRectangle

iPoints

public PointDouble[] iPoints

totalAngle

protected double totalAngle
Constructor Detail

CircularGauge

public CircularGauge()

CircularGauge

public CircularGauge(IBaseChart c)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface ISeries
Overrides:
dispose in class Series

addSampleValues

protected void addSampleValues(int numValues)
Overrides:
addSampleValues in class Series

doBeforeDrawValues

public void doBeforeDrawValues()
Overrides:
doBeforeDrawValues in class Circular

setChart

public void setChart(IBaseChart value)
Description copied from class: TeeBase
Chart associated with this object.

Specified by:
setChart in interface ISeries
Overrides:
setChart in class Circular
Parameters:
value - IBaseChart

setCircleRect

protected void setCircleRect()

draw

public void draw()
Overrides:
draw in class Series

prepareForGallery

public void prepareForGallery(boolean isEnabled)
Overrides:
prepareForGallery in class Series

getLinearGauge

public LinearGauge getLinearGauge()

getNumericGauge

public NumericGauge getNumericGauge()

setNumericGauge

public void setNumericGauge(NumericGauge value)

setLinearGauge

public void setLinearGauge(LinearGauge value)

getAutoValueNumericGauge

public boolean getAutoValueNumericGauge()

setAutoValueNumericGauge

public void setAutoValueNumericGauge(boolean value)

getAutoValueLinearGauge

public boolean getAutoValueLinearGauge()

setAutoValueLinearGauge

public void setAutoValueLinearGauge(boolean value)

getAutoPositionLinearGauge

public boolean getAutoPositionLinearGauge()

setAutoPositionLinearGauge

public void setAutoPositionLinearGauge(boolean value)

getAutoPositionNumericGauge

public boolean getAutoPositionNumericGauge()

setAutoPositionNumericGauge

public void setAutoPositionNumericGauge(boolean value)

drawColorLines

protected void drawColorLines(Graphics3D g)

setValues

protected void setValues()

calcAngleFromLength

protected double calcAngleFromLength(Point Point,
                                     double Length)

calcPoint

protected Point calcPoint(double angle,
                          Point center,
                          double radiusX,
                          double radiusY)

drawAxisTick

protected void drawAxisTick(Graphics3D g,
                            Point inner,
                            Point innerPlus,
                            Point innerMinus,
                            Point outer,
                            Point outerPlus,
                            Point outerMinus)

drawAxisMinorTick

protected void drawAxisMinorTick(Graphics3D g,
                                 Point Inner,
                                 Point Outer)

drawAxis

protected void drawAxis(Graphics3D g)

calcSweepAngle

protected float calcSweepAngle()

calcValue

protected int calcValue(double value)

getCustomBounds

public Rectangle getCustomBounds()

setCustomBounds

public void setCustomBounds(Rectangle value)

calcOrigRectangle

protected void calcOrigRectangle()

drawCenter

protected void drawCenter(Graphics3D g)

onValueChanged

protected void onValueChanged()

getDescription

public java.lang.String getDescription()
Description copied from class: Series
Gets descriptive text.

Overrides:
getDescription in class Series
Returns:
String

getHandOffset

public int getHandOffset()

setHandOffset

public void setHandOffset(int value)

getGaugeColorPalette

public Color[] getGaugeColorPalette()

setGaugeColorPalette

public void setGaugeColorPalette(Color[] value)

getGreenLineEndValue

public double getGreenLineEndValue()

setGreenLineEndValue

public void setGreenLineEndValue(double value)

getGreenLineStartValue

public double getGreenLineStartValue()

setGreenLineStartValue

public void setGreenLineStartValue(double value)

getRedLineEndValue

public double getRedLineEndValue()

setRedLineEndValue

public void setRedLineEndValue(double value)

getRedLineStartValue

public double getRedLineStartValue()

setRedLineStartValue

public void setRedLineStartValue(double value)

getRedLine

public GaugeSeriesPointer getRedLine()

setRedLine

public void setRedLine(GaugeSeriesPointer value)

getGreenLine

public GaugeSeriesPointer getGreenLine()

setGreenLine

public void setGreenLine(GaugeSeriesPointer value)

getMinorTicks

public GaugeSeriesPointer getMinorTicks()

setMinorTicks

public void setMinorTicks(GaugeSeriesPointer value)

getTicks

public GaugeSeriesPointer getTicks()

setTicks

public void setTicks(GaugeSeriesPointer value)

getFrame

public CFrame getFrame()

setFrame

public void setFrame(CFrame value)

getRotateLabels

public boolean getRotateLabels()

setRotateLabels

public void setRotateLabels(boolean value)

getHand

public GaugeSeriesPointer getHand()

setHand

public void setHand(GaugeSeriesPointer value)

getFaceBrush

public ChartBrush getFaceBrush()

setFaceBrush

public void setFaceBrush(ChartBrush value)

getFillToSemiCircle

public boolean getFillToSemiCircle()

setFillToSemiCircle

public void setFillToSemiCircle(boolean value)

getMinorTickDistance

public int getMinorTickDistance()

setMinorTickDistance

public void setMinorTickDistance(int value)

getMinimum

public double getMinimum()

setMinimum

public void setMinimum(double value)

getMaximum

public double getMaximum()

setMaximum

public void setMaximum(double value)

getTotalAngle

public double getTotalAngle()

setTotalAngle

public void setTotalAngle(double value)

getValue

public double getValue()

setValue

public void setValue(double value)

getLabelsInside

public boolean getLabelsInside()

setLabelsInside

public void setLabelsInside(boolean value)

getLabelsVisible

public boolean getLabelsVisible()

setLabelsVisible

public void setLabelsVisible(boolean value)

getAxis

public Axis getAxis()

getCenter

public GaugeSeriesPointer getCenter()

setCenter

public void setCenter(GaugeSeriesPointer value)

getEndPoint

public SeriesPointer getEndPoint()

setEndPoint

public void setEndPoint(SeriesPointer value)

getHandDistance

public int getHandDistance()

setHandDistance

public void setHandDistance(int value)

truncate

public static double truncate(double x)