public final class AnnotationBalloon extends AnnotationText
Provides access to the AnnotationBalloon object.
The AnnotationBalloon
class enables you to add balloon objects in your charts. Balloon objects are like a Text objects, but the text is enclosed in a balloon type shape.
Constructor and Description |
---|
AnnotationBalloon()
Constructs a newly allocated AnnotationBalloon object
|
Modifier and Type | Method and Description |
---|---|
AdjustableArrowCap |
getArrowCap()
Allows you to control the arrow head height, width and style when used with the annotation balloon object.
|
int |
getArrowX()
Sets the X coordinate value for the balloon tip when set to be an arrow.
|
int |
getArrowY()
Sets the Y coordinate value for the balloon tip when set to be an arrow.
|
int |
getCornerRadius()
Used to set the corner radius for a selected balloon annotation object.
|
int |
getShadow()
Allows you to set a shadow for balloon annotation object.
|
BalloonTailCorner |
getTailCorner()
Gets or sets the corner of the balloon the tip or arrow.
|
int |
getTailFactor()
Used to get or set the annotation balloon tip size.
|
boolean |
isUseArrow()
Instructs Chart FX to use an arrow instead of the balloon tip.
|
void |
resetArrowX()
Set the property ArrowX to its default value.
|
void |
resetArrowY()
Set the property ArrowY to its default value.
|
void |
resetCornerRadius()
Set the property CornerRadius to its default value.
|
void |
resetShadow()
Set the property Shadow to its default value.
|
void |
resetTailCorner()
Set the property TailCorner to its default value.
|
void |
resetTailFactor()
Set the property TailFactor to its default value.
|
void |
resetUseArrow()
Set the property UseArrow to its default value.
|
void |
setArrowCap(AdjustableArrowCap value)
Allows you to control the arrow head height, width and style when used with the annotation balloon object.
|
void |
setArrowX(int value)
Sets the X coordinate value for the balloon tip when set to be an arrow.
|
void |
setArrowY(int value)
Sets the Y coordinate value for the balloon tip when set to be an arrow.
|
void |
setCornerRadius(int value)
Used to set the corner radius for a selected balloon annotation object.
|
void |
setShadow(int value)
Allows you to set a shadow for balloon annotation object.
|
void |
setTailCorner(BalloonTailCorner value)
Gets or sets the corner of the balloon the tip or arrow.
|
void |
setTailFactor(int value)
Used to get or set the annotation balloon tip size.
|
void |
setUseArrow(boolean value)
Instructs Chart FX to use an arrow instead of the balloon tip.
|
getAlign, getFont, getLineAlignment, getOrientation, getText, getTextColor, isClip, isWordWrap, resetAlign, resetFont, resetLineAlignment, resetOrientation, resetText, resetTextColor, resetTextStyle, setAlign, setClip, setFont, setLineAlignment, setOrientation, setText, setTextColor, setWordWrap, sizeToFit
attach, attach, attach, attach, attach, attach, attach, detach, flip, getAnchor, getBorder, getColor, getHeight, getLeft, getLink, getObjectBounds, getPattern, getTag, getTop, getWidth, isAllowModify, isAllowMove, isPaintBefore, isPlotAreaOnly, isVisible, refresh, resetAllowModify, resetAllowMove, resetAnchor, resetBoundsNormalized, resetColor, resetPaintBefore, resetPattern, resetPlotAreaOnly, resetVisible, rotate, setAllowModify, setAllowMove, setAnchor, setBorder, setColor, setHeight, setLeft, setObjectBounds, setPaintBefore, setPattern, setPlotAreaOnly, setTag, setTop, setVisible, setWidth
public AnnotationBalloon()
public AdjustableArrowCap getArrowCap()
public void setArrowCap(AdjustableArrowCap value)
value
- public int getArrowX()
resetArrowX
public void setArrowX(int value)
value
- resetArrowX
public int getArrowY()
resetArrowY
public void setArrowY(int value)
value
- resetArrowY
public int getCornerRadius()
Used to set the corner radius for a selected balloon annotation object.
The greater value you set to this method, the more the balloon annotation object begins to look like a circle. Setting a radius value greater than 5 makes the balloon object appear more round in shape.
Please remember you can set the setWidth
and setHeight
methods to change size of the annotation object. If you do not set the size of the annotation object, it will not appear in the chart area.
The attach
method may be used to set the location in the chart for annotation objects.
To make the annotation balloon look more round in shape:
resetCornerRadius
public void setCornerRadius(int value)
Used to set the corner radius for a selected balloon annotation object.
The greater value you set to this method, the more the balloon annotation object begins to look like a circle. Setting a radius value greater than 5 makes the balloon object appear more round in shape.
Please remember you can set the setWidth
and setHeight
methods to change size of the annotation object. If you do not set the size of the annotation object, it will not appear in the chart area.
The attach
method may be used to set the location in the chart for annotation objects.
To make the annotation balloon look more round in shape:
value
- resetCornerRadius
public int getShadow()
Allows you to set a shadow for balloon annotation object.
This method is set using an integer value. When the setShadow
method is set to zero (0), no shadow is applied to the balloon annotation object. When the setShadow
method is set to a value greater that one (1), the shadow will be greater than the default.
The larger the configured value, the higher the balloon annotation object appears to be lifted off the chart (showing a larger shadow).
Please remember you to set the setWidth
and setHeight
methods to change size of the annotation object. If you do not set the size of the annotation object, it will not appear in the chart area.
Do not show a shadow for the balloon annotation object:
resetShadow
public void setShadow(int value)
Allows you to set a shadow for balloon annotation object.
This method is set using an integer value. When the setShadow
method is set to zero (0), no shadow is applied to the balloon annotation object. When the setShadow
method is set to a value greater that one (1), the shadow will be greater than the default.
The larger the configured value, the higher the balloon annotation object appears to be lifted off the chart (showing a larger shadow).
Please remember you to set the setWidth
and setHeight
methods to change size of the annotation object. If you do not set the size of the annotation object, it will not appear in the chart area.
Do not show a shadow for the balloon annotation object:
value
- resetShadow
public BalloonTailCorner getTailCorner()
resetTailCorner
public void setTailCorner(BalloonTailCorner value)
value
- resetTailCorner
public int getTailFactor()
resetTailFactor
public void setTailFactor(int value)
value
- resetTailFactor
public boolean isUseArrow()
resetUseArrow
public void setUseArrow(boolean value)
value
- resetUseArrow
public void resetArrowX()
setArrowX
public void resetArrowY()
setArrowY
public void resetCornerRadius()
setCornerRadius
public void resetShadow()
setShadow
public void resetTailCorner()
setTailCorner
public void resetTailFactor()
setTailFactor
public void resetUseArrow()
isUseArrow
2014 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.