|
||||||||||
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.Histogram
public class Histogram
Title: Histogram class
Description: Histogram Series.
Example:
Histogram series = new Histogram(myChart.getChart()); series.fillSampleValues(10);
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
---|
Series.MarkTextResolver |
Field Summary | |
---|---|
protected ChartPen |
linePen
|
protected int |
previous
|
protected boolean |
treatNans
|
protected TreatNullsStyle |
treatnulls
|
Fields inherited from class com.steema.teechart.styles.Series |
---|
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, 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, InternalUse |
Constructor Summary | |
---|---|
Histogram()
|
|
Histogram(IBaseChart c)
|
Method Summary | |
---|---|
void |
add(double[] xValues,
double[] yValues,
boolean append)
|
int |
add(double x,
double y)
Adds a new point with specified x and y values. |
void |
assign(Series source)
Copies all properties from one Series component to another. |
void |
calcHorizMargins(Margins margins)
Returns the number of pixels for horizontal margins |
protected double |
calcMinMaxValue(boolean isMin)
|
protected Rectangle |
calcRectangle(int valueIndex)
|
void |
calcVerticalMargins(Margins margins)
Returns the number of pixels for vertical margins |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series. |
void |
createSubGallery(Gallery addSubChart)
|
protected boolean |
doNotPaintNull()
|
void |
drawValue(int valueIndex)
Called internally. |
ChartBrush |
getBrush()
Defines the Brush fill for the Histogram series. |
java.lang.String |
getDescription()
Gets descriptive text. |
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points. |
ChartPen |
getLinesPen()
Determines the pen to be used for drawing the line connecting all points. |
int |
getTransparency()
The Transparency level from 0 to 100%. |
boolean |
getTreatNaNAsNull()
|
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated. |
boolean |
getUseYOrigin()
|
int |
getYOrigin()
|
protected boolean |
IgnoreNull()
|
void |
setChart(IBaseChart c)
Chart associated with this object. |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery dialog. |
void |
setTransparency(int value)
Sets Transparency level from 0 to 100%. |
void |
setTreatNaNAsNull(boolean value)
|
void |
setTreatNulls(TreatNullsStyle value)
|
void |
setUseYOrigin(boolean value)
|
void |
setYOrigin(int value)
|
protected int |
visiblePoints()
|
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, 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 transient int previous
protected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
Constructor Detail |
---|
public Histogram()
public Histogram(IBaseChart c)
Method Detail |
---|
public ChartPen getLinesPen()
public ChartBrush getBrush()
getBrush
in class Series
public void setYOrigin(int value)
public int getYOrigin()
public void setChart(IBaseChart c)
TeeBase
setChart
in interface ISeries
c
- IBaseChartpublic int getTransparency()
public void setTransparency(int value)
value
- intprotected int visiblePoints()
public void calcHorizMargins(Margins margins)
Series
calcHorizMargins
in class Series
margins
- Marginspublic void calcVerticalMargins(Margins margins)
Series
calcVerticalMargins
in class Series
margins
- Marginsprotected Rectangle calcRectangle(int valueIndex)
public int clicked(int x, int y)
Series
clicked
in interface ISeries
clicked
in class Series
x
- inty
- int
public void drawValue(int valueIndex)
drawValue
in interface ISeries
drawValue
in class Series
valueIndex
- intpublic boolean getUseYOrigin()
public void setUseYOrigin(boolean value)
public void createSubGallery(Gallery addSubChart)
createSubGallery
in class Series
public void setSubGallery(int index)
Series
setSubGallery
in interface ISeries
setSubGallery
in class Series
index
- intpublic java.lang.String getDescription()
getDescription
in class Series
public void assign(Series source)
Series
assign
in class Series
source
- Seriesprotected double calcMinMaxValue(boolean isMin)
public ChartPen getLinePen()
public TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
public void add(double[] xValues, double[] yValues, boolean append)
add
in class Series
public int add(double x, double y)
Series
add
in interface ISeries
add
in class Series
x
- doubley
- double
protected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |