Class JGL3DAxis
java.lang.Object
fr.esrf.tangoatk.widget.util.jgl3dchart.JGL3DAxis
Class which handles chart axis.
- Author:
- JL Pons
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUse default compiler format to display doublestatic final intDisplay integer using binary formatstatic final intDisplay integer using decimal formatstatic final intDisplay integer using haxadecimal formatstatic final intUse linear scale for this axisstatic final intUse logarithmic scale for this axisstatic final intDisplay value using exponential representation (x.xxEyy)static final intDisplay value using exponential representation (xEyy)static final intDisplay number of second as HH:MM:SSstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionJGL3DAxis(fr.esrf.tangoatk.widget.util.jgl3dchart.JGL3DView parent, int type) -
Method Summary
Modifier and TypeMethodDescriptiondoubleintReturns the axis label format.doubledoublegetName()doubleintgetScale()intdoublebooleanbooleanvoidsetAutoScale(boolean enable) Sets or unset the axis in autoscale mode.voidsetGainTransform(double gain) Sets the gain for axis coordinatesvoidsetLabelColor(Color color) Sets the label colorvoidsetLabelFont(Font lFont) Set the label fontvoidsetLabelFormat(int l) Sets the axis label format.voidsetMaximum(double max) Sets the axis maximumvoidsetMinimum(double min) Sets the axis minimumvoidSets the axis namevoidsetNameColor(Color color) Sets the axis name colorvoidsetNameFont(Font lFont) Set the axis name fontvoidsetOffsetTransform(double offset) Sets the offset for axis coordinatesvoidsetScale(int scale) Sets linear or log scalevoidsetTickSpacing(int tickSpacing) Set the minimum length between 2 labelsvoidsetTitleOffset(double offset) Sets the space between the axis name and the axis (to avoid label and name overlap)voidsetVisible(boolean visible) Make the axis visible or not
-
Field Details
-
XAXIS
public static final int XAXIS- See Also:
-
YAXIS
public static final int YAXIS- See Also:
-
ZAXIS
public static final int ZAXIS- See Also:
-
AUTO_FORMAT
public static final int AUTO_FORMATUse default compiler format to display double- See Also:
-
SCIENTIFIC_FORMAT
public static final int SCIENTIFIC_FORMATDisplay value using exponential representation (x.xxEyy)- See Also:
-
TIME_FORMAT
public static final int TIME_FORMATDisplay number of second as HH:MM:SS- See Also:
-
DECINT_FORMAT
public static final int DECINT_FORMATDisplay integer using decimal format- See Also:
-
HEXINT_FORMAT
public static final int HEXINT_FORMATDisplay integer using haxadecimal format- See Also:
-
BININT_FORMAT
public static final int BININT_FORMATDisplay integer using binary format- See Also:
-
SCIENTIFICINT_FORMAT
public static final int SCIENTIFICINT_FORMATDisplay value using exponential representation (xEyy)- See Also:
-
LINEAR_SCALE
public static final int LINEAR_SCALEUse linear scale for this axis- See Also:
-
LOG_SCALE
public static final int LOG_SCALEUse logarithmic scale for this axis- See Also:
-
-
Constructor Details
-
JGL3DAxis
public JGL3DAxis(fr.esrf.tangoatk.widget.util.jgl3dchart.JGL3DView parent, int type)
-
-
Method Details
-
setLabelFormat
public void setLabelFormat(int l) Sets the axis label format.- Parameters:
l- Format of values displayed on axis and in tooltips.- See Also:
-
getLabelFormat
public int getLabelFormat()Returns the axis label format.- Returns:
- Axis value format
- See Also:
-
setLabelFont
Set the label font- Parameters:
lFont- Label font
-
getLabelFont
- Returns:
- the label font
-
setLabelColor
Sets the label color- Parameters:
color- Label color
-
getLabelColor
- Returns:
- label color
-
setNameFont
Set the axis name font- Parameters:
lFont- Axis name font
-
getNameFont
- Returns:
- the axis name font
-
setNameColor
Sets the axis name color- Parameters:
color- Axis name color
-
getNameColor
- Returns:
- axis name color
-
setName
Sets the axis name- Parameters:
name- Axis name
-
getName
- Returns:
- the axis name
-
isVisible
public boolean isVisible()- Returns:
- true if the axis is visible
-
setVisible
public void setVisible(boolean visible) Make the axis visible or not- Parameters:
visible- Visible flag
-
setMaximum
public void setMaximum(double max) Sets the axis maximum- Parameters:
max- Maximum value
-
getMaximum
public double getMaximum()- Returns:
- maximum value of this axis
-
setMinimum
public void setMinimum(double min) Sets the axis minimum- Parameters:
min- Minimum value
-
setScale
public void setScale(int scale) Sets linear or log scale- Parameters:
scale- Scale- See Also:
-
getScale
public int getScale()- Returns:
- current scale
- See Also:
-
getMinimum
public double getMinimum()- Returns:
- minimum value of this axis
-
setAutoScale
public void setAutoScale(boolean enable) Sets or unset the axis in autoscale mode.- Parameters:
enable- Auto scale enable
-
isAutoScale
public boolean isAutoScale()- Returns:
- true wether this axis is auto scale \
-
setTickSpacing
public void setTickSpacing(int tickSpacing) Set the minimum length between 2 labels- Parameters:
tickSpacing- minimum length (pixel)
-
getTickSpacing
public int getTickSpacing()- Returns:
- the minimum length between 2 labels
-
setTitleOffset
public void setTitleOffset(double offset) Sets the space between the axis name and the axis (to avoid label and name overlap)- Parameters:
offset- Offset value
-
getTitleOffset
public double getTitleOffset()- Returns:
- the space between the axis name and the axis
-
setOffsetTransform
public void setOffsetTransform(double offset) Sets the offset for axis coordinates- Parameters:
offset- Offset value
-
getOffsetTransform
public double getOffsetTransform()- Returns:
- the offset for axis coordinates
-
setGainTransform
public void setGainTransform(double gain) Sets the gain for axis coordinates- Parameters:
gain- Gain value
-
getGainTransform
public double getGainTransform()- Returns:
- the gain for axis coordinates
-