com.steema.teechart.styles
Class Ternary

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.styles.Series
          extended by com.steema.teechart.styles.Custom3D
              extended by com.steema.teechart.styles.Custom3DPalette
                  extended by com.steema.teechart.styles.Ternary
All Implemented Interfaces:
ISeries, java.io.Serializable, java.lang.Cloneable

public class Ternary
extends Custom3DPalette

Title: Ternary class

Description: Pyramid Series.

Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

See Also:
Serialized Form

Nested Class Summary
 class Ternary.ClickedVars
           
 class Ternary.DrawLabelsVars
           
 class Ternary.LegendStringVars
           
static class Ternary.TernaryAxisScale
           
static class Ternary.TernaryFormat
           
static class Ternary.TernaryLegendStyle
           
static class Ternary.TernaryMarkStyle
           
static class Ternary.TernaryStyle
           
 
Nested classes/interfaces inherited from class com.steema.teechart.styles.Custom3DPalette
Custom3DPalette.ColorResolver
 
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series
Series.MarkTextResolver
 
Field Summary
 
Fields inherited from class com.steema.teechart.styles.Custom3DPalette
bUseColorRange, bUsePalette, iPaletteSteps, sameBrush
 
Fields inherited from class com.steema.teechart.styles.Custom3D
vzValues
 
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
Ternary()
           
Ternary(IBaseChart c)
           
 
Method Summary
 int add(double aX, double aY, double aZ, double aRadius, Color aColor)
           
 int add(double AX, double AY, double aZ, double ARadius, double AWeight, Color AColor)
           
 int add(double AX, double AY, double aZ, double ARadius, double AWeight, java.lang.String aLabel, Color AColor)
           
 int add(double AX, double AY, double aZ, double ARadius, java.lang.String aLabel, Color AColor)
           
 Point calcPointFromValues(double a, double b, double c)
           
 int clicked(int x, int y)
          Returns the ValueIndex of the "clicked" point in the Series.
 boolean clickedPointer(int ValueIndex, int tmpX, int tmpY, int x, int y)
           
 int countLegendItems()
           
 void doBeforeDrawChart()
           
 PointerStyle doGetPointerStyle(int ValueIndex)
           
 void draw()
           
protected  void drawAxes()
           
protected  void drawAxis(Axis aAxis, Point StarPoint, Point EndPoint)
           
protected  void drawGrids(Point[] Element)
           
 void drawLabels(Point[] Element)
           
protected  void drawMark(int valueIndex, java.lang.String s, SeriesMarksPosition position)
           
protected  void drawTicks(Point[] Element)
           
 void drawValue(int index)
          Called internally.
protected  void drawVertexTitles()
           
 void fillSampleValues(int numValues)
          Adds the specified NumValues random points.
 Ternary.TernaryAxisScale getAxisScale()
           
 Gradient getGradient()
           
 java.lang.String getLegendString(int legendIndex, LegendTextStyle legendTextStyle)
          Returns LegendString for LegendIndexth item.
 java.lang.String getLineSeparator()
           
 ChartPen getLinesPen()
           
 Ternary.TernaryMarkStyle getMarkStyle()
           
 Ternary.TernaryFormat getPlotFormat()
           
 SeriesPointer getPointer()
           
 ValueList getRadiusValues()
           
 boolean getRotateLabels()
           
protected  Point getSideOffset(int Hypoteneuse)
           
 Ternary.TernaryLegendStyle getTernaryLegendStyle()
           
 Ternary.TernaryStyle getTernaryStyle()
           
protected  Point getVectorLocation(Point StarPoint, Point EndPoint, int PercentOffset)
           
 Point getVertexA()
           
 Point getVertexB()
           
 Point getVertexC()
           
 java.util.ArrayList[] getVertexTitles()
           
 ValueList getWeightValues()
           
static boolean isNullOrEmpty(java.lang.String value)
           
protected  boolean isPointInChartRect(int valueIndex)
           
protected  int numSampleValues()
           
 void prepareForGallery(boolean isEnabled)
           
protected  void prepareLegendCanvas(Graphics3D g, int valueIndex, Color backColor, ChartBrush aBrush)
           
protected  void preparePointer(int ValueIndex)
           
protected  double[] rationaliseValues(double x, double y, double z)
           
 void setAxisScale(Ternary.TernaryAxisScale Value)
           
 void setChart(IBaseChart c)
          Chart associated with this object.
 void setGradient(Gradient Value)
           
 void setLinesPen(ChartPen Value)
           
 void setMarkStyle(Ternary.TernaryMarkStyle value)
           
 void setPlotFormat(Ternary.TernaryFormat Value)
           
 void setPointer(SeriesPointer value)
           
 void setRadiusValues(ValueList value)
           
 void setRotateLabels(boolean value)
           
 void setTernaryLegendStyle(Ternary.TernaryLegendStyle Value)
           
 void setTernaryMarkStyle(Ternary.TernaryMarkStyle Value)
           
 void setTernaryStyle(Ternary.TernaryStyle Value)
           
 void setVertexTitle(java.lang.String value, int position)
           
 void setWeightValues(ValueList value)
           
 
Methods inherited from class com.steema.teechart.styles.Custom3DPalette
addPalette, calcColorRange, clearPalette, createDefaultPalette, createSubGallery, drawLegendShape, galleryChanged3D, getBlueFactor, getBrush, getCountLegendItems, getEndColor, getGreenFactor, getMidColor, getPalette, getPaletteMin, getPaletteRange, getPaletteStep, getPaletteSteps, getPaletteStyle, getPen, getRedFactor, getStartColor, getUseColorRange, getUsePalette, getUsePaletteMin, getValueColor, getValueColorValue, legendItemColor, readResolve, removeColorResolver, setBlueFactor, setColorResolver, setEndColor, setGreenFactor, setMidColor, setPaletteMin, setPaletteRange, setPaletteStep, setPaletteSteps, setPaletteStyle, setRainbowPalette, setRedFactor, setSameBrush, setStartColor, setSubGallery, setUseColorRange, setUsePalette, setUsePaletteMin
 
Methods inherited from class com.steema.teechart.styles.Custom3D
add, add, add, add, add, add, add, add, add, calcZOrder, calcZPos, getMaxZValue, getMinZValue, getPoint, getTimesZOrder, getZValues, isValidSourceOf, prepareLegendCanvas, setTimesZOrder
 
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, addSampleValues, addSeriesMouseListener, addSeriesPaintListener, addValues, assign, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getDescription, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxXValue, getMaxYValue, getMiddleZ, getMinXValue, getMinYValue, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasDataSource, hasListenersOf, hasNoMandatoryValues, isNull, isValidSeriesSource, lastDisplayed, lastVisibleMark, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, onDisposing, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setActive, 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, 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, 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
 

Constructor Detail

Ternary

public Ternary()

Ternary

public Ternary(IBaseChart c)
Method Detail

add

public int add(double aX,
               double aY,
               double aZ,
               double aRadius,
               Color aColor)

add

public int add(double AX,
               double AY,
               double aZ,
               double ARadius,
               java.lang.String aLabel,
               Color AColor)

add

public int add(double AX,
               double AY,
               double aZ,
               double ARadius,
               double AWeight,
               Color AColor)

add

public int add(double AX,
               double AY,
               double aZ,
               double ARadius,
               double AWeight,
               java.lang.String aLabel,
               Color AColor)

fillSampleValues

public void fillSampleValues(int numValues)
Description copied from class: Series
Adds the specified NumValues random points.

Overrides:
fillSampleValues in class Series
Parameters:
numValues - int the number of sample values to add.

rationaliseValues

protected double[] rationaliseValues(double x,
                                     double y,
                                     double z)

calcPointFromValues

public Point calcPointFromValues(double a,
                                 double b,
                                 double c)

draw

public void draw()
Overrides:
draw in class Series

drawAxes

protected void drawAxes()

getSideOffset

protected Point getSideOffset(int Hypoteneuse)

drawAxis

protected void drawAxis(Axis aAxis,
                        Point StarPoint,
                        Point EndPoint)

drawGrids

protected void drawGrids(Point[] Element)

drawLabels

public void drawLabels(Point[] Element)

drawMark

