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

Class GraphicsAxisLabels



  • public class GraphicsAxisLabels
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getAxisLabelsHeight(java.awt.Graphics2D g2d)
      returns combined height of all axis labels.
      int getAxisLabelsWidth(java.awt.Graphics2D g2d)
      returns combined width of all labels.
      int getAxisMaxHeight(java.awt.Graphics2D g2d) 
      int getAxisMaxWidth(java.awt.Graphics2D g2d) 
      java.util.List<LatexText> getLabels() 
      int getSignificantFigures(java.util.List<java.lang.Double> array)
      calculates significant figures between two end points.
      java.util.List<java.lang.Double> getTicks() 
      GraphicsAxisLabels setFontName(java.lang.String name)
      set Font name for all axis labels.
      GraphicsAxisLabels setFontSize(int size)
      set font size for all axis labels.
      java.lang.String toString() 
      void update(double[] numbers)
      updates the array with given ticks and constructs a LatexText array with strings for axis labels;
      void update(double[] numbers, java.lang.String[] labels) 
      void update(java.util.List<java.lang.Double> numbers)
      updates the array with given ticks and constructs a LatexText array with strings for axis labels;
      void updateLog(java.util.List<java.lang.Double> numbers) 
      • Methods inherited from class java.lang.Object

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

      • GraphicsAxisLabels

        public GraphicsAxisLabels()
    • Method Detail

      • getTicks

        public java.util.List<java.lang.Double> getTicks()
      • getLabels

        public java.util.List<LatexText> getLabels()
      • update

        public void update(double[] numbers,
                           java.lang.String[] labels)
      • setFontSize

        public GraphicsAxisLabels setFontSize(int size)
        set font size for all axis labels.
        Parameters:
        size -
        Returns:
      • setFontName

        public GraphicsAxisLabels setFontName(java.lang.String name)
        set Font name for all axis labels.
        Parameters:
        name -
        Returns:
      • update

        public void update(double[] numbers)
        updates the array with given ticks and constructs a LatexText array with strings for axis labels;
        Parameters:
        numbers -
      • updateLog

        public void updateLog(java.util.List<java.lang.Double> numbers)
      • update

        public void update(java.util.List<java.lang.Double> numbers)
        updates the array with given ticks and constructs a LatexText array with strings for axis labels;
        Parameters:
        numbers -
      • getSignificantFigures

        public int getSignificantFigures(java.util.List<java.lang.Double> array)
        calculates significant figures between two end points. used to figure out how to construct the string for the labels.
        Parameters:
        array -
        Returns:
      • getAxisLabelsWidth

        public int getAxisLabelsWidth(java.awt.Graphics2D g2d)
        returns combined width of all labels.
        Parameters:
        g2d -
        Returns:
      • getAxisLabelsHeight

        public int getAxisLabelsHeight(java.awt.Graphics2D g2d)
        returns combined height of all axis labels.
        Parameters:
        g2d -
        Returns:
      • getAxisMaxWidth

        public int getAxisMaxWidth(java.awt.Graphics2D g2d)
      • getAxisMaxHeight

        public int getAxisMaxHeight(java.awt.Graphics2D g2d)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.