|
Chart FX for Java 6.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoftwareFX.ChartFX.Annotation.AnnotationX
public final class AnnotationX
Provides access to the AnnotationX object.
The AnnotationX Class is used to create the Annotation Extension object. The Annotation Extension object must be added to your charting application if you plan on using any of the Annotation features. Once the Annotation Extension object has been created, the supported members of this class allow you to select the type of annotation list you will create. The annotation list will consist of all the individual annotation objects which will be included in a chart. Once the desired objects have been added to the annotation list and the annotation list has been added to the Annotation Extension object, the Annotation Extension object may be added to your charting application.
Below is an example of creating an Annotation Extension object and adding it to the chart using the Extension property:
SoftwareFX.ChartFX.Annotation.AnnotationX annot = new SoftwareFX.ChartFX.Annotation.AnnotationX();
chart1.getExtensions().add(annot);
Constructor Summary | |
---|---|
AnnotationX()
|
Method Summary | |
---|---|
Command |
getCommand(int nID)
Deprecated. You should use getCommands() instead. |
CommandBar |
getCommands()
Gets the list of commands associated with the Annotation Extension. |
java.awt.Color |
getDefaultBorderColor()
Gets the DefaultBorderColor. |
java.awt.Color |
getDefaultFillColor()
Gets the DefaultFillColor. |
AnnotationList |
getList()
Allows you to access the CollectionBase members used modify the annotation list. |
AnnotationObject |
getList(int n)
Deprecated. You should use getList() instead. |
ToolBar |
getToolBarObj()
Allows you to assign supported attributes directly the annotation ToolBar object. |
int |
getToolBarObj(int n)
Deprecated. You should use getToolBarObj() instead. |
boolean |
isDirty()
Gets the Dirty. |
boolean |
isEnabled()
Gets the Enabled. |
boolean |
isToolBar()
Gets the ToolBar. |
void |
setDefaultBorderColor(java.awt.Color value)
Used to set the border color for annotation objects created using the annotation toolbar. |
void |
setDefaultFillColor(java.awt.Color value)
Used to set the fill color for annotation objects created using the annotation toolbar. |
void |
setDirty(boolean value)
Returns a boolean specifying if the annotation extension object has been modified. |
void |
setEnabled(boolean value)
Used to allow/prevent the user from interacting with objects you add programmatically. |
void |
setToolBar(boolean value)
Used to show and hide the annotation toolbar in the chart area. |
void |
setToolBarObj(int n,
int value)
Deprecated. You should use getToolBarObj() instead. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationX()
Method Detail |
---|
public Command getCommand(int nID)
getCommands()
instead.
public CommandBar getCommands()
Gets the list of commands associated with the Annotation Extension.
Customizing the Annotation Toolbar works exactly like customizing the Chart FX toolbar. Please see the Customizing Tools section in the Programmer's Guide for a more detailed explaination of this process.
When customizing the Annotation Toolbar, you may reference the pre-defined annotation commands. To do so, you will access the AnnCommandID enumeration located at the following namespace:
SoftwareFX.ChartFX.Annotation.AnnCommandID
Command
public java.awt.Color getDefaultBorderColor()
Gets the DefaultBorderColor. For more detail see setDefaultBorderColor(java.awt.Color)
.
public java.awt.Color getDefaultFillColor()
Gets the DefaultFillColor. For more detail see setDefaultFillColor(java.awt.Color)
.
public AnnotationObject getList(int n)
getList()
instead.
public AnnotationList getList()
Allows you to access the CollectionBase members used modify the annotation list.
Using this property, you will have access to add and remove items from the annotation list. You can also count the number of current items on the list.
This property is used to create the annotation lists. Once the annotation list has been created and applied to the chart, you can see the annotation objects in the chart area.
public int getToolBarObj(int n)
getToolBarObj()
instead.
public ToolBar getToolBarObj()
Allows you to assign supported attributes directly the annotation ToolBar object.
The setToolBar(boolean)
property is used to display the Annotation ToolBar. However, when enabling the Annoation ToolBar, you must first set setEnabled(boolean)
to True for the Annotation Extension object before the extension is added to the Chart.
AnnotationX annotx = new AnnotationX();
annotx.Enabled = true;
chart1.Extensions.Add(annotx);
annotx.ToolBar = true;
This property may be used to set visual attributes as well as adding custom and predefined commands to the Annotation ToolBar.
For supported members of the Annotation ToolBar, please refer to the supported properties of the ToolBar
class.
setToolBar(boolean)
,
setEnabled(boolean)
,
ToolBar
public boolean isDirty()
Gets the Dirty. For more detail see setDirty(boolean)
.
public boolean isEnabled()
Gets the Enabled. For more detail see setEnabled(boolean)
.
public boolean isToolBar()
Gets the ToolBar. For more detail see setToolBar(boolean)
.
public void setDefaultBorderColor(java.awt.Color value)
Used to set the border color for annotation objects created using the annotation toolbar.
Setting this property to a color will instruct Chart FX to use the configured color as the border color for all objects created using the annotation toolbar.
You setDefaultFillColor(java.awt.Color)
allows you to configure the fill color for all annotation objects created using the annotation toolbar.
The setToolBar(boolean)
property is used to display the annotation toolbar in the chart. You must create the annotation extension object, set the enabled attribute to true, and add the annotation extension to the chart. At this point you may set the setToolBar(boolean)
Property to True to make the toolbar visible.
setDefaultFillColor(java.awt.Color)
,
setToolBar(boolean)
public void setDefaultFillColor(java.awt.Color value)
Used to set the fill color for annotation objects created using the annotation toolbar.
Setting this property to a color will instruct Chart FX to use the configured color as the fill color for all objects created using the annotation toolbar.
You setDefaultBorderColor(java.awt.Color)
allows you to configure the border color for all annotation objects created using the annotation toolbar.
The setToolBar(boolean)
property is used to display the annotation toolbar in the chart. You must create the annotation extension object, set the enabled attribute to true, and add the annotation extension to the chart. At this point you may set the setToolBar(boolean)
Property to True to make the toolbar visible.
setDefaultBorderColor(java.awt.Color)
,
setToolBar(boolean)
,
setEnabled(boolean)
public void setDirty(boolean value)
Returns a boolean specifying if the annotation extension object has been modified.
When True is returned the annotation extension has been modified, therefore the extension has been marked 'Dirty'.
This get property allows you to detect if a user has added an annotaton object to the chart via the annotation TooBar. When an object has been added to the annotation extension programmatically by the developer, this property will also return True.
getList(int)
public void setEnabled(boolean value)
Used to allow/prevent the user from interacting with objects you add programmatically.
When set to true, users are allowed to interact with annotation objects created programmatically. When set to false, users do not have access.
The setToolBar(boolean)
property is used to display the annotation toolbar in the chart. You must create the annotation extension object, set the enabled attribute to true, and add the annotation extension to the chart. At this point you may set the setToolBar(boolean)
Property to True to make the toolbar visible.
AnnotationObject.setAllowModify(boolean)
,
AnnotationObject.setAllowMove(boolean)
,
setToolBar(boolean)
,
AnnotationObject
public void setToolBar(boolean value)
Used to show and hide the annotation toolbar in the chart area.
You will need to add the annotation extension to your projects using the ChartCore.getExtensions()
property of the Chart
class.
The setEnabled(boolean)
property controls if the user is able to interact with objects you add programmatically. It also must be set to True in order to display the annotation toolbar.
The setToolBar(boolean)
property is used to display the annotation toolbar in the chart. You must create the annotation extension object, set the setEnabled(boolean)
attribute to true, and add the annotation extension to the chart. At this point you may set the setToolBar(boolean)
Property to True to make the toolbar visible.
AnnotationX annotx = new AnnotationX();
annotx.setEnabled(true);
chart1.getExtensions().add(annotx);
annotx.setToolBar(true);
ChartCore.getExtensions()
,
setEnabled(boolean)
,
Chart
public void setToolBarObj(int n, int value)
getToolBarObj()
instead.
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |