|
|||||||||
| 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.CompositeView<E>
lt.monarch.chart.view.DecoratedView<LabeledChartPaintTags>
lt.monarch.chart.view.LabeledChart
public class LabeledChart extends DecoratedView<LabeledChartPaintTags>
Decorates a chart with a title and a legend.
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.view.DecoratedView |
|---|
bottomAlignment, bottomOverlap, bottomView, leftAlignment, leftOverlap, leftView, rightAlignment, rightOverlap, rightView, topAlignment, topOverlap, topView, view |
| Fields inherited from class lt.monarch.chart.view.CompositeView |
|---|
views |
| Fields inherited from class lt.monarch.chart.AbstractView |
|---|
layoutInvalid, paintStyle, style |
| Constructor and Description |
|---|
LabeledChart(Chart chart)
Constructs a labeled view for the specified chart. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Dimension |
getPreferredSize(AbstractGraphics g)
Gets the preferred size of this view in the specified Graphics context. |
LabelView<LabeledChartPaintTags> |
getTitleView()
Gets title view object |
protected void |
layout(AbstractGraphics g)
Prepares the view by arranging all internal views and calculates required constants. |
void |
setFooter(java.lang.String s)
Adds a footer. |
void |
setHeader(java.lang.String s)
Adds a header. |
void |
setLeftNote(java.lang.String s)
Adds a left note. |
void |
setRightNote(java.lang.String s)
Adds a right note. |
void |
setTitle(java.lang.String s)
Adds a title. |
| Methods inherited from class lt.monarch.chart.view.DecoratedView |
|---|
getBottomAlignment, getBottomView, getLeftAlignment, getLeftView, getRightAlignment, getRightView, getTopAlignment, getTopView, getViewSize, isHorizontallyExpandable, isVerticallyExpandable, narrow, removeView, setBottomView, setBottomView, setBottomView, setLeftView, setLeftView, setLeftView, setRightView, setRightView, setRightView, setTopView, setTopView, setTopView |
| Methods inherited from class lt.monarch.chart.view.CompositeView |
|---|
addView, dispose, getContainingObjects, getGraphicsType, getViewCount, getViews, paint, setContainer, setView, validate, viewActivated, viewDeactivated, viewInvalidated |
| Methods inherited from class lt.monarch.chart.AbstractView |
|---|
activate, addViewListener, clone, container, deactivate, finalize, getAlignmentX, getAlignmentY, getBounds, getChartObjectBounds, getContainer, getHeight, getMaximumSize, getMinimumSize, getPaintMode, getPaintStyle, getParent, getSize, getSize, getStyle, getStyle, getWidth, getX, getY, invalidate, isLayoutValid, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setLocation, setMaximumSize, setMinimumSize, setPaintMode, setPreferredSize, setSize |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabeledChart(Chart chart)
chart - chart to be decorated| Method Detail |
|---|
public void setTitle(java.lang.String s)
s - title stringpublic LabelView<LabeledChartPaintTags> getTitleView()
public void setHeader(java.lang.String s)
s - header stringpublic void setFooter(java.lang.String s)
s - footer stringpublic void setLeftNote(java.lang.String s)
s - text stringpublic void setRightNote(java.lang.String s)
s - text stringpublic java.awt.Dimension getPreferredSize(AbstractGraphics g)
AbstractView
getPreferredSize in interface ViewgetPreferredSize in class DecoratedView<LabeledChartPaintTags>g - the Graphics context in which view will be paintedprotected void layout(AbstractGraphics g)
AbstractView
layout in class DecoratedView<LabeledChartPaintTags>g - graphics context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||