com.steema.teechart.styles
Class CustomGauge

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.styles.Series
          extended by com.steema.teechart.styles.CustomGauge
All Implemented Interfaces:
ISeries, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
LinearGauge

public class CustomGauge
extends Series

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series
Series.MarkTextResolver
 
Field Summary
static Color[] BlackPalette
           
static Color[] BluesPalette
           
protected  double fgreenLineEndValue
           
protected  double fgreenLineStartValue
           
protected  double fmaximum
           
protected  double fminimum
           
protected  double fredLineEndValue
           
protected  double fredLineStartValue
           
protected  Rectangle iNewRectangle
           
protected  Rectangle iOrigRectangle
           
protected  double iRange
           
 
Fields inherited from class com.steema.teechart.styles.Series
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, InternalUse, 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
 
Constructor Summary
CustomGauge()
           
CustomGauge(IBaseChart c)
           
 
Method Summary
protected  void addSampleValues(int numValues)
           
 void dispose()
           
 void doBeforeDrawChart()
           
 void draw()
           
protected  void drawAxis(IGraphics3D g)
           
protected  void drawAxisMinorTick(IGraphics3D g, java.awt.Point inner, java.awt.Point outer)
           
protected  void drawAxisTick(IGraphics3D g, java.awt.Point inner, java.awt.Point innerPlus, java.awt.Point innerMinus, java.awt.Point outer, java.awt.Point outerPlus, java.awt.Point outerMinus)
           
protected  void drawColorLines(IGraphics3D g)
           
protected  void drawFace(IGraphics3D g)
           
protected  void drawFrame()
           
protected  void drawHand(IGraphics3D g)
           
 Axis getAxis()
           
 ChartBrush getFaceBrush()
           
 TFrame getFrame()
           
 Color[] getGaugeColorPalette()
           
static Color getGaugePaletteColor(int index, Color[] gaugeColorPalette)
           
 GaugeSeriesPointer getGreenLine()
           
 double getGreenLineEndValue()
           
 double getGreenLineStartValue()
           
 GaugeSeriesPointer getHand()
           
 boolean getHorizontal()
           
 double getMaximum()
           
 double getMinimum()
           
 int getMinorTickDistance()
           
 GaugeSeriesPointer getMinorTicks()
           
 GaugeSeriesPointer getRedLine()
           
 double getRedLineEndValue()
           
 double getRedLineStartValue()
           
 GaugeSeriesPointer getTicks()
           
 double getValue()
           
protected  boolean isDefaultAxis()
           
protected  IGraphics3D prepareGraphics(ChartPen pen, ChartBrush brush)
           
protected  void setAxisOnce()
           
 void setFaceBrush(ChartBrush value)
           
 void setFrame(TFrame value)
           
 void setGaugeColorPalette(Color[] value)
           
 void setGreenLine(GaugeSeriesPointer value)
           
 void setGreenLineEndValue(double value)
           
 void setGreenLineStartValue(double value)
           
 void setHand(GaugeSeriesPointer value)
           
 void setHorizontal(boolean value)
           
 void setMaximum(double value)
           
 void setMinimum(double value)
           
 void setMinorTickDistance(int value)
           
 void setMinorTicks(GaugeSeriesPointer value)
           
 void setRedLine(GaugeSeriesPointer value)
           
 void setRedLineEndValue(double value)
           
 void setRedLineStartValue(double value)
           
 void setTicks(GaugeSeriesPointer value)
           
 void setValue(double value)
           
protected  void setValues()
           
 
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, addChartValue, added, addedValue, addNull, addNullXY, addSeriesMouseListener, addSeriesPaintListener, addValues, assign, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, CalculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clicked, clone, cloneSeries, convertArray, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, doAfterDrawValues, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawLegend, drawLegend, drawLegendShape, drawMark, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValue, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getDescription, 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, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, numSampleValues, onDisposing, paintLegend, prepareForGallery, prepareLegendCanvas, randomBounds, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setActive, setChart, 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, valuesListAdd, xScreenToValue, yScreenToValue
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setColorProperty, 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

iOrigRectangle

protected Rectangle iOrigRectangle

iNewRectangle

protected Rectangle iNewRectangle

iRange

protected double iRange

BluesPalette

public static Color[] BluesPalette

BlackPalette

public static Color[] BlackPalette

fminimum

protected double fminimum

fmaximum

protected double fmaximum

fredLineStartValue

protected double fredLineStartValue

fredLineEndValue

protected double fredLineEndValue

fgreenLineStartValue

protected double fgreenLineStartValue

fgreenLineEndValue

protected double fgreenLineEndValue
Constructor Detail

CustomGauge

public CustomGauge()

CustomGauge

public CustomGauge(IBaseChart c)
Method Detail

setValues

protected void setValues()

addSampleValues

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

dispose

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

drawFace

protected void drawFace(IGraphics3D g)

drawAxis

protected void drawAxis(IGraphics3D g)

drawHand

protected void drawHand(IGraphics3D g)

drawColorLines

protected void drawColorLines(IGraphics3D g)

getAxis

public Axis getAxis()

drawFrame

protected void drawFrame()

draw

public void draw()
Overrides:
draw in class Series

prepareGraphics

protected IGraphics3D prepareGraphics(ChartPen pen,
                                      ChartBrush brush)

drawAxisTick

protected void drawAxisTick(IGraphics3D g,
                            java.awt.Point inner,
                            java.awt.Point innerPlus,
                            java.awt.Point innerMinus,
                            java.awt.Point outer,
                            java.awt.Point outerPlus,
                            java.awt.Point outerMinus)

drawAxisMinorTick

protected void drawAxisMinorTick(IGraphics3D g,
                                 java.awt.Point inner,
                                 java.awt.Point outer)

setAxisOnce

protected void setAxisOnce()

isDefaultAxis

protected boolean isDefaultAxis()

doBeforeDrawChart

public void doBeforeDrawChart()
Overrides:
doBeforeDrawChart in class Series

getGaugePaletteColor

public static Color getGaugePaletteColor(int index,
                                         Color[] gaugeColorPalette)

getMinorTickDistance

public int getMinorTickDistance()

setMinorTickDistance

public void setMinorTickDistance(int 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)

getHorizontal

public boolean getHorizontal()

setHorizontal

public void setHorizontal(boolean value)

getGreenLine

public GaugeSeriesPointer getGreenLine()

setGreenLine

public void setGreenLine(GaugeSeriesPointer value)

getHand

public GaugeSeriesPointer getHand()

setHand

public void setHand(GaugeSeriesPointer value)

getMinorTicks

public GaugeSeriesPointer getMinorTicks()

setMinorTicks

public void setMinorTicks(GaugeSeriesPointer value)

setValue

public void setValue(double value)

getValue

public double getValue()

getMinimum

public double getMinimum()

setMinimum

public void setMinimum(double value)

getMaximum

public double getMaximum()

setMaximum

public void setMaximum(double value)

getTicks

public GaugeSeriesPointer getTicks()

setTicks

public void setTicks(GaugeSeriesPointer value)

getFaceBrush

public ChartBrush getFaceBrush()

setFaceBrush

public void setFaceBrush(ChartBrush value)

getGaugeColorPalette

public Color[] getGaugeColorPalette()

setGaugeColorPalette

public void setGaugeColorPalette(Color[] value)

getFrame

public TFrame getFrame()

setFrame

public void setFrame(TFrame value)