|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.annotation.AnnotationObject
com.softwarefx.chartfx.server.annotation.AnnotationArrow
public class AnnotationArrow
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 |
---|
public AnnotationArrow()
Method Detail |
---|
public AdjustableArrowCap getEndCap()
Gets the EndCap. For more detail see setEndCap(com.softwarefx.AdjustableArrowCap)
.
public AdjustableArrowCap getStartCap()
Gets the StartCap. For more detail see setStartCap(com.softwarefx.AdjustableArrowCap)
.
public void setEndCap(AdjustableArrowCap value)
Allows you to control the ending arrow head height, width and style of a selected annotation arrow object.
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
AnnotationBalloon.setArrowCap(com.softwarefx.AdjustableArrowCap)
public void setStartCap(AdjustableArrowCap value)
Allows you to control the starting arrow head height, width and style of a selected annotation arrow object.
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
AnnotationBalloon.setArrowCap(com.softwarefx.AdjustableArrowCap)
,
AnnotationBalloon
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |