public class Axis extends TeeBase
Title: Axis class
Description: Accesses all Axis characteristics
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected AxisCalcResolver |
axisCalcResolver |
static int |
AXISCLICKGAP |
AxisDraw |
axisDraw |
protected AxisLinePen |
axispen |
protected AxisTitle |
axisTitle |
protected boolean |
bVisible |
protected GridPen |
grid |
boolean |
hideBackGrid |
boolean |
hideSideGrid |
protected boolean |
horizontal |
protected boolean |
iAxisDateTime |
int |
iAxisSize |
int |
iEndPos |
int |
iGapSize |
protected boolean |
inverted |
boolean |
iRangezero |
boolean |
isDepthAxis |
int |
iStartPos |
int |
iZPos |
static int |
MAXPIXELPOS |
static double |
MINAXISRANGE |
protected ChartPen |
minorGrid |
protected boolean |
useMaxPixelPos |
protected double |
zPosition |
chart, InternalUse
Constructor and Description |
---|
Axis() |
Axis(boolean horiz,
boolean isOtherSide,
IBaseChart chart) |
Axis(IBaseChart chart) |
Modifier and Type | Method and Description |
---|---|
void |
adjustMaxMin()
Calculates Maximum and Minimum values based on Max and Min values of
the dependent Series.
AdjustMaxMin is automatically called if Axis.Automatic is true. |
void |
adjustMaxMinRect(int rLeft,
int rTop,
int rRight,
int rBottom)
Called internally to recalculate the max and min values using the
Rect parameter positions.
The Rect parameter determines in pixels the margins to apply to ChartRect. |
int |
applyPosition(int apos,
Rectangle r) |
protected void |
calcAllSeries() |
double |
calcIncrement()
Returns the calculated Axis Label increment and serves as a useable
measure when Labelling is set to manual or automatic increments.
Please note that the related Increment property only returns the increment value when those increments are manually set via the same property. |
AxisLabelStyle |
calcLabelStyle()
Returns the most logical Axis Label style.
It calculates the "best candidate" label style based on how many Active Series are in the Chart and if the Series has point labels. |
void |
calcMinMax(FloatRange tmp)
Returns the minimum and maximum values of the associated Series.
|
double |
calcPosPoint(int value) |
int |
calcPosValue(double value)
Returns the corresponding value of a Screen position in pixels.
|
Rectangle |
calcRect(Rectangle r,
boolean inflateChartRectangle)
Used internally by Chart when creating Axes
|
void |
calcRoundScales()
Rounds Axis scale to integer values
|
int |
calcSizeValue(double value)
Returns the amount in pixels that corresponds to a portion of the axis
of size "Value" in axis scales.
|
int |
calcXPosValue(double value)
Calculates the Horizontal coordinate in pixels of Value parameter.
You can use CalcXPosValue when requiring pixel positions from which to plot Drawing output. |
double |
calcXYIncrement(int maxLabelSize)
Returns the calculated Axis Label increment.
|
int |
calcYPosValue(double value)
Calculates the Vertical coordinate in pixels of Value parameter.
|
int |
calcZPos()
Calculates the Vertical coordinate in pixels of Value parameter
|
void |
checkNextLabelValue(Axis axis,
AxisLabelValueEventArgs e) |
boolean |
clicked(int x,
int y)
Returns if X and Y coordinates are close to the Axis position.
|
boolean |
clicked(Point xy)
Returns if X and Y coordinates are close to the Axis position.
|
java.text.DateFormat |
dateTimeDefaultFormat(double astep)
Returns either a Time or Date format depending if the astep parameter
is lower than one day (time) or greater (date).
|
double |
dateTimeIncrement(boolean isDateTime,
boolean increment,
double value,
double anIncrement,
int tmpWhichDatetime)
Is a set of constants used to specify a date time increment.
|
void |
draw(boolean calcPosAxis)
Displays an Axis at the specified screen positions with the current
axis scales.
Normally you do not need to call the Draw method directly. |
void |
draw(IGraphics3D g,
boolean calcPosAxis)
Displays an Axis at the specified screen positions with the current
axis scales. |
void |
draw(int posLabels,
int posTitle,
int posAxis,
boolean gridVisible)
Displays an Axis at the specified screen positions with the current
axis scales.
Main drawing method. |
void |
draw(int posLabels,
int posTitle,
int posAxis,
boolean gridVisible,
double aMinimum,
double aMaximum,
double aIncrement,
int aStartPos,
int aEndPos)
Displays an Axis at the specified screen positions with the current
axis scales.
Main drawing method. |
void |
draw(int posLabels,
int posTitle,
int posAxis,
boolean gridVisible,
double aMinimum,
double aMaximum,
int aStartPosition,
int aEndPosition)
Displays an Axis at the specified screen positions with the current
axis scales.
Main drawing method. |
void |
draw(int posLabels,
int posTitle,
int posAxis,
boolean gridVisible,
int aStartPos,
int aEndPos)
Displays an Axis at the specified screen positions with the current
axis scales.
Main drawing method. |
void |
drawAxisLabel(ChartFont f,
int x,
int y,
int angle,
java.lang.String st,
TextShape format)
Draws Axis Label (String) in font f at specified X,Y co-ordinate at
Angle.
|
void |
drawAxisLabel(ChartFont f,
int x,
int y,
int angle,
java.lang.String st,
TextShape format,
boolean isTitle)
Draws Axis Label (String) in font f at specified X,Y co-ordinate at
Angle.
|
void |
drawAxisLabel(int x,
int y,
int angle,
java.lang.String st,
TextShape labelItem)
Draws Axis Label (String) at specified X,Y co-ordinate at Angle.
|
void |
drawLineSegment(int aStart,
int aEnd) |
void |
drawTitle(int x,
int y)
TeeChart internal use.
|
static int |
findDateTimeStep(double stepValue)
Used internally to return Axis Datetime step.
|
boolean |
getAutomatic()
Calculates Max and Min of axis scale based on associated Series.
|
boolean |
getAutomaticMaximum()
Controls if Axis will adjust the Maximum value automatically based on
the maximum value of its associated Series.
Default value: true |
boolean |
getAutomaticMinimum()
Controls minimum value automatically based on the minimum value of
its associated Series.
Default value: true |
AxisCalcResolver |
getAxisCalcResolver() |
AxisLinePen |
getAxisPen()
Determines the kind of pen used to draw the major Axis lines.
These are the lines which go from Axis Minimum to Axis Maximum screen positions. |
double |
getCalcIncrement()
Returns the calculated Axis Label increment and serves as a useable
measure when Labelling is set to manual or automatic increments.
Please note that the related Increment property only returns the increment value when those increments are manually set via the same property. |
AxisLabelsItems |
getCustomLabels()
Returns the custom labels
|
protected StringAlignment |
getDepthAxisAlign() |
double |
getEndPosition()
Axis End Position on its own Axis expressed as a percentage (0-100%).
For a Vertical Axis a value of 75% would place the beginning of the scale at 75% down from Top. Default value: 100% |
GridPen |
getGrid()
Determines the kind of pen used to draw the Grid lines at every Axis
Label position.
These are the lines which go from "cousin Axis" Minimum to "cousin Axis" Maximum screen positions for each Label position. Use the MinorGrid property to make the Grid from Minor Ticks visible. |
boolean |
getGridCentered()
Obsolete. Please use Axis.Grid.Centered property
|
boolean |
getHorizontal()
Determines the Custom axis to be drawn horizontally.
|
double |
getIncrement()
Determines the minimum step between axis labels.
Can use DateTimeStep for date-time axis. |
int |
getInflateAxisPos(int value,
int amount) |
boolean |
getInverted()
Swaps the Axis Minimum and Maximum scales.
When true, Axis Minimum and Maximum scales will be swapped. |
boolean |
getIsDepthAxis()
Returns whether this is Depth Axis
|
AxisLabels |
getLabels()
Accesses the Label characteristics of Axis Labels.
|
boolean |
getLabelsOnAxis()
Obsolete. Please use Labels.OnAxis instead.
|
boolean |
getLogarithmic()
Scales the Axis Logarithmically when true.
Axis Minimum and Maximum values should be greater than 0, and Axis cannot be of DateTime type. Default value: false |
double |
getLogarithmicBase()
The base for the Logarithmic scale when Axis Logarithmic = true.
|
double |
getMaximum()
The highest value an Axis will use to scale their dependent Series
point values.
It can be any number or DateTime value. |
int |
getMaximumOffset()
Amount of pixels that will be left as a margin at axis maximum
position.
It is useful when you don't want the series to display points very close to axis boundaries. |
boolean |
getMaxRound()
Defines the maximum value for the axis scales to round to when True
|
double |
getMaxXValue()
Returns the calculated Maximum Horizontal value for the specified AAxis.
|
double |
getMaxYValue()
Returns the calculated Maximum Vertical value for the specified AAxis.
|
double |
getMinAxisIncrement()
Advanced use.
|
double |
getMinimum()
The lowest value an Axis will use to scale their dependent Series
point values.
It can be any number or DateTime value. |
int |
getMinimumOffset()
The number of pixels that will be left as a margin at axis minimum
position.
It is useful when you don't want the series to display points very close to axis boundaries. Default value: 0 |
ChartPen |
getMinorGrid()
Characteristics of the Grid coincidental to Minor Ticks.
The Minor Grid.Visible is false as default. |
int |
getMinorTickCount()
The number of Axis minor ticks between major ticks.
Axis minor ticks are the Axis sub-ticks between major ticks. |
TicksPen |
getMinorTicks()
Determines the Pen used to draw the Axis Minor ticks.
Minor ticks will only be displayed if MinorTicks.Visible is true. |
boolean |
getMinRound()
Defines the minimum value for the axis scales to round to when True
|
double |
getMinXValue()
Returns the calculated Minimum Horizontal value for the specified AAxis.
|
double |
getMinYValue()
Returns the calculted Minimum Vertical value for the specified AAxis.
|
boolean |
getOtherSide()
Positions the Axis labels to the Otherside of the axis.
For instance, moves labels on a vertical Axis to the right of the Axis. |
Axis |
getPartnerAxis() |
int |
getPosAxis()
Obsolete. Please use Position instead.
|
int |
getPosition()
Determines the screen co-ordinate where axis is drawn.
It returns the position of the Axis in pixels relative to the Chart Panel. |
PositionUnits |
getPositionUnits()
Defines axis Position units (pixels or percentage).
When PositionUnits is Percent, Position value is a percentage of total chart size. |
double |
getRange()
internal use.
|
int |
getRectangleEdge(Rectangle r) |
double |
getRelativePosition()
Determines the Axis position as percentage 0-100% of the Chart.
0 being Top for a horizontal Axis and Left for a vertical Axis. |
int |
getSizeLabels()
Returns size (height perpendicular to its Axis) occupied by a Label.
|
int |
getSizeLabels(boolean perpendicular) |
int |
getSizeTickAxis()
Returns the greater of lengths of Ticks or MinorTicks
|
double |
getStartPosition()
Axis Start position on its own Axis expressed as a percentage.
For a vertical Axis a StartPosition of 75 would place the top of the Axis 75% down the Chart. Default value: 0% |
boolean |
getTickOnLabelsOnly()
The Axis Ticks and Axis Grid to be drawn only coincide at Labels.
Otherwise, they will be drawn at all axis increment positions. |
TicksPen |
getTicks()
Determines the kind of Pen used to draw Axis marks along the Axis line.
|
TicksPen |
getTicksInner()
Determines the kind of Pen used to draw Axis marks along the Axis line.
|
AxisTitle |
getTitle()
An Axis sub-class used to define Title attributes.
Axis Titles are a string of text drawn near Axes. |
int |
getTitleSize()
Obsolete. Please use Axis.Title.CustomSize
|
boolean |
getUseMaxPixelPos() |
boolean |
getUsePartnerAxis() |
boolean |
getVisible()
Shows or hides the Axis lines, ticks, grids, labels and title.
You can change it both at design and runtime. Default value: true |
double |
getZPosition()
Determines the Z axis position along chart Depth as a percentage of the
total depth.
It can even be set to negative values to place the axis in front of the Chart, or values greater than 100% to place the axis behind the Chart. |
protected double |
incDecDateTime(boolean increment,
double value,
double anIncrement,
int tmpWhichDatetime) |
int |
inflateAxisPos(int value,
int amount) |
int |
internalCalcDepthPosValue(double value) |
int |
internalCalcLogPosValue(boolean isx,
double value) |
protected void |
internalCalcPositions() |
double |
internalCalcPosPoint(int value)
Returns the corresponding value of a Screen position.
|
void |
internalCalcRange()
Internal use.
|
void |
internalSetInverted(boolean value)
Intrnal use.
|
boolean |
isCustom()
Returns true if Axis is a Custom Axis
|
boolean |
isDateTime()
Returns if the Axis dependent values are DateTime or not.
|
int |
maxLabelsWidth()
Returns the maximum width in pixels of all Axis Labels.
|
protected java.lang.Object |
readResolve() |
void |
removeAxisCalcResolver() |
void |
scroll(double offset,
boolean checkLimits)
Scrolls or displaces the Axis Maximum and Minimum values by the Offset
parameter.
If you want to scroll the Axis outside Series limits, CheckLimits must be false. |
void |
setAutomatic(boolean value)
Max and Min of axis scale based on associated Series.
|
void |
setAutomaticMaximum(boolean value)
The Axis adjusts the Maximum value automatically based on the maximum
value of its associated Series when true.
Default value: true |
void |
setAutomaticMinimum(boolean value)
The Axis adjusts the Minimum value automatically based on the maximum
value of its associated Series when true.
Default value: true |
int |
setAxisCalcPosValueDelegate(double value) |
void |
setAxisCalcResolver(AxisCalcResolver resolver) |
int |
setAxisCalcXPosValueDelegate(double value) |
int |
setAxisCalcYPosValueDelegate(double value) |
void |
setCalcPosValue() |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setEndPosition(double value)
Sets the Axis End Position on its own Axis expressed as a percentage.
Default value: 100% |
void |
setGridCentered(boolean value)
Obsolete. Please use Axis.Grid.Centered property
|
void |
setHorizontal(boolean value)
Sets a custom axis to be drawn horizontally.
|
void |
setIncrement(double value)
Sets the minimum step between axis labels.
|
void |
setInverted(boolean value)
Swaps the Axis Minimum and Maximum scales when true.
Default value: false |
void |
setLabelsOnAxis(boolean value)
Obsolete. Please use Labels.OnAxis instead.
|
void |
setLogarithmic(boolean value)
Scales the Axis Logarithmically when true.
Default value: false |
void |
setLogarithmicBase(double value)
Sets the base for the Logarithmic scale when Axis Logarithmic = true.
|
void |
setMaximum(double value)
Sets the highest value an Axis will use to scale their dependent Series
point values.
|
void |
setMaximumOffset(int value)
Sets the amount of pixels that will be left as a margin at axis maximum
position.
Default value: 0 |
void |
setMaxRound(boolean value)
Sets the maximum value for the axis scales to round to when True
|
void |
setMinAxisIncrement(double value)
Advanced use.
|
void |
setMinimum(double value)
Sets the lowest value an Axis will use to scale their dependent Series
point values.
|
void |
setMinimumOffset(int value)
Determines the number of pixels that will be left as a margin at axis
minimum position.
Default value: 0 |
void |
setMinMax(DateTime minDate,
DateTime maxDate)
Changes the current Axis Minimum and Maximum scales.
Axis.Automatic must be set to false. |
void |
setMinMax(double min,
double max)
Changes the current Axis Minimum and Maximum scales.
Axis.Automatic must be set to false. |
void |
setMinorTickCount(int value)
Determines the number of Axis minor ticks between major ticks.
Default value: 3 |
void |
setMinorTicks(TicksPen value)
Determines the Pen used to draw the Axis Minor ticks.
Minor ticks will only be displayed if MinorTicks.Visible is true. |
void |
setMinRound(boolean value)
Sets the minimum value for the axis scales to round to when True
|
void |
setOtherSide(boolean value)
Sets the Axis labels to the Otherside of the axis.
|
void |
setPartnerAxis(Axis value) |
void |
setPosAxis(int value) |
void |
setPositionUnits(PositionUnits value)
Determines the axis Position units (pixels or percentage).
Default value: Percent |
void |
setPosTitle(int value)
Internal use.
|
void |
setRelativePosition(double value)
Determines the Axis position as percentage 0-100% of the Chart.
|
void |
setStartPosition(double value)
Sets the Axis Start position on its own Axis expressed as a percentage.
|
void |
setTickOnLabelsOnly(boolean value)
Sets the Axis Ticks and Axis Grid to be drawn to only coincide at
Labels.
Default value: true |
void |
setTicks(TicksPen value)
Accesses the Ticks characteristics.
|
void |
setTitle(AxisTitle value)
Accesses the Axis Title characteristics.
|
void |
setTitleSize(int value)
Obsolete. Please use Axis.Title.CustomSize
|
void |
setUseMaxPixelPos(boolean value) |
void |
setUsePartnerAxis(boolean value) |
void |
setVisible(boolean value)
Shows the Axis lines, ticks, grids, labels and title when true.
Default value: true |
void |
setZPosition(double value)
Sets the Z axis position along chart Depth as a percentage of the
total depth.
|
protected boolean |
shouldSerializeHorizontal() |
protected boolean |
shouldSerializeMaximum() |
protected boolean |
shouldSerializeMinimum() |
protected boolean |
shouldSerializeOtherSide() |
protected boolean |
shouldSerializeZPosition() |
java.lang.String |
titleOrName()
Returns the Title or the Name of the Axis depending on whether you've
set a title or not. |
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public int iGapSize
public transient AxisDraw axisDraw
public static final double MINAXISRANGE
public static final int MAXPIXELPOS
protected boolean useMaxPixelPos
protected AxisLinePen axispen
protected AxisTitle axisTitle
protected GridPen grid
public transient boolean hideBackGrid
public transient boolean hideSideGrid
protected ChartPen minorGrid
protected boolean inverted
protected boolean horizontal
protected boolean bVisible
protected double zPosition
protected transient boolean iAxisDateTime
public transient boolean iRangezero
public transient int iStartPos
public transient int iEndPos
public transient int iAxisSize
public transient boolean isDepthAxis
public transient int iZPos
public static final int AXISCLICKGAP
protected transient AxisCalcResolver axisCalcResolver
public Axis()
public Axis(IBaseChart chart)
public Axis(boolean horiz, boolean isOtherSide, IBaseChart chart)
public void internalSetInverted(boolean value)
value
- protected java.lang.Object readResolve()
public void setAxisCalcResolver(AxisCalcResolver resolver)
public void removeAxisCalcResolver()
public AxisCalcResolver getAxisCalcResolver()
public boolean getUseMaxPixelPos()
public void setUseMaxPixelPos(boolean value)
public int setAxisCalcXPosValueDelegate(double value)
public int setAxisCalcYPosValueDelegate(double value)
public int setAxisCalcPosValueDelegate(double value)
public void setCalcPosValue()
public double getRange()
public AxisLabels getLabels()
public AxisLabelsItems getCustomLabels()
public boolean getAutomatic()
public void setAutomatic(boolean value)
value
- booleanprotected boolean shouldSerializeHorizontal()
public boolean getHorizontal()
public void setHorizontal(boolean value)
value
- booleanprotected boolean shouldSerializeOtherSide()
public boolean getOtherSide()
public void setOtherSide(boolean value)
value
- booleanpublic void internalCalcRange()
public void adjustMaxMinRect(int rLeft, int rTop, int rRight, int rBottom)
rLeft
- intrTop
- intrRight
- intrBottom
- intpublic boolean isCustom()
public void adjustMaxMin()
public boolean getAutomaticMaximum()
public void setAutomaticMaximum(boolean value)
value
- booleanpublic boolean getAutomaticMinimum()
public void setAutomaticMinimum(boolean value)
value
- booleanpublic AxisLinePen getAxisPen()
public GridPen getGrid()
public boolean getLabelsOnAxis()
public void setLabelsOnAxis(boolean value)
value
- booleanpublic boolean isDateTime()
public double getIncrement()
public void setIncrement(double value)
value
- doublepublic boolean getInverted()
public void setInverted(boolean value)
value
- booleanpublic boolean getLogarithmic()
public boolean getIsDepthAxis()
public void setLogarithmic(boolean value) throws ChartException
value
- booleanChartException
protected boolean shouldSerializeMaximum()
public int getMaximumOffset()
myChart.getAxes().getBottom().setMaximumOffset(4); myChart.getAxes().getBottom().setMinimumOffset(4);
public void setMaximumOffset(int value)
value
- intpublic double getMaximum()
public void setMaximum(double value)
value
- doubleprotected boolean shouldSerializeMinimum()
public double getMinAxisIncrement()
public void setMinAxisIncrement(double value)
value
- doublepublic double getMinimum()
public void setMinimum(double value)
value
- doublepublic int getMinimumOffset()
public void setMinimumOffset(int value)
value
- intpublic int getMinorTickCount()
public void setMinorTickCount(int value)
value
- intpublic TicksPen getMinorTicks()
public void setMinorTicks(TicksPen value)
value
- TicksPenpublic int getPosAxis()
public void setPosAxis(int value)
public int getPosition()
public boolean getTickOnLabelsOnly()
public void setTickOnLabelsOnly(boolean value)
value
- booleanpublic TicksPen getTicks()
public void setTicks(TicksPen value)
value
- TicksPenpublic TicksPen getTicksInner()
public AxisTitle getTitle()
public void setTitle(AxisTitle value)
value
- AxisTitlepublic int getTitleSize()
public void setTitleSize(int value)
value
- intpublic boolean getVisible()
public void setVisible(boolean value)
value
- booleanprotected boolean shouldSerializeZPosition()
public double getZPosition()
public void setZPosition(double value)
value
- doublepublic boolean getGridCentered()
public void setGridCentered(boolean value)
value
- booleanpublic double getRelativePosition()
public void setRelativePosition(double value)
value
- doublepublic PositionUnits getPositionUnits()
public void setPositionUnits(PositionUnits value)
value
- PositionUnitspublic double getStartPosition()
public void setStartPosition(double value)
value
- doublepublic double getEndPosition()
public void setEndPosition(double value)
value
- doublepublic double getLogarithmicBase()
public void setLogarithmicBase(double value)
value
- doublepublic ChartPen getMinorGrid()
public java.lang.String titleOrName()
public void calcMinMax(FloatRange tmp)
tmp
- FloatRangepublic int maxLabelsWidth()
public int getSizeLabels()
public int getSizeLabels(boolean perpendicular)
public void checkNextLabelValue(Axis axis, AxisLabelValueEventArgs e)
public int internalCalcDepthPosValue(double value)
public int internalCalcLogPosValue(boolean isx, double value)
public int calcPosValue(double value)
value
- Screen valuepublic int calcXPosValue(double value)
value
- doublepublic int calcYPosValue(double value)
value
- Value Parameterpublic int calcZPos()
public int calcSizeValue(double value)
value
- doublepublic double calcPosPoint(int value)
public double internalCalcPosPoint(int value)
value
- int Screen valueprotected void calcAllSeries()
public boolean clicked(Point xy)
xy
- Point (X and Y coordinates)public boolean clicked(int x, int y)
x
- Pixel locationy
- Pixel locationAxes
public double getMaxXValue()
Axes
,
getMinXValue()
,
getMinYValue()
,
getMaxYValue()
public double getMaxYValue()
Axes
,
getMinXValue()
,
getMaxXValue()
,
getMinYValue()
public double getMinXValue()
Axes
,
getMaxXValue()
,
getMinYValue()
,
getMaxYValue()
public double getMinYValue()
Axes
,
getMinXValue()
,
getMaxXValue()
,
getMaxYValue()
public java.text.DateFormat dateTimeDefaultFormat(double astep)
astep
- doublepublic double calcXYIncrement(int maxLabelSize)
maxLabelSize
- int The maximum allowable LabelSize in pixels.public double getCalcIncrement()
public int getSizeTickAxis()
public int getRectangleEdge(Rectangle r)
public int inflateAxisPos(int value, int amount)
public Rectangle calcRect(Rectangle r, boolean inflateChartRectangle)
r
- Chart RectangleinflateChartRectangle
- boolean Wall allowance (standard Axes only)public int applyPosition(int apos, Rectangle r)
public static int findDateTimeStep(double stepValue)
stepValue
- double Desired incrementpublic void drawAxisLabel(int x, int y, int angle, java.lang.String st, TextShape labelItem)
x
- int x coordinatey
- int y coordinateangle
- int Angle at which Label is drawnst
- String asociated to LabellabelItem
- TextShapepublic void drawAxisLabel(ChartFont f, int x, int y, int angle, java.lang.String st, TextShape format)
f
- ChartFontx
- int x coordinatey
- int y coordinateangle
- int Angle at which Label is drawnst
- String asociated to Labelformat
- TextShapepublic void drawAxisLabel(ChartFont f, int x, int y, int angle, java.lang.String st, TextShape format, boolean isTitle)
f
- ChartFontx
- int x coordinatey
- int y coordinateangle
- int Angle at which Label is drawnst
- String asociated to Labelformat
- TextShapeisTitle
- booleanprotected StringAlignment getDepthAxisAlign()
public void drawTitle(int x, int y)
x
- int x coordinatey
- int y coordinateprotected double incDecDateTime(boolean increment, double value, double anIncrement, int tmpWhichDatetime)
public double dateTimeIncrement(boolean isDateTime, boolean increment, double value, double anIncrement, int tmpWhichDatetime)
isDateTime
- booleanincrement
- booleanvalue
- doubleanIncrement
- doubletmpWhichDatetime
- intpublic AxisLabelStyle calcLabelStyle()
public void draw(IGraphics3D g, boolean calcPosAxis)
g
- IGraphics3DcalcPosAxis
- booleanpublic void draw(boolean calcPosAxis)
calcPosAxis
- boolean True if space allowance for Axis Labelling
requiredpublic void drawLineSegment(int aStart, int aEnd)
protected void internalCalcPositions()
public void draw(int posLabels, int posTitle, int posAxis, boolean gridVisible)
posLabels
- intposTitle
- intposAxis
- intgridVisible
- booleanpublic void draw(int posLabels, int posTitle, int posAxis, boolean gridVisible, int aStartPos, int aEndPos)
posLabels
- intposTitle
- intposAxis
- intgridVisible
- booleanaStartPos
- intaEndPos
- intpublic void scroll(double offset, boolean checkLimits)
offset
- doublecheckLimits
- booleanpublic void setMinMax(DateTime minDate, DateTime maxDate)
minDate
- DateTime Axis Minimum scalemaxDate
- DateTime Axis Maximum scalepublic void setMinMax(double min, double max)
min
- double Axis Minimum scalemax
- double Axis Maximum scalepublic void setChart(IBaseChart c)
TeeBase
public void draw(int posLabels, int posTitle, int posAxis, boolean gridVisible, double aMinimum, double aMaximum, int aStartPosition, int aEndPosition)
posLabels
- intposTitle
- intposAxis
- intgridVisible
- booleanaMinimum
- doubleaMaximum
- doubleaStartPosition
- intaEndPosition
- intpublic void draw(int posLabels, int posTitle, int posAxis, boolean gridVisible, double aMinimum, double aMaximum, double aIncrement, int aStartPos, int aEndPos)
posLabels
- intposTitle
- intposAxis
- intgridVisible
- booleanaMinimum
- doubleaMaximum
- doubleaIncrement
- doubleaStartPos
- intaEndPos
- intpublic boolean getMaxRound()
public void setMaxRound(boolean value)
value
- public boolean getMinRound()
public void setMinRound(boolean value)
value
- booleanpublic void calcRoundScales()
public double calcIncrement()
public int getInflateAxisPos(int value, int amount)
public void setPosTitle(int value)
value
- public Axis getPartnerAxis()
public void setPartnerAxis(Axis value)
public boolean getUsePartnerAxis()
public void setUsePartnerAxis(boolean value)