public class Bubble extends Points
Title: class
Description: Bubble Series.
Example:
bubbleSeries = new com.steema.teechart.styles.Bubble(myChart.getChart());
bubbleSeries.getXValues().setDateTime(true);
bubbleSeries.getRadiusValues().setDateTime(false);
bubbleSeries.getRadiusValues().setName("Radius");
bubbleSeries.getRadiusValues().setOrder(ValueListOrder.NONE);
bubbleSeries.setHorizontalAxis(HorizontalAxis.TOP);
bubbleSeries.getMarks().setArrowLength(0);
bubbleSeries.getMarks().setClip(true);
bubbleSeries.getMarks().getFont().setColor(Color.WHITE);
bubbleSeries.getMarks().getFont().setSize(16);
bubbleSeries.getMarks().getFont().setItalic(true);
bubbleSeries.getMarks().getFrame().setVisible(false);
bubbleSeries.getMarks().setTransparent(true);
bubbleSeries.getMarks().setVisible(false);
bubbleSeries.getPointer().setHorizSize(14);
bubbleSeries.getPointer().setVertSize(14);
bubbleSeries.getPointer().setInflateMargins(false);
bubbleSeries.setVisible(true);
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
protected ChartPen |
linePen |
protected boolean |
treatNans |
protected TreatNullsStyle |
treatnulls |
iStacked, pointAUTODEPTH, 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 |
|---|
Bubble() |
Bubble(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double[] xValues,
double[] yValues,
boolean append) |
int |
add(double x,
double y)
Adds a new point with specified x and y values.
|
int |
add(double x,
double y,
double radius)
Adds a new Bubble point to the Series Points List.
The Bubble point is assigned to be at AX, AY coordinates and has ARadius parameter. |
int |
add(double x,
double y,
double radius,
Color color)
Adds a new Bubble point to the Series Points List and color.
The Bubble point is assigned to be at AX, AY coordinates and have ARadius and Color parameters. |
int |
add(double x,
double y,
double radius,
java.lang.String text)
Adds a new Bubble point to the Series Points List and label.
The Bubble point is assigned to be at AX, AY coordinates and have ARadius and Label parameters. |
int |
add(double x,
double y,
double radius,
java.lang.String text,
Color color)
Adds a new Bubble point to the Series Points List, label and color.
The Bubble point is assigned to be at AX, AY coordinates and have ARadius, Label and Color parameters. |
protected void |
addSampleValues(int numValues) |
protected double |
calcMinMaxValue(boolean isMin) |
boolean |
clickedPointer(int valueIndex,
int tmpX,
int tmpY,
int x,
int y)
For internal use
|
protected boolean |
doNotPaintNull() |
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle r) |
void |
drawValue(int valueIndex)
Called internally.
|
boolean |
getColorEach()
Controls which color will be drawn on the bubbles.
If false, all points will be drawn using Series Series.Color. |
java.lang.String |
getDescription()
Gets descriptive text.
|
double |
getMaxYValue()
The Maximum Value of the Series Y Values List.
|
double |
getMaxZValue()
The maximum Z value.
|
double |
getMinYValue()
The Minimum Value of the Series Y Values List.
|
double |
getMinZValue()
The minimum Z value.
|
ValueList |
getRadiusValues()
A TList object that stores each Bubble point Radius value.
You can change Radius values by using the RadiusValues.Value[] array of doubles method |
boolean |
getSquared()
Determines how the Bubble size is calculated.
By default, the horizontal and vertical Bubble sizes are equal to the radius of each bubble. |
boolean |
getTreatNaNAsNull() |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
protected boolean |
IgnoreNull() |
boolean |
isValidSourceOf(ISeries value)
It's used to validate the DataSource property both at design and
run-time.
|
protected int |
numSampleValues() |
void |
setRadiusValues(ValueList value)
A TList object that stores each Bubble point Radius value.
|
void |
setSquared(boolean value)
Determines how the Bubble size is calculated.
Default value: true |
void |
setTreatNaNAsNull(boolean value) |
void |
setTreatNulls(TreatNullsStyle value) |
assign, canDoExtra, createSubGallery, getColor, getLinePen, setColor, setColorEach, setSubGalleryaddSeriesMouseListener, calcHorizMargins, calcVerticalMargins, calcXPos, calcYPos, calcZOrder, clicked, drawMark, drawPointer, getMaxXValue, getMinXValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setChart, setPointerStyleResolver, setStackedadd, 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, addSeriesPaintListener, addValues, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcPercentSt, calcPosValue, calculateMarkPosition, calcXPosValue, calcXSizeValue, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, draw, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getBrush, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMiddleZ, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getPoint, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueColor, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasColors, hasDataSource, hasLabels, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, onDisposing, prepareForGallery, prepareLegendCanvas, randomBounds, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesPaintListener, repaint, sameClass, setActive, 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, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidateprotected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
public Bubble()
public Bubble(IBaseChart c)
public boolean clickedPointer(int valueIndex,
int tmpX,
int tmpY,
int x,
int y)
CustomPointclickedPointer in class CustomPointvalueIndex - inttmpX - inttmpY - intx - inty - intpublic boolean getSquared()
public void setSquared(boolean value)
value - booleanprotected int numSampleValues()
numSampleValues in class Seriesprotected void addSampleValues(int numValues)
addSampleValues in class Seriesprotected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle r)
drawLegendShape in class CustomPointpublic void drawValue(int valueIndex)
drawValue in interface ISeriesdrawValue in class CustomPointvalueIndex - intpublic int add(double x,
double y,
double radius,
Color color)
x - double x coordinate of bubble point.y - double y coordinate of bubble point.radius - doublecolor - Colorpublic int add(double x,
double y,
double radius)
x - double x coordinate of bubble point.y - double y coordinate of bubble point.radius - doublepublic int add(double x,
double y,
double radius,
java.lang.String text)
x - double x coordinate of bubble point.y - double y coordinate of bubble point.radius - doubletext - Stringpublic int add(double x,
double y,
double radius,
java.lang.String text,
Color color)
x - double x coordinate of bubble point.y - double y coordinate of bubble point.radius - doubletext - Stringcolor - Colorpublic boolean isValidSourceOf(ISeries value)
value - ISeriespublic double getMaxYValue()
getMaxYValue in class CustomPointpublic double getMinYValue()
getMinYValue in class CustomPointpublic double getMaxZValue()
getMaxZValue in interface ISeriesgetMaxZValue in class Seriespublic double getMinZValue()
getMinZValue in interface ISeriesgetMinZValue in class Seriespublic ValueList getRadiusValues()
public void setRadiusValues(ValueList value)
value - ValueListpublic boolean getColorEach()
getColorEach in interface ISeriesgetColorEach in class Seriespublic java.lang.String getDescription()
getDescription in class Pointsprotected double calcMinMaxValue(boolean isMin)
public TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
public void add(double[] xValues,
double[] yValues,
boolean append)
public int add(double x,
double y)
Seriesprotected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)