|
||||||||||
| 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
public class Series
Title: Series class
Description: The base class for all TeeChart Series styles.
Copyright (c) 2005-2006 by Steema Software. All Rights Reserved.
Company: Steema Software
| Nested Class Summary | |
|---|---|
static interface |
Series.MarkTextResolver
|
| Field Summary | |
|---|---|
static int |
AUTODEPTH
Constant field for internal use. |
static int |
AUTOZORDER
Constant field for internal use. |
protected boolean |
bActive
|
protected ChartBrush |
bBrush
|
protected boolean |
bColorEach
|
protected boolean |
calcVisiblePoints
|
protected java.lang.String |
colorMember
|
protected Series.MarkTextResolver |
customMarkText
|
protected boolean |
drawBetweenPoints
|
protected int |
endZ
|
protected int |
firstVisible
|
boolean |
hasZValues
Returns true if the series has ZValues. |
protected ColorList |
iColors
|
boolean |
InternalUse
|
protected int |
iNumSampleValues
|
int |
iZOrder
|
protected java.lang.String |
labelMember
|
protected int |
lastVisible
|
protected javax.swing.event.EventListenerList |
listenerList
|
protected ValueList |
mandatory
|
boolean |
manualData
|
protected SeriesMarks |
marks
|
protected int |
middleZ
|
protected ValueList |
notMandatory
|
protected java.text.DecimalFormat |
percentDecimal
|
protected java.lang.String |
percentFormat
|
protected StringList |
sLabels
|
protected int |
startZ
|
boolean |
useAxis
Returns True when the Series needs axes to display points. |
protected boolean |
useSeriesColor
|
protected java.lang.String |
valueFormat
|
protected ValueList |
vxValues
|
protected ValueList |
vyValues
|
protected boolean |
yMandatory
|
| Fields inherited from class com.steema.teechart.TeeBase |
|---|
chart |
| Constructor Summary | |
|---|---|
protected |
Series(IBaseChart c)
|
| Method Summary | |
|---|---|
int |
add()
Adds a new null (transparent) point. |
void |
add(java.util.ArrayList list)
Adds the collection of objects that implement the IList interface. |
void |
add(java.util.ArrayList xValues,
java.util.ArrayList yValues)
Adds the X and Y arrays. |
int |
add(DateTime x,
DateTime y)
|
int |
add(DateTime x,
double y)
Adds new point with specified DateTime x and Double y values. |
int |
add(DateTime x,
double y,
Color c)
Adds new point with specified DateTime x, Double y values and Color. |
int |
add(DateTime x,
double y,
java.lang.String text)
Adds new point with specified DateTime x, Double y values and Text. |
int |
add(DateTime aDate,
double y,
java.lang.String text,
Color color)
Adds a new Datetime point to a Series, label and color. |
int |
add(double value)
Adds a new point with specified value. |
void |
add(double[] values)
Adds the array of double values. |
int |
add(double value,
Color color)
Adds a new point with specified value and color. |
int |
add(double x,
double y)
Adds a new point with specified x and y values. |
int |
add(double x,
double y,
Color color)
Adds a new point with specified x and y values and color. |
int |
add(double x,
double y,
java.lang.String text)
Adds a new point with specified x,y values and text. |
int |
add(double x,
double y,
java.lang.String text,
Color color)
Adds a new point with specified x,y values, text and color. |
int |
add(double value,
java.lang.String text)
Adds a new point with specified value and text. |
int |
add(double value,
java.lang.String text,
Color color)
Adds a new point with specified value, text and color. |
int |
add(float value)
Adds a new point with specified value. |
void |
add(float[] values)
Adds the array of float values. |
int |
add(int value)
Adds a new point with specified value. |
void |
add(int[] values)
Adds the array of integer values. |
int |
add(java.awt.geom.Point2D.Double p)
Adds the pair of floating point x- and y-pixel coordinates |
void |
add(Series source)
Adds all points in source Series. |
int |
add(java.lang.String text)
Adds a new null point with specified text. |
protected int |
addChartValue(Series source,
int valueIndex)
|
protected void |
added()
|
int |
addNull()
Obsolete. |
int |
addNullXY(double x,
double y)
Obsolete. |
protected void |
addSampleValues(int numValues)
|
void |
addSeriesMouseListener(SeriesMouseListener l)
|
void |
addSeriesPaintListener(SeriesPaintListener l)
|
protected void |
addValues(java.util.ArrayList source)
|
void |
assign(Series source)
Copies all properties from one Series component to another. |
static Series |
assignDispose(Series s,
Series newSeries)
|
void |
assignValues(Series source)
Adds all Values from Source seriesto the current Series. |
boolean |
associatedToAxis(Axis a)
|
void |
beginUpdate()
Recalculates the function just one time, when finished adding points. |
void |
calcFirstLastVisibleIndex()
|
void |
calcHorizMargins(Margins margins)
Returns the number of pixels for horizontal margins |
int |
calcPosValue(double value)
Returns "Value" parameter coordinate position in pixels. |
void |
calcVerticalMargins(Margins margins)
Returns the number of pixels for vertical margins |
int |
calcXPos(int index)
The pixel Screen Horizontal coordinate of the ValueIndex Series value. |
int |
calcXPosValue(double value)
The pixel Screen Horizontal coordinate of the specified Value. |
int |
calcXSizeValue(double value)
Returns the size in pixels corresponding to value parameter in horizontal axis scales. |
int |
calcYPos(int index)
The pixel Screen Vertical coordinate of the ValueIndex Series value. |
int |
calcYPosValue(double value)
The pixel Screen Vertical coordinate of the specified Value. |
int |
calcYSizeValue(double value)
Returns the size in pixels corresponding to value parameter in vertical axis scales. |
void |
calcZOrder()
|
protected boolean |
canAddRandomPoints()
|
static Series |
changeType(Series s,
java.lang.Class newType)
Replaces ASeries object with a new Series object of another class. |
void |
checkDataSource()
Refreshes all Series point values, either from database Tables or Series points. |
MouseClicked |
checkMouse(java.awt.Cursor c,
int x,
int y)
|
void |
checkOrder()
Reorders points according to Order property of X,Y,etc value lists. |
void |
checkOtherSeries(Series dest)
|
void |
clear()
Removes all points, texts and Colors from the Series. |
protected void |
clearLists()
|
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series. |
int |
clicked(java.awt.Point p)
|
java.lang.Object |
clone()
|
Series |
cloneSeries()
Returns a new Series, copy of this original. |
protected double[] |
convertArray(java.util.ArrayList a,
int numPoints)
|
static Series |
createNewSeries(IBaseChart chart,
java.lang.Class type,
java.lang.Class aFunction)
Creates a new Series object and sets the Name, Chart and Function methods. |
static Series |
createNewSeries(IBaseChart chart,
java.lang.Class type,
java.lang.Class aFunction,
int subIndex)
Creates a new Series object and sets the Name, Chart, Sub-Style and Function methods. |
void |
createSubGallery(Gallery addSubChart)
|
java.util.ArrayList |
dataSourceArray()
|
void |
delete(int index)
Removes the index th point. |
void |
delete(int index,
int count)
|
void |
delete(int index,
int count,
boolean removeGap)
Removes count number of points starting at index. |
void |
dispose()
|
protected void |
doAfterDrawValues()
|
void |
doBeforeDrawChart()
|
protected void |
doBeforeDrawValues()
|
void |
doClick(int valueIndex,
java.awt.event.MouseEvent e)
|
protected void |
doClickPointer(int valueIndex,
int x,
int y)
|
void |
doDoubleClick(int valueIndex,
java.awt.event.MouseEvent e)
|
protected void |
draw()
|
protected void |
drawLegend(IGraphics3D g,
int valueIndex,
Rectangle rect)
|
void |
drawLegend(int valueIndex,
Rectangle rect)
|
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
|
protected void |
drawMark(int valueIndex,
java.lang.String st,
SeriesMarksPosition aPosition)
|
void |
drawMarks()
|
void |
drawSeries()
Draws the series to the Chart Canvas. |
protected boolean |
drawSeriesForward(int valueIndex)
|
void |
drawValue(int index)
Called internally. |
boolean |
drawValuesForward()
Returns whether Series draws its points in ascending/descending order. |
void |
endUpdate()
Recalculates the function just one time, when finished adding points. |
void |
fillSampleValues()
Adds random values to help visualize the Series. |
void |
fillSampleValues(int numValues)
Adds the specified NumValues random points. |
protected void |
fireSeriesMouseEvent(SeriesMouseEvent se)
|
protected void |
fireSeriesPaint(ChartDrawEvent e)
|
void |
galleryChanged3D(boolean is3D)
|
boolean |
getActive()
Shows or hides this series. |
boolean |
getAllowSinglePoint()
|
java.net.URL |
getBitmapEditor()
Returns the URL of the associated bitmap icon for a given Series class. |
Color |
getColor()
Default color for all points. |
boolean |
getColorEach()
Draws points with different preset Colors. |
java.lang.String |
getColorMember()
The the Datasource Color Field. |
ColorList |
getColors()
Accesses the stored Color Array, if created, for the Series. |
int |
getCount()
Returns the number of points in the Series. |
int |
getCountLegendItems()
|
java.awt.Cursor |
getCursor()
Cursor displayed when mouse is over a series point. |
Axis |
getCustomHorizAxis()
Specifies the custom horizontal axis for the series. |
Axis |
getCustomVertAxis()
Specifies the custom vertical axis for the series. |
java.lang.Object |
getDataSource()
Object to load data from. |
int |
getDepth()
The Depth of the series points or interconnecting lines. |
java.lang.String |
getDescription()
Gets descriptive text. |
int |
getEndZ()
For internal use. |
protected int |
getFields(ValueList otherList)
|
int |
getFirstVisible()
Returns the index of the Series' first visible point. |
Function |
getFunction()
Function object to calculate values. |
boolean |
getHasZValues()
|
Axis |
getHorizAxis()
|
HorizontalAxis |
getHorizontalAxis()
Horizontal axis associated to this Series. |
java.lang.String |
getLabelMember()
The the Datasource Label Field. |
StringList |
getLabels()
Accesses a list of series point labels. |
int |
getLastVisible()
Returns the index of the Series' last visible point. |
java.lang.String |
getLegendString(int legendIndex,
LegendTextStyle legendTextStyle)
Returns the formatted String corresponding to the LegendIndex point. |
ValueList |
getMandatory()
|
SeriesMarks |
getMarks()
Defines how to draw a mark near to each Series point. |
java.lang.String |
getMarkText(int valueIndex)
Returns the String corresponding to the Series Mark text for a given ValueIndex point. |
double |
getMarkValue(int valueIndex)
Returns corresponding Point value suitable for displaying at Series Marks. |
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 Z Value. |
int |
getMiddleZ()
For internal use. |
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 Z Value. |
ValueList |
getNotMandatory()
|
int |
getNumGallerySeries()
For internal use. |
int |
getNumSampleValues()
|
double |
getOriginValue(int valueIndex)
|
java.lang.String |
getPercentFormat()
The Format to display point values as percentage. |
SeriesXYPoint |
getPoint(int index)
Point characteristics. |
protected Color |
getSeriesColor()
Obsolete. |
boolean |
getShowInLegend()
Displays this Series Title in Legend. |
int |
getStartZ()
For internal use. |
java.lang.String |
getTitle()
Series description to show in Legend and dialogs. |
boolean |
getUseAxis()
|
Color |
getValueColor(int valueIndex)
The colour of the index point. |
java.lang.String |
getValueFormat()
Determines the Format to display point values. |
Swapper |
getValueIndexSwapper()
|
ValueList |
getValueList(int index)
|
ValueList |
getValueList(java.lang.String name)
|
java.lang.String |
getValueMarkText(int index)
Returns the String representation of a Index point used to draw the Mark. |
ValuesLists |
getValuesLists()
Returns the steema.teechart.styles.ValuesLists object of the series. |
Axis |
getVertAxis()
|
VerticalAxis |
getVerticalAxis()
Determines Vertical axis associated to this Series. |
boolean |
getVisible()
Returns if this series is Visible. |
ValueList |
getXValues()
Values defining horizontal point positions. |
boolean |
getYMandatory()
Returns whether or not this Series has Y values as mandatory. |
ValueList |
getYValueList(java.lang.String aListName)
Returns the value list that the AListName parameter has. |
ValueList |
getYValues()
Values defining vertical point positions. |
int |
getZOrder()
Determines where on the depth axis the Series is drawn. |
boolean |
hasDataSource(java.lang.Object source)
|
protected boolean |
hasListenersOf(java.lang.Class listener)
|
boolean |
hasNoMandatoryValues()
|
boolean |
isNull(int index)
Returns true if the index th point in the Series is "null" or "empty". |
protected boolean |
isValidSeriesSource(Series value)
|
boolean |
isValidSourceOf(Series value)
Validates Series datasource. |
Color |
legendItemColor(int index)
|
int |
legendToValueIndex(int legendIndex)
|
int |
maxMarkWidth()
Returns the length in pixels of the longest Mark text. |
protected boolean |
moreSameZOrder()
Returns true if there are more series that share the same Z order. |
java.awt.Cursor |
mouseEvent(java.awt.event.MouseEvent e,
java.awt.Cursor c)
|
static Series |
newFromType(java.lang.Class type)
Creates a new series from the Class type of an existing series object. |
protected int |
numSampleValues()
|
void |
onDisposing()
|
protected void |
paintLegend(java.awt.Graphics g,
Rectangle r)
Draws the Series "Legend" on the specified rectangle and Graphics. |
void |
prepareForGallery(boolean isEnabled)
|
protected void |
prepareLegendCanvas(IGraphics3D g,
int valueIndex,
Color backColor,
ChartBrush aBrush)
|
protected SeriesRandom |
randomBounds(int numValues)
|
protected java.lang.Object |
readResolve()
|
protected void |
recalcGetAxis()
|
void |
refreshSeries()
Recalculates all dependent Series points again. |
void |
removeMarkTextResolver()
|
void |
removeSeriesMouseListener(SeriesMouseListener l)
|
void |
removeSeriesPaintListener(SeriesPaintListener l)
|
void |
repaint()
Forces the Chart to Repaint. |
protected boolean |
sameClass(ISeries s)
Returns True when the tmpSeries parameter is of the same class. |
void |
setActive(boolean value)
Shows or hides this series. |
void |
setChart(IBaseChart value)
Chart associated with this object. |
void |
setColor(Color value)
Default color for all points. |
void |
setColorEach(boolean value)
|
void |
setColorMember(java.lang.String value)
Sets the Datasource Color Field. |
void |
setColors(ColorList value)
Accesses the stored Color Array, if created, for the Series. |
void |
setCursor(java.awt.Cursor value)
Cursor displayed when mouse is over a series point. |
void |
setCustomHorizAxis(Axis value)
Specifies the custom horizontal axis for the series. |
void |
setCustomHorizAxis(int value)
Specifies the custom horizontal axis for the series. |
void |
setCustomVertAxis(Axis value)
Specifies the custom vertical axis for the series. |
void |
setCustomVertAxis(int value)
Specifies the custom vertical axis for the series. |
void |
setDataSource(java.lang.Object value)
Object to load data from. |
void |
setDepth(int value)
Sets the Depth of the series points or interconnecting lines. |
void |
setEndZ(int value)
|
void |
setFunction(Function value)
|
protected void |
setHorizontal()
|
void |
setHorizontalAxis(HorizontalAxis value)
Stes the Horizontal axis associated to this Series. |
void |
setLabelMember(java.lang.String value)
Sets the Datasource Label Field. |
void |
setLabels(StringList value)
Accesses a list of series point labels. |
void |
setMarks(SeriesMarks value)
|
void |
setMarkTextResolver(Series.MarkTextResolver resolver)
|
void |
setMiddleZ(int value)
|
void |
setNull(int valueIndex)
Sets the specified series point to a null (transparent) point. |
void |
setPercentFormat(java.lang.String value)
Sets the Format to display point values as percentage. |
protected void |
setSeriesColor(Color value)
Obsolete. |
void |
setShowInLegend(boolean value)
Displays this Series Title in Legend. |
void |
setStartZ(int value)
|
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery dialog. |
void |
setTitle(java.lang.String value)
Series description to show in Legend and dialogs. |
void |
setValueFormat(java.lang.String value)
Determines the Format to display point values. |
protected void |
setValueList(ValueList l,
ValueList value)
|
void |
setVerticalAxis(VerticalAxis value)
Determines Vertical axis associated to this Series. |
void |
setVisible(boolean value)
Shows or hides this series. |
void |
setXValues(ValueList value)
|
void |
setYValues(ValueList value)
|
void |
setZOrder(int value)
Determines where on the depth axis the Series is drawn. |
void |
setZPositions()
|
void |
sortByLabels()
|
void |
sortByLabels(ValueListOrder order)
Sorts all points in the series using the Labels (texts) list. |
protected void |
swapValueIndex(int a,
int b)
Exchanges one point with another. |
java.lang.String |
titleOrName()
Obsolete. |
java.lang.String |
toString()
Overridden ToString() method. |
void |
valuesListAdd(ValueList value)
|
double |
xScreenToValue(int screenPos)
Returns the corresponding X value of a Screen position between Axis limits. |
double |
yScreenToValue(int screenPos)
Returns the corresponding Y value of a Screen position between Axis limits. |
| 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 |
| Field Detail |
|---|
public static final int AUTODEPTH
public static final int AUTOZORDER
protected transient javax.swing.event.EventListenerList listenerList
protected transient Series.MarkTextResolver customMarkText
protected ChartBrush bBrush
protected boolean bActive
protected ValueList vxValues
protected ValueList vyValues
protected StringList sLabels
protected ColorList iColors
protected boolean bColorEach
public boolean InternalUse
public transient int iZOrder
protected transient ValueList mandatory
protected transient ValueList notMandatory
public boolean manualData
protected SeriesMarks marks
protected transient int startZ
protected transient int middleZ
protected transient int endZ
protected transient boolean drawBetweenPoints
protected transient boolean yMandatory
public transient boolean useAxis
protected transient boolean useSeriesColor
protected transient boolean calcVisiblePoints
protected java.lang.String valueFormat
protected java.lang.String labelMember
protected java.lang.String colorMember
protected java.lang.String percentFormat
protected transient java.text.DecimalFormat percentDecimal
public transient boolean hasZValues
protected transient int firstVisible
protected transient int lastVisible
protected transient int iNumSampleValues
| Constructor Detail |
|---|
protected Series(IBaseChart c)
| Method Detail |
|---|
public void setMarkTextResolver(Series.MarkTextResolver resolver)
public void removeMarkTextResolver()
public void addSeriesPaintListener(SeriesPaintListener l)
public void removeSeriesPaintListener(SeriesPaintListener l)
protected void fireSeriesPaint(ChartDrawEvent e)
public void addSeriesMouseListener(SeriesMouseListener l)
public void removeSeriesMouseListener(SeriesMouseListener l)
protected void fireSeriesMouseEvent(SeriesMouseEvent se)
protected void doClickPointer(int valueIndex,
int x,
int y)
protected boolean hasListenersOf(java.lang.Class listener)
public Axis getHorizAxis()
getHorizAxis in interface ISeriespublic Axis getVertAxis()
getVertAxis in interface ISeriespublic ValueList getNotMandatory()
getNotMandatory in interface ISeriespublic ValueList getMandatory()
getMandatory in interface ISeriespublic void dispose()
dispose in interface ISeries
public static Series newFromType(java.lang.Class type)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
type - Class
java.lang.InstantiationException
java.lang.IllegalAccessExceptionprotected java.lang.Object readResolve()
public static Series createNewSeries(IBaseChart chart,
java.lang.Class type,
java.lang.Class aFunction,
int subIndex)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
chart - IBaseCharttype - ClassaFunction - ClasssubIndex - int
java.lang.InstantiationException
java.lang.IllegalAccessException
public static Series createNewSeries(IBaseChart chart,
java.lang.Class type,
java.lang.Class aFunction)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
chart - IBaseCharttype - ClassaFunction - Class
java.lang.InstantiationException
java.lang.IllegalAccessExceptionprotected void doBeforeDrawValues()
protected void doAfterDrawValues()
public void calcZOrder()
public ColorList getColors()
getColorEach()public void setColors(ColorList value)
value - ColorListgetColors()public SeriesXYPoint getPoint(int index)
index - int
public ValueList getXValues()
getXValues in interface ISeriespublic void setXValues(ValueList value)
public ValueList getYValues()
getYValues in interface ISeriespublic void setYValues(ValueList value)
public void assign(Series source)
source - Seriespublic boolean getAllowSinglePoint()
getAllowSinglePoint in interface ISeries
public static Series assignDispose(Series s,
Series newSeries)
public static Series changeType(Series s,
java.lang.Class newType)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
s - SeriesnewType - Class
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic ValuesLists getValuesLists()
ValuesListspublic void valuesListAdd(ValueList value)
valuesListAdd in interface ISeriespublic boolean hasNoMandatoryValues()
public java.net.URL getBitmapEditor()
public ValueList getYValueList(java.lang.String aListName)
aListName - String
public Axis getCustomHorizAxis()
public void setCustomHorizAxis(Axis value)
value - Axispublic void setCustomHorizAxis(int value)
value - intpublic Axis getCustomVertAxis()
public void setCustomVertAxis(int value)
value - intpublic void setCustomVertAxis(Axis value)
value - Axispublic StringList getLabels()
getLabels in interface ISeriespublic void setLabels(StringList value)
value - StringListpublic java.lang.String getLabelMember()
public void setLabelMember(java.lang.String value)
value - Stringpublic java.lang.String getColorMember()
public void setColorMember(java.lang.String value)
value - Stringpublic void calcHorizMargins(Margins margins)
margins - Marginspublic void calcVerticalMargins(Margins margins)
margins - Marginspublic void galleryChanged3D(boolean is3D)
protected void paintLegend(java.awt.Graphics g,
Rectangle r)
g - Graphicsr - Rectanglepublic boolean getUseAxis()
getUseAxis in interface ISeriespublic boolean associatedToAxis(Axis a)
associatedToAxis in interface ISeriespublic Series cloneSeries()
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic java.lang.Object clone()
clone in class java.lang.Objectpublic void assignValues(Series source)
source - Series
protected int addChartValue(Series source,
int valueIndex)
public java.awt.Cursor mouseEvent(java.awt.event.MouseEvent e,
java.awt.Cursor c)
public void refreshSeries()
public void beginUpdate()
public void endUpdate()
protected void addValues(java.util.ArrayList source)
public void setColorEach(boolean value)
public java.util.ArrayList dataSourceArray()
dataSourceArray in interface ISeriespublic boolean hasDataSource(java.lang.Object source)
hasDataSource in interface ISeries
public void doDoubleClick(int valueIndex,
java.awt.event.MouseEvent e)
public void doClick(int valueIndex,
java.awt.event.MouseEvent e)
public boolean getColorEach()
getColorEach in interface ISeriespublic int getCountLegendItems()
getCountLegendItems in interface ISeriespublic int getNumGallerySeries()
public java.lang.String getDescription()
public boolean getVisible()
public void setVisible(boolean value)
value - booleanpublic double xScreenToValue(int screenPos)
screenPos - int
public double yScreenToValue(int screenPos)
screenPos - int
public void prepareForGallery(boolean isEnabled)
protected void prepareLegendCanvas(IGraphics3D g,
int valueIndex,
Color backColor,
ChartBrush aBrush)
protected void drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
public Color legendItemColor(int index)
legendItemColor in interface ISeries
public void drawLegend(int valueIndex,
Rectangle rect)
drawLegend in interface ISeries
protected void drawLegend(IGraphics3D g,
int valueIndex,
Rectangle rect)
public void calcFirstLastVisibleIndex()
calcFirstLastVisibleIndex in interface ISeriespublic int maxMarkWidth()
public double getMarkValue(int valueIndex)
getMarkValue in interface ISeriesvalueIndex - int
public java.lang.String getMarkText(int valueIndex)
getMarkText in interface ISeriesvalueIndex - int
public java.lang.String getValueMarkText(int index)
getValueMarkText in interface ISeriesindex - int
public void repaint()
protected boolean sameClass(ISeries s)
s - ISeries
public void sortByLabels(ValueListOrder order)
order - ValueListOrderpublic void sortByLabels()
public int getStartZ()
getStartZ in interface ISeriespublic void setStartZ(int value)
public int getMiddleZ()
getMiddleZ in interface ISeriespublic void setMarks(SeriesMarks value)
public void setMiddleZ(int value)
public void setZPositions()
public int getEndZ()
getEndZ in interface ISeriespublic void setEndZ(int value)
public java.lang.String getValueFormat()
getValueFormat in interface ISeriespublic void setValueFormat(java.lang.String value)
value - Stringpublic java.lang.String getPercentFormat()
getValueFormat()public void setPercentFormat(java.lang.String value)
value - Stringpublic HorizontalAxis getHorizontalAxis()
public void setHorizontalAxis(HorizontalAxis value)
value - HorizontalAxispublic VerticalAxis getVerticalAxis()
public void setVerticalAxis(VerticalAxis value)
value - VerticalAxispublic int calcPosValue(double value)
value - double
public int calcXPos(int index)
index - int
public int calcXPosValue(double value)
value - double
public int calcYPos(int index)
index - int
public int calcYPosValue(double value)
value - double
public double getOriginValue(int valueIndex)
getOriginValue in interface ISeries
protected void drawMark(int valueIndex,
java.lang.String st,
SeriesMarksPosition aPosition)
public Color getValueColor(int valueIndex)
getValueColor in interface ISeriesvalueIndex - int
public void drawMarks()
drawMarks in interface ISeriesprotected boolean drawSeriesForward(int valueIndex)
public boolean getHasZValues()
getHasZValues in interface ISeriesprotected boolean moreSameZOrder()
protected void draw()
public void doBeforeDrawChart()
public void drawSeries()
protected void setSeriesColor(Color value)
value - Color#Colorprotected boolean canAddRandomPoints()
public java.lang.Object getDataSource()
getDataSource in interface ISeriespublic void setDataSource(java.lang.Object value)
setDataSource in interface ISeriesvalue - Objectpublic void add(java.util.ArrayList list)
list - ArrayListpublic ValueList getValueList(int index)
public ValueList getValueList(java.lang.String name)
getValueList in interface ISeriesprotected int getFields(ValueList otherList)
public void checkOtherSeries(Series dest)
throws ChartException
ChartExceptionpublic void checkDataSource()
checkDataSource in interface ISeriesprotected void recalcGetAxis()
protected void added()
protected Color getSeriesColor()
steema.teechart.styles.Series.Colorpublic Color getColor()
getColor in interface ISeriesgetColorEach()public void setColor(Color value)
value - ColorgetColorEach()public boolean getActive()
getActive in interface ISeriespublic void setActive(boolean value)
setActive in interface ISeriesvalue - boolean
protected void swapValueIndex(int a,
int b)
a - int index of first point to exchange.b - int index of second point to exchange.public Swapper getValueIndexSwapper()
getValueIndexSwapper in interface ISeriespublic java.lang.String getTitle()
public void setTitle(java.lang.String value)
value - Stringpublic void onDisposing()
onDisposing in interface ISeriespublic void setChart(IBaseChart value)
TeeBase
setChart in interface ISeriessetChart in class TeeBasevalue - IBaseChartprotected void setHorizontal()
public int add(DateTime x,
double y)
x - DateTimey - double
ValueList
public int add(DateTime x,
DateTime y)
x - DateTimey - DateTime
ValueList
public int add(DateTime x,
double y,
Color c)
x - DateTimey - doublec - Color
ValueList
public int add(DateTime x,
double y,
java.lang.String text)
x - DateTimey - doubletext - String
ValueList
public int addNullXY(double x,
double y)
x - doubley - double
public int addNull()
public int add()
public int add(int value)
value - int
public int add(double value)
add in interface ISeriesvalue - double
public int add(float value)
value - float
public int add(double value,
java.lang.String text)
value - doubletext - String
public int add(double x,
double y)
add in interface ISeriesx - doubley - double
public int add(java.awt.geom.Point2D.Double p)
p - Double
public int add(double x,
double y,
java.lang.String text)
add in interface ISeriesx - doubley - doubletext - String
public int add(double x,
double y,
java.lang.String text,
Color color)
x - doubley - doubletext - Stringcolor - Color
public int add(DateTime aDate,
double y,
java.lang.String text,
Color color)
aDate - DateTime datetime valuey - doubletext - String point textcolor - Color
public int add(double x,
double y,
Color color)
x - doubley - doublecolor - Color
public int add(double value,
java.lang.String text,
Color color)
value - doubletext - Stringcolor - Color
public int add(double value,
Color color)
value - doublecolor - Color
public int add(java.lang.String text)
text - String
public void add(Series source)
source - Series
protected double[] convertArray(java.util.ArrayList a,
int numPoints)
public void add(java.util.ArrayList xValues,
java.util.ArrayList yValues)
xValues - ArrayListyValues - ArrayListpublic void add(double[] values)
values - double[]public void add(float[] values)
values - float[]public void add(int[] values)
values - int[]
public MouseClicked checkMouse(java.awt.Cursor c,
int x,
int y)
public void checkOrder()
public void clear()
clear in interface ISeriesprotected void clearLists()
public int clicked(java.awt.Point p)
public int clicked(int x,
int y)
clicked in interface ISeriesx - inty - int
public int getCount()
getCount in interface ISeriespublic void delete(int index)
index - int
public void delete(int index,
int count,
boolean removeGap)
index - intcount - intremoveGap - boolean
public void delete(int index,
int count)
protected SeriesRandom randomBounds(int numValues)
public int getNumSampleValues()
protected int numSampleValues()
protected void addSampleValues(int numValues)
public void fillSampleValues()
public void fillSampleValues(int numValues)
numValues - int the number of sample values to add.public boolean isNull(int index)
isNull in interface ISeriesindex - int the point index.
public boolean isValidSourceOf(Series value)
value - Series the series to validate.
protected boolean isValidSeriesSource(Series value)
public Function getFunction()
public void setFunction(Function value)
setFunction in interface ISeriespublic int getDepth()
public void setDepth(int value)
value - intpublic int getZOrder()
getZOrder in interface ISeriespublic void setZOrder(int value)
value - intpublic boolean getShowInLegend()
getShowInLegend in interface ISeriespublic void setShowInLegend(boolean value)
value - booleanpublic int getFirstVisible()
getFirstVisible in interface ISeriespublic int getLastVisible()
getLastVisible in interface ISeriespublic java.awt.Cursor getCursor()
public void setCursor(java.awt.Cursor value)
value - Cursorpublic SeriesMarks getMarks()
getMarks in interface ISeriespublic boolean drawValuesForward()
public void drawValue(int index)
drawValue in interface ISeriesindex - intpublic int legendToValueIndex(int legendIndex)
legendToValueIndex in interface ISeriespublic void setNull(int valueIndex)
valueIndex - intpublic void createSubGallery(Gallery addSubChart)
public void setSubGallery(int index)
setSubGallery in interface ISeriesindex - int
protected void setValueList(ValueList l,
ValueList value)
public int calcXSizeValue(double value)
value - double
public int calcYSizeValue(double value)
value - double
public java.lang.String toString()
toString in class java.lang.ObjectgetTitle()public java.lang.String titleOrName()
public java.lang.String getLegendString(int legendIndex,
LegendTextStyle legendTextStyle)
getLegendString in interface ISerieslegendIndex - intlegendTextStyle - LegendTextStyle
public double getMaxXValue()
public double getMaxYValue()
public double getMinXValue()
public double getMinYValue()
public double getMaxZValue()
getMaxZValue in interface ISeriespublic double getMinZValue()
getMinZValue in interface ISeriespublic boolean getYMandatory()
getYMandatory in interface ISeries
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||