Class AbstractBaseArrow
java.lang.Object
net.sf.jaxodraw.object.arrow.AbstractBaseArrow
- All Implemented Interfaces:
PropertyChangeListener, Serializable, Cloneable, EventListener, JaxoArrow
- Direct Known Subclasses:
JaxoDefaultArrow
-
Nested Class Summary
Nested classes/interfaces inherited from interface JaxoArrow
JaxoArrow.Coordinates -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns an exact copy of the given JaxoArrow.final floatReturns the tail length of this arrow.final floatReturns the length of this arrow.final floatReturns the width of this arrow.final ColorgetColor()Returns the color of this arrow.final ColorReturns the fill color of this arrow.final StrokeReturns the stroke of this arrow.booleanChecks if this Arrow is a copy of the given test Arrow.final booleanisFilled()Determines if the arrow is filled.final voidsetArrowInset(float newInset) Sets the inset ratio of this arrow.final voidsetArrowLength(float newLength) Sets the length of this arrow.final voidsetArrowWidth(float newWidth) Sets the width of this arrow.final voidSets the color of this arrow.final voidSets the fill color of this arrow.final voidsetFilled(boolean value) Determines if the arrow should be filled.final voidSets the stroke of this arrow.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JaxoArrow
getBounds, getEditPanel, latexCommand, paintMethods inherited from interface PropertyChangeListener
propertyChange
-
Constructor Details
-
AbstractBaseArrow
public AbstractBaseArrow()
-
-
Method Details
-
getColor
-
setColor
Sets the color of this arrow.- Parameters:
c- The color of this arrow.
-
getFillColor
Returns the fill color of this arrow.- Returns:
- The fill color of this arrow.
-
setFillColor
Sets the fill color of this arrow.- Parameters:
c- The fill color of this arrow.
-
isFilled
public final boolean isFilled()Determines if the arrow is filled.- Returns:
- True if the fillColor is used.
-
setFilled
public final void setFilled(boolean value) Determines if the arrow should be filled.- Parameters:
value- True if the fillColor should be used.
-
getStroke
Returns the stroke of this arrow.- Returns:
- The stroke of this arrow.
-
setStroke
Sets the stroke of this arrow.- Parameters:
newStroke- The stroke property of this arrow.
-
getArrowWidth
public final float getArrowWidth()Returns the width of this arrow.- Returns:
- The width of this arrow.
-
setArrowWidth
public final void setArrowWidth(float newWidth) Sets the width of this arrow.- Parameters:
newWidth- The new width, must be positive otherwise an IllegalArgumentException is thrown.
-
getArrowLength
public final float getArrowLength()Returns the length of this arrow.- Returns:
- The length of this arrow.
-
setArrowLength
public final void setArrowLength(float newLength) Sets the length of this arrow.- Parameters:
newLength- The new length, must be positive otherwise an IllegalArgumentException is thrown.
-
getArrowInset
public final float getArrowInset()Returns the tail length of this arrow.- Returns:
- The tail length of this arrow, a number between 0 and 1.
-
setArrowInset
public final void setArrowInset(float newInset) Sets the inset ratio of this arrow. This is the ratio of the inset (or tail length) to the length of the arrow.- Parameters:
newInset- The inset ratio, needs to be between 0 and 1, otherwise an IllegalArgumentException is thrown.
-
copy
-
isCopy
-