|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.styles.Series
com.steema.teechart.styles.Custom3D
com.steema.teechart.styles.Custom3DPalette
public class Custom3DPalette
Title: Custom3DPalette class
Description: Custom3DPalette Series Style.
Copyright (c) 2005-2006 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Nested Class Summary | |
|---|---|
static interface |
Custom3DPalette.ColorResolver
|
| Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
|---|
Series.MarkTextResolver |
| Field Summary | |
|---|---|
protected boolean |
bUseColorRange
|
protected boolean |
bUsePalette
|
protected int |
iPaletteSteps
|
| 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 | |
|---|---|
Custom3DPalette()
|
|
Custom3DPalette(IBaseChart c)
|
|
| Method Summary | |
|---|---|
int |
addPalette(double aValue,
Color aColor)
Add Color to Palette list |
void |
clearPalette()
Deletes all Palette information. |
protected void |
createDefaultPalette(int numSteps)
|
void |
createSubGallery(Gallery addSubChart)
|
void |
doBeforeDrawChart()
|
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
|
void |
galleryChanged3D(boolean is3D)
|
double |
getBlueFactor()
Defines the alpha value for the Blue of the ARGB component. |
ChartBrush |
getBrush()
Defines the Brush to fill the Surface polygons. |
int |
getCountLegendItems()
|
Color |
getEndColor()
Determines the last Range palette color. |
double |
getGreenFactor()
Defines the alpha value for the Green of the ARGB component. |
java.lang.String |
getLegendString(int legendIndex,
LegendTextStyle legendTextStyle)
Returns LegendString for LegendIndexth item. |
Color |
getMidColor()
Determines the middle Range palette color. |
PaletteList |
getPalette()
Access the Color Palette list |
double |
getPaletteMin()
The starting value used to calculate the color palette when Custom3DPalette.UsePaletteMin is true. |
double |
getPaletteRange()
Defines the range of colors in the default color Palette. |
double |
getPaletteStep()
The interval amount between palette Colors. |
int |
getPaletteSteps()
The number of entries in the default color Palette. |
PaletteStyle |
getPaletteStyle()
Selects Pale or Strong color palette. |
ChartPen |
getPen()
Defines the Pen to draw the Surface polygons. |
double |
getRedFactor()
Defines the alpha value for the Red of the ARGB component. |
Color |
getStartColor()
Determines 1 of 3 Colors used to create the palette to fill the Surface polygons. |
boolean |
getUseColorRange()
Gradient color palette to fill Surface polygons. |
boolean |
getUsePalette()
Determines multi-color palette to fill Surface polygons. |
boolean |
getUsePaletteMin()
Forces the color palette to start at getUsePaletteMin() value when true. |
Color |
getValueColor(int valueIndex)
Returns the colour of the index point. |
protected Color |
getValueColorValue(double aValue)
|
Color |
legendItemColor(int legendIndex)
|
void |
prepareForGallery(boolean isEnabled)
|
protected java.lang.Object |
readResolve()
|
void |
removeColorResolver()
|
void |
setBlueFactor(double value)
Sets the alpha value for the Blue of the ARGB component. |
void |
setChart(IBaseChart c)
Chart associated with this object. |
void |
setColorResolver(Custom3DPalette.ColorResolver resolver)
|
void |
setEndColor(Color value)
Sets the last Range palette color. |
void |
setGreenFactor(double value)
Sets the alpha value for the Green of the ARGB component. |
void |
setMidColor(Color value)
Sets the middle Range palette color. |
void |
setPaletteMin(double value)
Sets starting value used to calculate the color palette when getUsePaletteMin() is true. |
void |
setPaletteRange(double value)
Sets the range of colors in the default color Palette. |
void |
setPaletteStep(double value)
Sets interval between palette Colors. |
void |
setPaletteSteps(int value)
Sets the number of entries in the default color Palette. |
void |
setPaletteStyle(PaletteStyle value)
Sets Pale or Strong color palette. |
protected void |
setRainbowPalette(int numSteps,
double tmpMin,
double scaleValue)
|
void |
setRedFactor(double value)
Sets the alpha value for the Red of the ARGB component. |
void |
setStartColor(Color value)
Sets 1 of 3 Colors used to create the palette to fill the Surface polygons. |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery dialog. |
void |
setUseColorRange(boolean value)
Sets gradient color palette to fill Surface polygons. |
void |
setUsePalette(boolean value)
Sets multi-color palette to fill Surface polygons. |
void |
setUsePaletteMin(boolean value)
Set to true to force the color palette to start at getUsePaletteMin() value. |
| Methods inherited from class com.steema.teechart.styles.Custom3D |
|---|
add, add, add, add, add, add, calcZOrder, calcZPos, drawMark, getMaxZValue, getMinZValue, getPoint, getTimesZOrder, getZValues, isValidSourceOf, prepareLegendCanvas, setTimesZOrder |
| 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 |
|---|
protected int iPaletteSteps
protected boolean bUseColorRange
protected boolean bUsePalette
| Constructor Detail |
|---|
public Custom3DPalette(IBaseChart c)
public Custom3DPalette()
| Method Detail |
|---|
public void setColorResolver(Custom3DPalette.ColorResolver resolver)
public void removeColorResolver()
protected java.lang.Object readResolve()
readResolve in class Seriespublic ChartPen getPen()
public double getPaletteRange()
public void setPaletteRange(double value)
value - doublepublic int getPaletteSteps()
public void setPaletteSteps(int value)
value - intpublic double getRedFactor()
public void setRedFactor(double value)
value - doublepublic double getGreenFactor()
public void setGreenFactor(double value)
value - doublepublic double getBlueFactor()
public void setBlueFactor(double value)
value - double
protected void drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
drawLegendShape in class Seriespublic Color getEndColor()
getUseColorRange() is true, Surface series
creates a color palette using StartColor, MidColor and EndColor methods.
public void setEndColor(Color value)
value - Colorpublic Color getMidColor()
getUseColorRange() is true, Surface series
creates a color palette using StartColor, MidColor and EndColor methods.
public void setMidColor(Color value)
value - Colorpublic Color getStartColor()
getUseColorRange() is true, Surface series
creates a color palette using StartColor, MidColor and EndColor methods.
public void setStartColor(Color value)
value - Colorpublic ChartBrush getBrush()
getUsePalette() and
getUseColorRange() are false.
public void setPaletteStyle(PaletteStyle value)
value - PaletteStylespublic PaletteStyle getPaletteStyle()
public double getPaletteStep()
getPaletteMin() and
getPaletteSteps()
public void setPaletteStep(double value)
getPaletteMin() and
getPaletteSteps()
value - doublepublic PaletteList getPalette()
public double getPaletteMin()
getUsePaletteMin()public void setPaletteMin(double value)
getUsePaletteMin() is true.
value - doublegetUsePaletteMin()public void clearPalette()
public int addPalette(double aValue,
Color aColor)
aValue - double data valueaColor - Color color
public void createSubGallery(Gallery addSubChart)
createSubGallery in class Series
protected void setRainbowPalette(int numSteps,
double tmpMin,
double scaleValue)
protected void createDefaultPalette(int numSteps)
public void setSubGallery(int index)
Series
setSubGallery in interface ISeriessetSubGallery in class Seriesindex - intpublic boolean getUseColorRange()
getStartColor()
getMidColor() and
getEndColor(). When both
getUseColorRange() and
getUsePalette() are false, all Surface
polygons are filled with Surface's Series.Color color.
public void setUseColorRange(boolean value)
value - booleanpublic boolean getUsePalette()
getPaletteSteps() you may use
getUseColorRange()UseColorRange or the Series
ColorEachPoint method to define colour for the Surface Series.
public void setUsePalette(boolean value)
value - booleanpublic boolean getUsePaletteMin()
getUsePaletteMin() value when true.
getUsePaletteMin()public void setUsePaletteMin(boolean value)
getUsePaletteMin() value.
value - booleangetUsePaletteMin()protected Color getValueColorValue(double aValue)
public Color getValueColor(int valueIndex)
getValueColor in interface ISeriesgetValueColor in class SeriesvalueIndex - int
public int getCountLegendItems()
getCountLegendItems in interface ISeriesgetCountLegendItems in class Series
public java.lang.String getLegendString(int legendIndex,
LegendTextStyle legendTextStyle)
getLegendString in interface ISeriesgetLegendString in class SerieslegendIndex - intlegendTextStyle - LegendTextStyles
public Color legendItemColor(int legendIndex)
legendItemColor in interface ISerieslegendItemColor in class Seriespublic void setChart(IBaseChart c)
TeeBase
setChart in interface ISeriessetChart in class Seriesc - IBaseChartpublic void prepareForGallery(boolean isEnabled)
prepareForGallery in class Seriespublic void doBeforeDrawChart()
doBeforeDrawChart in class Seriespublic void galleryChanged3D(boolean is3D)
galleryChanged3D in class Series
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||