Uses of Class
org.jfree.chart.ui.TextAnchor
-
Packages that use TextAnchor Package Description org.jfree.chart.annotations A framework for adding annotations to charts.org.jfree.chart.axis Axis classes and interfaces.org.jfree.chart.labels Generators and other classes used for the display of item labels and tooltips.org.jfree.chart.panel Classes related to theChartPanel
class.org.jfree.chart.plot Plot classes and related interfaces.org.jfree.chart.plot.dial Classes for creating dial plots.org.jfree.chart.text Text-related classes formerly in the JCommon class library.org.jfree.chart.ui Utility classes that relate to user interface items.org.jfree.chart.util Utility classes used by JFreeChart. -
-
Uses of TextAnchor in org.jfree.chart.annotations
Fields in org.jfree.chart.annotations declared as TextAnchor Modifier and Type Field Description static TextAnchor
TextAnnotation. DEFAULT_ROTATION_ANCHOR
The default rotation anchor.static TextAnchor
XYTextAnnotation. DEFAULT_ROTATION_ANCHOR
The default rotation anchor.static TextAnchor
TextAnnotation. DEFAULT_TEXT_ANCHOR
The default text anchor.static TextAnchor
XYTextAnnotation. DEFAULT_TEXT_ANCHOR
The default text anchor.private TextAnchor
TextAnnotation. rotationAnchor
The rotation anchor.private TextAnchor
XYTextAnnotation. rotationAnchor
The rotation anchor.private TextAnchor
TextAnnotation. textAnchor
The text anchor.private TextAnchor
XYTextAnnotation. textAnchor
The text anchor (to be aligned with (x, y)).Methods in org.jfree.chart.annotations that return TextAnchor Modifier and Type Method Description TextAnchor
TextAnnotation. getRotationAnchor()
Returns the rotation anchor.TextAnchor
XYTextAnnotation. getRotationAnchor()
Returns the rotation anchor.TextAnchor
TextAnnotation. getTextAnchor()
Returns the text anchor.TextAnchor
XYTextAnnotation. getTextAnchor()
Returns the text anchor.Methods in org.jfree.chart.annotations with parameters of type TextAnchor Modifier and Type Method Description void
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
Fields in org.jfree.chart.axis declared as TextAnchor Modifier and Type Field Description private TextAnchor
CategoryLabelPosition. rotationAnchor
The rotation anchor.private TextAnchor
Tick. rotationAnchor
The rotation anchor for the tick label.private TextAnchor
Tick. textAnchor
The text anchor for the tick label.Methods in org.jfree.chart.axis that return TextAnchor Modifier and Type Method Description TextAnchor
CategoryLabelPosition. getRotationAnchor()
Returns the rotation anchor point.TextAnchor
Tick. getRotationAnchor()
Returns the text anchor that defines the point around which the label is rotated.TextAnchor
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.Constructors in org.jfree.chart.axis with parameters of type TextAnchor Constructor Description CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle, CategoryLabelWidthType widthType, float widthRatio)
Creates a new position record.CategoryTick(java.lang.Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.CycleBoundTick(boolean mapToLastCycle, java.lang.Number number, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.DateTick(java.util.Date date, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.DateTick(TickType tickType, java.util.Date date, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.LogTick(TickType type, double value, java.text.AttributedString label, TextAnchor textAnchor)
Creates a new instance.NumberTick(java.lang.Number number, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.NumberTick(TickType tickType, double value, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.Tick(java.lang.String text, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.ValueTick(double value, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new value tick.ValueTick(TickType tickType, double value, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new value tick. -
Uses of TextAnchor in org.jfree.chart.labels
Fields in org.jfree.chart.labels declared as TextAnchor Modifier and Type Field Description private TextAnchor
ItemLabelPosition. rotationAnchor
The rotation anchor.private TextAnchor
ItemLabelPosition. textAnchor
The text anchor.Methods in org.jfree.chart.labels that return TextAnchor Modifier and Type Method Description TextAnchor
ItemLabelPosition. getRotationAnchor()
Returns the rotation anchor point.TextAnchor
ItemLabelPosition. getTextAnchor()
Returns the text anchor.Constructors in org.jfree.chart.labels with parameters of type TextAnchor Constructor Description ItemLabelPosition(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.panel
Methods in org.jfree.chart.panel that return TextAnchor Modifier and Type Method Description private TextAnchor
CrosshairOverlay. textAlignPtForLabelAnchorH(RectangleAnchor anchor)
Returns the text anchor that is used to align a label to its anchor point.private TextAnchor
CrosshairOverlay. textAlignPtForLabelAnchorV(RectangleAnchor anchor)
Returns the text anchor that is used to align a label to its anchor point. -
Uses of TextAnchor in org.jfree.chart.plot
Fields in org.jfree.chart.plot declared as TextAnchor Modifier and Type Field Description private TextAnchor
Marker. labelTextAnchor
The text anchor for the label.Methods in org.jfree.chart.plot that return TextAnchor Modifier and Type Method Description protected TextAnchor
PolarPlot. calculateTextAnchor(double angleDegrees)
Calculate the text position for the given degrees.TextAnchor
Marker. getLabelTextAnchor()
Returns the label text anchor.Methods in org.jfree.chart.plot with parameters of type TextAnchor Modifier and Type Method Description void
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
Fields in org.jfree.chart.plot.dial declared as TextAnchor Modifier and Type Field Description private TextAnchor
DialTextAnnotation. anchor
The text anchor to be aligned to the annotation's anchor point.private TextAnchor
DialValueIndicator. textAnchor
The text anchor for displaying the value.Methods in org.jfree.chart.plot.dial that return TextAnchor Modifier and Type Method Description TextAnchor
DialTextAnnotation. getAnchor()
Returns the text anchor point that will be aligned to the position specified byDialTextAnnotation.getAngle()
andDialTextAnnotation.getRadius()
.TextAnchor
DialValueIndicator. getTextAnchor()
Returns the text anchor.Methods in org.jfree.chart.plot.dial with parameters of type TextAnchor Modifier and Type Method Description void
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
Methods in org.jfree.chart.text with parameters of type TextAnchor Modifier and Type Method Description static java.awt.geom.Rectangle2D
TextUtils. calcAlignedStringBounds(java.lang.String text, java.awt.Graphics2D g2, float x, float y, TextAnchor anchor)
Returns the bounds of an aligned string.float
TextFragment. calculateBaselineOffset(java.awt.Graphics2D g2, TextAnchor anchor)
Calculates the vertical offset between the baseline and the specified text anchor.private float
TextLine. calculateBaselineOffset(java.awt.Graphics2D g2, TextAnchor anchor)
Calculate the offsets required to translate from the specified anchor position to the left baseline position.static java.awt.Shape
TextUtils. calculateRotatedStringBounds(java.lang.String text, java.awt.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.private static float[]
TextUtils. deriveRotationAnchorOffsets(java.awt.Graphics2D g2, java.lang.String text, TextAnchor anchor)
A utility method that calculates the rotation anchor offsets for a string.private static float[]
TextUtils. deriveTextBoundsAnchorOffsets(java.awt.Graphics2D g2, java.lang.String text, TextAnchor anchor)
A utility method that calculates the anchor offsets for a string.private static float[]
TextUtils. deriveTextBoundsAnchorOffsets(java.awt.Graphics2D g2, java.lang.String text, TextAnchor anchor, java.awt.geom.Rectangle2D textBounds)
A utility method that calculates the anchor offsets for a string.void
TextFragment. draw(java.awt.Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle)
Draws the text fragment.void
TextLine. draw(java.awt.Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle)
Draws the text line.static java.awt.geom.Rectangle2D
TextUtils. drawAlignedString(java.lang.String text, java.awt.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(java.lang.String text, java.awt.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(java.lang.String text, java.awt.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
Fields in org.jfree.chart.ui declared as TextAnchor Modifier and Type Field Description static TextAnchor
TextAnchor. BASELINE_CENTER
Baseline/center.static TextAnchor
TextAnchor. BASELINE_LEFT
Baseline/left.static TextAnchor
TextAnchor. BASELINE_RIGHT
Baseline/right.static TextAnchor
TextAnchor. BOTTOM_CENTER
Bottom/center.static TextAnchor
TextAnchor. BOTTOM_LEFT
Bottom/left.static TextAnchor
TextAnchor. BOTTOM_RIGHT
Bottom/right.static TextAnchor
TextAnchor. CENTER
Middle/center.static TextAnchor
TextAnchor. CENTER_LEFT
Middle/left.static TextAnchor
TextAnchor. CENTER_RIGHT
Middle/right.static TextAnchor
TextAnchor. HALF_ASCENT_CENTER
Half-ascent/center.static TextAnchor
TextAnchor. HALF_ASCENT_LEFT
Half-ascent/left.static TextAnchor
TextAnchor. HALF_ASCENT_RIGHT
Half-ascent/right.static TextAnchor
TextAnchor. TOP_CENTER
Top/center.static TextAnchor
TextAnchor. TOP_LEFT
Top/left.static TextAnchor
TextAnchor. TOP_RIGHT
Top/right. -
Uses of TextAnchor in org.jfree.chart.util
Methods in org.jfree.chart.util with parameters of type TextAnchor Modifier and Type Method Description private static float[]
AttrStringUtils. deriveRotationAnchorOffsets(java.awt.Graphics2D g2, java.text.AttributedString text, TextAnchor anchor)
A utility method that calculates the rotation anchor offsets for a string.private static float[]
AttrStringUtils. deriveTextBoundsAnchorOffsets(java.awt.Graphics2D g2, java.text.AttributedString text, TextAnchor anchor, java.awt.geom.Rectangle2D textBounds)
static void
AttrStringUtils. drawRotatedString(java.text.AttributedString text, java.awt.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(java.text.AttributedString text, java.awt.Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor)
Draws a rotated string.private static boolean
AttrStringUtils. isBaseline(TextAnchor anchor)
private static boolean
AttrStringUtils. isBottom(TextAnchor anchor)
private static boolean
AttrStringUtils. isHalfAscent(TextAnchor anchor)
private static boolean
AttrStringUtils. isHalfHeight(TextAnchor anchor)
private static boolean
AttrStringUtils. isHorizontalCenter(TextAnchor anchor)
private static boolean
AttrStringUtils. isHorizontalLeft(TextAnchor anchor)
private static boolean
AttrStringUtils. isHorizontalRight(TextAnchor anchor)
private static boolean
AttrStringUtils. isTop(TextAnchor anchor)
-