Class AxisLayout
java.lang.Object
org.jzy3d.plot3d.primitives.axis.layout.AxisLayout
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected boolean
protected int
protected boolean
protected Font
static final Font
protected Font
protected Font
protected Font
protected Font
protected IFontSizePolicy
protected Color
protected double
protected double
protected double
protected double
protected double
protected double
protected Color
protected Color
protected float
protected boolean
protected String
protected boolean
protected LabelOrientation
protected Color
protected boolean
protected ITickProvider
protected ITickRenderer
protected double[]
protected String
protected boolean
protected LabelOrientation
protected Color
protected boolean
protected ITickProvider
protected ITickRenderer
protected double[]
protected String
protected boolean
protected LabelOrientation
protected ZAxisSide
protected Color
protected boolean
protected ITickProvider
protected ITickRenderer
protected double[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applySettings
(AxisLayout from) clone()
protected AxisLayout
copy
(AxisLayout from, AxisLayout to) float
int
getFont()
getFont
(AxisLayout.FontType type, HiDPI hidpi) Get registered font according to conditionsint
getMaxXTickLabelWidth
(IPainter painter) Return the maximum text length in pixel as displayed on screen, given the current ticks and rendererint
getMaxYTickLabelWidth
(IPainter painter) Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Y axisint
getMaxZTickLabelWidth
(IPainter painter) Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Z axisint
getRightMostXTickLabelWidth
(IPainter painter) float
double[]
double[]
getXTicks
(double min, double max) double[]
double[]
getYTicks
(double min, double max) double[]
double[]
getZTicks
(double min, double max) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAxisLabelDistance
(float axisLabelDistance) void
setAxisLabelOffsetAuto
(boolean isAuto) When enabled, the axis will have the X, Y and Z axis label shifted to avoid covering the tick labels.void
setAxisLabelOffsetMargin
(int margin) Wheninvalid @link
{@link #setAxisLabelOffsetAuto(true)
void
setFaceDisplayed
(boolean faceDisplayed) void
void
setFont
(Font font, AxisLayout.FontType type, HiDPI hidpi) Get font according to a given contextvoid
setFontSizePolicy
(IFontSizePolicy fontSizePolicy) void
setGridColor
(Color gridColor) void
setMainColor
(Color color) void
setQuadColor
(Color quadColor) void
setTickLengthRatio
(float tickLengthRatio) Set the length of ticks, given as a ratio of the scene bounds.void
setTickLineDisplayed
(boolean tickLineDisplayed) void
setXAxisLabel
(String axeLabel) void
setXAxisLabelDisplayed
(boolean axeLabelDisplayed) void
setXAxisLabelOrientation
(LabelOrientation xAxisLabelOrientation) void
setXTickColor
(Color tickColor) void
setXTickLabelDisplayed
(boolean tickLabelDisplayed) Supported by EmulGL onlyvoid
setXTickProvider
(ITickProvider tickProvider) void
setXTickRenderer
(ITickRenderer tickRenderer) void
setYAxisLabel
(String axeLabel) void
setYAxisLabelDisplayed
(boolean axeLabelDisplayed) void
setYAxisLabelOrientation
(LabelOrientation yAxisLabelOrientation) void
setYTickColor
(Color tickColor) void
setYTickLabelDisplayed
(boolean tickLabelDisplayed) Supported by EmulGL onlyvoid
setYTickProvider
(ITickProvider tickProvider) void
setYTickRenderer
(ITickRenderer tickRenderer) void
setZAxisLabel
(String axeLabel) void
setZAxisLabelDisplayed
(boolean axeLabelDisplayed) void
setZAxisLabelOrientation
(LabelOrientation zAxisLabelOrientation) void
setZAxisSide
(ZAxisSide zAxisSide) void
setZTickColor
(Color tickColor) void
setZTickLabelDisplayed
(boolean tickLabelDisplayed) Supported by EmulGL onlyvoid
setZTickProvider
(ITickProvider tickProvider) void
setZTickRenderer
(ITickRenderer tickRenderer)
-
Field Details
-
FONT_DEFAULT
-
fontSizePolicy
-
font
-
fontMajorHiDPI
-
fontMinorHiDPI
-
fontMajorNoHiDPI
-
fontMinorNoHiDPI
-
xAxisLabelOrientation
-
yAxisLabelOrientation
-
zAxisLabelOrientation
-
xAxeLabel
-
yAxeLabel
-
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
-
yTickProvider
-
zTickProvider
-
xTickRenderer
-
yTickRenderer
-
zTickRenderer
-
xTickColor
-
yTickColor
-
zTickColor
-
xTickLabelDisplayed
protected boolean xTickLabelDisplayed -
yTickLabelDisplayed
protected boolean yTickLabelDisplayed -
zTickLabelDisplayed
protected boolean zTickLabelDisplayed -
faceDisplayed
protected boolean faceDisplayed -
quadColor
-
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
-
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
-
getMainColor
-
getMaxXTickLabelWidth
Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer -
getRightMostXTickLabelWidth
-
getMaxYTickLabelWidth
Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Y axis -
getMaxZTickLabelWidth
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
-
setXTickProvider
-
getYTickProvider
-
setYTickProvider
-
getZTickProvider
-
setZTickProvider
-
getXTickRenderer
-
setXTickRenderer
-
getYTickRenderer
-
setYTickRenderer
-
getZTickRenderer
-
setZTickRenderer
-
getXTickColor
-
setXTickColor
-
getYTickColor
-
setYTickColor
-
getZTickColor
-
setZTickColor
-
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) Wheninvalid @link
{@link #setAxisLabelOffsetAuto(true)
-
getXAxisLabel
-
setXAxisLabel
-
getYAxisLabel
-
setYAxisLabel
-
getZAxisLabel
-
setZAxisLabel
-
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
-
setXAxisLabelOrientation
-
getYAxisLabelOrientation
-
setYAxisLabelOrientation
-
getZAxisLabelOrientation
-
setZAxisLabelOrientation
-
getZAxisSide
-
setZAxisSide
-
isFaceDisplayed
public boolean isFaceDisplayed() -
setFaceDisplayed
public void setFaceDisplayed(boolean faceDisplayed) -
getQuadColor
-
setQuadColor
-
getGridColor
-
setGridColor
-
getFontSizePolicy
-
setFontSizePolicy
-
applyFontSizePolicy
public void applyFontSizePolicy() -
getFont
-
setFont
-
getFont
Get registered font according to conditions- Parameters:
type
- the major/minor font casehidpi
- 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
Get font according to a given context- Parameters:
font
- the font to use for the contexttype
- the major/minor font possibilites that a drawable or colorbar may usehidpi
- the HiDPI context for this font, allowing to define bigger fonts in case screen resolution is high (and text small)
-
clone
-
applySettings
-
copy
-