Chart FX for Java 6.5

SoftwareFX.ChartFX.Annotation
Class AnnotationArrow

java.lang.Object
  extended by SoftwareFX.ChartFX.Annotation.AnnotationObject
      extended by SoftwareFX.ChartFX.Annotation.AnnotationArrow

public final class AnnotationArrow
extends AnnotationObject

Provides access to the AnnotationArrow object.

The AnnotationArrow Class allows you to create line and arrow annotation objects in your charts. The supported members allow you to set, for example, arrow head, tail size, style and width, to create a variety of different arrow shapes. Also, by configuring the arrow style as 'None', you can create line objects in your charts.

Below is an example of an annotation arrow object:

SoftwareFX.ChartFX.Annotation.AnnotationX annot = new SoftwareFX.ChartFX.Annotation.AnnotationX();
SoftwareFX.ChartFX.Annotation.AnnotationArrow arrow = new SoftwareFX.ChartFX.Annotation.AnnotationArrow();
annot.getList().add(arrow);
chart1.getExtensions().add(annot);
arrow.getBorder().setColor(java.awt.Color.RED);
arrow.getBorder().setWidth(4);
arrow.setHeight(-50);
arrow.setWidth(20);
arrow.attach(1.5, 70);

Note: Remember you can assign negative values to both the Width and Height properties. This will allow you to set the appropriate orientation to the arrows and lines you create in the chart area.


Constructor Summary
AnnotationArrow()
           
 
Method Summary
 SoftwareFX.ChartFX.AdjustableArrowCap getEndCap()
          Gets the EndCap.
 SoftwareFX.ChartFX.AdjustableArrowCap getStartCap()
          Gets the StartCap.
 void setEndCap(SoftwareFX.ChartFX.AdjustableArrowCap value)
          Allows you to control the ending arrow head height, width and style of a selected annotation arrow object.
 void setStartCap(SoftwareFX.ChartFX.AdjustableArrowCap value)
          Allows you to control the starting arrow head height, width and style of a selected annotation arrow object.
 
Methods inherited from class SoftwareFX.ChartFX.Annotation.AnnotationObject
attach, attach, attach, detach, flip, getAnchor, getBorder, getColor, getHeight, getLeft, getLink, getObjectBounds, getPattern, getTag, getTop, getURL, getURLTarget, getWidth, isAllowModify, isAllowMove, isDrawingArea, isPaintBefore, isVisible, refresh, rotate, setAllowModify, setAllowMove, setAnchor, setBorder, setColor, setDrawingArea, setHeight, setLeft, setObjectBounds, setPaintBefore, setPattern, setTag, setTop, setURL, setURLTarget, setVisible, setWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationArrow

public AnnotationArrow()
Method Detail

getEndCap

public SoftwareFX.ChartFX.AdjustableArrowCap getEndCap()

Gets the EndCap. For more detail see setEndCap(SoftwareFX.ChartFX.AdjustableArrowCap).


getStartCap

public SoftwareFX.ChartFX.AdjustableArrowCap getStartCap()

Gets the StartCap. For more detail see setStartCap(SoftwareFX.ChartFX.AdjustableArrowCap).


setEndCap

public void setEndCap(SoftwareFX.ChartFX.AdjustableArrowCap value)

Allows you to control the ending arrow head height, width and style of a selected annotation arrow object.

Remarks:
  • The starting arrow head attributes may be assigned using the setStartCap(SoftwareFX.ChartFX.AdjustableArrowCap) property.

  • See Also:
    AnnotationBalloon.setArrowCap(SoftwareFX.ChartFX.AdjustableArrowCap)

    setStartCap

    public void setStartCap(SoftwareFX.ChartFX.AdjustableArrowCap value)

    Allows you to control the starting arrow head height, width and style of a selected annotation arrow object.

    Remarks:
  • By default the arrow object only has a configured setEndCap(SoftwareFX.ChartFX.AdjustableArrowCap), therefore, you must create the StartCap object before you can assign any attributes to the object.

  • The ending arrow head attributes may be assigned using the setEndCap(SoftwareFX.ChartFX.AdjustableArrowCap) property.

  • See Also:
    AnnotationBalloon.setArrowCap(SoftwareFX.ChartFX.AdjustableArrowCap), AnnotationBalloon

    http://www.softwarefx.com

    2007 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.