Class JGL3DAxis

java.lang.Object
fr.esrf.tangoatk.widget.util.jgl3dchart.JGL3DAxis

public class JGL3DAxis extends Object
Class which handles chart axis.
Author:
JL Pons
  • 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_FORMAT
      Use default compiler format to display double
      See Also:
    • SCIENTIFIC_FORMAT

      public static final int SCIENTIFIC_FORMAT
      Display value using exponential representation (x.xxEyy)
      See Also:
    • TIME_FORMAT

      public static final int TIME_FORMAT
      Display number of second as HH:MM:SS
      See Also:
    • DECINT_FORMAT

      public static final int DECINT_FORMAT
      Display integer using decimal format
      See Also:
    • HEXINT_FORMAT

      public static final int HEXINT_FORMAT
      Display integer using haxadecimal format
      See Also:
    • BININT_FORMAT

      public static final int BININT_FORMAT
      Display integer using binary format
      See Also:
    • SCIENTIFICINT_FORMAT

      public static final int SCIENTIFICINT_FORMAT
      Display value using exponential representation (xEyy)
      See Also:
    • LINEAR_SCALE

      public static final int LINEAR_SCALE
      Use linear scale for this axis
      See Also:
    • LOG_SCALE

      public static final int LOG_SCALE
      Use 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

      public void setLabelFont(Font lFont)
      Set the label font
      Parameters:
      lFont - Label font
    • getLabelFont

      public Font getLabelFont()
      Returns:
      the label font
    • setLabelColor

      public void setLabelColor(Color color)
      Sets the label color
      Parameters:
      color - Label color
    • getLabelColor

      public Color getLabelColor()
      Returns:
      label color
    • setNameFont

      public void setNameFont(Font lFont)
      Set the axis name font
      Parameters:
      lFont - Axis name font
    • getNameFont

      public Font getNameFont()
      Returns:
      the axis name font
    • setNameColor

      public void setNameColor(Color color)
      Sets the axis name color
      Parameters:
      color - Axis name color
    • getNameColor

      public Color getNameColor()
      Returns:
      axis name color
    • setName

      public void setName(String name)
      Sets the axis name
      Parameters:
      name - Axis name
    • getName

      public String 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