Class OpaqueXYTextAnnotation
java.lang.Object
org.jfree.chart.annotations.AbstractXYAnnotation
org.jfree.chart.annotations.XYTextAnnotation
com.inductiveautomation.factorypmi.application.components.chart.runtime.OpaqueXYTextAnnotation
- All Implemented Interfaces:
Serializable,Cloneable,org.jfree.chart.annotations.XYAnnotation,org.jfree.util.PublicCloneable
public class OpaqueXYTextAnnotation
extends org.jfree.chart.annotations.XYTextAnnotation
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSorts annotations along either the X or Y axis, depending on the plot orientation -
Field Summary
Fields inherited from class org.jfree.chart.annotations.XYTextAnnotation
DEFAULT_FONT, DEFAULT_PAINT, DEFAULT_ROTATION_ANCHOR, DEFAULT_ROTATION_ANGLE, DEFAULT_TEXT_ANCHOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateBounds(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info) voiddraw(Graphics2D g2) voiddraw(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info) doublestatic doublepickDouble(org.jfree.chart.plot.PlotOrientation orientation, double verticalValue, double horizontalValue) Shortcut for ternary operator picking values based on plot orientationstatic floatpickFloat(org.jfree.chart.plot.PlotOrientation orientation, float verticalValue, float horizontalValue) Shortcut for ternary operator picking values based on plot orientationvoidsetBackground(Color background) Methods inherited from class org.jfree.chart.annotations.XYTextAnnotation
clone, equals, getFont, getPaint, getRotationAnchor, getRotationAngle, getText, getTextAnchor, getX, getY, hashCode, setFont, setPaint, setRotationAnchor, setRotationAngle, setText, setTextAnchor, setX, setYMethods inherited from class org.jfree.chart.annotations.AbstractXYAnnotation
addEntity, getToolTipText, getURL, setToolTipText, setURL
-
Constructor Details
-
OpaqueXYTextAnnotation
-
-
Method Details
-
pickFloat
public static float pickFloat(org.jfree.chart.plot.PlotOrientation orientation, float verticalValue, float horizontalValue) Shortcut for ternary operator picking values based on plot orientation -
pickDouble
public static double pickDouble(org.jfree.chart.plot.PlotOrientation orientation, double verticalValue, double horizontalValue) Shortcut for ternary operator picking values based on plot orientation -
calculateBounds
public void calculateBounds(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info) -
draw
public void draw(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info) - Specified by:
drawin interfaceorg.jfree.chart.annotations.XYAnnotation- Overrides:
drawin classorg.jfree.chart.annotations.XYTextAnnotation
-
draw
-
getBackground
-
setBackground
-
getBounds
-
getCenterY
public double getCenterY()
-