sgtplot
Class PointCartesianRenderer
- java.lang.Object
-
- sgtplot.CartesianRenderer
-
- sgtplot.PointCartesianRenderer
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class PointCartesianRenderer extends CartesianRenderer
Produces a point plot with optional coloring from a second data set. If a second data set is specified it must have the same shape as the first.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor and Description PointCartesianRenderer(CartesianGraph cg)Default constructor.PointCartesianRenderer(CartesianGraph cg, Collection col, PointAttribute attr)Construct a PointCartesianRenderer.PointCartesianRenderer(CartesianGraph cg, SGTPoint point)Construct a PointCartesianRenderer.PointCartesianRenderer(CartesianGraph cg, SGTPoint point, PointAttribute attr)Construct a PointCartesianRenderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(org.freehep.graphics2d.VectorGraphics g)Render theSGTDataobject.AttributegetAttribute()Get the Attribute associated with the data.CartesianGraphgetCartesianGraph()Get the associatedCartesianGraphobject.CollectiongetCollection()Get theCollectionof points.SGTDatagetDataAt(java.awt.Point pt)Find data object.SGTPointgetPoint()PointAttributegetPointAttribute()Get the Point attribute object.booleanhasCollection()Is point data as a collection?voidpropertyChange(java.beans.PropertyChangeEvent evt)voidsetPointAttribute(PointAttribute l)Set the Point attribute object.-
Methods inherited from class sgtplot.CartesianRenderer
getDataAt, getPane, getRenderer, modified
-
-
-
-
Constructor Detail
-
PointCartesianRenderer
public PointCartesianRenderer(CartesianGraph cg)
Default constructor.- See Also:
CartesianGraph,Graph
-
PointCartesianRenderer
public PointCartesianRenderer(CartesianGraph cg, SGTPoint point)
Construct a PointCartesianRenderer. The default PointAttribute will be used.- Parameters:
cg- the parent CartesianGraphdata- an SGTPoint object- See Also:
CartesianGraph,Graph
-
PointCartesianRenderer
public PointCartesianRenderer(CartesianGraph cg, SGTPoint point, PointAttribute attr)
Construct a PointCartesianRenderer.- Parameters:
cg- the parent CartesianGraphdata- an SGTPoint objectPoint- the PointAttribute- See Also:
CartesianGraph,Graph
-
PointCartesianRenderer
public PointCartesianRenderer(CartesianGraph cg, Collection col, PointAttribute attr)
Construct a PointCartesianRenderer.- Parameters:
cg- the parent CartesianGraphcol- a Collection of SGTPoint objectspoint- the PointAttribute- See Also:
CartesianGraph,Graph
-
-
Method Detail
-
getAttribute
public Attribute getAttribute()
Get the Attribute associated with the data.- Specified by:
getAttributein classCartesianRenderer- Returns:
- the
Attribute
-
draw
public void draw(org.freehep.graphics2d.VectorGraphics g)
Description copied from class:CartesianRendererRender theSGTDataobject. This method should never be called directly.- Specified by:
drawin classCartesianRenderer- See Also:
Pane.draw(org.freehep.graphics2d.VectorGraphics, java.lang.String)
-
setPointAttribute
public void setPointAttribute(PointAttribute l)
Set the Point attribute object. The Point appearance is controlled by this object.- Parameters:
l- Point attribute
-
getPointAttribute
public PointAttribute getPointAttribute()
Get the Point attribute object.- Returns:
- Point attribute
-
hasCollection
public boolean hasCollection()
Is point data as a collection?
-
getCollection
public Collection getCollection()
Get theCollectionof points.
-
getPoint
public SGTPoint getPoint()
-
getCartesianGraph
public CartesianGraph getCartesianGraph()
Get the associatedCartesianGraphobject.- Specified by:
getCartesianGraphin classCartesianRenderer- Returns:
CartesianGraph
-
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