public abstract class GenModelNote extends AbstractNote<GenModelNote> implements Transformable<GenModelNote>
Modified by: Joseph A. Huwaldt
DEFAULT_FONT
RESOURCES
Constructor and Description |
---|
GenModelNote() |
Modifier and Type | Method and Description |
---|---|
abstract GenModelNote |
changeHeight(Parameter<Length> height)
Return a new note object identical to this one, but with the specified height in
model space.
|
Point |
getBoundsMax()
Return the coordinate point representing the maximum bounding box corner (e.g.: max
X, max Y, max Z).
|
Point |
getBoundsMin()
Return the coordinate point representing the minimum bounding box corner (e.g.: min
X, min Y, min Z).
|
abstract Parameter<Length> |
getHeight()
Return the height of the text box in model units.
|
Point |
getLimitPoint(int dim,
boolean max,
double tol)
Returns the most extreme point, either minimum or maximum, in the specified
coordinate direction on this geometry element.
|
Vector<Dimensionless> |
getNormal()
Return the (at least 3D) vector indicating the normal axis direction for the text.
|
DCMatrix |
getOrientation()
Return a direction cosine matrix containing the orientation of the note string.
|
ModelNoteTrans |
getTransformed(GTransform transform)
Returns transformed version of this element.
|
Parameter<Length> |
getWidth()
Return the width of the text box in model units.
|
abstract GeomVector<Dimensionless> |
getXHat()
Return the vector indicating the horizontal axis direction for the text.
|
abstract GeomVector<Dimensionless> |
getYHat()
Return the vector indicating the vertical axis direction (or ascent direction) for
the text.
|
abstract ModelNote |
immutable()
Return an immutable version of this note.
|
int |
size()
Returns the number of child-elements that make up this geometry element.
|
javolution.text.Text |
toText()
Returns the text representation of this geometry element that consists of the text
string, the orienting plane and location, and the text box height.
|
changeFont, changeLocation, getFont, getLocation, getNote, getParDimension, length
addChangeListener, clone, compareTo, equals, getAllUserData, getID, getName, getUserData, hashCode, putAllUserData, putUserData, removeChangeListener, removeUserData, reset, setName, toString
addChangeListener, copy, copyToReal, getAllUserData, getID, getName, getParDimension, getPhyDimension, getUnit, getUserData, isValid, putAllUserData, putUserData, removeChangeListener, removeUserData, setName, to, toDimension
public GenModelNote()
public abstract ModelNote immutable()
public abstract GeomVector<Dimensionless> getXHat()
public abstract GeomVector<Dimensionless> getYHat()
public Vector<Dimensionless> getNormal()
public abstract Parameter<Length> getHeight()
public Parameter<Length> getWidth()
public abstract GenModelNote changeHeight(Parameter<Length> height)
height
- The new height for the note in model space coordinates. May not be
null.public int size()
size
in interface GeomElement<GenModelNote>
public Point getBoundsMin()
getBoundsMin
in interface GeomElement<GenModelNote>
public Point getBoundsMax()
getBoundsMax
in interface GeomElement<GenModelNote>
public Point getLimitPoint(int dim, boolean max, double tol)
getLimitPoint
in interface GeomElement<GenModelNote>
dim
- An index indicating the dimension to find the min/max point for
(0=X,1=Y, 2=Z, etc).max
- Set to true
to return the maximum value, false
to return the minimum.tol
- Fractional tolerance to refine the min/max point position to if
necessary.getBoundsMin()
,
getBoundsMax()
public DCMatrix getOrientation()
public ModelNoteTrans getTransformed(GTransform transform)
GeomTransform
and contains this element as a child.getTransformed
in interface Transformable<GenModelNote>
transform
- The transformation to apply to this geometry. May not be null.DimensionException
- if this point is not 3D.public javolution.text.Text toText()
{aNote = {"A text string.",{1,0,0},{0,1,0},{10 ft, -3 ft, 4.56 ft},0.2 ft}}If there is no name, then the output looks like this:
{"A text string.",{0,0,1},{0,1,0},{10 ft, -3 ft, 4.56 ft},0.2 ft}
toText
in interface GeomElement<GenModelNote>
toText
in class AbstractNote<GenModelNote>