java.beans.PropertyChangeListener
, java.io.Serializable
, java.lang.Cloneable
, java.util.EventListener
, JaxoArrow
public class JaxoDefaultArrow extends AbstractBaseArrow
JaxoArrow.Coordinates
Constructor | Description |
---|---|
JaxoDefaultArrow() |
Constructor: initialize the fields.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.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.
|
java.lang.String |
latexCommand(float arPos,
float scale) |
Returns the arrow part of the latex command for axodraw4j.
|
void |
paint(java.awt.Graphics2D g2,
JaxoArrow.Coordinates coords) |
Paints the arrow to the given graphics context.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
copy, getArrowInset, getArrowLength, getArrowWidth, getColor, getFillColor, getStroke, isFilled, setArrowInset, setArrowLength, setArrowWidth, setColor, setFillColor, setFilled, setStroke
public void paint(java.awt.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 java.lang.String latexCommand(float arPos, float scale)
arPos
- the arrow position.scale
- the current scale.public java.awt.Rectangle getBounds(JaxoArrow.Coordinates coords)
coords
- The coordinates of the arrow.public JaxoEditPanel getEditPanel()
public void propertyChange(java.beans.PropertyChangeEvent evt)
Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.