Class View2DLayout

java.lang.Object
org.jzy3d.plot3d.rendering.view.View2DLayout

public class View2DLayout extends Object
Allows configuring the layout of a view when the chart enters a 2D rendering mode.
  • Field Details

    • textAddMargin

      protected boolean textAddMargin
    • symetricHorizontalMargin

      protected boolean symetricHorizontalMargin
      When true, the global left margin (including text) will equal the global right margin. Allows the embedding axis to appear horizontally centered in the canvas.
    • symetricVerticalMargin

      protected boolean symetricVerticalMargin
      When true, the global left margin (including text) will equal the global right margin. Allows the embedding axis to appear horizontally centered in the canvas.
    • horizontalTickLabelsDistance

      protected float horizontalTickLabelsDistance
      Distance between axis and tick labels (hence, length of the tick)
    • horizontalAxisLabelsDistance

      protected float horizontalAxisLabelsDistance
      Distance between tick labels and axis label
    • verticalTickLabelsDistance

      protected float verticalTickLabelsDistance
      Distance between axis and tick labels (hence, length of the tick)
    • verticalAxisLabelsDistance

      protected float verticalAxisLabelsDistance
      Distance between tick labels and axis label
    • margin

      protected Margin margin
      Distance between canvas content and canvas border (i.e. empty borders dimension)
    • horizontalAxisFlip

      protected boolean horizontalAxisFlip
      If true, reverse direction of horizontal axis
    • verticalAxisFlip

      protected boolean verticalAxisFlip
      If true, reverse direction of vertical axis
  • Constructor Details

    • View2DLayout

      public View2DLayout()
  • Method Details

    • setSymetricMargin

      public void setSymetricMargin(boolean symetricMargin)
    • setTickLabelDistance

      public void setTickLabelDistance(float dist)
    • setAxisLabelDistance

      public void setAxisLabelDistance(float dist)
    • setMargin

      public void setMargin(int margin)
      A convenient shortcut to set the same margin to left, right, bottom and right canvas borders.
    • setMarginHorizontal

      public void setMarginHorizontal(int margin)
      A convenient shortcut to set the same margin to left and right canvas borders.
    • setMarginVertical

      public void setMarginVertical(int margin)
      A convenient shortcut to set the same margin to top and bottom canvas borders.
    • getMargin

      public Margin getMargin()
    • setMargin

      public void setMargin(Margin margin)
    • isTextAddMargin

      public boolean isTextAddMargin()
    • setTextAddMargin

      public void setTextAddMargin(boolean keepTextVisible)
      Only usefull for debugging purpose, should not be used.
    • getHorizontalTickLabelsDistance

      public float getHorizontalTickLabelsDistance()
    • setHorizontalTickLabelsDistance

      public void setHorizontalTickLabelsDistance(float horizontalAxisLabelsDistance)
    • getHorizontalAxisLabelsDistance

      public float getHorizontalAxisLabelsDistance()
    • setHorizontalAxisLabelsDistance

      public void setHorizontalAxisLabelsDistance(float horizontalAxisLabelsDistance)
      Distance between tick labels and axis label
    • getVerticalTickLabelsDistance

      public float getVerticalTickLabelsDistance()
    • setVerticalTickLabelsDistance

      public void setVerticalTickLabelsDistance(float verticalAxisLabelsDistance)
    • getVerticalAxisLabelsDistance

      public float getVerticalAxisLabelsDistance()
    • setVerticalAxisLabelsDistance

      public void setVerticalAxisLabelsDistance(float verticalAxisLabelsDistance)
      Distance between tick labels and axis label
    • isSymetricHorizontalMargin

      public boolean isSymetricHorizontalMargin()
    • setSymetricHorizontalMargin

      public void setSymetricHorizontalMargin(boolean symetricHorizontalMargin)
    • isSymetricVerticalMargin

      public boolean isSymetricVerticalMargin()
    • setSymetricVerticalMargin

      public void setSymetricVerticalMargin(boolean symetricVerticalMargin)
    • isNoAxisFlipped

      public boolean isNoAxisFlipped()
    • isBothAxisFlipped

      public boolean isBothAxisFlipped()
    • isHorizontalAxisFlipOnly

      public boolean isHorizontalAxisFlipOnly()
    • isVerticalAxisFlipOnly

      public boolean isVerticalAxisFlipOnly()
    • isHorizontalAxisFlip

      public boolean isHorizontalAxisFlip()
    • setHorizontalAxisFlip

      public void setHorizontalAxisFlip(boolean horizontalAxisFlip)
    • isVerticalAxisFlip

      public boolean isVerticalAxisFlip()
    • setVerticalAxisFlip

      public void setVerticalAxisFlip(boolean verticalAxisFlip)
    • setBothAxisFlip

      public void setBothAxisFlip(boolean axisFlip)
    • clone

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

      public void applySettings(View2DLayout source)
    • copy

      protected View2DLayout copy(View2DLayout from, View2DLayout to)