com.steema.teechart.styles
Class ColorGrid

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.Custom3DGrid
                      extended by com.steema.teechart.styles.ColorGrid
All Implemented Interfaces:
ISeries, java.io.Serializable, java.lang.Cloneable

public class ColorGrid
extends Custom3DGrid

Title: ColorGrid class

Description: The ColorGrid series displays a grid of color cells.

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

Company: Steema Software SL

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.steema.teechart.styles.Custom3DGrid
Custom3DGrid.CellsRow, Custom3DGrid.PCellsRow, Custom3DGrid.YCalculator
 
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.Custom3DGrid
gridIndex, iInGallery, iNextXCell, iNextZCell, iNumXValues, iNumZValues, valueIndex0, valueIndex1, valueIndex2, valueIndex3
 
Fields inherited from class com.steema.teechart.styles.Custom3DPalette
bUseColorRange, bUsePalette, 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
ColorGrid()
           
ColorGrid(IBaseChart c)
           
 
Method Summary
 void createSubGallery(Gallery addSubChart)
           
protected  void draw()
           
protected  void drawMark(int valueIndex, java.lang.String st, SeriesMarksPosition aPosition)
           
 void galleryChanged3D(boolean is3D)
           
 boolean getCenteredPoints()
          Controls how "X" and "Z" values will be considered.
 java.lang.String getDescription()
          Gets descriptive text
 java.awt.Image getImage()
          Use this property to display a bitmap within a ColorGrid.
 double getMaxXValue()
          The Maximum Value of the Series X Values List.
 double getMaxYValue()
          The Maximum Value of the Series Y Values List.
 double getMinXValue()
          The Minimum Value of the Series X Values List.
 double getMinYValue()
          The Minimum Value of the Series Y Values List.
protected  double getXStep()
           
protected  double getZStep()
           
 double maxZValue()
           
 double minZValue()
           
 void setCenteredPoints(boolean value)
          Controls how "X" and "Z" values will be considered.
 void setSubGallery(int index)
          Creates and prepares the index'th Series style to show at sub-gallery dialog.
 
Methods inherited from class com.steema.teechart.styles.Custom3DGrid
addSampleValues, canCreateValues, clear, createValues, doBeforeDrawChart, doGetYValue, existFourGridIndex, fillGridIndex, getIndex, getIrregularGrid, getNumXValues, getNumZValues, isValidSeriesSource, numSampleValues, reCreateValues, removeYCalculator, setIndex, setIrregularGrid, setNumXValues, setNumZValues, setYCalculator
 
Methods inherited from class com.steema.teechart.styles.Custom3DPalette
addPalette, clearPalette, createDefaultPalette, drawLegendShape, getBlueFactor, getBrush, getCountLegendItems, getEndColor, getGreenFactor, getLegendString, getMidColor, getPalette, getPaletteMin, getPaletteRange, getPaletteStep, getPaletteSteps, getPaletteStyle, getPen, getRedFactor, getStartColor, getUseColorRange, getUsePalette, getUsePaletteMin, getValueColor, getValueColorValue, legendItemColor, prepareForGallery, readResolve, removeColorResolver, setBlueFactor, setChart, setColorResolver, setEndColor, setGreenFactor, setMidColor, setPaletteMin, setPaletteRange, setPaletteStep, setPaletteSteps, setPaletteStyle, setRainbowPalette, setRedFactor, setStartColor, setUseColorRange, setUsePalette, setUsePaletteMin
 
Methods inherited from class com.steema.teechart.styles.Custom3D
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, addChartValue, added, addNull, addNullXY, addSeriesMouseListener, addSeriesPaintListener, addValues, assign, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPosValue, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clearLists, clicked, clicked, clone, cloneSeries, convertArray, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawLegend, drawLegend, drawMarks, drawSeries, drawSeriesForward, drawValue, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDepth, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getMandatory, getMarks, getMarkText, getMarkValue, getMiddleZ, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasDataSource, hasListenersOf, hasNoMandatoryValues, isNull, isValidSeriesSource, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, onDisposing, paintLegend, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setActive, setColor, setColorEach, setColorMember, setColors, setCursor, setCustomHorizAxis, setCustomHorizAxis, setCustomVertAxis, setCustomVertAxis, setDataSource, setDepth, setEndZ, setFunction, setHorizontal, setHorizontalAxis, setLabelMember, setLabels, setMarks, setMarkTextResolver, setMiddleZ, 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, 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

ColorGrid

public ColorGrid(IBaseChart c)

ColorGrid

public ColorGrid()
Method Detail

createSubGallery

public void createSubGallery(Gallery addSubChart)
Overrides:
createSubGallery in class Custom3DPalette

setSubGallery

public void setSubGallery(int index)
Description copied from class: Series
Creates and prepares the index'th Series style to show at sub-gallery dialog.

Specified by:
setSubGallery in interface ISeries
Overrides:
setSubGallery in class Custom3DPalette
Parameters:
index - int

getDescription

public java.lang.String getDescription()
Gets descriptive text

Overrides:
getDescription in class Series
Returns:
String

getCenteredPoints

public boolean getCenteredPoints()
Controls how "X" and "Z" values will be considered.
When CenteredPoints is true, X and Z values determine the center point of each grid cell.
When false, the X and Z values define the "corner" values of grid cells. Thus, when CenteredPoints is false, there will be one less column and one less row of grid cells.
Default value: false

Returns:
boolean

setCenteredPoints

public void setCenteredPoints(boolean value)
Controls how "X" and "Z" values will be considered.
Default value: false

Parameters:
value - boolean
See Also:
getCenteredPoints()

getImage

public java.awt.Image getImage()
Use this property to display a bitmap within a ColorGrid.
Example
This sample shows how to use the ColorGrid.Bitmap property:

private void SetFlower() {
InputStream ms = new InputStream();
Image flower = pictureBox1.Image;
flower.Save(ms, ImageFormat.Jpeg);
Bitmap bm = new Bitmap(ms);
colorGrid1.Bitmap = bm;

Returns:
Image

getZStep

protected double getZStep()

getXStep

protected double getXStep()

draw

protected void draw()
Overrides:
draw in class Series

drawMark

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

galleryChanged3D

public void galleryChanged3D(boolean is3D)
Overrides:
galleryChanged3D in class Custom3DPalette

getMinXValue

public double getMinXValue()
Description copied from class: Series
The Minimum Value of the Series X Values List.

Overrides:
getMinXValue in class Series
Returns:
double

getMaxXValue

public double getMaxXValue()
The Maximum Value of the Series X Values List.

Overrides:
getMaxXValue in class Series
Returns:
double

getMaxYValue

public double getMaxYValue()
The Maximum Value of the Series Y Values List.

Overrides:
getMaxYValue in class Series
Returns:
double

getMinYValue

public double getMinYValue()
The Minimum Value of the Series Y Values List.

Overrides:
getMinYValue in class Series
Returns:
double

maxZValue

public double maxZValue()

minZValue

public double minZValue()