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 BoundingBox3d
boundingBox
protected AxisLayout
layout
protected Coord3d
scale
protected SpaceTransformer
spaceTransformer
protected ITextRenderer
textRenderer
-
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 void
dispose()
void
draw(IPainter painter)
List<AxeAnnotation>
getAnnotations()
BoundingBox3d
getBounds()
Coord3d
getCenter()
Get the minimum values of the bounding box for each dimension.AxisLayout
getLayout()
Coord3d
getScale()
SpaceTransformer
getSpaceTransformer()
ITextRenderer
getTextRenderer()
BoundingBox3d
getWholeBounds()
void
setAnnotations(List<AxeAnnotation> annotations)
void
setAxe(BoundingBox3d box)
void
setScale(Coord3d scale)
Set the scaling factor that are applied on this object before GL2 commands.void
setSpaceTransformer(SpaceTransformer spaceTransformer)
void
setTextRenderer(ITextRenderer renderer)
-
-
-
Field Detail
-
scale
protected Coord3d scale
-
boundingBox
protected BoundingBox3d boundingBox
-
layout
protected AxisLayout 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 AxisLayout getLayout()
-
getSpaceTransformer
public SpaceTransformer getSpaceTransformer()
- Specified by:
getSpaceTransformer
in interfaceIAxis
-
setSpaceTransformer
public void setSpaceTransformer(SpaceTransformer spaceTransformer)
- Specified by:
setSpaceTransformer
in interfaceIAxis
-
getAnnotations
public List<AxeAnnotation> getAnnotations()
- Specified by:
getAnnotations
in interfaceIAxis
-
setAnnotations
public void setAnnotations(List<AxeAnnotation> annotations)
- Specified by:
setAnnotations
in interfaceIAxis
-
getWholeBounds
public BoundingBox3d getWholeBounds()
- Specified by:
getWholeBounds
in interfaceIAxis
-
getTextRenderer
public ITextRenderer getTextRenderer()
- Specified by:
getTextRenderer
in interfaceIAxis
-
setTextRenderer
public void setTextRenderer(ITextRenderer renderer)
- Specified by:
setTextRenderer
in interfaceIAxis
-
-