public final class Note extends GenScreenNote implements javolution.lang.ValueType
Modified by: Joseph A. Huwaldt
DEFAULT_FONT
RESOURCES
Modifier and Type | Method and Description |
---|---|
Note |
changeFont(java.awt.Font font)
Return a new note object identical to this one, but with the specified font.
|
Note |
changeLocation(GeomPoint location)
Return a new note object identical to this one, but with the specified location in
model space.
|
Note |
copy()
Returns a copy of this Note instance
allocated by the calling thread
(possibly on the stack). |
Note |
copyToReal()
Return a copy of this object with any transformations or subranges removed
(applied).
|
boolean |
equals(java.lang.Object obj)
Compares this Note against the specified object for strict equality (same values
and same units).
|
java.awt.Font |
getFont()
Return the font used to display this note.
|
Point |
getLocation()
Return the location of this note in model space.
|
java.lang.String |
getNote()
Return the text string associated with this note object.
|
int |
getPhyDimension()
Returns the number of physical dimensions of the geometry element.
|
Unit<Length> |
getUnit()
Returns the unit in which the note location Point is stored.
|
int |
hashCode()
Returns the hash code for this Note object.
|
Note |
immutable()
Return an immutable version of this note.
|
boolean |
isValid()
Return
true if this Note contains valid and finite numerical
components. |
Note |
to(Unit<Length> unit)
Returns the equivalent to this note but with the location stated in the specified
unit.
|
Note |
toDimension(int newDim)
Return the equivalent of this note converted to the specified number of physical
dimensions.
|
static Note |
valueOf(java.lang.CharSequence text,
GeomPoint location)
Construct and return a new instance of a Note that uses the specified text string,
the default display font, and is located at the specified location in space.
|
static Note |
valueOf(java.lang.CharSequence text,
GeomPoint location,
java.awt.Font font)
Construct and return a new instance of a Note that uses the specified text string,
the specified display font, and is located at the specified location in space.
|
static Note |
valueOf(java.lang.CharSequence text,
GeomPoint location,
int fontPoints)
Construct and return a new instance of a Note that uses the specified text string,
the default display font at the specified size, and is located at the specified
location in space.
|
static Note |
valueOf(Note note)
Returns a new Note instance that is identical to the specified Note.
|
getBoundsMax, getBoundsMin, getLimitPoint, getTransformed, size, toText
getParDimension, length
addChangeListener, clone, compareTo, getAllUserData, getID, getName, getUserData, putAllUserData, putUserData, removeChangeListener, removeUserData, reset, setName, toString
addChangeListener, getAllUserData, getID, getName, getParDimension, getUserData, putAllUserData, putUserData, removeChangeListener, removeUserData, setName
public static Note valueOf(java.lang.CharSequence text, GeomPoint location, java.awt.Font font)
text
- The text to be displayed in this geometry object. May not be null.location
- The location of this geometry object in model space. May not be null.font
- The font used to display this note. May not be null.public static Note valueOf(java.lang.CharSequence text, GeomPoint location, int fontPoints)
text
- The text to be displayed in this geometry object. May not be
null.location
- The location of this geometry object in model space. May not be
null.fontPoints
- The size of the default font in pixels.public static Note valueOf(java.lang.CharSequence text, GeomPoint location)
text
- The text to be displayed in this geometry object. May not be null.location
- The location of this geometry object in model space. May not be null.public static Note valueOf(Note note)
note
- the Note to be copied into a new Note. May not be null.public java.lang.String getNote()
getNote
in class AbstractNote<GenScreenNote>
public Point getLocation()
getLocation
in class AbstractNote<GenScreenNote>
public java.awt.Font getFont()
getFont
in class AbstractNote<GenScreenNote>
public Note immutable()
immutable
in class GenScreenNote
public Note changeFont(java.awt.Font font)
changeFont
in class AbstractNote<GenScreenNote>
font
- The font to use in the copy of this note returned. May not be null.public Note changeLocation(GeomPoint location)
changeLocation
in class AbstractNote<GenScreenNote>
location
- The location for the copy of this note returned. May not be null.public int getPhyDimension()
getPhyDimension
in interface GeomElement<GenScreenNote>
public boolean isValid()
true
if this Note contains valid and finite numerical
components. A value of false
will be returned if any of the location
coordinate values are NaN or Inf.isValid
in interface GeomElement<GenScreenNote>
public Note copy()
allocated
by the calling thread
(possibly on the stack).copy
in interface GeomElement<GenScreenNote>
copy
in interface javolution.lang.ValueType
public Note copyToReal()
copyToReal
in interface GeomElement<GenScreenNote>
public final Unit<Length> getUnit()
getUnit
in interface GeomElement<GenScreenNote>
public Note to(Unit<Length> unit) throws ConversionException
to
in interface GeomElement<GenScreenNote>
unit
- the length unit of the note to be returned. May not be null.ConversionException
- if the the input unit is not a length unit.public Note toDimension(int newDim)
toDimension
in interface GeomElement<GenScreenNote>
newDim
- The dimension of the note to return.public boolean equals(java.lang.Object obj)
equals
in class AbstractGeomElement<GenScreenNote>
obj
- the object to compare with.true
if this note is identical to that note;
false
otherwise.public int hashCode()
hashCode
in class AbstractGeomElement<GenScreenNote>