Documentation of 'org.jlab.groot.ui.GraphicsAxis' Java class
GraphicsAxis
org.jlab.groot.ui

Class GraphicsAxis



  • public class GraphicsAxis
    extends java.lang.Object
    • Constructor Detail

      • GraphicsAxis

        public GraphicsAxis()
        default
    • Method Detail

      • setDimension

        public final GraphicsAxis setDimension(int xmin,
                                               int xmax)
        sets the dimension for the axis for plotting.
        Parameters:
        xmin -
        xmax -
        Returns:
      • setLog

        public void setLog(boolean logflag)
        Sets logarithmic scale for the axis
        Parameters:
        logflag -
      • getLog

        public boolean getLog()
        returns the logarithmic properties of the axis
        Returns:
      • setRange

        public final GraphicsAxis setRange(double min,
                                           double max)
        Sets the range of the axis, it also updates the axis labels.
        Parameters:
        min -
        max -
        Returns:
      • show

        public void show()
        prints string representation of the axis.
      • getAxisPosition

        public double getAxisPosition(double value)
        returns position along the axis, the dimension of the axis has to be set.
        Parameters:
        value -
        Returns:
      • getTitleFont

        public FontProperties getTitleFont()
        returns properties of the title font
        Returns:
      • getLabelFont

        public FontProperties getLabelFont()
        returns properties for the label fonts.
        Returns:
      • getSize

        public int getSize(java.awt.Graphics2D g2d,
                           boolean vertical)
      • getAxisDivisions

        public int getAxisDivisions()
      • setAxisDivisions

        public void setAxisDivisions(int ndiv)
      • getAxisTicks

        public java.util.List<java.lang.Double> getAxisTicks()
      • getAxisMinorTicks

        public java.util.List<java.lang.Double> getAxisMinorTicks()
      • getLabelFraction

        public double getLabelFraction(java.awt.Graphics2D g2d,
                                       boolean isVertical)
      • getAxisLabels

        public java.util.List<LatexText> getAxisLabels()
      • toString

        public java.lang.String toString()
        returns string representation of the axis.
        Overrides:
        toString in class java.lang.Object
        Returns:
      • main

        public static void main(java.lang.String[] args)
        main program for testing the axis
        Parameters:
        args -

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.