public final class AxesPrimitive extends Primitive implements IDisposable
Constructor and Description |
---|
AxesPrimitive(ReferenceFrame sys,
Axes axes,
GraphicsFont font)
Initializes an axes primitive with the specified ISystem
sys as its source. |
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing) |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
BoundingSphere |
getBoundingSphere()
Gets the bounding sphere that encompasses the primitive.
|
Color |
getColor()
Gets the primitive's color.
|
boolean |
getDisplayLabel()
Gets or Sets whether the axes' label is displayed.
|
boolean |
getDisplayLines()
Gets or Sets whether persistence lines are displayed.
|
boolean |
getDisplaySweep()
Gets or Sets whether the persistence sweep (triangles) is displayed.
|
boolean |
getDisplayTrace()
Gets or Sets whether the persistence trace (points) is displayed.
|
boolean |
getFadePersistence()
Gets or Sets whether the persistence path should fade over time.
|
String |
getLabel()
Gets or Sets the axes label.
|
double |
getLength()
Gets or Sets the axes' source-to-arrow-tip length.
|
boolean |
getLighting()
Gets or Sets whether the primitive is lit.
|
double |
getPersistenceDuration()
Gets or Sets the maximum length (in seconds) of the persistence path.
|
double |
getPersistenceWidth()
Gets or Sets persistence point/line width.
|
double |
getWidth()
Gets or Sets the width in pixels.
|
void |
setColor(Color value)
Sets the primitive's color.
|
void |
setDisplayCondition(DisplayCondition value)
Sets the display condition that determines if the primitive should be
rendered.
|
void |
setDisplayLabel(boolean value)
Gets or Sets whether the axes' label is displayed.
|
void |
setDisplayLines(boolean value)
Gets or Sets whether persistence lines are displayed.
|
void |
setDisplaySweep(boolean value)
Gets or Sets whether the persistence sweep (triangles) is displayed.
|
void |
setDisplayTrace(boolean value)
Gets or Sets whether the persistence trace (points) is displayed.
|
void |
setFadePersistence(boolean value)
Gets or Sets whether the persistence path should fade over time.
|
void |
setLabel(String text)
Gets or Sets the axes label.
|
void |
setLength(double length)
Gets or Sets the axes' source-to-arrow-tip length.
|
void |
setLighting(boolean value)
Gets or Sets whether the primitive is lit.
|
void |
setPersistenceDuration(double value)
Gets or Sets the maximum length (in seconds) of the persistence path.
|
void |
setPersistenceWidth(double persistenceLineWidth)
Gets or Sets persistence point/line width.
|
void |
setReferenceFrame(ReferenceFrame value)
Sets the reference frame this primitive is defined and rendered in.
|
void |
setTranslucency(float value)
Sets the primitive's translucency.
|
void |
setWidth(double thickness)
Gets or Sets the width in pixels.
|
dispose, getAutomaticallyComputeBoundingSphere, getDisplay, getDisplayCondition, getReferenceFrame, getTag, getTranslucency, setAutomaticallyComputeBoundingSphere, setBoundingSphere, setDisplay, setTag
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, dispose
public AxesPrimitive(ReferenceFrame sys, Axes axes, GraphicsFont font)
sys
as its source.
The primitive's properties are initialized to the following values:
agi.foundation.graphics.primitive.ReferenceFrame
: sysagi.foundation.graphics.primitive.Translucency
: 0.0f
DisplayLabel
: false
DisplayTrace
: false
DisplaySweep
: false
DisplayLines
: false
FadePersistence
: false
Once the primitive is constructed, it must be added to
Primitives
(get
) before it will be rendered.
protected void finalize() throws Throwable
java.lang.Object
finalize
method to dispose of
system resources or to perform other cleanup.
The general contract of finalize
is that it is invoked
if and when the Java™ virtual
machine has determined that there is no longer any
means by which this object can be accessed by any thread that has
not yet died, except as a result of an action taken by the
finalization of some other object or class which is ready to be
finalized. The finalize
method may take any action, including
making this object available again to other threads; the usual purpose
of finalize
, however, is to perform cleanup actions before
the object is irrevocably discarded. For example, the finalize method
for an object that represents an input/output connection might perform
explicit I/O transactions to break the connection before the object is
permanently discarded.
The finalize
method of class Object
performs no
special action; it simply returns normally. Subclasses of
Object
may override this definition.
The Java programming language does not guarantee which thread will
invoke the finalize
method for any given object. It is
guaranteed, however, that the thread that invokes finalize will not
be holding any user-visible synchronization locks when finalize is
invoked. If an uncaught exception is thrown by the finalize method,
the exception is ignored and finalization of that object terminates.
After the finalize
method has been invoked for an object, no
further action is taken until the Java virtual machine has again
determined that there is no longer any means by which this object can
be accessed by any thread that has not yet died, including possible
actions by other objects or classes which are ready to be finalized,
at which point the object may be discarded.
The finalize
method is never invoked more than once by a Java
virtual machine for any given object.
Any exception thrown by the finalize
method causes
the finalization of this object to be halted, but is otherwise
ignored.
finalize
in class Object
Throwable
- the Exception
raised by this methodWeakReference
,
PhantomReference
public final boolean getLighting()
public final void setLighting(boolean value)
public final String getLabel()
DisplayLabel
public final void setLabel(String text)
DisplayLabel
public final boolean getDisplayLabel()
Label
public final void setDisplayLabel(boolean value)
Label
public final boolean getDisplayTrace()
DisplaySweep
,
DisplayLines
,
PersistenceWidth
,
FadePersistence
,
PersistenceDuration
public final void setDisplayTrace(boolean value)
DisplaySweep
,
DisplayLines
,
PersistenceWidth
,
FadePersistence
,
PersistenceDuration
public final boolean getDisplaySweep()
DisplayTrace
,
DisplayLines
,
FadePersistence
,
PersistenceDuration
public final void setDisplaySweep(boolean value)
DisplayTrace
,
DisplayLines
,
FadePersistence
,
PersistenceDuration
public final boolean getDisplayLines()
DisplayTrace
,
DisplaySweep
,
PersistenceWidth
,
FadePersistence
,
PersistenceDuration
public final void setDisplayLines(boolean value)
DisplayTrace
,
DisplaySweep
,
PersistenceWidth
,
FadePersistence
,
PersistenceDuration
public final double getPersistenceWidth()
DisplayTrace
,
DisplayLines
public final void setPersistenceWidth(double persistenceLineWidth)
DisplayTrace
,
DisplayLines
public final boolean getFadePersistence()
DisplayTrace
,
DisplaySweep
,
DisplayLines
,
PersistenceDuration
public final void setFadePersistence(boolean value)
DisplayTrace
,
DisplaySweep
,
DisplayLines
,
PersistenceDuration
public final double getPersistenceDuration()
DisplayTrace
,
DisplaySweep
,
DisplayLines
,
FadePersistence
public final void setPersistenceDuration(double value)
DisplayTrace
,
DisplaySweep
,
DisplayLines
,
FadePersistence
public final double getLength()
public final void setLength(double length)
public final double getWidth()
Length
public final void setWidth(double thickness)
Length
public void setReferenceFrame(ReferenceFrame value)
Primitive
setReferenceFrame
in class Primitive
public Color getColor()
Primitive
public void setColor(Color value)
Primitive
public BoundingSphere getBoundingSphere()
Primitive
ReferenceFrame
.getBoundingSphere
in class Primitive
public void setDisplayCondition(DisplayCondition value)
Primitive
Display
must evaluate to true
for
the primitive to be rendered.
When DisplayCondition
is null
, no display condition is
evaluated before the primitive is rendered.
setDisplayCondition
in class Primitive
DisplayCondition
,
Display
public void setTranslucency(float value)
Primitive
Translucency
is between 0
and 1
,
where 0
is opaque and 1
is transparent.setTranslucency
in class Primitive