Package org.jzy3d.plot3d.rendering.view
Class View2DLayout
java.lang.Object
org.jzy3d.plot3d.rendering.view.View2DLayout
Allows configuring the layout of a view when the chart enters a 2D rendering mode.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
If true, reverse direction of horizontal axisprotected float
Distance between tick labels and axis labelprotected float
Distance between axis and tick labels (hence, length of the tick)protected Margin
Distance between canvas content and canvas border (i.e. empty borders dimension)protected boolean
When true, the global left margin (including text) will equal the global right margin.protected boolean
When true, the global left margin (including text) will equal the global right margin.protected boolean
protected boolean
If true, reverse direction of vertical axisprotected float
Distance between tick labels and axis labelprotected float
Distance between axis and tick labels (hence, length of the tick) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applySettings
(View2DLayout source) clone()
protected View2DLayout
copy
(View2DLayout from, View2DLayout to) float
float
float
float
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAxisLabelDistance
(float dist) void
setBothAxisFlip
(boolean axisFlip) void
setHorizontalAxisFlip
(boolean horizontalAxisFlip) void
setHorizontalAxisLabelsDistance
(float horizontalAxisLabelsDistance) Distance between tick labels and axis labelvoid
setHorizontalTickLabelsDistance
(float horizontalAxisLabelsDistance) void
setMargin
(int margin) A convenient shortcut to set the same margin to left, right, bottom and right canvas borders.void
void
setMarginHorizontal
(int margin) A convenient shortcut to set the same margin to left and right canvas borders.void
setMarginVertical
(int margin) A convenient shortcut to set the same margin to top and bottom canvas borders.void
setSymetricHorizontalMargin
(boolean symetricHorizontalMargin) void
setSymetricMargin
(boolean symetricMargin) void
setSymetricVerticalMargin
(boolean symetricVerticalMargin) void
setTextAddMargin
(boolean keepTextVisible) Only usefull for debugging purpose, should not be used.void
setTickLabelDistance
(float dist) void
setVerticalAxisFlip
(boolean verticalAxisFlip) void
setVerticalAxisLabelsDistance
(float verticalAxisLabelsDistance) Distance between tick labels and axis labelvoid
setVerticalTickLabelsDistance
(float verticalAxisLabelsDistance)
-
Field Details
-
textAddMargin
protected boolean textAddMargin -
symetricHorizontalMargin
protected boolean symetricHorizontalMarginWhen 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 symetricVerticalMarginWhen 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 horizontalTickLabelsDistanceDistance between axis and tick labels (hence, length of the tick) -
horizontalAxisLabelsDistance
protected float horizontalAxisLabelsDistanceDistance between tick labels and axis label -
verticalTickLabelsDistance
protected float verticalTickLabelsDistanceDistance between axis and tick labels (hence, length of the tick) -
verticalAxisLabelsDistance
protected float verticalAxisLabelsDistanceDistance between tick labels and axis label -
margin
Distance between canvas content and canvas border (i.e. empty borders dimension) -
horizontalAxisFlip
protected boolean horizontalAxisFlipIf true, reverse direction of horizontal axis -
verticalAxisFlip
protected boolean verticalAxisFlipIf 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
-
setMargin
-
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
-
applySettings
-
copy
-