Class AxisLayout

java.lang.Object
org.jzy3d.plot3d.primitives.axis.layout.AxisLayout

public class AxisLayout extends Object
  • Field Details

    • FONT_DEFAULT

      public static final Font FONT_DEFAULT
    • fontSizePolicy

      protected IFontSizePolicy fontSizePolicy
    • font

      protected Font font
    • fontMajorHiDPI

      protected Font fontMajorHiDPI
    • fontMinorHiDPI

      protected Font fontMinorHiDPI
    • fontMajorNoHiDPI

      protected Font fontMajorNoHiDPI
    • fontMinorNoHiDPI

      protected Font fontMinorNoHiDPI
    • xAxisLabelOrientation

      protected LabelOrientation xAxisLabelOrientation
    • yAxisLabelOrientation

      protected LabelOrientation yAxisLabelOrientation
    • zAxisLabelOrientation

      protected LabelOrientation zAxisLabelOrientation
    • xAxeLabel

      protected String xAxeLabel
    • yAxeLabel

      protected String yAxeLabel
    • zAxeLabel

      protected String zAxeLabel
    • xAxeLabelDisplayed

      protected boolean xAxeLabelDisplayed
    • yAxeLabelDisplayed

      protected boolean yAxeLabelDisplayed
    • zAxeLabelDisplayed

      protected boolean zAxeLabelDisplayed
    • tickLineDisplayed

      protected boolean tickLineDisplayed
    • xTicks

      protected double[] xTicks
    • yTicks

      protected double[] yTicks
    • zTicks

      protected double[] zTicks
    • xTickProvider

      protected ITickProvider xTickProvider
    • yTickProvider

      protected ITickProvider yTickProvider
    • zTickProvider

      protected ITickProvider zTickProvider
    • xTickRenderer

      protected ITickRenderer xTickRenderer
    • yTickRenderer

      protected ITickRenderer yTickRenderer
    • zTickRenderer

      protected ITickRenderer zTickRenderer
    • xTickColor

      protected Color xTickColor
    • yTickColor

      protected Color yTickColor
    • zTickColor

      protected Color zTickColor
    • xTickLabelDisplayed

      protected boolean xTickLabelDisplayed
    • yTickLabelDisplayed

      protected boolean yTickLabelDisplayed
    • zTickLabelDisplayed

      protected boolean zTickLabelDisplayed
    • faceDisplayed

      protected boolean faceDisplayed
    • quadColor

      protected Color quadColor
    • gridColor

      protected Color gridColor
    • lastXmin

      protected double lastXmin
    • lastXmax

      protected double lastXmax
    • lastYmin

      protected double lastYmin
    • lastYmax

      protected double lastYmax
    • lastZmin

      protected double lastZmin
    • lastZmax

      protected double lastZmax
    • mainColor

      protected Color mainColor
    • zAxisSide

      protected ZAxisSide zAxisSide
    • axisLabelOffsetAuto

      protected boolean axisLabelOffsetAuto
    • axisLabelOffsetMargin

      protected int axisLabelOffsetMargin
    • tickLengthRatio

      protected float tickLengthRatio
    • axisLabelDistance

      protected float axisLabelDistance
  • Constructor Details

    • AxisLayout

      public AxisLayout()
      Default AxeBox layout
  • Method Details

    • setMainColor

      public void setMainColor(Color color)
    • getMainColor

      public Color getMainColor()
    • getMaxXTickLabelWidth

      public int getMaxXTickLabelWidth(IPainter painter)
      Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer
    • getRightMostXTickLabelWidth

      public int getRightMostXTickLabelWidth(IPainter painter)
    • getMaxYTickLabelWidth

      public int getMaxYTickLabelWidth(IPainter painter)
      Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Y axis
    • getMaxZTickLabelWidth

      public int getMaxZTickLabelWidth(IPainter painter)
      Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Z axis
    • getXTicks

      public double[] getXTicks(double min, double max)
    • getYTicks

      public double[] getYTicks(double min, double max)
    • getZTicks

      public double[] getZTicks(double min, double max)
    • getXTicks

      public double[] getXTicks()
    • getYTicks

      public double[] getYTicks()
    • getZTicks

      public double[] getZTicks()
    • getXTickProvider

      public ITickProvider getXTickProvider()
    • setXTickProvider

      public void setXTickProvider(ITickProvider tickProvider)
    • getYTickProvider

      public ITickProvider getYTickProvider()
    • setYTickProvider

      public void setYTickProvider(ITickProvider tickProvider)
    • getZTickProvider

      public ITickProvider getZTickProvider()
    • setZTickProvider

      public void setZTickProvider(ITickProvider tickProvider)
    • getXTickRenderer

      public ITickRenderer getXTickRenderer()
    • setXTickRenderer

      public void setXTickRenderer(ITickRenderer tickRenderer)
    • getYTickRenderer

      public ITickRenderer getYTickRenderer()
    • setYTickRenderer

      public void setYTickRenderer(ITickRenderer tickRenderer)
    • getZTickRenderer

      public ITickRenderer getZTickRenderer()
    • setZTickRenderer

      public void setZTickRenderer(ITickRenderer tickRenderer)
    • getXTickColor

      public Color getXTickColor()
    • setXTickColor

      public void setXTickColor(Color tickColor)
    • getYTickColor

      public Color getYTickColor()
    • setYTickColor

      public void setYTickColor(Color tickColor)
    • getZTickColor

      public Color getZTickColor()
    • setZTickColor

      public void setZTickColor(Color tickColor)
    • isXTickLabelDisplayed

      public boolean isXTickLabelDisplayed()
    • setXTickLabelDisplayed

      public void setXTickLabelDisplayed(boolean tickLabelDisplayed)
      Supported by EmulGL only
    • isYTickLabelDisplayed

      public boolean isYTickLabelDisplayed()
    • setYTickLabelDisplayed

      public void setYTickLabelDisplayed(boolean tickLabelDisplayed)
      Supported by EmulGL only
    • isZTickLabelDisplayed

      public boolean isZTickLabelDisplayed()
    • setZTickLabelDisplayed

      public void setZTickLabelDisplayed(boolean tickLabelDisplayed)
      Supported by EmulGL only
    • isTickLineDisplayed

      public boolean isTickLineDisplayed()
    • setTickLineDisplayed

      public void setTickLineDisplayed(boolean tickLineDisplayed)
    • isAxisLabelOffsetAuto

      public boolean isAxisLabelOffsetAuto()
    • setAxisLabelOffsetAuto

      public void setAxisLabelOffsetAuto(boolean isAuto)
      When enabled, the axis will have the X, Y and Z axis label shifted to avoid covering the tick labels.
    • getAxisLabelOffsetMargin

      public int getAxisLabelOffsetMargin()
    • setAxisLabelOffsetMargin

      public void setAxisLabelOffsetMargin(int margin)
      When
      invalid @link
      {@link #setAxisLabelOffsetAuto(true)
      }, use this margin to define the horizontal margin to let between the ticks and the axis labels
    • getXAxisLabel

      public String getXAxisLabel()
    • setXAxisLabel

      public void setXAxisLabel(String axeLabel)
    • getYAxisLabel

      public String getYAxisLabel()
    • setYAxisLabel

      public void setYAxisLabel(String axeLabel)
    • getZAxisLabel

      public String getZAxisLabel()
    • setZAxisLabel

      public void setZAxisLabel(String axeLabel)
    • isXAxisLabelDisplayed

      public boolean isXAxisLabelDisplayed()
    • setXAxisLabelDisplayed

      public void setXAxisLabelDisplayed(boolean axeLabelDisplayed)
    • isYAxisLabelDisplayed

      public boolean isYAxisLabelDisplayed()
    • setYAxisLabelDisplayed

      public void setYAxisLabelDisplayed(boolean axeLabelDisplayed)
    • isZAxisLabelDisplayed

      public boolean isZAxisLabelDisplayed()
    • setZAxisLabelDisplayed

      public void setZAxisLabelDisplayed(boolean axeLabelDisplayed)
    • getXAxisLabelOrientation

      public LabelOrientation getXAxisLabelOrientation()
    • setXAxisLabelOrientation

      public void setXAxisLabelOrientation(LabelOrientation xAxisLabelOrientation)
    • getYAxisLabelOrientation

      public LabelOrientation getYAxisLabelOrientation()
    • setYAxisLabelOrientation

      public void setYAxisLabelOrientation(LabelOrientation yAxisLabelOrientation)
    • getZAxisLabelOrientation

      public LabelOrientation getZAxisLabelOrientation()
    • setZAxisLabelOrientation

      public void setZAxisLabelOrientation(LabelOrientation zAxisLabelOrientation)
    • getZAxisSide

      public ZAxisSide getZAxisSide()
    • setZAxisSide

      public void setZAxisSide(ZAxisSide zAxisSide)
    • isFaceDisplayed

      public boolean isFaceDisplayed()
    • setFaceDisplayed

      public void setFaceDisplayed(boolean faceDisplayed)
    • getQuadColor

      public Color getQuadColor()
    • setQuadColor

      public void setQuadColor(Color quadColor)
    • getGridColor

      public Color getGridColor()
    • setGridColor

      public void setGridColor(Color gridColor)
    • getFontSizePolicy

      public IFontSizePolicy getFontSizePolicy()
    • setFontSizePolicy

      public void setFontSizePolicy(IFontSizePolicy fontSizePolicy)
    • applyFontSizePolicy

      public void applyFontSizePolicy()
    • getFont

      public Font getFont()
    • setFont

      public void setFont(Font font)
    • getFont

      public Font getFont(AxisLayout.FontType type, HiDPI hidpi)
      Get registered font according to conditions
      Parameters:
      type - the major/minor font case
      hidpi - the HiDPI context for this font, allowing to define bigger fonts in case screen resolution is high (and text small)
    • getTickLengthRatio

      public float getTickLengthRatio()
    • setTickLengthRatio

      public void setTickLengthRatio(float tickLengthRatio)
      Set the length of ticks, given as a ratio of the scene bounds. If scene bounding box range is 100 and tickLengthRatio is 20, then the actual tick length on screen will be of 5 pixels.
    • getAxisLabelDistance

      public float getAxisLabelDistance()
    • setAxisLabelDistance

      public void setAxisLabelDistance(float axisLabelDistance)
    • setFont

      public void setFont(Font font, AxisLayout.FontType type, HiDPI hidpi)
      Get font according to a given context
      Parameters:
      font - the font to use for the context
      type - the major/minor font possibilites that a drawable or colorbar may use
      hidpi - the HiDPI context for this font, allowing to define bigger fonts in case screen resolution is high (and text small)
    • clone

      public AxisLayout clone()
      Overrides:
      clone in class Object
    • applySettings

      public void applySettings(AxisLayout from)
    • copy

      protected AxisLayout copy(AxisLayout from, AxisLayout to)