T
- The sub-type of this AbstractNote.public abstract class AbstractNote<T extends AbstractNote> extends AbstractGeomElement<T>
Modified by: Joseph A. Huwaldt
Modifier and Type | Field and Description |
---|---|
static java.awt.Font |
DEFAULT_FONT
The default font used for displaying note objects.
|
RESOURCES
Constructor and Description |
---|
AbstractNote() |
Modifier and Type | Method and Description |
---|---|
abstract T |
changeFont(java.awt.Font font)
Return a new note object identical to this one, but with the specified font.
|
abstract T |
changeLocation(GeomPoint location)
Return a new note object identical to this one, but with the specified location in
model space.
|
abstract java.awt.Font |
getFont()
Return the font used to display this note.
|
abstract Point |
getLocation()
Return the geometric location of this note in space.
|
abstract java.lang.String |
getNote()
Return the text string associated with this note object.
|
int |
getParDimension()
Returns the number of parametric dimensions of the geometry element.
|
int |
length()
Return the length of the text string associated with this geometry object.
|
javolution.text.Text |
toText()
Returns the text representation of this geometry element that consists of the text
string followed by the coordinate position.
|
addChangeListener, clone, compareTo, equals, getAllUserData, getID, getName, getUserData, hashCode, putAllUserData, putUserData, removeChangeListener, removeUserData, reset, setName, toString
copy, copyToReal, getBoundsMax, getBoundsMin, getLimitPoint, getPhyDimension, getUnit, isValid, size, to, toDimension
public static final java.awt.Font DEFAULT_FONT
public AbstractNote()
public abstract java.lang.String getNote()
public abstract Point getLocation()
public abstract java.awt.Font getFont()
public abstract T changeFont(java.awt.Font font)
font
- The new font to change this note to display in. May not be null.public abstract T changeLocation(GeomPoint location)
location
- The new location of this note. May not be null.public int length()
public int getParDimension()
public javolution.text.Text toText()
{aNote = {"A text string.",{10 ft, -3 ft, 4.56 ft}}}If there is no name, then the output looks like this:
{"A text string.",{10 ft, -3 ft, 4.56 ft}}
toText
in interface GeomElement<T extends AbstractNote>
toText
in class AbstractGeomElement<T extends AbstractNote>