public final class AnnotationGroup extends AnnotationObject
The AnnotationGroup setColor method. The AnnotationListBase
To create a group, first create an annotation extension object. Once you have created and added the extension object to your application you may begin creating the individual objects to be included in the group and the group object itself. Once you have created all the objects, you must add the individual objects to the group and the group to the annotation list.
Below is an example of creating a group of 3 circles:
| Constructor and Description |
|---|
AnnotationGroup()
Constructs a newly allocated AnnotationGroup object
|
AnnotationGroup(AnnotationObject[] annotationObjects)
Constructs a newly allocated AnnotationGroup object
|
| Modifier and Type | Method and Description |
|---|---|
Line |
getBorder()
Allows you to apply border attributes to a selected annotation group.
|
java.awt.Color |
getColor()
Sets the inside fill color for the objects included in an annotation group.
|
com.softwarefx.server.Link |
getLink()
Gets the Link object for a selected AnnotationGroup.
|
AnnotationListBase |
getList()
Allows you to access the CollectionBase members used modify the annotation group.
|
HatchStyle |
getPattern()
Used to set a pattern style for a group of annotation objects.
|
void |
recalcBounds()
Used to recalculate the bounding rectangle for a group of objects.
|
void |
setBorder(Line value)
Allows you to apply border attributes to a selected annotation group.
|
void |
setColor(java.awt.Color value)
Sets the inside fill color for the objects included in an annotation group.
|
void |
setPattern(HatchStyle value)
Used to set a pattern style for a group of annotation objects.
|
attach, attach, attach, attach, attach, attach, attach, detach, flip, getAnchor, getHeight, getLeft, getObjectBounds, getTag, getTop, getWidth, isAllowModify, isAllowMove, isPaintBefore, isPlotAreaOnly, isVisible, refresh, resetAllowModify, resetAllowMove, resetAnchor, resetBoundsNormalized, resetColor, resetPaintBefore, resetPattern, resetPlotAreaOnly, resetVisible, rotate, setAllowModify, setAllowMove, setAnchor, setHeight, setLeft, setObjectBounds, setPaintBefore, setPlotAreaOnly, setTag, setTop, setVisible, setWidthpublic AnnotationGroup()
public AnnotationGroup(AnnotationObject[] annotationObjects)
annotationObjects - public Line getBorder()
getBorder in class AnnotationObjectpublic void setBorder(Line value)
setBorder in class AnnotationObjectvalue - public java.awt.Color getColor()
Sets the inside fill color for the objects included in an annotation group.
When setting this method for an annotation group, all objects included in the group will be set the configured color of this method. The border of the annotation objects can be modified using the setBorder method.
For more information regarding the Color type, please refer to the Documentation.
Set the color for the annotation group to green:
getColor in class AnnotationObjectresetColorpublic void setColor(java.awt.Color value)
Sets the inside fill color for the objects included in an annotation group.
When setting this method for an annotation group, all objects included in the group will be set the configured color of this method. The border of the annotation objects can be modified using the setBorder method.
For more information regarding the Color type, please refer to the Documentation.
Set the color for the annotation group to green:
setColor in class AnnotationObjectvalue - resetColorpublic com.softwarefx.server.Link getLink()
getLink in class AnnotationObjectpublic AnnotationListBase getList()
public HatchStyle getPattern()
getPattern in class AnnotationObjectresetPatternpublic void setPattern(HatchStyle value)
setPattern in class AnnotationObjectvalue - resetPatternpublic void recalcBounds()
This method should be invoked every time an object is added to a group or when any of the objects contained in a group is resized or moved.
To recalculate the bounding rectangle for a annotation group called 'group1':
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.