Documentation of 'smile.plot.Axis' Java class
Axis
smile.plot

Class Axis



  • public class Axis
    extends java.lang.Object
    This class describes an axis of a coordinate system.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Axis(Base base, int index)
      Constructor.
      Axis(Base base, int index, java.lang.String label)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Axis addLabel(java.lang.String[] label, double[] location)
      Add a label to the axis at given location.
      Axis addLabel(java.lang.String label, double location)
      Add a label to the axis at given location.
      java.lang.String getAxisLabel()
      Returns the label of the axis.
      int getLinearSlices()
      Returns the number of slices in linear scale.
      boolean isFrameVisible()
      Returns the visibility of the frame grid lines and their labels.
      boolean isGridVisible()
      Returns the visibility of the grid lines and their labels.
      boolean isLabelVisible()
      Returns the visibility of the axis label.
      void paint(Graphics g)
      Draw the axis.
      Axis removeLabel(java.lang.String label)
      Remove a label from the axis.
      Axis setAxisLabel(java.lang.String label)
      Sets the label of this axis.
      Axis setBase(Base base)
      Set the base coordinate space.
      Axis setFrameVisible(boolean v)
      Set the visibility of the frame grid lines and their labels.
      Axis setGridVisible(boolean v)
      Set the visibility of the grid lines and their labels.
      Axis setLabelVisible(boolean v)
      Set the visibility of the axis label.
      Axis setRotation(double rotation)
      Sets the rotation degree of grid label strings.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Axis

        public Axis(Base base,
                    int index)
        Constructor.
      • Axis

        public Axis(Base base,
                    int index,
                    java.lang.String label)
        Constructor.
    • Method Detail

      • setBase

        public Axis setBase(Base base)
        Set the base coordinate space.
      • setRotation

        public Axis setRotation(double rotation)
        Sets the rotation degree of grid label strings.
        Parameters:
        rotation - rotation degree.
      • addLabel

        public Axis addLabel(java.lang.String label,
                             double location)
        Add a label to the axis at given location.
      • addLabel

        public Axis addLabel(java.lang.String[] label,
                             double[] location)
        Add a label to the axis at given location.
      • removeLabel

        public Axis removeLabel(java.lang.String label)
        Remove a label from the axis.
      • getLinearSlices

        public int getLinearSlices()
        Returns the number of slices in linear scale.
      • setGridVisible

        public Axis setGridVisible(boolean v)
        Set the visibility of the grid lines and their labels.
      • isGridVisible

        public boolean isGridVisible()
        Returns the visibility of the grid lines and their labels.
      • setFrameVisible

        public Axis setFrameVisible(boolean v)
        Set the visibility of the frame grid lines and their labels.
      • isFrameVisible

        public boolean isFrameVisible()
        Returns the visibility of the frame grid lines and their labels.
      • setLabelVisible

        public Axis setLabelVisible(boolean v)
        Set the visibility of the axis label.
      • isLabelVisible

        public boolean isLabelVisible()
        Returns the visibility of the axis label.
      • setAxisLabel

        public Axis setAxisLabel(java.lang.String label)
        Sets the label of this axis.
      • getAxisLabel

        public java.lang.String getAxisLabel()
        Returns the label of the axis.
      • paint

        public void paint(Graphics g)
        Draw the axis.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.