jsynoptic.plugins.jfreechart
Class ChartShape

java.lang.Object
  extended by simtools.shapes.AbstractShape
      extended by jsynoptic.plugins.jfreechart.ChartShape
All Implemented Interfaces:
java.awt.Shape, java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, Linkable, Resizable, NamedProperties
Direct Known Subclasses:
BarChartShape, MeterShape, PieChartShape, StandardPlotShape

public class ChartShape
extends AbstractShape
implements java.io.Serializable, Resizable, java.io.ObjectInputValidation, Linkable

Author:
nbrodu To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class simtools.shapes.AbstractShape
AbstractShape.AbstractShapePropertiesNames
 
Field Summary
protected  JFreeChart chart
           
protected  ChartRenderingInfo chartRenderingInfo
           
protected  java.lang.String link
           
 
Fields inherited from class simtools.shapes.AbstractShape
_h, _ox, _oy, _propertyNames, _w, _x, _y, ANTI_ALIASING, currentDialogBox, FONT_NAMES, listeners, REFRESH_PERIOD
 
Constructor Summary
ChartShape(JFreeChart chart, int ox, int oy, int width, int height)
           
 
Method Summary
 void chartChanged(ChartChangeEvent event)
           
protected  AbstractShape cloneShape()
          Performs a copy of the shape This method has to be overriden to deal with concrete shapes
 void debugContainer(java.awt.Container ct)
           
 void draw(java.awt.Graphics2D g)
          Draws the shape
protected  javax.swing.JTabbedPane findTab(java.awt.Container ct)
           
 java.lang.String getLink()
           
 void removeListener(ShapeListener sl)
          Override this so when we're not listened, do not listen to our graph Workaround for object deletion
 void resize(int dx, int dy)
          Resize the component
 void setLink(java.lang.String link)
           
 void validateObject()
           
 
Methods inherited from class simtools.shapes.AbstractShape
addListener, contains, contains, contains, contains, getAnchor, getBounds, getBounds2D, getInnerProperties, getMax, getMaxTranslated, getMin, getPathIterator, getPathIterator, getPropertyNames, getPropertyValue, intersects, intersects, notifyChange, notifyChange, refresh, setAnchor, setAnchor, setProperties, setPropertyValue, translate, wipeOff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chart

protected JFreeChart chart

chartRenderingInfo

protected transient ChartRenderingInfo chartRenderingInfo

link

protected java.lang.String link
Constructor Detail

ChartShape

public ChartShape(JFreeChart chart,
                  int ox,
                  int oy,
                  int width,
                  int height)
Method Detail

getLink

public java.lang.String getLink()
Specified by:
getLink in interface Linkable

setLink

public void setLink(java.lang.String link)
Specified by:
setLink in interface Linkable

removeListener

public void removeListener(ShapeListener sl)
Override this so when we're not listened, do not listen to our graph Workaround for object deletion

Overrides:
removeListener in class AbstractShape

draw

public void draw(java.awt.Graphics2D g)
Description copied from class: AbstractShape
Draws the shape

Specified by:
draw in class AbstractShape
Parameters:
g - the graphics context

resize

public void resize(int dx,
                   int dy)
Description copied from interface: Resizable
Resize the component

Specified by:
resize in interface Resizable
Parameters:
dx - value on x axis
dy - value on y axis

chartChanged

public void chartChanged(ChartChangeEvent event)

cloneShape

protected AbstractShape cloneShape()
Description copied from class: AbstractShape
Performs a copy of the shape This method has to be overriden to deal with concrete shapes

Overrides:
cloneShape in class AbstractShape
Returns:
a copy of the shape

validateObject

public void validateObject()
                    throws java.io.InvalidObjectException
Specified by:
validateObject in interface java.io.ObjectInputValidation
Throws:
java.io.InvalidObjectException

findTab

protected javax.swing.JTabbedPane findTab(java.awt.Container ct)

debugContainer

public void debugContainer(java.awt.Container ct)