|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<MarkerTextPaintTags>
lt.monarch.chart.marker.TextMarker
public class TextMarker extends AbstractChartObject<MarkerTextPaintTags>
Draws the rectangle with text. The rectangle is bound to the a given coordinate space value.
| Modifier and Type | Field and Description |
|---|---|
protected PlaneMapper |
mapper
|
protected AbstractTextPainter |
textPainter
|
protected TextStyle<MarkerTextPaintTags> |
textStyle
Text style object for getting and setting entityStyle to style-sheet |
protected Alignment |
xAlignment
|
protected AxisMapper |
xMapper
|
protected java.lang.Object |
xPos
|
protected Alignment |
yAlignment
|
protected AxisMapper |
yMapper
|
protected java.lang.Object |
yPos
|
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
TextMarker(java.lang.String s,
Axis xAxis,
Axis yAxis)
Constructs a text marker with given text. |
TextMarker(java.lang.String s,
PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
Constructs a TextMarker with given text, plane mapper and axis mappers. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g)
Paints the text box using current style Font, foreground and background colors. |
Alignment |
getHAlignment()
Returns horizontal text alignment value. |
Projector |
getProjector()
Returns modified projector. |
int |
getSortPosition()
Returns chart object paint order index. |
AbstractStyle |
getStyle(StyleType styleType)
Gets style object for the stylesheet attributes specified by style type. |
TextStyle<MarkerTextPaintTags> |
getTextStyle()
Get text style object. |
Alignment |
getVAlignment()
Returns vertical text alignment value. |
void |
setAlignment(Alignment hAlign,
Alignment vAlign)
Sets text alignment. |
void |
setPosition(java.lang.Object x,
java.lang.Object y)
Sets rectangle position. |
void |
setText(java.lang.String s)
Sets text to be displayed inside rectangle. |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
activate, chart, copy, deactivate, dispose, finalize, getChart, getChartObjectBounds, getPaintStyle, getParent, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PlaneMapper mapper
protected final AxisMapper xMapper
protected final AxisMapper yMapper
protected AbstractTextPainter textPainter
protected java.lang.Object xPos
protected java.lang.Object yPos
protected Alignment xAlignment
protected Alignment yAlignment
protected TextStyle<MarkerTextPaintTags> textStyle
| Constructor Detail |
|---|
public TextMarker(java.lang.String s,
Axis xAxis,
Axis yAxis)
s - text for the text markerxAxis - X axisyAxis - Y axis
public TextMarker(java.lang.String s,
PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
TextMarker with given text, plane mapper and axis mappers.
s - text for the text markermapper - plane mapperxMapper - X axis mapperyMapper - Y axis mapper| Method Detail |
|---|
public void setText(java.lang.String s)
s - text for the text marker
public void setPosition(java.lang.Object x,
java.lang.Object y)
x - X position valuey - Y position value
public void setAlignment(Alignment hAlign,
Alignment vAlign)
hAlign - new horizontal alignment. Possible values are : CENTER, LEFT, RIGHT.vAlign - new vertical alignment. Possible values are : CENTER, TOP, BOTTOM.public Alignment getHAlignment()
public Alignment getVAlignment()
public Projector getProjector()
public void draw(AbstractGraphics g)
g - Graphics contextpublic TextStyle<MarkerTextPaintTags> getTextStyle()
public int getSortPosition()
ChartObject
getSortPosition in interface ChartObjectgetSortPosition in class AbstractChartObject<MarkerTextPaintTags>public AbstractStyle getStyle(StyleType styleType)
ChartObject
getStyle in interface ChartObjectgetStyle in interface StyleEditorEntitygetStyle in class AbstractChartObject<MarkerTextPaintTags>styleType - style type attributes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||