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:
setMainColor
in interfaceIAxisLayout
-
getMainColor
public Color getMainColor()
- Specified by:
getMainColor
in interfaceIAxisLayout
-
getXTicks
public double[] getXTicks(double min, double max)
- Specified by:
getXTicks
in interfaceIAxisLayout
-
getYTicks
public double[] getYTicks(double min, double max)
- Specified by:
getYTicks
in interfaceIAxisLayout
-
getZTicks
public double[] getZTicks(double min, double max)
- Specified by:
getZTicks
in interfaceIAxisLayout
-
getXTicks
public double[] getXTicks()
- Specified by:
getXTicks
in interfaceIAxisLayout
-
getYTicks
public double[] getYTicks()
- Specified by:
getYTicks
in interfaceIAxisLayout
-
getZTicks
public double[] getZTicks()
- Specified by:
getZTicks
in interfaceIAxisLayout
-
getXTickProvider
public ITickProvider getXTickProvider()
- Specified by:
getXTickProvider
in interfaceIAxisLayout
-
setXTickProvider
public void setXTickProvider(ITickProvider tickProvider)
- Specified by:
setXTickProvider
in interfaceIAxisLayout
-
getYTickProvider
public ITickProvider getYTickProvider()
- Specified by:
getYTickProvider
in interfaceIAxisLayout
-
setYTickProvider
public void setYTickProvider(ITickProvider tickProvider)
- Specified by:
setYTickProvider
in interfaceIAxisLayout
-
getZTickProvider
public ITickProvider getZTickProvider()
- Specified by:
getZTickProvider
in interfaceIAxisLayout
-
setZTickProvider
public void setZTickProvider(ITickProvider tickProvider)
- Specified by:
setZTickProvider
in interfaceIAxisLayout
-
getXTickRenderer
public ITickRenderer getXTickRenderer()
- Specified by:
getXTickRenderer
in interfaceIAxisLayout
-
setXTickRenderer
public void setXTickRenderer(ITickRenderer tickRenderer)
- Specified by:
setXTickRenderer
in interfaceIAxisLayout
-
getYTickRenderer
public ITickRenderer getYTickRenderer()
- Specified by:
getYTickRenderer
in interfaceIAxisLayout
-
setYTickRenderer
public void setYTickRenderer(ITickRenderer tickRenderer)
- Specified by:
setYTickRenderer
in interfaceIAxisLayout
-
getZTickRenderer
public ITickRenderer getZTickRenderer()
- Specified by:
getZTickRenderer
in interfaceIAxisLayout
-
setZTickRenderer
public void setZTickRenderer(ITickRenderer tickRenderer)
- Specified by:
setZTickRenderer
in interfaceIAxisLayout
-
getXTickColor
public Color getXTickColor()
- Specified by:
getXTickColor
in interfaceIAxisLayout
-
setXTickColor
public void setXTickColor(Color tickColor)
- Specified by:
setXTickColor
in interfaceIAxisLayout
-
getYTickColor
public Color getYTickColor()
- Specified by:
getYTickColor
in interfaceIAxisLayout
-
setYTickColor
public void setYTickColor(Color tickColor)
- Specified by:
setYTickColor
in interfaceIAxisLayout
-
getZTickColor
public Color getZTickColor()
- Specified by:
getZTickColor
in interfaceIAxisLayout
-
setZTickColor
public void setZTickColor(Color tickColor)
- Specified by:
setZTickColor
in interfaceIAxisLayout
-
isXTickLabelDisplayed
public boolean isXTickLabelDisplayed()
- Specified by:
isXTickLabelDisplayed
in interfaceIAxisLayout
-
setXTickLabelDisplayed
public void setXTickLabelDisplayed(boolean tickLabelDisplayed)
Supported by EmulGL only- Specified by:
setXTickLabelDisplayed
in interfaceIAxisLayout
-
isYTickLabelDisplayed
public boolean isYTickLabelDisplayed()
- Specified by:
isYTickLabelDisplayed
in interfaceIAxisLayout
-
setYTickLabelDisplayed
public void setYTickLabelDisplayed(boolean tickLabelDisplayed)
Supported by EmulGL only- Specified by:
setYTickLabelDisplayed
in interfaceIAxisLayout
-
isZTickLabelDisplayed
public boolean isZTickLabelDisplayed()
- Specified by:
isZTickLabelDisplayed
in interfaceIAxisLayout
-
setZTickLabelDisplayed
public void setZTickLabelDisplayed(boolean tickLabelDisplayed)
Supported by EmulGL only- Specified by:
setZTickLabelDisplayed
in interfaceIAxisLayout
-
isTickLineDisplayed
public boolean isTickLineDisplayed()
- Specified by:
isTickLineDisplayed
in interfaceIAxisLayout
-
setTickLineDisplayed
public void setTickLineDisplayed(boolean tickLineDisplayed)
- Specified by:
setTickLineDisplayed
in interfaceIAxisLayout
-
isAxisLabelOffsetAuto
public boolean isAxisLabelOffsetAuto()
- Specified by:
isAxisLabelOffsetAuto
in 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:
setAxisLabelOffsetAuto
in interfaceIAxisLayout
-
getAxisLabelOffsetMargin
public int getAxisLabelOffsetMargin()
- Specified by:
getAxisLabelOffsetMargin
in 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:
setAxisLabelOffsetMargin
in interfaceIAxisLayout
-
getXAxisLabel
public String getXAxisLabel()
- Specified by:
getXAxisLabel
in interfaceIAxisLayout
-
setXAxisLabel
public void setXAxisLabel(String axeLabel)
- Specified by:
setXAxisLabel
in interfaceIAxisLayout
-
getYAxisLabel
public String getYAxisLabel()
- Specified by:
getYAxisLabel
in interfaceIAxisLayout
-
setYAxisLabel
public void setYAxisLabel(String axeLabel)
- Specified by:
setYAxisLabel
in interfaceIAxisLayout
-
getZAxisLabel
public String getZAxisLabel()
- Specified by:
getZAxisLabel
in interfaceIAxisLayout
-
setZAxisLabel
public void setZAxisLabel(String axeLabel)
- Specified by:
setZAxisLabel
in interfaceIAxisLayout
-
isXAxeLabelDisplayed
public boolean isXAxeLabelDisplayed()
- Specified by:
isXAxeLabelDisplayed
in interfaceIAxisLayout
-
setXAxeLabelDisplayed
public void setXAxeLabelDisplayed(boolean axeLabelDisplayed)
- Specified by:
setXAxeLabelDisplayed
in interfaceIAxisLayout
-
isYAxeLabelDisplayed
public boolean isYAxeLabelDisplayed()
- Specified by:
isYAxeLabelDisplayed
in interfaceIAxisLayout
-
setYAxeLabelDisplayed
public void setYAxeLabelDisplayed(boolean axeLabelDisplayed)
- Specified by:
setYAxeLabelDisplayed
in interfaceIAxisLayout
-
isZAxeLabelDisplayed
public boolean isZAxeLabelDisplayed()
- Specified by:
isZAxeLabelDisplayed
in interfaceIAxisLayout
-
setZAxeLabelDisplayed
public void setZAxeLabelDisplayed(boolean axeLabelDisplayed)
- Specified by:
setZAxeLabelDisplayed
in interfaceIAxisLayout
-
getXAxisLabelOrientation
public LabelOrientation getXAxisLabelOrientation()
- Specified by:
getXAxisLabelOrientation
in interfaceIAxisLayout
-
setXAxisLabelOrientation
public void setXAxisLabelOrientation(LabelOrientation xAxisLabelOrientation)
- Specified by:
setXAxisLabelOrientation
in interfaceIAxisLayout
-
getYAxisLabelOrientation
public LabelOrientation getYAxisLabelOrientation()
- Specified by:
getYAxisLabelOrientation
in interfaceIAxisLayout
-
setYAxisLabelOrientation
public void setYAxisLabelOrientation(LabelOrientation yAxisLabelOrientation)
- Specified by:
setYAxisLabelOrientation
in interfaceIAxisLayout
-
getZAxisLabelOrientation
public LabelOrientation getZAxisLabelOrientation()
- Specified by:
getZAxisLabelOrientation
in interfaceIAxisLayout
-
setZAxisLabelOrientation
public void setZAxisLabelOrientation(LabelOrientation zAxisLabelOrientation)
- Specified by:
setZAxisLabelOrientation
in interfaceIAxisLayout
-
getZAxisSide
public ZAxisSide getZAxisSide()
- Specified by:
getZAxisSide
in interfaceIAxisLayout
-
setZAxisSide
public void setZAxisSide(ZAxisSide zAxisSide)
- Specified by:
setZAxisSide
in interfaceIAxisLayout
-
isFaceDisplayed
public boolean isFaceDisplayed()
- Specified by:
isFaceDisplayed
in interfaceIAxisLayout
-
setFaceDisplayed
public void setFaceDisplayed(boolean faceDisplayed)
- Specified by:
setFaceDisplayed
in interfaceIAxisLayout
-
getQuadColor
public Color getQuadColor()
- Specified by:
getQuadColor
in interfaceIAxisLayout
-
setQuadColor
public void setQuadColor(Color quadColor)
- Specified by:
setQuadColor
in interfaceIAxisLayout
-
getGridColor
public Color getGridColor()
- Specified by:
getGridColor
in interfaceIAxisLayout
-
setGridColor
public void setGridColor(Color gridColor)
- Specified by:
setGridColor
in interfaceIAxisLayout
-
getFontSizePolicy
public IFontSizePolicy getFontSizePolicy()
- Specified by:
getFontSizePolicy
in interfaceIAxisLayout
-
setFontSizePolicy
public void setFontSizePolicy(IFontSizePolicy fontSizePolicy)
- Specified by:
setFontSizePolicy
in interfaceIAxisLayout
-
applyFontSizePolicy
public void applyFontSizePolicy()
- Specified by:
applyFontSizePolicy
in interfaceIAxisLayout
-
getFont
public Font getFont()
- Specified by:
getFont
in interfaceIAxisLayout
-
setFont
public void setFont(Font font)
- Specified by:
setFont
in interfaceIAxisLayout
-
getFont
public Font getFont(IAxisLayout.FontType type, HiDPI hidpi)
Get registered font according to conditions- Specified by:
getFont
in 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:
setFont
in 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)
-
-