public abstract class JaxoTextObject extends JaxoObject implements JaxoRotationObject
D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1| Constructor and Description |
|---|
JaxoTextObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeSelected(int handle,
int mode)
Determines if the object can be selected (moved, edited, etc)
from the given point in a given edit mode.
|
void |
copyFrom(JaxoTextObject temp)
Sets all parameters from the given object to the current one.
|
int |
getRotationAngle()
Returns the rotationAngle property of this text object.
|
java.lang.String |
getTextString()
Returns the textString property of this text object.
|
boolean |
isCopy(JaxoObject comp)
Determines if this JaxoObject is a copy of the specified one.
|
java.lang.String |
latexWidth()
Returns the line width of this JaxoText.
|
void |
paintHandles(JaxoGraphics2D g2,
JaxoHandle h,
int editMode)
Paints the handles of this JaxoObject that allow
to move/resize/edit it.
|
void |
rescaleObject(int orx,
int ory,
float scale)
Rescale this JaxoObject by the scale factor scale,
keeping the point (orx, ory) fixed.
|
void |
setPreferences()
Applies default values to this JaxoObject.
|
void |
setRotationAngle(int angle)
Sets the rotationAngle property of this text object.
|
void |
setState(JaxoObject o)
Restore state to the values of 'o'.
|
void |
setTextString(java.lang.String string)
Sets the textString property of this text object.
|
addPropertyChangeListener, contains, contains, contains, contains, copy, copyFrom, firePropertyChange, getBounds2D, getBoundsWithHandles, getColor, getGeneralPath, getGrabbedHandle, getHeight, getLaTexLocation, getName, getPathIterator, getPathIterator, getPointCount, getPoints, getWidth, getX, getX, getY, getY, intersects, intersects, isAround, isMarked, latexCommand, moveBy, paint, paintVisualAid, prepareEditPanel, propertyChange, removePropertyChangeListener, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setX, setXPosition, setY, setY, setYPosition, smallestDistanceTopublic final java.lang.String getTextString()
public void setTextString(java.lang.String string)
string - The textString property of this text object.public final int getRotationAngle()
getRotationAngle in interface JaxoRotationObjectpublic final void setRotationAngle(int angle)
setRotationAngle in interface JaxoRotationObjectangle - The rotationAngle property of this text object.public boolean isCopy(JaxoObject comp)
isCopy in class JaxoObjectcomp - The JaxoObject to compare against.public void copyFrom(JaxoTextObject temp)
temp - The object to copy from.public void setState(JaxoObject o)
JaxoObject.copy().setState in class JaxoObjecto - the object to copy from.public final void paintHandles(JaxoGraphics2D g2, JaxoHandle h, int editMode)
paintHandles in class JaxoObjectg2 - The corresponding graphics context.h - A handle object to be used for painting.editMode - The edit mode that the handles are being painted in.public boolean canBeSelected(int handle,
int mode)
canBeSelected in class JaxoObjecthandle - One of the static variables SELECT_* defined for
this JaxoObject.mode - The current edit mode.public final java.lang.String latexWidth()
latexWidth in class JaxoObjectpublic void rescaleObject(int orx,
int ory,
float scale)
rescaleObject in class JaxoObjectorx - The x-coordinate of the fixed point.ory - The y-coordinate of the fixed point.scale - The scale parameter.public void setPreferences()
preferences.setPreferences in class JaxoObjectLicensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.