Class PlaneSurfaceFactory.Profile

  • Enclosing class:
    PlaneSurfaceFactory

    public static class PlaneSurfaceFactory.Profile
    extends java.lang.Object
    Profile class which defines fixed configuration items for a PlaneSurface. Instances of this class are normally obtained from the createProfile method.
    • Constructor Summary

      Constructors 
      Constructor Description
      Profile​(boolean xlog, boolean ylog, boolean xflip, boolean yflip, java.lang.String xlabel, java.lang.String ylabel, Captioner captioner, double xyfactor, boolean grid, double xcrowd, double ycrowd, boolean minor, java.awt.Color gridcolor, java.awt.Color axlabelcolor)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] getLogFlags()
      Returns a 2-element array giving X and Y log flags.
      • Methods inherited from class java.lang.Object

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

      • Profile

        public Profile​(boolean xlog,
                       boolean ylog,
                       boolean xflip,
                       boolean yflip,
                       java.lang.String xlabel,
                       java.lang.String ylabel,
                       Captioner captioner,
                       double xyfactor,
                       boolean grid,
                       double xcrowd,
                       double ycrowd,
                       boolean minor,
                       java.awt.Color gridcolor,
                       java.awt.Color axlabelcolor)
        Constructor.
        Parameters:
        xlog - whether to use logarithmic scaling on X axis
        ylog - whether to use logarithmic scaling on Y axis
        xflip - whether to invert direction of X axis
        yflip - whether to invert direction of Y axis
        xlabel - text for labelling X axis
        ylabel - text for labelling Y axis
        captioner - text renderer for axis labels etc
        xyfactor - ratio (X axis unit length)/(Y axis unit length), or NaN to use whatever bounds shape and axis limits give you
        grid - whether to draw grid lines
        xcrowd - crowding factor for tick marks on X axis; 1 is normal
        ycrowd - crowding factor for tick marks on Y axis; 1 is normal
        minor - whether to paint minor tick marks on axes
        gridcolor - colour of grid lines, if plotted
        axlabelcolor - colour of axis labels
    • Method Detail

      • getLogFlags

        public boolean[] getLogFlags()
        Returns a 2-element array giving X and Y log flags.
        Returns:
        (xlog, ylog) array