|
||||||||||
| 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.Chart
public class Chart
Title: Chart class
Description: Chart contents.
Copyright (c) 2005-2006 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Nested Class Summary | |
|---|---|
class |
Chart.ChartToolTip
Title: Tooltips class Description: Tooltips Copyright (c) 2005-2006 by Steema Software SL. |
| Field Summary | |
|---|---|
protected Aspect |
aspect
|
protected Axes |
axes
|
AxisSavedScales |
bottom
|
protected Rectangle |
chartBounds
|
protected Rectangle |
chartRect
|
boolean |
clipWhenMetafiling
|
boolean |
clipWhenPrinting
|
protected IGraphics3D |
graphics3D
|
protected boolean |
iClicked
|
AxisSavedScales |
left
|
protected Legend |
legend
|
protected ChartPen |
legendPen
|
protected int |
maxZOrder
|
protected Page |
page
|
protected IChart |
parent
|
protected boolean |
printing
|
protected boolean |
restoredAxisScales
|
AxisSavedScales |
right
|
protected SeriesCollection |
series
|
protected int |
seriesHeight3D
|
protected int |
seriesWidth3D
|
AxisSavedScales |
top
|
protected Zoom |
zoom
|
| Fields inherited from class com.steema.teechart.TeeBase |
|---|
chart |
| Constructor Summary | |
|---|---|
Chart()
|
|
Chart(IChart parent)
|
|
Chart(IChart parent,
java.awt.Cursor cursor)
|
|
| Method Summary | |
|---|---|
Series |
activeSeriesLegend(int itemIndex)
Returns the Active series (visible) that corresponds to the ItemIndex position in the Legend. |
int |
addSeries(Series value)
|
TeeEvent |
broadcastEvent(Series s,
SeriesEventStyle e)
|
void |
broadcastEvent(TeeEvent event)
|
protected void |
broadcastMouseEvent(java.awt.event.MouseEvent e)
|
protected java.awt.Cursor |
broadcastMouseEvent(java.awt.event.MouseEvent e,
java.awt.Cursor c)
|
protected void |
broadcastToolEvent(ChartDrawEvent ce)
|
boolean |
canClip()
Returns the number of active (visible) series. |
boolean |
canDrawPanelBack()
|
static void |
changeAllSeriesType(Chart chart,
java.lang.Class newClass)
|
static Series |
changeSeriesType(Series series,
java.lang.Class newClass)
|
protected int |
chartRectHeight()
|
protected int |
chartRectWidth()
|
protected void |
checkZoomPanning(java.awt.event.MouseEvent e)
|
java.lang.Object |
clone()
|
int |
countActiveSeries()
Returns the number of active (visible) series. |
void |
doBaseInvalidate()
|
void |
doChangedBrush(ChartBrush value)
|
void |
doChangedFont(ChartFont value)
|
Rectangle |
doDrawLegend(IGraphics3D g,
Rectangle tmp)
|
java.awt.Cursor |
doMouseMove(int x,
int y,
java.awt.Cursor c)
|
void |
doZoom(double topx,
double topy,
double bottomx,
double bottomy,
double leftx,
double lefty,
double rightx,
double righty)
|
void |
doZoom(java.awt.geom.Point2D.Double top,
java.awt.geom.Point2D.Double bot,
java.awt.geom.Point2D.Double lef,
java.awt.geom.Point2D.Double rig)
|
java.lang.String |
formattedLegend(int seriesOrValueIndex)
Returns the text string corresponding to a Legend position. |
java.lang.String |
formattedValueLegend(Series aSeries,
int valueIndex)
Returns the String to display at Legend for a given series and point index. |
Color |
freeSeriesColor(boolean checkBackground)
Returns a color from the default color palette not used by any Series. |
Aspect |
getAspect()
3D view parameters. |
boolean |
getAutoRepaint()
Returns if the Chart should automatically repaint itself when a property has been changed. |
Axes |
getAxes()
Accesses the five axes, Top, Left, Right, Bottom and z depthas well as custom axis objects. |
Series |
getAxisSeries(Axis axis)
Returns the first Series that depends on the specified Axis. |
int |
getBottom()
|
Rectangle |
getChartBounds()
(Read only) Used to get the four sides of the Chart (Left, Top, Right and Bottom) |
Rectangle |
getChartRect()
Returns the rectangle that contains the four main Chart axes. |
protected int |
getChartRectBottom()
|
Exports |
getExport()
Accesses Chart export attributes. |
Series |
getFirstActiveSeries()
Returns first active (visible) series. |
Footer |
getFooter()
Defines the Text and formatting attributes to be drawn at the bottom of the Chart. |
IGraphics3D |
getGraphics3D()
Accesses TeeChart Draw attributes. |
Header |
getHeader()
Defines the Text and formatting attributes to be drawn at the top of the Chart. |
int |
getHeight()
The Chart Height in pixels. |
Imports |
getImport()
Accesses Chart import attributes. |
Series |
getItem(int index)
Default indexer. |
int |
getLeft()
|
Legend |
getLegend()
Determines the Legend characteristics. |
ChartPen |
getLegendPen()
|
TeeEventListeners |
getListeners()
Returns array list of objects that implement the TeeEventListener interface. |
int |
getMaxValuesCount()
|
double |
getMaxXValue(Axis axis)
Returns the Maximum Value of the Series X Values List. |
double |
getMaxYValue(Axis axis)
Returns the highest of all the current Series Y point values. |
int |
getMaxZOrder()
|
double |
getMinXValue(Axis axis)
Returns the Minimum Value of the Series X Values List. |
double |
getMinYValue(Axis axis)
Returns the Minimum Value of the Series Y Values List. |
int |
getNumPages()
|
Page |
getPage()
Accesses multiple page characteristics of the Chart. |
Panel |
getPanel()
Accesses all visible Background attributes.. |
Scroll |
getPanning()
Sets the scrolling direction or denies scrolling. |
IChart |
getParent()
|
Printer |
getPrinter()
Printing related attributes. |
boolean |
getPrinting()
Determines when Chart is being printed. |
int |
getRight()
|
SeriesCollection |
getSeries()
Collection of Series contained in this Chart. |
Series |
getSeries(int seriesIndex)
|
int |
getSeriesCount()
Returns the number of Series associated to this Chart. |
int |
getSeriesHeight3D()
|
int |
getSeriesIndexOf(Series value)
|
java.lang.String |
getSeriesTitleLegend(int seriesIndex,
boolean onlyActive)
Returns the Series.Title string. |
int |
getSeriesWidth3D()
|
Footer |
getSubFooter()
Defines the Text and formatting attributes to be drawn at the bottom of the Chart, just above the Footer text. |
Header |
getSubHeader()
Defines the Text and formatting attributes to be drawn at the top of the Chart, just below the Header text. |
Header |
getSubTitle()
Obsolete. |
Header |
getTitle()
Obsolete. |
Tool |
getTool(int index)
Gets the index'th tool in getTools() collection |
ToolsCollection |
getTools()
Collection of Tool components contained in this Chart. |
ToolTip |
getToolTip()
Displays a text box at the cursor. |
int |
getTop()
|
Walls |
getWalls()
Accesses left, bottom and back wall characteristics of the Chart. |
int |
getWidth()
The Chart width in pixels. |
Zoom |
getZoom()
Accesses the Zoom characteristics of the Chart. |
java.awt.Image |
image(int width,
int height)
|
protected void |
internalDraw(IGraphics3D g)
Main drawing procedure. |
double |
internalMinMax(Axis aAxis,
boolean isMin,
boolean isX)
|
boolean |
isAxisCustom(Axis axis)
|
boolean |
isAxisVisible(Axis a)
|
boolean |
isFreeSeriesColor(Color color,
boolean checkBackground)
Returns whether the AColor parameter is used by any Series or not. |
boolean |
isValidDataSource(Series s,
java.lang.Object source)
|
int |
maxMarkWidth()
Returns the Maximum width of the Active Series Marks. |
int |
maxTextWidth()
Returns the Maximum width in pixels of all Series Labels, whether active or not. |
java.awt.Cursor |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
moveSeriesTo(Series value,
int newIndex)
|
MultiLine |
multiLineTextWidth(java.lang.String s)
|
void |
paint()
|
void |
paint(IGraphics3D g)
Paints the Chart on the Drawing Canvas g. |
void |
paint(IGraphics3D g,
int width,
int height)
|
void |
paint(IGraphics3D g,
Rectangle rect)
Paints the Chart in your preferred Canvas and region. |
protected java.lang.Object |
readResolve()
|
Rectangle |
recalcWidthHeight(Rectangle r)
|
protected void |
removeAllComponents()
|
protected void |
removeListener(ITeeEventListener sender)
|
void |
removeSeries(Series value)
Removes a Series from the Chart series list, without disposing it. |
void |
restoreAxisScales()
|
java.util.Iterator |
series()
|
Series |
seriesLegend(int itemIndex,
boolean onlyActive)
Returns the series that corresponds to the Legend "ItemIndex" position, when the Legend style is "Series". |
void |
setAspect(Aspect value)
|
void |
setAutoRepaint(boolean value)
Sets if this Chart should automatically repaint after a property change. |
void |
setAxes(Axes value)
|
void |
setBrushCanvas(Color aColor,
ChartBrush aBrush,
Color aBackColor)
|
void |
setCancelMouse(boolean value)
|
void |
setChartBounds(Rectangle value)
Sets the four sides of the Chart (Left, Top, Right and Bottom) |
void |
setChartRect(Rectangle value)
Sets the rectangle to contain the four main Chart axes. |
void |
setExport(Exports value)
|
void |
setFooter(Footer value)
|
void |
setGraphics3D(IGraphics3D value)
|
void |
setHeader(Header value)
|
void |
setHeight(int value)
Sets the Chart Height in pixels. |
void |
setImport(Imports value)
|
void |
setItem(int index,
Series value)
Default indexer. |
void |
setLegend(Legend value)
|
void |
setLegendPen(ChartPen value)
|
void |
setMaxZOrder(int value)
|
void |
setPage(Page value)
|
void |
setPanel(Panel value)
|
void |
setPanning(Scroll panning)
|
void |
setParent(IChart value)
Internal use. |
void |
setPrinter(Printer value)
|
void |
setPrinting(boolean value)
Determines when Chart is being printed. |
void |
setSeries(SeriesCollection value)
|
void |
setSubFooter(Footer value)
|
void |
setSubHeader(Header value)
|
void |
setTools(ToolsCollection value)
|
void |
setWalls(Walls value)
|
void |
setWidth(int value)
Sets the Chart width in pixels. |
void |
setZoom(Zoom zoom)
|
java.util.Iterator |
tools()
|
void |
undoZoom()
Obsolete. |
| Methods inherited from class com.steema.teechart.TeeBase |
|---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.steema.teechart.IBaseChart |
|---|
invalidate |
| Field Detail |
|---|
protected Aspect aspect
protected transient boolean iClicked
protected Axes axes
protected transient IGraphics3D graphics3D
protected Legend legend
protected SeriesCollection series
protected transient IChart parent
protected Page page
protected transient boolean restoredAxisScales
protected transient ChartPen legendPen
protected transient boolean printing
public boolean clipWhenMetafiling
public boolean clipWhenPrinting
protected transient int seriesWidth3D
protected transient int seriesHeight3D
protected transient int maxZOrder
protected Rectangle chartBounds
protected Rectangle chartRect
protected Zoom zoom
public AxisSavedScales left
public AxisSavedScales top
public AxisSavedScales right
public AxisSavedScales bottom
| Constructor Detail |
|---|
public Chart()
public Chart(IChart parent)
public Chart(IChart parent,
java.awt.Cursor cursor)
| Method Detail |
|---|
protected java.lang.Object readResolve()
public java.lang.Object clone()
clone in class java.lang.Object
public java.awt.Image image(int width,
int height)
image in interface IBaseChartpublic Rectangle getChartBounds()
getChartBounds in interface IBaseChartpublic void setChartBounds(Rectangle value)
value - Rectanglepublic int getWidth()
getWidth in interface IBaseChartpublic void setWidth(int value)
setWidth in interface IBaseChartvalue - intpublic int getHeight()
getHeight in interface IBaseChartpublic void setHeight(int value)
setHeight in interface IBaseChartvalue - intpublic int getLeft()
getLeft in interface IBaseChartpublic int getRight()
getRight in interface IBaseChartpublic int getTop()
getTop in interface IBaseChartprotected int getChartRectBottom()
protected int chartRectWidth()
protected int chartRectHeight()
public void doChangedBrush(ChartBrush value)
doChangedBrush in interface IBaseChartpublic void doChangedFont(ChartFont value)
doChangedFont in interface IBaseChartpublic boolean canDrawPanelBack()
canDrawPanelBack in interface IBaseChartpublic boolean getPrinting()
getPrinting in interface IBaseChartpublic void setPrinting(boolean value)
setPrinting in interface IBaseChartvalue - booleanpublic void setCancelMouse(boolean value)
setCancelMouse in interface IBaseChart
public static Series changeSeriesType(Series series,
java.lang.Class newClass)
public static void changeAllSeriesType(Chart chart,
java.lang.Class newClass)
protected void removeAllComponents()
public TeeEventListeners getListeners()
protected void removeListener(ITeeEventListener sender)
public boolean isValidDataSource(Series s,
java.lang.Object source)
public void restoreAxisScales()
restoreAxisScales in interface IBaseChartpublic int getNumPages()
getNumPages in interface IBaseChartpublic ToolTip getToolTip()
getToolTip in interface IBaseChartpublic Series activeSeriesLegend(int itemIndex)
activeSeriesLegend in interface IBaseChartitemIndex - int
public java.lang.String getSeriesTitleLegend(int seriesIndex,
boolean onlyActive)
getSeriesTitleLegend in interface IBaseChartseriesIndex - intonlyActive - boolean
protected void internalDraw(IGraphics3D g)
g - IGraphics3Dpublic Zoom getZoom()
public void setZoom(Zoom zoom)
public Scroll getPanning()
public void setPanning(Scroll panning)
protected void checkZoomPanning(java.awt.event.MouseEvent e)
protected void broadcastMouseEvent(java.awt.event.MouseEvent e)
protected java.awt.Cursor broadcastMouseEvent(java.awt.event.MouseEvent e,
java.awt.Cursor c)
protected void broadcastToolEvent(ChartDrawEvent ce)
public void broadcastEvent(TeeEvent event)
broadcastEvent in interface IBaseChart
public TeeEvent broadcastEvent(Series s,
SeriesEventStyle e)
broadcastEvent in interface IBaseChartpublic int getSeriesIndexOf(Series value)
getSeriesIndexOf in interface IBaseChartpublic SeriesCollection getSeries()
public Series getSeries(int seriesIndex)
getSeries in interface IBaseChartpublic void setSeries(SeriesCollection value)
public void mousePressed(java.awt.event.MouseEvent e)
public java.awt.Cursor mouseMoved(java.awt.event.MouseEvent e)
public java.awt.Cursor doMouseMove(int x,
int y,
java.awt.Cursor c)
public void doZoom(double topx,
double topy,
double bottomx,
double bottomy,
double leftx,
double lefty,
double rightx,
double righty)
doZoom in interface IBaseChart
public void doZoom(java.awt.geom.Point2D.Double top,
java.awt.geom.Point2D.Double bot,
java.awt.geom.Point2D.Double lef,
java.awt.geom.Point2D.Double rig)
doZoom in interface IBaseChartpublic void mouseReleased(java.awt.event.MouseEvent e)
public void undoZoom()
public void setBrushCanvas(Color aColor,
ChartBrush aBrush,
Color aBackColor)
setBrushCanvas in interface IBaseChartpublic boolean canClip()
canClip in interface IBaseChartpublic Rectangle recalcWidthHeight(Rectangle r)
recalcWidthHeight in interface IBaseChartpublic Series getAxisSeries(Axis axis)
axis - Axis
public double internalMinMax(Axis aAxis,
boolean isMin,
boolean isX)
internalMinMax in interface IBaseChartpublic int maxTextWidth()
maxTextWidth in interface IBaseChartpublic int maxMarkWidth()
maxMarkWidth in interface IBaseChartpublic MultiLine multiLineTextWidth(java.lang.String s)
multiLineTextWidth in interface IBaseChartpublic double getMaxXValue(Axis axis)
getMaxXValue in interface IBaseChartaxis - Axis
public double getMaxYValue(Axis axis)
getMaxYValue in interface IBaseChartaxis - Axis
public double getMinXValue(Axis axis)
getMinXValue in interface IBaseChartaxis - Axis
public double getMinYValue(Axis axis)
getMinYValue in interface IBaseChartaxis - Axis
public boolean isFreeSeriesColor(Color color,
boolean checkBackground)
color - ColorcheckBackground - boolean When true, uses current Chart background
public Color freeSeriesColor(boolean checkBackground)
freeSeriesColor in interface IBaseChartcheckBackground - boolean
public void paint(IGraphics3D g,
Rectangle rect)
paint in interface IBaseChartg - IGraphics3Drect - Rectanglepublic void paint()
public void paint(IGraphics3D g)
paint in interface IBaseChartg - IGraphics3D
public void paint(IGraphics3D g,
int width,
int height)
public Series getItem(int index)
index - int
public void setItem(int index,
Series value)
index - intvalue - Seriespublic boolean isAxisVisible(Axis a)
isAxisVisible in interface IBaseChartpublic Series getFirstActiveSeries()
getFirstActiveSeries in interface IBaseChart
public java.lang.String formattedValueLegend(Series aSeries,
int valueIndex)
formattedValueLegend in interface IBaseChartaSeries - SeriesvalueIndex - int
public Rectangle doDrawLegend(IGraphics3D g,
Rectangle tmp)
doDrawLegend in interface IBaseChartpublic int countActiveSeries()
countActiveSeries in interface