public class JaxoPSText extends JaxoTextObject
D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1| Constructor and Description |
|---|
JaxoPSText()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JaxoObject |
copy()
Returns an exact copy of this JaxoPSText.
|
void |
copyFrom(JaxoPSText temp)
Sets all parameters from the given object to the current one.
|
java.awt.Rectangle |
getBounds()
Returns the bounding box of this object.
|
java.awt.Font |
getFont()
Returns the textFont property of this text object.
|
static java.util.List |
getFontSizeDefaults()
List of numbers of default font sizes to display to the user.
|
static java.util.List |
getFontStyles()
List of Integer font styles to display to the user.
|
boolean |
isCopy(JaxoObject comp)
Determines if this JaxoObject is a copy of the specified one.
|
java.lang.String |
latexCommand(float scale,
java.awt.Dimension canvasDim)
The LaTeX command that is necessary to draw the given JaxoObject
using the axodraw.sty package.
|
void |
paint(JaxoGraphics2D g2)
The method that paints the JaxoObject.
|
void |
prepareEditPanel(JaxoObjectEditPanel editPanel)
Initializes the given editPanel to edit properties of this JaxoObject.
|
void |
rescaleObject(int orx,
int ory,
float scale)
Rescale this JaxoObject by the scale factor scale,
keeping the point (orx, ory) fixed.
|
void |
setFont(java.awt.Font font)
Sets the textFont property of this text object.
|
void |
setFontName(java.lang.String name)
Sets the font name of this text.
|
void |
setFontSize(int size)
Sets the font size of this text.
|
void |
setFontStyle(int style)
Sets the font style of this text.
|
void |
setPreferences()
Applies default values to this JaxoObject.
|
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.
|
canBeSelected, copyFrom, getRotationAngle, getTextString, latexWidth, paintHandles, setRotationAngleaddPropertyChangeListener, contains, contains, contains, contains, copyFrom, firePropertyChange, getBounds2D, getBoundsWithHandles, getColor, getGeneralPath, getGrabbedHandle, getHeight, getLaTexLocation, getName, getPathIterator, getPathIterator, getPointCount, getPoints, getWidth, getX, getX, getY, getY, intersects, intersects, isAround, isMarked, moveBy, paintVisualAid, propertyChange, removePropertyChangeListener, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setX, setXPosition, setY, setY, setYPosition, smallestDistanceTopublic static java.util.List getFontSizeDefaults()
Font.getStyle(),
Font.deriveFont(int)public static java.util.List getFontStyles()
public final java.awt.Font getFont()
public final void setFont(java.awt.Font font)
font - The textFont property of this text object.public void setTextString(java.lang.String string)
setTextString in class JaxoTextObjectstring - The textString property of this text object.public final void setFontName(java.lang.String name)
name - the font name to set.public final void setFontStyle(int style)
style - the font style to set.public final void setFontSize(int size)
size - the font size to set.public final JaxoObject copy()
copy in class JaxoObjectpublic void copyFrom(JaxoPSText temp)
temp - The object to copy from.public void setState(JaxoObject o)
JaxoObject.copy().setState in class JaxoTextObjecto - the object to copy from.public final boolean isCopy(JaxoObject comp)
isCopy in class JaxoTextObjectcomp - The JaxoObject to compare against.public final void paint(JaxoGraphics2D g2)
paint in class JaxoObjectg2 - The graphics context where the object has to be painted.public java.awt.Rectangle getBounds()
public final java.lang.String latexCommand(float scale,
java.awt.Dimension canvasDim)
latexCommand in class JaxoObjectscale - A scale factor to translate Java coordinates to
LaTeX coordinates.canvasDim - The current dimension of the canvas.public void prepareEditPanel(JaxoObjectEditPanel editPanel)
prepareEditPanel in class JaxoObjecteditPanel - the panel to prepare.public final void rescaleObject(int orx,
int ory,
float scale)
rescaleObject in class JaxoTextObjectorx - 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 JaxoTextObjectLicensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.