|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.text.TextPainter
lt.monarch.chart.text.RotatedLabelPainter
lt.monarch.chart.text.LadderTextPainter
public class LadderTextPainter extends RotatedLabelPainter
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.text.TextPainter |
|---|
boundingBox, hAlignment, text, vAlignment, xMargin, yMargin |
| Constructor and Description |
|---|
LadderTextPainter()
Empty ladder text painter constructor |
LadderTextPainter(double angle)
Ladder text painter constructor |
LadderTextPainter(java.lang.String text)
Ladder text painter constructor |
LadderTextPainter(java.lang.String text,
Alignment hAlign,
Alignment vAlign)
Ladder text painter constructor |
LadderTextPainter(java.lang.String text,
double angle)
Ladder text painter constructor |
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
findBounds(AbstractGraphics g,
Rectangle2D r)
Finds the bounding box of text painting area. |
Area |
getFullArea(java.awt.FontMetrics fm)
Returns the area where is label. |
protected java.awt.Dimension |
getFullSize(java.awt.FontMetrics fm)
Returns full not rotated text size. |
Rectangle2D |
getPreferredBounds(java.awt.FontMetrics fm)
Gets preferred bounds |
float |
getRelativePosition()
Returns relative position for the label |
double |
getRotationAngle()
Gets rotation angle for label in radians |
Point2D |
getRotationPoint()
Returns rotation point. |
HotSpotMap |
mapEntity(ChartEntity entity,
HotSpotMap hotMap)
Maps label entity |
void |
paint(AbstractGraphics g,
Rectangle2D r)
Paints text into specified rectangle using provided graphics context. |
void |
setAngle(double angle)
Sets the text rotation angle. |
void |
setRelativePosition(float relativePosition)
Sets relative position for the label |
void |
setRotationAngle(double rotationAngle)
Sets rotation angle for the label in radians |
void |
setRotationPoint(Point2D rotationPoint)
Sets rotation point |
void |
setText(java.lang.String s)
Sets text for text painter. |
| Methods inherited from class lt.monarch.chart.text.TextPainter |
|---|
dispose, getBounds, getHorizontalAlignment, getHorizontalMargin, getMarginInPixels, getMinimumHeight, getMinimumSize, getMinimumSize, getText, getVerticalAlignment, getVerticalMargin, getWrappingEnabled, setHorizontalAlignment, setHorizontalMargin, setMargin, setText, setVerticalAlignment, setVerticalMargin, setWrappingEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LadderTextPainter(java.lang.String text,
double angle)
text - text to paintangle - rotation angle in radiantpublic LadderTextPainter(double angle)
angle - rotation angle in radiant
public LadderTextPainter(java.lang.String text,
Alignment hAlign,
Alignment vAlign)
text - text to painthAlign - horizontal alignmentvAlign - vertical alignmentpublic LadderTextPainter(java.lang.String text)
text - text to paintpublic LadderTextPainter()
| Method Detail |
|---|
public Area getFullArea(java.awt.FontMetrics fm)
RotatedLabelPainter
getFullArea in class RotatedLabelPainterfm - font metricsprotected java.awt.Dimension getFullSize(java.awt.FontMetrics fm)
RotatedLabelPainter
getFullSize in class RotatedLabelPainterfm - font metricspublic Rectangle2D getPreferredBounds(java.awt.FontMetrics fm)
RotatedLabelPainter
getPreferredBounds in class RotatedLabelPainterfm - FontMetricspublic double getRotationAngle()
RotatedLabelPainter
getRotationAngle in class RotatedLabelPainterpublic void setRelativePosition(float relativePosition)
RotatedLabelPainter
setRelativePosition in class RotatedLabelPainterrelativePosition - relative position for the labelpublic float getRelativePosition()
RotatedLabelPainter
getRelativePosition in class RotatedLabelPainterpublic void setRotationAngle(double rotationAngle)
RotatedLabelPainter
setRotationAngle in class RotatedLabelPainterrotationAngle - rotation angle for labelpublic void setRotationPoint(Point2D rotationPoint)
RotatedLabelPainter
setRotationPoint in class RotatedLabelPainterrotationPoint - rotation pointpublic Point2D getRotationPoint()
getRotationPoint in class RotatedLabelPainterpublic void setText(java.lang.String s)
AbstractTextPainter
setText in interface AbstractTextPaintersetText in class TextPainters - text string.public void setAngle(double angle)
angle - rotation angle in radians
public Rectangle2D findBounds(AbstractGraphics g,
Rectangle2D r)
AbstractTextPainter
findBounds in interface AbstractTextPainterfindBounds in class TextPainterg - current graphics context.r - text string rectangle.
public void paint(AbstractGraphics g,
Rectangle2D r)
AbstractTextPainter
paint in interface AbstractTextPainterpaint in class TextPainterg - current graphics context.r - area of text painting.
public HotSpotMap mapEntity(ChartEntity entity,
HotSpotMap hotMap)
entity - entityhotMap - hotspot map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||