protected void drawMark(int valueIndex,
                        java.lang.String s,
                        SeriesMarksPosition position)
Overrides:
drawMark in class Custom3D

drawTicks

protected void drawTicks(Point[] Element)

drawValue

public void drawValue(int index)
Description copied from class: Series
Called internally. Draws the "ValueIndex" point of the Series.

Specified by:
drawValue in interface ISeries
Overrides:
drawValue in class Series
Parameters:
index - int

drawVertexTitles

protected void drawVertexTitles()

getVectorLocation

protected Point getVectorLocation(Point StarPoint,
                                  Point EndPoint,
                                  int PercentOffset)

getVertexTitles

public java.util.ArrayList[] getVertexTitles()

setVertexTitle

public void setVertexTitle(java.lang.String value,
                           int position)

getLegendString

public java.lang.String getLegendString(int legendIndex,
                                        LegendTextStyle legendTextStyle)
Description copied from class: Custom3DPalette
Returns LegendString for LegendIndexth item.

Specified by:
getLegendString in interface ISeries
Overrides:
getLegendString in class Custom3DPalette
Parameters:
legendIndex - int
legendTextStyle - LegendTextStyles
Returns:
String

numSampleValues

protected int numSampleValues()
Overrides:
numSampleValues in class Series

getTernaryStyle

public Ternary.TernaryStyle getTernaryStyle()

doGetPointerStyle

public PointerStyle doGetPointerStyle(int ValueIndex)

clickedPointer

public boolean clickedPointer(int ValueIndex,
                              int tmpX,
                              int tmpY,
                              int x,
                              int y)

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

countLegendItems

public int countLegendItems()
Overrides:
countLegendItems in class Custom3DPalette

doBeforeDrawChart

public void doBeforeDrawChart()
Overrides:
doBeforeDrawChart in class Custom3DPalette

isPointInChartRect

protected boolean isPointInChartRect(int valueIndex)
Overrides:
isPointInChartRect in class Series

prepareForGallery

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

prepareLegendCanvas

protected void prepareLegendCanvas(Graphics3D g,
                                   int valueIndex,
                                   Color backColor,
                                   ChartBrush aBrush)

preparePointer

protected void preparePointer(int ValueIndex)

setAxisScale

public void setAxisScale(Ternary.TernaryAxisScale Value)

setChart

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

Specified by:
setChart in interface ISeries
Overrides:
setChart in class Custom3DPalette
Parameters:
c - IBaseChart

setGradient

public void setGradient(Gradient Value)

setLinesPen

public void setLinesPen(ChartPen Value)

setPlotFormat

public void setPlotFormat(Ternary.TernaryFormat Value)

setTernaryLegendStyle

public void setTernaryLegendStyle(Ternary.TernaryLegendStyle Value)

setTernaryMarkStyle

public void setTernaryMarkStyle(Ternary.TernaryMarkStyle Value)

setTernaryStyle

public void setTernaryStyle(Ternary.TernaryStyle Value)

getAxisScale

public Ternary.TernaryAxisScale getAxisScale()

getGradient

public Gradient getGradient()

getLineSeparator

public java.lang.String getLineSeparator()

getLinesPen

public ChartPen getLinesPen()

getMarkStyle

public Ternary.TernaryMarkStyle getMarkStyle()

setMarkStyle

public void setMarkStyle(Ternary.TernaryMarkStyle value)

getPlotFormat

public Ternary.TernaryFormat getPlotFormat()

getPointer

public SeriesPointer getPointer()

setPointer

public void setPointer(SeriesPointer value)

getRadiusValues

public ValueList getRadiusValues()

setRadiusValues

public void setRadiusValues(ValueList value)

getRotateLabels

public boolean getRotateLabels()

setRotateLabels

public void setRotateLabels(boolean value)

getTernaryLegendStyle

public Ternary.TernaryLegendStyle getTernaryLegendStyle()

getVertexA

public Point getVertexA()

getVertexB

public Point getVertexB()

getVertexC

public Point getVertexC()

getWeightValues

public ValueList getWeightValues()

setWeightValues

public void setWeightValues(ValueList value)

isNullOrEmpty

public static boolean isNullOrEmpty(java.lang.String value)