|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.AbstractView<E>
lt.monarch.chart.view.LabelView<E>
public class LabelView<E extends AbstractPaintTags> extends AbstractView<E>
Renders a label (or title).
Multiline strings are supported for all labels (title, footer, notes). Use a new-line character
to separate lines.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.AbstractView |
|---|
layoutInvalid, paintStyle, style |
| Constructor and Description |
|---|
LabelView()
Default label view constructor. |
LabelView(java.lang.String text)
Label view constructor |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<?> |
getContainingObjects()
Returns nothing |
java.lang.Object |
getParent()
Return the parent chart object |
java.awt.Dimension |
getPreferredSize(AbstractGraphics g)
Gets the preferred size of this view in the specified Graphics context. |
AbstractStyle |
getStyle(StyleType styleType)
Gets style object for the stylesheet attributes specified by style type. |
java.lang.String |
getText()
|
TextStyle<E> |
getTextStyle()
Text style object |
protected void |
paint(AbstractGraphics g)
Paints the view. |
void |
setHorizontalAlignment(Alignment align)
Sets horizontal alignment of the text |
void |
setOrientation(Orientation orientation)
Sets label orientation |
void |
setText(java.lang.String s)
Sets text |
void |
setVerticalAlignment(Alignment align)
Set vertical alignment |
| Methods inherited from class lt.monarch.chart.AbstractView |
|---|
activate, addViewListener, clone, container, deactivate, dispose, finalize, getAlignmentX, getAlignmentY, getBounds, getChartObjectBounds, getContainer, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPaintMode, getPaintStyle, getSize, getSize, getStyle, getWidth, getX, getY, invalidate, isLayoutValid, layout, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPaintMode, setPreferredSize, setSize, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelView(java.lang.String text)
text - text of the label viewpublic LabelView()
| Method Detail |
|---|
public void setText(java.lang.String s)
s - text to setpublic java.lang.String getText()
public void setHorizontalAlignment(Alignment align)
align - horizontal alignment of the textpublic void setVerticalAlignment(Alignment align)
align - vertical alignmentpublic void setOrientation(Orientation orientation)
orientation - label orientationpublic java.awt.Dimension getPreferredSize(AbstractGraphics g)
AbstractView
getPreferredSize in interface ViewgetPreferredSize in class AbstractView<E extends AbstractPaintTags>g - the Graphics context in which view will be paintedprotected void paint(AbstractGraphics g)
AbstractView
paint in class AbstractView<E extends AbstractPaintTags>g - graphics contextpublic TextStyle<E> getTextStyle()
public AbstractStyle getStyle(StyleType styleType)
StyleEditorEntity
getStyle in interface StyleEditorEntitygetStyle in class AbstractView<E extends AbstractPaintTags>styleType - style type attributespublic java.lang.Object getParent()
StyleEditorEntity
getParent in interface StyleEditorEntitygetParent in class AbstractView<E extends AbstractPaintTags>public java.util.List<?> getContainingObjects()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||