public class Custom3DGrid extends Custom3DPalette
Title: Custom3DGrid class
Description: Custom3DGridSeries.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Modifier and Type | Class and Description |
|---|---|
protected class |
Custom3DGrid.CellsRow |
protected class |
Custom3DGrid.PCellsRow |
static interface |
Custom3DGrid.YCalculator |
Custom3DPalette.ColorResolverSeries.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
protected int |
FXStartIndex |
protected int |
FZStartIndex |
protected Custom3DGrid.PCellsRow |
gridIndex |
protected boolean |
iInGallery |
protected int |
iNextXCell |
protected int |
iNextZCell |
protected int |
iNumXValues |
protected int |
iNumZValues |
protected int |
valueIndex0 |
protected int |
valueIndex1 |
protected int |
valueIndex2 |
protected int |
valueIndex3 |
bUseColorRange, bUsePalette, iPaletteSteps, sameBrushAUTODEPTH, 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, yMandatorychart, InternalUse| Constructor and Description |
|---|
Custom3DGrid() |
Custom3DGrid(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSampleValues(int numValues) |
protected void |
addValues(java.util.ArrayList source) |
protected boolean |
backFaced() |
protected boolean |
canCreateValues() |
void |
clear()
Deletes all Series values.
|
void |
createValues(int numX,
int numZ)
Makes a Surface grid of NumX by NumZ dimensions.
For each grid point, the OnGetYValue event is called to allow the user to supply the corresponding Y value. |
void |
doBeforeDrawChart() |
protected double |
doGetYValue(int x,
int z) |
protected boolean |
existFourGridIndex(int x,
int z) |
void |
fillGridIndex() |
int |
getIndex(int x,
int z)
A two dimension array property for the easy access to series cell values.
|
boolean |
getIrregularGrid()
Determine if X and Z values are equi-distant or not.
Default value: false |
int |
getNumXValues()
Determines the Surface's horizontal size in number of points.
A Surface is a grid of NumXValues x NumZValues dimensions. |
int |
getNumZValues()
Determines the Surface's depth size in number of points.
A Surface is a grid of NumXValues x NumZValues dimensions. |
protected boolean |
isValidSeriesSource(ISeries value) |
protected int |
numSampleValues() |
void |
reCreateValues() |
void |
removeYCalculator() |
void |
setIndex(int x,
int z,
int index)
A two dimension array property for the easy access to series cell values.
|
void |
setIrregularGrid(boolean value)
Determines if X and Z values are equi-distant or not.
Default value: false |
void |
setNumXValues(int value)
Determines the Surface's horizontal size in number of points.
Default value: 10 |
void |
setNumZValues(int value)
Determines the Surface's depth size in number of points.
Default value: 10 |
void |
setYCalculator(Custom3DGrid.YCalculator calculator) |
addPalette, calcColorRange, clearPalette, countLegendItems, createDefaultPalette, createSubGallery, drawLegendShape, galleryChanged3D, 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, setSubGallery, setUseColorRange, setUsePalette, setUsePaletteMinadd, add, add, add, add, add, add, add, add, calcZOrder, calcZPos, drawMark, getMaxZValue, getMinZValue, getPoint, getTimesZOrder, getZValues, isValidSourceOf, prepareLegendCanvas, setTimesZOrder, valueListOfAxisadd, 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, assign, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clearLists, clicked, clicked, clone, cloneSeries, convertArray, createNewSeries, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, draw, 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, 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, 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, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidateprotected Custom3DGrid.PCellsRow gridIndex
protected int iNumXValues
protected int iNumZValues
protected boolean iInGallery
protected int valueIndex0
protected int valueIndex1
protected int valueIndex2
protected int valueIndex3
protected int iNextXCell
protected int iNextZCell
protected int FXStartIndex
protected int FZStartIndex
public Custom3DGrid()
public Custom3DGrid(IBaseChart c)
public void setYCalculator(Custom3DGrid.YCalculator calculator)
public void removeYCalculator()
protected double doGetYValue(int x,
int z)
public void clear()
public boolean getIrregularGrid()
public void setIrregularGrid(boolean value)
Example:
series = new com.steema.teechart.styles.Surface(myChart.getChart()); series.getMarks().setVisible(false); series.setIrregularGrid(true); // <---------- VERY IMPORTANT !!! series.getVertAxis().setMinMax(-2,2); // axis scale for Y values series.setUseColorRange(false); series.setUsePalette(true); series.setPaletteStyle(PaletteStyle.STRONG);
value - booleanprotected boolean existFourGridIndex(int x,
int z)
protected boolean backFaced()
protected boolean isValidSeriesSource(ISeries value)
protected void addSampleValues(int numValues)
addSampleValues in class Seriespublic void createValues(int numX,
int numZ)
numX - intnumZ - intprotected boolean canCreateValues()
public int getIndex(int x,
int z)
x - intz - intpublic void setIndex(int x,
int z,
int index)
x - intz - intindex - intpublic void doBeforeDrawChart()
doBeforeDrawChart in class Custom3DPalettepublic void fillGridIndex()
protected int numSampleValues()
numSampleValues in class Seriespublic int getNumXValues()
public void setNumXValues(int value)
value - intpublic int getNumZValues()
public void setNumZValues(int value)
value - intpublic void reCreateValues()