sgtplot
Class VectorCartesianRenderer
- java.lang.Object
-
- sgtplot.CartesianRenderer
-
- sgtplot.VectorCartesianRenderer
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class VectorCartesianRenderer extends CartesianRenderer
Produces a vector plot. If a second data set is specified it must have the same shape as the first.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor and Description VectorCartesianRenderer(CartesianGraph cg)Default constructor.VectorCartesianRenderer(CartesianGraph cg, Collection col, VectorAttribute attr)Construct aVectorCartesianRenderer.VectorCartesianRenderer(CartesianGraph cg, SGTVector vector)Construct aVectorCartesianRenderer.VectorCartesianRenderer(CartesianGraph cg, SGTVector vector, VectorAttribute attr)Construct aVectorCartesianRenderer.
-
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 the data.CartesianGraphgetCartesianGraph()Get the associatedCartesianGraphobject.CollectiongetCollection()Get theCollectionofSGTVectorobjects.SGTDatagetDataAt(java.awt.Point pt)Find data object.SGTVectorgetVector()Get theSGTVectorobject.VectorAttributegetVectorAttribute()Get theVectorAttribute.booleanhasCollection()Test if aCollectionofSGTVectorwas using to construct this renderer.voidpropertyChange(java.beans.PropertyChangeEvent evt)voidsetVectorAttribute(VectorAttribute l)Set theVectorAttribute.-
Methods inherited from class sgtplot.CartesianRenderer
getDataAt, getPane, getRenderer, modified
-
-
-
-
Constructor Detail
-
VectorCartesianRenderer
public VectorCartesianRenderer(CartesianGraph cg)
Default constructor.- See Also:
CartesianGraph,Graph
-
VectorCartesianRenderer
public VectorCartesianRenderer(CartesianGraph cg, SGTVector vector)
Construct aVectorCartesianRenderer. The defaultVectorAttributewill be used.- Parameters:
cg- the parentCartesianGraphdata- anSGTVectorobject- See Also:
CartesianGraph,Graph
-
VectorCartesianRenderer
public VectorCartesianRenderer(CartesianGraph cg, SGTVector vector, VectorAttribute attr)
Construct aVectorCartesianRenderer.- Parameters:
cg- the parentCartesianGraphvector- aSGTVectorattr- theVectorAttribute- See Also:
CartesianGraph,Graph
-
VectorCartesianRenderer
public VectorCartesianRenderer(CartesianGraph cg, Collection col, VectorAttribute attr)
Construct aVectorCartesianRenderer.- Parameters:
cg- the parentCartesianGraphcol- aCollectionofSGTVectorobjectsattr- theVectorAttribute- See Also:
CartesianGraph,Graph
-
-
Method Detail
-
getAttribute
public Attribute getAttribute()
Get theAttributeassociated with the data.- Specified by:
getAttributein classCartesianRenderer- Returns:
- the
Attribute
-
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)
-
setVectorAttribute
public void setVectorAttribute(VectorAttribute l)
Set theVectorAttribute. The line appearance is controlled by this object.- Parameters:
l-VectorAttribute
-
getVectorAttribute
public VectorAttribute getVectorAttribute()
Get theVectorAttribute.- Returns:
VectorAttribute
-
hasCollection
public boolean hasCollection()
Test if aCollectionofSGTVectorwas using to construct this renderer.- Returns:
- true if
Collectionwas used
-
getCollection
public Collection getCollection()
Get theCollectionofSGTVectorobjects.- Returns:
Collection
-
getVector
public SGTVector getVector()
Get theSGTVectorobject.- Returns:
SGTVector
-
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
-
-
DMelt 3.0 © DataMelt by jWork.ORG