|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.object.JaxoObject
net.sf.jaxodraw.object.text.JaxoTextObject
net.sf.jaxodraw.object.text.JaxoLatexText
public class JaxoLatexText
Defines a JaxoObject which is just a string.
Field Summary | |
---|---|
static int |
ALIGN_CB
Align center-bottom with respect to text coordinates. |
static int |
ALIGN_CC
Align center-center with respect to text coordinates. |
static int |
ALIGN_CT
Align center-top with respect to text coordinates. |
static int |
ALIGN_LB
Align left-bottom with respect to text coordinates. |
static int |
ALIGN_LC
Align left-center with respect to text coordinates. |
static int |
ALIGN_LT
Align left-top with respect to text coordinates. |
static int |
ALIGN_RB
Align right-bottom with respect to text coordinates. |
static int |
ALIGN_RC
Align right-center with respect to text coordinates. |
static int |
ALIGN_RT
Align right-top with respect to text coordinates. |
static int |
FOOTNOTESIZE
Latex text size footnotesize. |
static int |
HUGE
Latex text size huge. |
static int |
LARGE
Latex text size large. |
static int |
NORMALSIZE
Latex text size normalsize. |
static int |
SCRIPTSIZE
Latex text size scriptsize. |
static int |
SMALL
Latex text size small. |
static int |
TINY
Latex text size tiny. |
static int |
XHUGE
Latex text size Huge. |
static int |
XLARGE
Latex text size Large. |
static int |
XXLARGE
Latex text size LARGE. |
Fields inherited from class net.sf.jaxodraw.object.JaxoObject |
---|
D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1 |
Constructor Summary | |
---|---|
JaxoLatexText()
|
Method Summary | |
---|---|
void |
copyFrom(JaxoLatexText temp)
Sets all parameters from the given object to the current one. |
int |
getAllign()
Returns the allign property of this text object. |
Rectangle |
getBounds()
Returns the bounding box of this object. |
int |
getLatexTextSize()
Returns the latex font size of this text object. |
boolean |
isCopy(JaxoObject comp)
Determines if this JaxoObject is a copy of the specified one. |
boolean |
isRolledOver(int mouseX,
int mouseY)
Determines whether the cursor is currently above the visual aid icon of this LatexText. |
String |
latexCommand(float scale,
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 |
setAllign(int newAllign)
Sets the allign property of this text object. |
void |
setLatexTextSize(int newLatexfs)
Sets the latex font size of this text object. |
void |
setPreferences()
Applies default values to this JaxoObject. |
void |
setState(JaxoObject o)
Restore state to the values of 'o'. |
Methods inherited from class net.sf.jaxodraw.object.text.JaxoTextObject |
---|
canBeSelected, copyFrom, getRotationAngle, getTextString, latexWidth, paintHandles, rescaleObject, setRotationAngle, setTextString |
Methods inherited from class net.sf.jaxodraw.object.JaxoObject |
---|
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, moveBy, paintVisualAid, propertyChange, removePropertyChangeListener, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setX, setXPosition, setY, setY, setYPosition, smallestDistanceTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALIGN_LT
public static final int ALIGN_LC
public static final int ALIGN_LB
public static final int ALIGN_CT
public static final int ALIGN_CC
public static final int ALIGN_CB
public static final int ALIGN_RT
public static final int ALIGN_RC
public static final int ALIGN_RB
public static final int TINY
public static final int SCRIPTSIZE
public static final int FOOTNOTESIZE
public static final int SMALL
public static final int NORMALSIZE
public static final int LARGE
public static final int XLARGE
public static final int XXLARGE
public static final int HUGE
public static final int XHUGE
Constructor Detail |
---|
public JaxoLatexText()
Method Detail |
---|
public final int getAllign()
public final void setAllign(int newAllign)
newAllign
- The allign property of this text object.public final int getLatexTextSize()
public final void setLatexTextSize(int newLatexfs)
newLatexfs
- The latex font size of this text object.public boolean isCopy(JaxoObject comp)
isCopy
in class JaxoTextObject
comp
- The JaxoObject to compare against.
public void copyFrom(JaxoLatexText temp)
temp
- The object to copy from.public void setState(JaxoObject o)
JaxoObject.copy()
.
setState
in class JaxoTextObject
o
- the object to copy from.public final void paint(JaxoGraphics2D g2)
paint
in class JaxoObject
g2
- The graphics context where the object has to be painted.public final boolean isRolledOver(int mouseX, int mouseY)
mouseX
- The current x - coordinate of the cursormouseY
- The current y - coordinate of the cursor
public Rectangle getBounds()
public final String latexCommand(float scale, Dimension canvasDim)
latexCommand
in class JaxoObject
scale
- A scale factor to translate Java coordinates to
LaTeX coordinates.canvasDim
- The current dimension of the canvas.
public void setPreferences()
preferences
.
setPreferences
in class JaxoTextObject
public void prepareEditPanel(JaxoObjectEditPanel editPanel)
prepareEditPanel
in class JaxoObject
editPanel
- the panel to prepare.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |