Uses of Class
org.jfree.chart.text.TextBlock
Packages that use TextBlock
Package
Description
Text-related classes formerly in the JCommon class library.
-
Uses of TextBlock in org.jfree.chart.axis
Methods in org.jfree.chart.axis that return TextBlockModifier and TypeMethodDescriptionprotected TextBlock
CategoryAxis.createLabel
(Comparable category, float width, RectangleEdge edge, Graphics2D g2) Creates a label.protected TextBlock
ExtendedCategoryAxis.createLabel
(Comparable category, float width, RectangleEdge edge, Graphics2D g2) Overrides the default behaviour by adding the sublabel to the text block that is used for the category label.CategoryTick.getLabel()
Returns the label.Methods in org.jfree.chart.axis with parameters of type TextBlockModifier and TypeMethodDescriptionprotected double
CategoryAxis.calculateTextBlockHeight
(TextBlock block, CategoryLabelPosition position, Graphics2D g2) A utility method for determining the height of a text block.protected double
CategoryAxis.calculateTextBlockWidth
(TextBlock block, CategoryLabelPosition position, Graphics2D g2) A utility method for determining the width of a text block.Constructors in org.jfree.chart.axis with parameters of type TextBlockModifierConstructorDescriptionCategoryTick
(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick. -
Uses of TextBlock in org.jfree.chart.text
Methods in org.jfree.chart.text that return TextBlockModifier and TypeMethodDescriptionstatic TextBlock
TextUtils.createTextBlock
(String text, Font font, Paint paint) Creates aTextBlock
from aString
.static TextBlock
TextUtils.createTextBlock
(String text, Font font, Paint paint, float maxWidth, int maxLines, TextMeasurer measurer) Creates a new text block from the given string, breaking the text into lines so that themaxWidth
value is respected.static TextBlock
TextUtils.createTextBlock
(String text, Font font, Paint paint, float maxWidth, TextMeasurer measurer) Creates a new text block from the given string, breaking the text into lines so that themaxWidth
value is respected.TextBox.getTextBlock()
Returns the text block.Methods in org.jfree.chart.text with parameters of type TextBlockModifier and TypeMethodDescriptionvoid
TextBox.setTextBlock
(TextBlock block) Sets the text block.Constructors in org.jfree.chart.text with parameters of type TextBlock