Package | Description |
---|---|
org.jfree.chart.annotations | |
org.jfree.chart.axis | |
org.jfree.chart.labels | |
org.jfree.chart.plot | |
org.jfree.chart.util | |
org.jfree.text | |
org.jfree.ui |
Modifier and Type | Field and Description |
---|---|
static TextAnchor |
XYTextAnnotation.DEFAULT_ROTATION_ANCHOR
The default rotation anchor.
|
static TextAnchor |
XYTextAnnotation.DEFAULT_TEXT_ANCHOR
The default text anchor.
|
Modifier and Type | Method and Description |
---|---|
TextAnchor |
XYTextAnnotation.getRotationAnchor()
Returns the rotation anchor.
|
TextAnchor |
XYTextAnnotation.getTextAnchor()
Returns the text anchor.
|
Modifier and Type | Method and Description |
---|---|
void |
XYTextAnnotation.setRotationAnchor(TextAnchor anchor)
Sets the rotation anchor point and sends an
AnnotationChangeEvent 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 an
AnnotationChangeEvent to all registered listeners. |
Modifier and Type | Method and Description |
---|---|
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) |
protected TextAnchor |
Axis.labelAnchorV(AxisLabelLocation location) |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
TextAnchor |
ItemLabelPosition.getRotationAnchor()
Returns the rotation anchor point.
|
TextAnchor |
ItemLabelPosition.getTextAnchor()
Returns the text anchor.
|
Constructor and Description |
---|
ItemLabelPosition(ItemLabelAnchor itemLabelAnchor,
TextAnchor textAnchor)
Creates a new position record (with zero rotation).
|
ItemLabelPosition(ItemLabelAnchor itemLabelAnchor,
TextAnchor textAnchor,
TextAnchor rotationAnchor,
double angle)
Creates a new position record.
|
Modifier and Type | Method and Description |
---|---|
TextAnchor |
Marker.getLabelTextAnchor()
Returns the label text anchor.
|
Modifier and Type | Method and Description |
---|---|
void |
Marker.setLabelTextAnchor(TextAnchor anchor)
Sets the label text anchor and sends a
MarkerChangeEvent to
all registered listeners. |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
float |
TextFragment.calculateBaselineOffset(java.awt.Graphics2D g2,
TextAnchor anchor)
Calculates the vertical offset between the baseline and the specified
text anchor.
|
static java.awt.Shape |
TextUtilities.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.
|
void |
TextLine.draw(java.awt.Graphics2D g2,
float anchorX,
float anchorY,
TextAnchor anchor,
float rotateX,
float rotateY,
double angle)
Draws the text line.
|
void |
TextFragment.draw(java.awt.Graphics2D g2,
float anchorX,
float anchorY,
TextAnchor anchor,
float rotateX,
float rotateY,
double angle)
Draws the text fragment.
|
static java.awt.geom.Rectangle2D |
TextUtilities.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 |
TextUtilities.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 |
TextUtilities.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.
|
Modifier and Type | Field and 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.
|