Package org.jzy3d.plot3d.primitives.axis
Class AxisBase
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.axis.AxisBase
-
-
Field Summary
Fields Modifier and Type Field Description protected BoundingBox3dboundingBoxprotected IAxisLayoutlayoutprotected Coord3dscaleprotected SpaceTransformerspaceTransformerprotected ITextRenderertextRenderer
-
Constructor Summary
Constructors Constructor Description AxisBase()Create a simple axe centered on (0,0,0), with a dimension of 1.AxisBase(BoundingBox3d box)Create a simple axe centered on (box.xmin, box.ymin, box.zmin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voiddraw(IPainter painter)List<AxeAnnotation>getAnnotations()BoundingBox3dgetBounds()Coord3dgetCenter()Get the minimum values of the bounding box for each dimension.IAxisLayoutgetLayout()Coord3dgetScale()SpaceTransformergetSpaceTransformer()ITextRenderergetTextRenderer()BoundingBox3dgetWholeBounds()voidsetAnnotations(List<AxeAnnotation> annotations)voidsetAxe(BoundingBox3d box)voidsetScale(Coord3d scale)Set the scaling factor that are applied on this object before GL2 commands.voidsetSpaceTransformer(SpaceTransformer spaceTransformer)voidsetTextRenderer(ITextRenderer renderer)
-
-
-
Field Detail
-
scale
protected Coord3d scale
-
boundingBox
protected BoundingBox3d boundingBox
-
layout
protected IAxisLayout layout
-
spaceTransformer
protected SpaceTransformer spaceTransformer
-
textRenderer
protected ITextRenderer textRenderer
-
-
Constructor Detail
-
AxisBase
public AxisBase()
Create a simple axe centered on (0,0,0), with a dimension of 1.
-
AxisBase
public AxisBase(BoundingBox3d box)
Create a simple axe centered on (box.xmin, box.ymin, box.zmin)
-
-
Method Detail
-
setAxe
public void setAxe(BoundingBox3d box)
-
setScale
public void setScale(Coord3d scale)
Set the scaling factor that are applied on this object before GL2 commands.
-
getBounds
public BoundingBox3d getBounds()
-
getCenter
public Coord3d getCenter()
Get the minimum values of the bounding box for each dimension.
-
getLayout
public IAxisLayout getLayout()
-
getSpaceTransformer
public SpaceTransformer getSpaceTransformer()
- Specified by:
getSpaceTransformerin interfaceIAxis
-
setSpaceTransformer
public void setSpaceTransformer(SpaceTransformer spaceTransformer)
- Specified by:
setSpaceTransformerin interfaceIAxis
-
getAnnotations
public List<AxeAnnotation> getAnnotations()
- Specified by:
getAnnotationsin interfaceIAxis
-
setAnnotations
public void setAnnotations(List<AxeAnnotation> annotations)
- Specified by:
setAnnotationsin interfaceIAxis
-
getWholeBounds
public BoundingBox3d getWholeBounds()
- Specified by:
getWholeBoundsin interfaceIAxis
-
getTextRenderer
public ITextRenderer getTextRenderer()
- Specified by:
getTextRendererin interfaceIAxis
-
setTextRenderer
public void setTextRenderer(ITextRenderer renderer)
- Specified by:
setTextRendererin interfaceIAxis
-
-