|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.object.arrow.AbstractBaseArrow
public abstract class AbstractBaseArrow
An arrow for a JaxoObject.
Note: Implementing sub-classes need to initialize the Stroke property during de-serialization if a default value is set in the constructor.
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 | |
---|---|
AbstractBaseArrow()
|
Method Summary | |
---|---|
JaxoArrow |
copy()
Returns an exact copy of the given JaxoArrow. |
float |
getArrowInset()
Returns the tail length of this arrow. |
float |
getArrowLength()
Returns the length of this arrow. |
float |
getArrowWidth()
Returns the width of this arrow. |
Color |
getColor()
Returns the color of this arrow. |
Color |
getFillColor()
Returns the fill color of this arrow. |
Stroke |
getStroke()
Returns the stroke of this arrow. |
boolean |
isCopy(JaxoArrow testArrow)
Checks if this Arrow is a copy of the given test Arrow. |
boolean |
isFilled()
Determines if the arrow is filled. |
void |
setArrowInset(float newInset)
Sets the inset ratio of this arrow. |
void |
setArrowLength(float newLength)
Sets the length of this arrow. |
void |
setArrowWidth(float newWidth)
Sets the width of this arrow. |
void |
setColor(Color c)
Sets the color of this arrow. |
void |
setFillColor(Color c)
Sets the fill color of this arrow. |
void |
setFilled(boolean value)
Determines if the arrow should be filled. |
void |
setStroke(Stroke newStroke)
Sets the stroke of this arrow. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jaxodraw.object.arrow.JaxoArrow |
---|
getBounds, getEditPanel, latexCommand, paint |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Constructor Detail |
---|
public AbstractBaseArrow()
Method Detail |
---|
public final Color getColor()
public final void setColor(Color c)
c
- The color of this arrow.public final Color getFillColor()
public final void setFillColor(Color c)
c
- The fill color of this arrow.public final boolean isFilled()
public final void setFilled(boolean value)
value
- True if the fillColor should be used.public final Stroke getStroke()
public final void setStroke(Stroke newStroke)
newStroke
- The stroke property of this arrow.public final float getArrowWidth()
public final void setArrowWidth(float newWidth)
newWidth
- The new width, must be positive
otherwise an IllegalArgumentException is thrown.public final float getArrowLength()
public final void setArrowLength(float newLength)
newLength
- The new length, must be positive
otherwise an IllegalArgumentException is thrown.public final float getArrowInset()
public final void setArrowInset(float newInset)
newInset
- The inset ratio, needs to be between 0 and 1,
otherwise an IllegalArgumentException is thrown.public JaxoArrow copy()
copy
in interface JaxoArrow
public boolean isCopy(JaxoArrow testArrow)
isCopy
in interface JaxoArrow
testArrow
- the Arrow to test against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |