Chart FX 7 for Java Server

com.softwarefx.chartfx.server.annotation
Class AnnotationArrow

java.lang.Object
  extended by com.softwarefx.chartfx.server.annotation.AnnotationObject
      extended by com.softwarefx.chartfx.server.annotation.AnnotationArrow

public 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 selected arrow head and 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:

com.softwarefx.chartfx.server.annotation.Annotations annot = new com.softwarefx.chartfx.server.annotation.Annotations();
com.softwarefx.chartfx.server.annotation.AnnotationArrow arrow = new com.softwarefx.chartfx.server.annotation.AnnotationArrow();
arrow.getBorder().setColor(java.awt.Color.RED);
arrow.getBorder().setWidth(4);
arrow.setHeight(55);
arrow.setWidth(-35);
arrow.attach(2, 35);
annot.getList().add(arrow);
chart1.getExtensions().add(annot);

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
 AdjustableArrowCap getEndCap()
          Gets the EndCap.
 AdjustableArrowCap getStartCap()
          Gets the StartCap.
 void setEndCap(AdjustableArrowCap value)
          Allows you to control the ending arrow head height, width and style of a selected annotation arrow object.
 void setStartCap(AdjustableArrowCap value)
          Allows you to control the starting arrow head height, width and style of a selected annotation arrow object.
 
Methods inherited from class com.softwarefx.chartfx.server.annotation.AnnotationObject
attach, attach, attach, detach, dispose, flip, getAnchor, getBorder, getColor, getHeight, getLeft, getLink, getObjectBounds, getPattern, getTag, getTop, getWidth, isAllowModify, isAllowMove, isPaintBefore, isPlotAreaOnly, isVisible, refresh, rotate, setAllowModify, setAllowMove, setAnchor, setBorder, setColor, setHeight, setLeft, setObjectBounds, setPaintBefore, setPattern, setPlotAreaOnly, setTag, setTop, 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 AdjustableArrowCap getEndCap()

Gets the EndCap. For more detail see setEndCap(com.softwarefx.AdjustableArrowCap).


getStartCap

public AdjustableArrowCap getStartCap()

Gets the StartCap. For more detail see setStartCap(com.softwarefx.AdjustableArrowCap).


setEndCap

public void setEndCap(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(com.softwarefx.AdjustableArrowCap) property.

  • For more information regarding the AdjustableArrowCap type, please refer to the Java API Documentation.Line.setEndCap(com.softwarefx.LineCap)Line.setStartCap(com.softwarefx.LineCap)Line

  • See Also:
    AnnotationBalloon.setArrowCap(com.softwarefx.AdjustableArrowCap)

    setStartCap

    public void setStartCap(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(com.softwarefx.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(com.softwarefx.AdjustableArrowCap) property.

  • Line.setEndCap(com.softwarefx.LineCap)For more information regarding the AdjustableArrowCap type, please refer to the Java API Documentation.Line.setStartCap(com.softwarefx.LineCap)Line

  • See Also:
    AnnotationBalloon.setArrowCap(com.softwarefx.AdjustableArrowCap), AnnotationBalloon

    http://www.softwarefx.com

    2008 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.