com.softwarefx.chartfx.server.annotation
Class AnnotationRectangle
java.lang.Object
com.softwarefx.chartfx.server.annotation.AnnotationObject
com.softwarefx.chartfx.server.annotation.AnnotationRectangle
public class AnnotationRectangle
- extends AnnotationObject
Provides access to the AnnotationRectangle object.
The AnnotationRectangle
Class
allows you to create rectangle shapes in your charting applications. All the supported members of this
Class
are inherited from the AnnotationObject
Class
.
Below is an example of an annotation rectangle:
chart1.importChart(FileFormat.XML, application.getRealPath("/") + "/data/samples.cfx");
com.softwarefx.chartfx.server.annotation.Annotations annot = new com.softwarefx.chartfx.server.annotation.Annotations();
chart1.getExtensions().add(annot);
chart1.getExtensions().add(annot);
com.softwarefx.chartfx.server.annotation.AnnotationRectangle rect = new com.softwarefx.chartfx.server.annotation.AnnotationRectangle();
annot.getList().add(rect);
rect.setColor(java.awt.Color.yellow);
rect.getBorder().setColor(java.awt.Color.red);
rect.attach(1.0, 60.0, 3.0, 40.0);
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 rectangles and squares you create in the chart area.
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 |
AnnotationRectangle
public AnnotationRectangle()
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.