|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.object.arrow.AbstractBaseArrow
net.sf.jaxodraw.object.arrow.JaxoDefaultArrow
public class JaxoDefaultArrow
The default arrow for JaxoDraw.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.jaxodraw.object.arrow.JaxoArrow |
---|
JaxoArrow.Coordinates |
Field Summary |
---|
Fields inherited from interface net.sf.jaxodraw.object.arrow.JaxoArrow |
---|
D_FORMAT |
Constructor Summary | |
---|---|
JaxoDefaultArrow()
Constructor: initialize the fields. |
Method Summary | |
---|---|
Rectangle |
getBounds(JaxoArrow.Coordinates coords)
Returns a bounding rectangle for this arrow at the given coordinates. |
JaxoEditPanel |
getEditPanel()
Return a panel that allows to edit the parameters of the arrow. |
boolean |
isCopy(JaxoArrow testArrow)
Checks if this Arrow is a copy of the given test Arrow. |
String |
latexCommand(float arPos,
float scale)
Returns the arrow part of the latex command for axodraw4j. |
void |
paint(Graphics2D g2,
JaxoArrow.Coordinates coords)
Paints the arrow to the given graphics context. |
void |
propertyChange(PropertyChangeEvent evt)
|
Methods inherited from class net.sf.jaxodraw.object.arrow.AbstractBaseArrow |
---|
copy, getArrowInset, getArrowLength, getArrowWidth, getColor, getFillColor, getStroke, isFilled, setArrowInset, setArrowLength, setArrowWidth, setColor, setFillColor, setFilled, setStroke |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaxoDefaultArrow()
Method Detail |
---|
public void paint(Graphics2D g2, JaxoArrow.Coordinates coords)
g2
- The graphics context to paint to.coords
- The coordinates of the arrow to paint.public boolean isCopy(JaxoArrow testArrow)
isCopy
in interface JaxoArrow
isCopy
in class AbstractBaseArrow
testArrow
- the Arrow to test against.
public String latexCommand(float arPos, float scale)
arPos
- the arrow position.scale
- the current scale.
public Rectangle getBounds(JaxoArrow.Coordinates coords)
coords
- The coordinates of the arrow.
public JaxoEditPanel getEditPanel()
public void propertyChange(PropertyChangeEvent evt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |