Class AxisLayout
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.axis.layout.AxisLayout
-
- All Implemented Interfaces:
IAxisLayout
public class AxisLayout extends Object implements IAxisLayout
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jzy3d.plot3d.primitives.axis.layout.IAxisLayout
IAxisLayout.FontType
-
-
Field Summary
-
Fields inherited from interface org.jzy3d.plot3d.primitives.axis.layout.IAxisLayout
FONT_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description AxisLayout()Default AxeBox layout
-
Method Summary
-
-
-
Field Detail
-
tickLineDisplayed
protected boolean tickLineDisplayed
-
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
-
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
-
-
Method Detail
-
setMainColor
public void setMainColor(Color color)
- Specified by:
setMainColorin interfaceIAxisLayout
-
getMainColor
public Color getMainColor()
- Specified by:
getMainColorin interfaceIAxisLayout
-
getXTicks
public double[] getXTicks(double min, double max)- Specified by:
getXTicksin interfaceIAxisLayout
-
getYTicks
public double[] getYTicks(double min, double max)- Specified by:
getYTicksin interfaceIAxisLayout
-
getZTicks
public double[] getZTicks(double min, double max)- Specified by:
getZTicksin interfaceIAxisLayout
-
getXTicks
public double[] getXTicks()
- Specified by:
getXTicksin interfaceIAxisLayout
-
getYTicks
public double[] getYTicks()
- Specified by:
getYTicksin interfaceIAxisLayout
-
getZTicks
public double[] getZTicks()
- Specified by:
getZTicksin interfaceIAxisLayout
-
getXTickProvider
public ITickProvider getXTickProvider()
- Specified by:
getXTickProviderin interfaceIAxisLayout
-
setXTickProvider
public void setXTickProvider(ITickProvider tickProvider)
- Specified by:
setXTickProviderin interfaceIAxisLayout
-
getYTickProvider
public ITickProvider getYTickProvider()
- Specified by:
getYTickProviderin interfaceIAxisLayout
-
setYTickProvider
public void setYTickProvider(ITickProvider tickProvider)
- Specified by:
setYTickProviderin interfaceIAxisLayout
-
getZTickProvider
public ITickProvider getZTickProvider()
- Specified by:
getZTickProviderin interfaceIAxisLayout
-
setZTickProvider
public void setZTickProvider(ITickProvider tickProvider)
- Specified by:
setZTickProviderin interfaceIAxisLayout
-
getXTickRenderer
public ITickRenderer getXTickRenderer()
- Specified by:
getXTickRendererin interfaceIAxisLayout
-
setXTickRenderer
public void setXTickRenderer(ITickRenderer tickRenderer)
- Specified by:
setXTickRendererin interfaceIAxisLayout
-
getYTickRenderer
public ITickRenderer getYTickRenderer()
- Specified by:
getYTickRendererin interfaceIAxisLayout
-
setYTickRenderer
public void setYTickRenderer(ITickRenderer tickRenderer)
- Specified by:
setYTickRendererin interfaceIAxisLayout
-
getZTickRenderer
public ITickRenderer getZTickRenderer()
- Specified by:
getZTickRendererin interfaceIAxisLayout
-
setZTickRenderer
public void setZTickRenderer(ITickRenderer tickRenderer)
- Specified by:
setZTickRendererin interfaceIAxisLayout
-
getXTickColor
public Color getXTickColor()
- Specified by:
getXTickColorin interfaceIAxisLayout
-
setXTickColor
public void setXTickColor(Color tickColor)
- Specified by:
setXTickColorin interfaceIAxisLayout
-
getYTickColor
public Color getYTickColor()
- Specified by:
getYTickColorin interfaceIAxisLayout
-
setYTickColor
public void setYTickColor(Color tickColor)
- Specified by:
setYTickColorin interfaceIAxisLayout
-
getZTickColor
public Color getZTickColor()
- Specified by:
getZTickColorin interfaceIAxisLayout
-
setZTickColor
public void setZTickColor(Color tickColor)
- Specified by:
setZTickColorin interfaceIAxisLayout
-
isXTickLabelDisplayed
public boolean isXTickLabelDisplayed()
- Specified by:
isXTickLabelDisplayedin interfaceIAxisLayout
-
setXTickLabelDisplayed
public void setXTickLabelDisplayed(boolean tickLabelDisplayed)
Supported by EmulGL only- Specified by:
setXTickLabelDisplayedin interfaceIAxisLayout
-
isYTickLabelDisplayed
public boolean isYTickLabelDisplayed()
- Specified by:
isYTickLabelDisplayedin interfaceIAxisLayout
-
setYTickLabelDisplayed
public void setYTickLabelDisplayed(boolean tickLabelDisplayed)
Supported by EmulGL only- Specified by:
setYTickLabelDisplayedin interfaceIAxisLayout
-
isZTickLabelDisplayed
public boolean isZTickLabelDisplayed()
- Specified by:
isZTickLabelDisplayedin interfaceIAxisLayout
-
setZTickLabelDisplayed
public void setZTickLabelDisplayed(boolean tickLabelDisplayed)
Supported by EmulGL only- Specified by:
setZTickLabelDisplayedin interfaceIAxisLayout
-
isTickLineDisplayed
public boolean isTickLineDisplayed()
- Specified by:
isTickLineDisplayedin interfaceIAxisLayout
-
setTickLineDisplayed
public void setTickLineDisplayed(boolean tickLineDisplayed)
- Specified by:
setTickLineDisplayedin interfaceIAxisLayout
-
isAxisLabelOffsetAuto
public boolean isAxisLabelOffsetAuto()
- Specified by:
isAxisLabelOffsetAutoin interfaceIAxisLayout
-
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.- Specified by:
setAxisLabelOffsetAutoin interfaceIAxisLayout
-
getAxisLabelOffsetMargin
public int getAxisLabelOffsetMargin()
- Specified by:
getAxisLabelOffsetMarginin interfaceIAxisLayout
-
setAxisLabelOffsetMargin
public void setAxisLabelOffsetMargin(int margin)
When {@link #setAxisLabelOffsetAuto(true)}, use this margin to define the horizontal margin to let between the ticks and the axis labels- Specified by:
setAxisLabelOffsetMarginin interfaceIAxisLayout
-
getXAxisLabel
public String getXAxisLabel()
- Specified by:
getXAxisLabelin interfaceIAxisLayout
-
setXAxisLabel
public void setXAxisLabel(String axeLabel)
- Specified by:
setXAxisLabelin interfaceIAxisLayout
-
getYAxisLabel
public String getYAxisLabel()
- Specified by:
getYAxisLabelin interfaceIAxisLayout
-
setYAxisLabel
public void setYAxisLabel(String axeLabel)
- Specified by:
setYAxisLabelin interfaceIAxisLayout
-
getZAxisLabel
public String getZAxisLabel()
- Specified by:
getZAxisLabelin interfaceIAxisLayout
-
setZAxisLabel
public void setZAxisLabel(String axeLabel)
- Specified by:
setZAxisLabelin interfaceIAxisLayout
-
isXAxeLabelDisplayed
public boolean isXAxeLabelDisplayed()
- Specified by:
isXAxeLabelDisplayedin interfaceIAxisLayout
-
setXAxeLabelDisplayed
public void setXAxeLabelDisplayed(boolean axeLabelDisplayed)
- Specified by:
setXAxeLabelDisplayedin interfaceIAxisLayout
-
isYAxeLabelDisplayed
public boolean isYAxeLabelDisplayed()
- Specified by:
isYAxeLabelDisplayedin interfaceIAxisLayout
-
setYAxeLabelDisplayed
public void setYAxeLabelDisplayed(boolean axeLabelDisplayed)
- Specified by:
setYAxeLabelDisplayedin interfaceIAxisLayout
-
isZAxeLabelDisplayed
public boolean isZAxeLabelDisplayed()
- Specified by:
isZAxeLabelDisplayedin interfaceIAxisLayout
-
setZAxeLabelDisplayed
public void setZAxeLabelDisplayed(boolean axeLabelDisplayed)
- Specified by:
setZAxeLabelDisplayedin interfaceIAxisLayout
-
getXAxisLabelOrientation
public LabelOrientation getXAxisLabelOrientation()
- Specified by:
getXAxisLabelOrientationin interfaceIAxisLayout
-
setXAxisLabelOrientation
public void setXAxisLabelOrientation(LabelOrientation xAxisLabelOrientation)
- Specified by:
setXAxisLabelOrientationin interfaceIAxisLayout
-
getYAxisLabelOrientation
public LabelOrientation getYAxisLabelOrientation()
- Specified by:
getYAxisLabelOrientationin interfaceIAxisLayout
-
setYAxisLabelOrientation
public void setYAxisLabelOrientation(LabelOrientation yAxisLabelOrientation)
- Specified by:
setYAxisLabelOrientationin interfaceIAxisLayout
-
getZAxisLabelOrientation
public LabelOrientation getZAxisLabelOrientation()
- Specified by:
getZAxisLabelOrientationin interfaceIAxisLayout
-
setZAxisLabelOrientation
public void setZAxisLabelOrientation(LabelOrientation zAxisLabelOrientation)
- Specified by:
setZAxisLabelOrientationin interfaceIAxisLayout
-
getZAxisSide
public ZAxisSide getZAxisSide()
- Specified by:
getZAxisSidein interfaceIAxisLayout
-
setZAxisSide
public void setZAxisSide(ZAxisSide zAxisSide)
- Specified by:
setZAxisSidein interfaceIAxisLayout
-
isFaceDisplayed
public boolean isFaceDisplayed()
- Specified by:
isFaceDisplayedin interfaceIAxisLayout
-
setFaceDisplayed
public void setFaceDisplayed(boolean faceDisplayed)
- Specified by:
setFaceDisplayedin interfaceIAxisLayout
-
getQuadColor
public Color getQuadColor()
- Specified by:
getQuadColorin interfaceIAxisLayout
-
setQuadColor
public void setQuadColor(Color quadColor)
- Specified by:
setQuadColorin interfaceIAxisLayout
-
getGridColor
public Color getGridColor()
- Specified by:
getGridColorin interfaceIAxisLayout
-
setGridColor
public void setGridColor(Color gridColor)
- Specified by:
setGridColorin interfaceIAxisLayout
-
getFontSizePolicy
public IFontSizePolicy getFontSizePolicy()
- Specified by:
getFontSizePolicyin interfaceIAxisLayout
-
setFontSizePolicy
public void setFontSizePolicy(IFontSizePolicy fontSizePolicy)
- Specified by:
setFontSizePolicyin interfaceIAxisLayout
-
applyFontSizePolicy
public void applyFontSizePolicy()
- Specified by:
applyFontSizePolicyin interfaceIAxisLayout
-
getFont
public Font getFont()
- Specified by:
getFontin interfaceIAxisLayout
-
setFont
public void setFont(Font font)
- Specified by:
setFontin interfaceIAxisLayout
-
getFont
public Font getFont(IAxisLayout.FontType type, HiDPI hidpi)
Get registered font according to conditions- Specified by:
getFontin interfaceIAxisLayout- 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)
-
setFont
public void setFont(Font font, IAxisLayout.FontType type, HiDPI hidpi)
Get font according to a given context- Specified by:
setFontin interfaceIAxisLayout- 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)
-
-