sgtplot
Class GridCartesianRenderer
- java.lang.Object
-
- sgtplot.CartesianRenderer
-
- sgtplot.GridCartesianRenderer
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class GridCartesianRenderer extends CartesianRenderer
Produces a cartesian plot from aSGTGridobject.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description GridCartesianRenderer(CartesianGraph cg)Default constructor.GridCartesianRenderer(CartesianGraph cg, SGTGrid data)Construct aGridCartesianRenderer.GridCartesianRenderer(CartesianGraph cg, SGTGrid grid, GridAttribute attr)Construct aGridCartesianRenderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(org.freehep.graphics2d.VectorGraphics g)Render theSGTData.AttributegetAttribute()Get theAttributeassociated with theSGTGriddata.CartesianGraphgetCartesianGraph()Get the associatedCartesianGraphobject.SGTDatagetDataAt(java.awt.Point pt)Find data object.SGTGridgetGrid()Get theSGTGrid.voidpropertyChange(java.beans.PropertyChangeEvent evt)voidsetAttribute(GridAttribute attr)Set theGridAttributefor the renderer.-
Methods inherited from class sgtplot.CartesianRenderer
getDataAt, getPane, getRenderer, modified
-
-
-
-
Constructor Detail
-
GridCartesianRenderer
public GridCartesianRenderer(CartesianGraph cg)
Default constructor. TheGridCartesianRenderershould be created using theCartesianRenderer.getRenderermethod.
-
GridCartesianRenderer
public GridCartesianRenderer(CartesianGraph cg, SGTGrid data)
Construct aGridCartesianRenderer. TheGridCartesianRenderershould be created using theCartesianRenderer.getRenderermethod.
-
GridCartesianRenderer
public GridCartesianRenderer(CartesianGraph cg, SGTGrid grid, GridAttribute attr)
Construct aGridCartesianRenderer. TheGridCartesianRenderershould be created using theCartesianRenderer.getRenderermethod.
-
-
Method Detail
-
getAttribute
public Attribute getAttribute()
Get theAttributeassociated with theSGTGriddata.- Specified by:
getAttributein classCartesianRenderer- Returns:
Attribute
-
setAttribute
public void setAttribute(GridAttribute attr)
Set theGridAttributefor the renderer.- Since:
- 2.0
-
draw
public void draw(org.freehep.graphics2d.VectorGraphics g)
Render theSGTData. This method should not be directly called.- Specified by:
drawin classCartesianRenderer- Parameters:
g- graphics context- See Also:
Pane.draw(org.freehep.graphics2d.VectorGraphics, java.lang.String)
-
getGrid
public SGTGrid getGrid()
Get theSGTGrid.- Returns:
SGTGrid
-
getCartesianGraph
public CartesianGraph getCartesianGraph()
Get the associatedCartesianGraphobject.- Specified by:
getCartesianGraphin classCartesianRenderer- Returns:
CartesianGraph- Since:
- 2.0
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
-
getDataAt
public SGTData getDataAt(java.awt.Point pt)
Description copied from class:CartesianRendererFind data object.- Specified by:
getDataAtin classCartesianRenderer- Since:
- 3.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG