public class JGL3DAxis
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTO_FORMAT
Use default compiler format to display double
|
static int |
BININT_FORMAT
Display integer using binary format
|
static int |
DECINT_FORMAT
Display integer using decimal format
|
static int |
HEXINT_FORMAT
Display integer using haxadecimal format
|
static int |
LINEAR_SCALE
Use linear scale for this axis
|
static int |
LOG_SCALE
Use logarithmic scale for this axis
|
static int |
SCIENTIFIC_FORMAT
Display value using exponential representation (x.xxEyy)
|
static int |
SCIENTIFICINT_FORMAT
Display value using exponential representation (xEyy)
|
static int |
TIME_FORMAT
Display number of second as HH:MM:SS
|
static int |
XAXIS |
static int |
YAXIS |
static int |
ZAXIS |
Constructor and Description |
---|
JGL3DAxis(fr.esrf.tangoatk.widget.util.jgl3dchart.JGL3DView parent,
int type) |
Modifier and Type | Method and Description |
---|---|
double |
getGainTransform()
Returns the gain for axis coordinates
|
java.awt.Color |
getLabelColor()
Returns label color
|
java.awt.Font |
getLabelFont()
Returns the label font
|
int |
getLabelFormat()
Returns the axis label format.
|
double |
getMaximum()
Returns maximum value of this axis
|
double |
getMinimum()
Returns minimum value of this axis
|
java.lang.String |
getName()
Returns the axis name
|
java.awt.Color |
getNameColor()
Returns axis name color
|
java.awt.Font |
getNameFont()
Returns the axis name font
|
double |
getOffsetTransform()
Returns the offset for axis coordinates
|
int |
getTickSpacing()
Returns the minimum length between 2 labels
|
double |
getTitleOffset()
Returns the space between the axis name and the axis
|
boolean |
isAutoScale()
Returns true wether this axis is auto scale
\
|
boolean |
isVisible()
Returns true if the axis is visible
|
void |
setAutoScale(boolean enable)
Sets or unset the axis in autoscale mode.
|
void |
setGainTransform(double gain)
Sets the gain for axis coordinates
|
void |
setLabelColor(java.awt.Color color)
Sets the label color
|
void |
setLabelFont(java.awt.Font lFont)
Set the label font
|
void |
setLabelFormat(int l)
Sets the axis label format.
|
void |
setMaximum(double max)
Sets the axis maximum
|
void |
setMinimum(double min)
Sets the axis minimum
|
void |
setName(java.lang.String name)
Sets the axis name
|
void |
setNameColor(java.awt.Color color)
Sets the axis name color
|
void |
setNameFont(java.awt.Font lFont)
Set the axis name font
|
void |
setOffsetTransform(double offset)
Sets the offset for axis coordinates
|
void |
setTickSpacing(int tickSpacing)
Set the minimum length between 2 labels
|
void |
setTitleOffset(double offset)
Sets the space between the axis name and the axis (to avoid label and name overlap)
|
void |
setVisible(boolean visible)
Make the axis visible or not
|
public static final int XAXIS
public static final int YAXIS
public static final int ZAXIS
public static final int AUTO_FORMAT
public static final int SCIENTIFIC_FORMAT
public static final int TIME_FORMAT
public static final int DECINT_FORMAT
public static final int HEXINT_FORMAT
public static final int BININT_FORMAT
public static final int SCIENTIFICINT_FORMAT
public static final int LINEAR_SCALE
public static final int LOG_SCALE
public JGL3DAxis(fr.esrf.tangoatk.widget.util.jgl3dchart.JGL3DView parent, int type)
public void setLabelFormat(int l)
l
- Format of values displayed on axis and in tooltips.AUTO_FORMAT
,
SCIENTIFIC_FORMAT
,
TIME_FORMAT
,
DECINT_FORMAT
,
HEXINT_FORMAT
,
BININT_FORMAT
,
SCIENTIFICINT_FORMAT
,
getLabelFormat()
public int getLabelFormat()
setLabelFormat(int)
public void setLabelFont(java.awt.Font lFont)
lFont
- Label fontpublic java.awt.Font getLabelFont()
public void setLabelColor(java.awt.Color color)
color
- Label colorpublic java.awt.Color getLabelColor()
public void setNameFont(java.awt.Font lFont)
lFont
- Axis name fontpublic java.awt.Font getNameFont()
public void setNameColor(java.awt.Color color)
color
- Axis name colorpublic java.awt.Color getNameColor()
public void setName(java.lang.String name)
name
- Axis namepublic java.lang.String getName()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- Visible flagpublic void setMaximum(double max)
max
- Maximum valuepublic double getMaximum()
public void setMinimum(double min)
min
- Minimum valuepublic double getMinimum()
public void setAutoScale(boolean enable)
enable
- Auto scale enablepublic boolean isAutoScale()
public void setTickSpacing(int tickSpacing)
tickSpacing
- minimum length (pixel)public int getTickSpacing()
public void setTitleOffset(double offset)
offset
- Offset valuepublic double getTitleOffset()
public void setOffsetTransform(double offset)
offset
- Offset valuepublic double getOffsetTransform()
public void setGainTransform(double gain)
gain
- Gain valuepublic double getGainTransform()