|
||||||||||
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.axis.Axes
public class Axes
Title: Axes class
Description: Accesses list of all TChart Axes. Includes Custom and Depth Axes
Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Example:public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source == editButton) { if (myChart.getAxes().getCustom().size()==0) { DialogFactory.showModal(myChart.getAxes().getLeft()); } else { DialogFactory.showModal(myChart.getAxes().getCustom().getAxis(0)); } } } public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); boolean isSelected = (e.getStateChange() == ItemEvent.SELECTED); if (source == showButton) { for (int t=0; t < myChart.getAxes().getCustom().size(); t++) { myChart.getAxes().getCustom().getAxis(t).setVisible(isSelected); } } }
Field Summary | |
---|---|
protected CustomAxes |
custom
|
protected DepthAxis |
depth
|
protected DepthAxis |
depthTop
|
static int |
STANDARD_AXES
|
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart |
Constructor Summary | |
---|---|
Axes()
|
|
Axes(IBaseChart c)
|
Method Summary | |
---|---|
void |
adjustMaxMin()
Calls adjustMaxMin method of all axes and custom axes |
protected Axis |
checkAxis(Axis a)
|
static Axis |
createNewAxis(IBaseChart chart)
|
void |
doZoom(int x0,
int y0,
int x1,
int y1)
|
void |
draw()
|
void |
draw(IGraphics3D g)
|
Axis |
getAxis(int index)
Accesses indexed axis |
Axis |
getBottom()
Determines the Labels and formatting attributes of Bottom Chart side. It also controls where Series points will be placed. Every TChart class has five Axes: Left, Top, Right, Bottom and z depth. |
int |
getCount()
Returns the number of axes. |
CustomAxes |
getCustom()
Accesses the Custom axes List. |
Axis |
getDepth()
Accesses characteristics of the Depth Axis, or z axis as it is also known. Every TChart class has five Axes: Left, Top, Right, Bottom and z depth. |
Axis |
getDepthTop()
|
boolean |
getDrawBehind()
Draws axes behind or in front of Series. Enables/disables the painting of the Axes before the Series. When false, the Axes will appear over the Chart Series. Default value: true |
Axis |
getLeft()
Determines the Labels and formatting attributes of Left Chart side. It also controls where Series points will be placed. |
Axis |
getRight()
Determines the Labels and formatting attributes of Right Chart side. It also controls where Series points will be placed. Every TChart class has five Axes: Left, Top, Right, Bottom and z depth. |
Axis |
getTop()
Determines the Labels and formatting attributes of Top Chart side. It also controls where Series points will be placed. Every TChart class has five Axes: Left, Top, Right, Bottom and z depth. |
boolean |
getVisible()
Shows or hides the five Chart Axes at once. Each Axis will be drawn depending also on their Visible property. Default value: true |
int |
indexOf(Axis a)
|
void |
internalCalcPositions()
|
void |
setBottom(Axis value)
|
void |
setChart(IBaseChart value)
Chart associated with this object. |
void |
setCustom(CustomAxes value)
|
void |
setDepth(DepthAxis value)
|
void |
setDepthTop(DepthAxis value)
|
void |
setDrawBehind(boolean value)
Draws axes behind the Series when true. |
void |
setLeft(Axis value)
|
void |
setRight(Axis value)
|
void |
setTop(Axis value)
|
void |
setVisible(boolean value)
Determines whether all five Chart Axes are visible or not. |
java.lang.String[] |
stringItems()
|
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STANDARD_AXES
protected CustomAxes custom
protected DepthAxis depth
protected DepthAxis depthTop
Constructor Detail |
---|
public Axes()
public Axes(IBaseChart c)
Method Detail |
---|
public static Axis createNewAxis(IBaseChart chart)
public java.lang.String[] stringItems()
public int indexOf(Axis a)
public Axis getAxis(int index)
index
- int
public int getCount()
public boolean getDrawBehind()
public void setDrawBehind(boolean value)
value
- booleanpublic void doZoom(int x0, int y0, int x1, int y1)
protected Axis checkAxis(Axis a)
public CustomAxes getCustom()
public void setCustom(CustomAxes value)
public void adjustMaxMin()
public void internalCalcPositions()
public Axis getLeft()
public void setLeft(Axis value)
public Axis getTop()
Axis
public void setTop(Axis value)
public Axis getRight()
Axis
public void setRight(Axis value)
public Axis getBottom()
Axis
public void setBottom(Axis value)
public Axis getDepth()
Axis
public void setDepth(DepthAxis value)
public Axis getDepthTop()
public void setDepthTop(DepthAxis value)
public boolean getVisible()
public void setVisible(boolean value)
value
- booleanpublic void setChart(IBaseChart value)
TeeBase
setChart
in class TeeBase
value
- IBaseChartpublic void draw()
public void draw(IGraphics3D g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |