public class ColorGrid extends Custom3DGrid
Title: ColorGrid class
Description: The ColorGrid series displays a grid of color cells.
Example:
series = new ColorGrid(myChart.getChart()); series.getPen().setColor(Color.WHITE); series.setUsePalette(true); series.setPaletteStyle(PaletteStyle.STRONG); eries.setUseColorRange(false);s series.fillSampleValues(20);
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Custom3DGrid.CellsRow, Custom3DGrid.PCellsRow, Custom3DGrid.YCalculator
Custom3DPalette.ColorResolver
Series.MarkTextResolver
FXStartIndex, FZStartIndex, gridIndex, iInGallery, iNextXCell, iNextZCell, iNumXValues, iNumZValues, valueIndex0, valueIndex1, valueIndex2, valueIndex3
bUseColorRange, bUsePalette, iPaletteSteps, sameBrush
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, oldDataSource, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory
chart, InternalUse
Constructor and Description |
---|
ColorGrid() |
ColorGrid(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
void |
assign(Series source)
Copies all properties from one Series component to another.
Only the common properties shared by both source and destination Series are copied. |
double |
calcMinValue(double Value) |
int |
calcXPos(int index)
The pixel Screen Horizontal coordinate of the ValueIndex Series value.
This coordinate is calculated using the Series associated Horizontal Axis. |
int |
calcYPos(int index)
The pixel Screen Vertical coordinate of the ValueIndex Series value.
This coordinate is calculated using the Series associated Vertical Axis. |
int |
clicked(int X,
int Y)
Returns the ValueIndex of the "clicked" point in the Series.
Clicked means the X and Y coordinates are in the point screen region bounds. |
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.
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. |
java.lang.String |
getDescription()
Gets descriptive text
|
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; |
double |
getMaxXValue()
The Maximum Value of the Series X Values List.
|
double |
getMaxYValue()
The Maximum Value of the Series Y Values List.
|
double |
getMaxZValue()
The Maximum Value of the Series Z Values List.
|
double |
getMinXValue()
The Minimum Value of the Series X Values List.
|
double |
getMinYValue()
The Minimum Value of the Series Y Values List.
|
double |
getMinZValue()
The Minimum Value of the Series Z Values List.
|
boolean |
getSmoothBitmap()
Draws the cells in the ColorGrid smoothed or sharp.
Default value: false |
void |
setCenteredPoints(boolean value)
Controls how "X" and "Z" values will be considered.
Default value: false |
void |
setImage(Image bitmap) |
void |
setSmoothBitmap(boolean value)
Draws the cells in the ColorGrid smoothed or sharp.
Default value: false |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery
dialog.
|
addSampleValues, addValues, backFaced, canCreateValues, clear, createValues, doBeforeDrawChart, doGetYValue, existFourGridIndex, fillGridIndex, getIndex, getIrregularGrid, getNumXValues, getNumZValues, isValidSeriesSource, numSampleValues, reCreateValues, removeYCalculator, setIndex, setIrregularGrid, setNumXValues, setNumZValues, setYCalculator
addPalette, calcColorRange, clearPalette, countLegendItems, 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, setRedFactor, setSameBrush, setStartColor, setUseColorRange, setUsePalette, setUsePaletteMin
add, add, add, add, add, add, add, add, add, calcZOrder, calcZPos, getPoint, getTimesZOrder, getZValues, isValidSourceOf, prepareLegendCanvas, setTimesZOrder, valueListOfAxis
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, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPosValue, calcXSizeValue, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clearLists, clicked, clone, cloneSeries, convertArray, createNewSeries, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValue, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getMandatory, getMandatoryAxis, 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, hasClickEvents, hasColors, hasDataSource, hasLabels, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, 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, sortDrawSeries, swapValueIndex, titleOrName, toString, valuesListAdd, xScreenToValue, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
public ColorGrid(IBaseChart c)
public ColorGrid()
public void createSubGallery(Gallery addSubChart)
createSubGallery
in class Custom3DPalette
public void setSubGallery(int index)
Series
setSubGallery
in interface ISeries
setSubGallery
in class Custom3DPalette
index
- intpublic void assign(Series source)
Series
public java.lang.String getDescription()
getDescription
in class Series
public double calcMinValue(double Value)
public int calcYPos(int index)
Series
public int calcXPos(int index)
Series
public int clicked(int X, int Y)
Series
public boolean getCenteredPoints()
public void setCenteredPoints(boolean value)
value
- booleangetCenteredPoints()
public Image getImage()
public void setImage(Image bitmap)
protected void drawMark(int valueIndex, java.lang.String st, SeriesMarksPosition aPosition)
public void galleryChanged3D(boolean is3D)
galleryChanged3D
in class Custom3DPalette
public double getMinXValue()
Series
getMinXValue
in class Series
public double getMaxXValue()
getMaxXValue
in class Series
public double getMaxYValue()
getMaxYValue
in class Series
public double getMinYValue()
getMinYValue
in class Series
public double getMaxZValue()
getMaxZValue
in interface ISeries
getMaxZValue
in class Custom3D
public double getMinZValue()
getMinZValue
in interface ISeries
getMinZValue
in class Custom3D
public boolean getSmoothBitmap()
public void setSmoothBitmap(boolean value)
value
- boolean