Class AxisLayout
java.lang.Object
org.jzy3d.plot3d.primitives.axis.layout.AxisLayout
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected booleanprotected intprotected booleanprotected Fontstatic final Fontprotected Fontprotected Fontprotected Fontprotected Fontprotected IFontSizePolicyprotected Colorprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected Colorprotected Colorprotected floatprotected booleanprotected Stringprotected booleanprotected LabelOrientationprotected Colorprotected booleanprotected ITickProviderprotected ITickRendererprotected double[]protected Stringprotected booleanprotected LabelOrientationprotected Colorprotected booleanprotected ITickProviderprotected ITickRendererprotected double[]protected Stringprotected booleanprotected LabelOrientationprotected ZAxisSideprotected Colorprotected booleanprotected ITickProviderprotected ITickRendererprotected double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplySettings(AxisLayout from) clone()protected AxisLayoutcopy(AxisLayout from, AxisLayout to) floatintgetFont()getFont(AxisLayout.FontType type, HiDPI hidpi) Get registered font according to conditionsintgetMaxXTickLabelWidth(IPainter painter) Return the maximum text length in pixel as displayed on screen, given the current ticks and rendererintgetMaxYTickLabelWidth(IPainter painter) Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Y axisintgetMaxZTickLabelWidth(IPainter painter) Return the maximum text length in pixel as displayed on screen, given the current ticks and renderer on the Z axisintgetRightMostXTickLabelWidth(IPainter painter) floatdouble[]double[]getXTicks(double min, double max) double[]double[]getYTicks(double min, double max) double[]double[]getZTicks(double min, double max) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAxisLabelDistance(float axisLabelDistance) voidsetAxisLabelOffsetAuto(boolean isAuto) When enabled, the axis will have the X, Y and Z axis label shifted to avoid covering the tick labels.voidsetAxisLabelOffsetMargin(int margin) When}, use this margin to define the horizontal margin to let between the ticks and the axis labelsinvalid @link
{@link #setAxisLabelOffsetAuto(true)voidsetFaceDisplayed(boolean faceDisplayed) voidvoidsetFont(Font font, AxisLayout.FontType type, HiDPI hidpi) Get font according to a given contextvoidsetFontSizePolicy(IFontSizePolicy fontSizePolicy) voidsetGridColor(Color gridColor) voidsetMainColor(Color color) voidsetQuadColor(Color quadColor) voidsetTickLengthRatio(float tickLengthRatio) Set the length of ticks, given as a ratio of the scene bounds.voidsetTickLineDisplayed(boolean tickLineDisplayed) voidsetXAxisLabel(String axeLabel) voidsetXAxisLabelDisplayed(boolean axeLabelDisplayed) voidsetXAxisLabelOrientation(LabelOrientation xAxisLabelOrientation) voidsetXTickColor(Color tickColor) voidsetXTickLabelDisplayed(boolean tickLabelDisplayed) Supported by EmulGL onlyvoidsetXTickProvider(ITickProvider tickProvider) voidsetXTickRenderer(ITickRenderer tickRenderer) voidsetYAxisLabel(String axeLabel) voidsetYAxisLabelDisplayed(boolean axeLabelDisplayed) voidsetYAxisLabelOrientation(LabelOrientation yAxisLabelOrientation) voidsetYTickColor(Color tickColor) voidsetYTickLabelDisplayed(boolean tickLabelDisplayed) Supported by EmulGL onlyvoidsetYTickProvider(ITickProvider tickProvider) voidsetYTickRenderer(ITickRenderer tickRenderer) voidsetZAxisLabel(String axeLabel) voidsetZAxisLabelDisplayed(boolean axeLabelDisplayed) voidsetZAxisLabelOrientation(LabelOrientation zAxisLabelOrientation) voidsetZAxisSide(ZAxisSide zAxisSide) voidsetZTickColor(Color tickColor) voidsetZTickLabelDisplayed(boolean tickLabelDisplayed) Supported by EmulGL onlyvoidsetZTickProvider(ITickProvider tickProvider) voidsetZTickRenderer(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) When}, use this margin to define the horizontal margin to let between the ticks and the axis labelsinvalid @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
-