Uses of Class
org.jfree.chart.ui.TextAnchor
Package
Description
A framework for adding annotations to charts.
Axis classes and interfaces.
Generators and other classes used for the display of item labels and tooltips.
Plot classes and related interfaces.
Classes for creating dial plots.
Text-related classes formerly in the JCommon class library.
Utility classes that relate to user interface items.
Utility classes used by JFreeChart.
-
Uses of TextAnchor in org.jfree.chart.annotations
Modifier and TypeFieldDescriptionstatic final TextAnchor
TextAnnotation.DEFAULT_ROTATION_ANCHOR
The default rotation anchor.static final TextAnchor
XYTextAnnotation.DEFAULT_ROTATION_ANCHOR
The default rotation anchor.static final TextAnchor
TextAnnotation.DEFAULT_TEXT_ANCHOR
The default text anchor.static final TextAnchor
XYTextAnnotation.DEFAULT_TEXT_ANCHOR
The default text anchor.Modifier and TypeMethodDescriptionTextAnnotation.getRotationAnchor()
Returns the rotation anchor.XYTextAnnotation.getRotationAnchor()
Returns the rotation anchor.TextAnnotation.getTextAnchor()
Returns the text anchor.XYTextAnnotation.getTextAnchor()
Returns the text anchor.Modifier and TypeMethodDescriptionvoid
TextAnnotation.setRotationAnchor
(TextAnchor anchor) Sets the rotation anchor point and sends anAnnotationChangeEvent
to all registered listeners.void
XYTextAnnotation.setRotationAnchor
(TextAnchor anchor) Sets the rotation anchor point and sends anAnnotationChangeEvent
to all registered listeners.void
TextAnnotation.setTextAnchor
(TextAnchor anchor) Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation) and sends anAnnotationChangeEvent
to all registered listeners.void
XYTextAnnotation.setTextAnchor
(TextAnchor anchor) Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation) and sends anAnnotationChangeEvent
to all registered listeners. -
Uses of TextAnchor in org.jfree.chart.axis
Modifier and TypeMethodDescriptionCategoryLabelPosition.getRotationAnchor()
Returns the rotation anchor point.Tick.getRotationAnchor()
Returns the text anchor that defines the point around which the label is rotated.Tick.getTextAnchor()
Returns the text anchor.protected TextAnchor
Axis.labelAnchorH
(AxisLabelLocation location) Returns the appropriate horizontal text anchor for the specified axis location.protected TextAnchor
Axis.labelAnchorV
(AxisLabelLocation location) Returns the appropriate vertical text anchor for the specified axis location.ModifierConstructorDescriptionCategoryLabelPosition
(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle, CategoryLabelWidthType widthType, float widthRatio) Creates a new position record.CategoryTick
(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick.CycleBoundTick
(boolean mapToLastCycle, Number number, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick.DateTick
(Date date, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new date tick.DateTick
(TickType tickType, Date date, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new date tick.LogTick
(TickType type, double value, AttributedString label, TextAnchor textAnchor) Creates a new instance.NumberTick
(Number number, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick.NumberTick
(TickType tickType, double value, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick.Tick
(String text, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick.ValueTick
(double value, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new value tick.ValueTick
(TickType tickType, double value, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new value tick. -
Uses of TextAnchor in org.jfree.chart.labels
Modifier and TypeMethodDescriptionItemLabelPosition.getRotationAnchor()
Returns the rotation anchor point.ItemLabelPosition.getTextAnchor()
Returns the text anchor.ModifierConstructorDescriptionItemLabelPosition
(ItemLabelAnchor itemLabelAnchor, TextAnchor textAnchor) Creates a new position record (with zero rotation).ItemLabelPosition
(ItemLabelAnchor itemLabelAnchor, TextAnchor textAnchor, ItemLabelClip itemLabelClip) Creates a new position record.ItemLabelPosition
(ItemLabelAnchor itemLabelAnchor, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle) Creates a new position record.ItemLabelPosition
(ItemLabelAnchor itemLabelAnchor, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle, ItemLabelClip itemLabelClip) Creates a new position record. -
Uses of TextAnchor in org.jfree.chart.plot
Modifier and TypeMethodDescriptionprotected TextAnchor
PolarPlot.calculateTextAnchor
(double angleDegrees) Calculate the text position for the given degrees.Marker.getLabelTextAnchor()
Returns the label text anchor.Modifier and TypeMethodDescriptionvoid
Marker.setLabelTextAnchor
(TextAnchor anchor) Sets the label text anchor and sends aMarkerChangeEvent
to all registered listeners. -
Uses of TextAnchor in org.jfree.chart.plot.dial
Modifier and TypeMethodDescriptionDialTextAnnotation.getAnchor()
Returns the text anchor point that will be aligned to the position specified byDialTextAnnotation.getAngle()
andDialTextAnnotation.getRadius()
.DialValueIndicator.getTextAnchor()
Returns the text anchor.Modifier and TypeMethodDescriptionvoid
DialTextAnnotation.setAnchor
(TextAnchor anchor) Sets the text anchor point and sends aDialLayerChangeEvent
to all registered listeners.void
DialValueIndicator.setTextAnchor
(TextAnchor anchor) Sets the text anchor and sends aDialLayerChangeEvent
to all registered listeners. -
Uses of TextAnchor in org.jfree.chart.text
Modifier and TypeMethodDescriptionstatic Rectangle2D
TextUtils.calcAlignedStringBounds
(String text, Graphics2D g2, float x, float y, TextAnchor anchor) Returns the bounds of an aligned string.float
TextFragment.calculateBaselineOffset
(Graphics2D g2, TextAnchor anchor) Calculates the vertical offset between the baseline and the specified text anchor.static Shape
TextUtils.calculateRotatedStringBounds
(String text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor) Returns a shape that represents the bounds of the string after the specified rotation has been applied.void
TextFragment.draw
(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle) Draws the text fragment.void
TextLine.draw
(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle) Draws the text line.static Rectangle2D
TextUtils.drawAlignedString
(String text, Graphics2D g2, float x, float y, TextAnchor anchor) Draws a string such that the specified anchor point is aligned to the given (x, y) location.static void
TextUtils.drawRotatedString
(String text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, float rotationX, float rotationY) Draws a string that is aligned by one anchor point and rotated about another anchor point.static void
TextUtils.drawRotatedString
(String text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor) Draws a string that is aligned by one anchor point and rotated about another anchor point. -
Uses of TextAnchor in org.jfree.chart.ui
Modifier and TypeFieldDescriptionstatic final TextAnchor
TextAnchor.BASELINE_CENTER
Baseline/center.static final TextAnchor
TextAnchor.BASELINE_LEFT
Baseline/left.static final TextAnchor
TextAnchor.BASELINE_RIGHT
Baseline/right.static final TextAnchor
TextAnchor.BOTTOM_CENTER
Bottom/center.static final TextAnchor
TextAnchor.BOTTOM_LEFT
Bottom/left.static final TextAnchor
TextAnchor.BOTTOM_RIGHT
Bottom/right.static final TextAnchor
TextAnchor.CENTER
Middle/center.static final TextAnchor
TextAnchor.CENTER_LEFT
Middle/left.static final TextAnchor
TextAnchor.CENTER_RIGHT
Middle/right.static final TextAnchor
TextAnchor.HALF_ASCENT_CENTER
Half-ascent/center.static final TextAnchor
TextAnchor.HALF_ASCENT_LEFT
Half-ascent/left.static final TextAnchor
TextAnchor.HALF_ASCENT_RIGHT
Half-ascent/right.static final TextAnchor
TextAnchor.TOP_CENTER
Top/center.static final TextAnchor
TextAnchor.TOP_LEFT
Top/left.static final TextAnchor
TextAnchor.TOP_RIGHT
Top/right. -
Uses of TextAnchor in org.jfree.chart.util
Modifier and TypeMethodDescriptionstatic void
AttrStringUtils.drawRotatedString
(AttributedString text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, float rotationX, float rotationY) Draws the string anchored to(x, y)
, rotated by the specified angle about(rotationX, rotationY)
.static void
AttrStringUtils.drawRotatedString
(AttributedString text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor) Draws a rotated string.