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
Direct Known Subclasses:
LinearGauge, NumericGauge

public class CustomGauge
extends Series


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
           
static Color[] LCDPalette
           
static Color[] LEDPalette
           
 
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
CustomGauge()
           
CustomGauge(IBaseChart c)
           
 
Method Summary
protected  void addSampleValues(int numValues)
           
protected  void calcNewRectangle()
           
protected  void calcOrigRectangle()
           
 int clicked(int x, int y)
          Returns the ValueIndex of the "clicked" point in the Series.
 boolean customBoundsIsEmpty()
           
 void dispose()
           
 void doBeforeDrawChart()
           
 void draw()
           
 void draw(IGraphics3D graphics)
           
protected  void drawAxis(IGraphics3D g)
           
protected  void drawAxisMinorTick(IGraphics3D g, Point inner, Point outer)
           
protected  void drawAxisTick(IGraphics3D g, Point inner, Point innerPlus, Point innerMinus, Point outer, Point outerPlus, Point outerMinus)
           
protected  void drawColorLines(IGraphics3D g)
           
protected  void drawFace(IGraphics3D g)
           
protected  void drawFrame()
           
protected  void drawFrame(IGraphics3D g)
           
protected  void drawHand(IGraphics3D g)
           
 Axis getAxis()
           
 Rectangle getCustomBounds()
           
 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  IGraphics3D prepareGraphics(IGraphics3D graphics, ChartPen pen, ChartBrush brush)
           
protected  void setAxisOnce()
           
 void setCustomBounds(Rectangle value)
           
 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, 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, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, doAfterDrawValues, doBeforeDrawValues, 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, 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, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, numSampleValues, onDisposing, 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, 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

iOrigRectangle

protected Rectangle iOrigRectangle

iNewRectangle

protected Rectangle iNewRectangle

iRange

protected double iRange

BluesPalette

public static Color[] BluesPalette

BlackPalette

public static Color[] BlackPalette

LCDPalette

public static Color[] LCDPalette

LEDPalette

public static Color[] LEDPalette

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()

calcOrigRectangle

protected void calcOrigRectangle()

calcNewRectangle

protected void calcNewRectangle()

getCustomBounds

public Rectangle getCustomBounds()

setCustomBounds

public void setCustomBounds(Rectangle value)

customBoundsIsEmpty

public boolean customBoundsIsEmpty()

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

draw

public void draw(IGraphics3D graphics)

prepareGraphics

protected IGraphics3D prepareGraphics(ChartPen pen,
                                      ChartBrush brush)

prepareGraphics

protected IGraphics3D prepareGraphics(IGraphics3D graphics,
                                      ChartPen pen,
                                      ChartBrush brush)

drawFrame

protected void drawFrame(IGraphics3D g)

drawAxisTick

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

drawAxisMinorTick

protected void drawAxisMinorTick(IGraphics3D g,
                                 Point inner,
                                 Point outer)

setAxisOnce

protected void setAxisOnce()

isDefaultAxis

protected boolean isDefaultAxis()

doBeforeDrawChart

public void doBeforeDrawChart()
Overrides:
doBeforeDrawChart in class Series

clicked

public int clicked(int x,
                   int y)
Description copied from class: Series
Returns the ValueIndex of the "clicked" point in the Series.
Clicked means the X and Y coordinates are in the point screen region bounds. If no point is "touched", Clicked returns -1

Specified by:
clicked in interface ISeries
Overrides:
clicked in class Series
Parameters:
x - int
y - int
Returns:
int

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)