lt.monarch.chart.chart3D
Class Chart3D

java.lang.Object
  extended by lt.monarch.chart.AbstractView<PaintTags>
      extended by lt.monarch.chart.AbstractChart<PaintTags,GeneralProjector>
          extended by lt.monarch.chart.MultiSeriesChartBase<ChartPaintTags,Projector3D>
              extended by lt.monarch.chart.chart3D.Chart3D
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Chart<Projector3D>, ChartEntity, StyleEditorEntity, View

public class Chart3D
extends MultiSeriesChartBase<ChartPaintTags,Projector3D>

Manages 3-dimensional chart objects

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Axis3D axisX
           
protected  Axis3D axisY
           
protected  Axis3D axisZ
           
protected  Projector3D projector
           
 
Fields inherited from class lt.monarch.chart.AbstractChart
draftMode, locale, plugins
 
Fields inherited from class lt.monarch.chart.AbstractView
layoutInvalid, paintStyle, style
 
Constructor Summary
Constructor and Description
Chart3D()
           
Chart3D(Projector3D projector)
           
 
Method Summary
Modifier and Type Method and Description
 void addObject(ChartObject obj)
          Adds the specified chart object to the chart at run-time.
 void deactivate()
          Deactivates this chart.
 int findObjectUnder(Point2D point)
          Gets id from a selection buffer
 AntiAliasing getAntiAliasing()
          Anti aliasing method for 3d chart
 GraphicsManager.GraphicsType getGraphicsType()
          Returns graphics type
 Projector3D getProjector()
           
 double getScaleLevel()
          Chart scaling level.
 void invalidate()
          Invalidates the view.
 boolean isSmoothFonts()
          Are anti-aliased fonts drawn
 boolean isSmoothLines()
          Are anti-aliased lines drawn
protected  void layout(AbstractGraphics g)
          Layouts the chart.
protected  void paintChart(AbstractGraphics g)
          Paints the chart.
 Projector3D projector()
          Deprecated. 
 void removeObject(ChartObject obj)
          Removes the specified chart object from the chart at run-time.
 void setAntiAliasing(AntiAliasing antiAliasing)
          Anti aliasing method for 3d chart
 void setAxis(Axis3D x, Axis3D y, Axis3D z)
          Sets all three axes for a chart
 void setScaleLevel(double scaleLevel)
          Chart scaling level.
 void setSmoothFonts(boolean smoothFonts)
          Are anti-aliased fonts drawn
 void setSmoothLines(boolean smoothLines)
          Are anti-aliased lines drawn
 
Methods inherited from class lt.monarch.chart.MultiSeriesChartBase
activate, createLegendEntries, dispose, finalize, findObject, getContainingObjects, getObjects, layoutObjects, replaceObject, reset, setObjects, shiftObjects
 
Methods inherited from class lt.monarch.chart.AbstractChart
addPlugin, disableDrafMode, enableDraftMode, fillEntitySheet, getDescription, getLocale, getParentEntity, getPlugins, getShortDescription, isDraftMode, paint, removePlugin, removePlugins, setDraftMode, setLocale
 
Methods inherited from class lt.monarch.chart.AbstractView
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getChartObjectBounds, getContainer, getHeight, getMaximumSize, getMinimumSize, getPaintMode, getPaintStyle, getParent, getPreferredSize, getSize, getSize, getStyle, getStyle, getWidth, getX, getY, isLayoutValid, 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
 
Methods inherited from interface lt.monarch.chart.engine.View
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getSize, getSize, getStyle, getWidth, getX, getY, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPreferredSize, setSize, validate
 

Field Detail

projector

protected Projector3D projector

axisX

protected Axis3D axisX

axisY

protected Axis3D axisY

axisZ

protected Axis3D axisZ
Constructor Detail

Chart3D

public Chart3D()

Chart3D

public Chart3D(Projector3D projector)
Method Detail

projector

@Deprecated
public Projector3D projector()
Deprecated. 

Description copied from interface: Chart
Returns the projector for the chart.

Returns:
projector chart projector

getProjector

public Projector3D getProjector()

setAxis

public void setAxis(Axis3D x,
                    Axis3D y,
                    Axis3D z)
Sets all three axes for a chart

Parameters:
x - x axis
y - y axis
z - z axis

paintChart

protected void paintChart(AbstractGraphics g)
Description copied from class: MultiSeriesChartBase
Paints the chart. Static layout methods for AbstractBarSeries are called. Layout method itself is not static, but bar and series spacing access methods are static. All chart objects are drawn.

Overrides:
paintChart in class MultiSeriesChartBase<ChartPaintTags,Projector3D>
Parameters:
g - the Graphics context in which chart will be painted
See Also:
AbstractBarSeries.layout(int, int)

addObject

public void addObject(ChartObject obj)
Description copied from class: MultiSeriesChartBase
Adds the specified chart object to the chart at run-time.

Overrides:
addObject in class MultiSeriesChartBase<ChartPaintTags,Projector3D>
Parameters:
obj - the chart object

removeObject

public void removeObject(ChartObject obj)
Description copied from class: MultiSeriesChartBase
Removes the specified chart object from the chart at run-time.

Overrides:
removeObject in class MultiSeriesChartBase<ChartPaintTags,Projector3D>
Parameters:
obj - the chart object

invalidate

public void invalidate()
Description copied from class: AbstractView
Invalidates the view.

Specified by:
invalidate in interface View
Overrides:
invalidate in class AbstractChart<ChartPaintTags,Projector3D>

layout

protected void layout(AbstractGraphics g)
Description copied from class: MultiSeriesChartBase
Layouts the chart. layout method of super class and all chart objects are called.

Overrides:
layout in class MultiSeriesChartBase<ChartPaintTags,Projector3D>
Parameters:
g - the Graphics context in which chart will be painted

getGraphicsType

public GraphicsManager.GraphicsType getGraphicsType()
Description copied from class: AbstractView
Returns graphics type

Specified by:
getGraphicsType in interface View
Overrides:
getGraphicsType in class AbstractView<ChartPaintTags>
Returns:
graphicsType graphics type for view

getAntiAliasing

public AntiAliasing getAntiAliasing()
Anti aliasing method for 3d chart


setAntiAliasing

public void setAntiAliasing(AntiAliasing antiAliasing)
Anti aliasing method for 3d chart


getScaleLevel

public double getScaleLevel()
Chart scaling level. (used for printing, increasing dpi);


setScaleLevel

public void setScaleLevel(double scaleLevel)
Chart scaling level. (used for printing, increasing dpi);


isSmoothLines

public boolean isSmoothLines()
Are anti-aliased lines drawn


setSmoothLines

public void setSmoothLines(boolean smoothLines)
Are anti-aliased lines drawn


isSmoothFonts

public boolean isSmoothFonts()
Are anti-aliased fonts drawn


setSmoothFonts

public void setSmoothFonts(boolean smoothFonts)
Are anti-aliased fonts drawn


findObjectUnder

public int findObjectUnder(Point2D point)
Gets id from a selection buffer

Parameters:
point - selection point
Returns:
id in selection buffer

deactivate

public void deactivate()
Description copied from class: MultiSeriesChartBase
Deactivates this chart. deactivate method of super class is called and parent chart to all containing chart objects is set to null.

Overrides:
deactivate in class MultiSeriesChartBase<ChartPaintTags,Projector3D>
See Also:
AbstractView.deactivate(), HotSpotMap