lt.monarch.chart.view
Class SimpleChart

java.lang.Object
  extended by lt.monarch.chart.AbstractView<E>
      extended by lt.monarch.chart.view.CompositeView<LabeledChartPaintTags>
          extended by lt.monarch.chart.view.SimpleChart
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, StyleEditorEntity, View, ViewListener, ExpandableDecoration

public class SimpleChart
extends CompositeView<LabeledChartPaintTags>
implements ExpandableDecoration

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.view.CompositeView
views
 
Fields inherited from class lt.monarch.chart.AbstractView
layoutInvalid, paintStyle, style
 
Constructor Summary
Constructor and Description
SimpleChart(Chart chart)
          Simple chart view
 
Method Summary
Modifier and Type Method and Description
 void addView(View v)
          Adds a new view into this container.
 boolean isHorizontallyExpandable()
          Should return true if width of this view, when persisting in top or bottom position inside DecoratedView, should be expanded to maximum space available.
 boolean isVerticallyExpandable()
          Should return true if height of this view, when persisting in left or right position inside DecoratedView, should be expanded to maximum space available.
protected  void layout(AbstractGraphics g)
          Prepares the view by arranging all internal views and calculates required constants.
 
Methods inherited from class lt.monarch.chart.view.CompositeView
dispose, getContainingObjects, getGraphicsType, getViewCount, getViews, paint, removeView, 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, getPreferredSize, 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

SimpleChart

public SimpleChart(Chart chart)
Simple chart view

Method Detail

addView

public void addView(View v)
Description copied from class: CompositeView
Adds a new view into this container.

Overrides:
addView in class CompositeView<LabeledChartPaintTags>
Parameters:
v - view to be added

layout

protected void layout(AbstractGraphics g)
Description copied from class: AbstractView
Prepares the view by arranging all internal views and calculates required constants.

Overrides:
layout in class AbstractView<LabeledChartPaintTags>
Parameters:
g - graphics context

isHorizontallyExpandable

public boolean isHorizontallyExpandable()
Description copied from interface: ExpandableDecoration
Should return true if width of this view, when persisting in top or bottom position inside DecoratedView, should be expanded to maximum space available.

Specified by:
isHorizontallyExpandable in interface ExpandableDecoration
Returns:
true if view's width should be expanded to maximum, false other wise.

isVerticallyExpandable

public boolean isVerticallyExpandable()
Description copied from interface: ExpandableDecoration
Should return true if height of this view, when persisting in left or right position inside DecoratedView, should be expanded to maximum space available.

Specified by:
isVerticallyExpandable in interface ExpandableDecoration
Returns:
true if view's height should be expanded to maximum, false other wise.