sgtplot
Class CartesianRenderer
- java.lang.Object
-
- sgtplot.CartesianRenderer
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
- Direct Known Subclasses:
- AnnotationCartesianRenderer, GridCartesianRenderer, LineCartesianRenderer, PointCartesianRenderer, VectorCartesianRenderer
public abstract class CartesianRenderer extends java.lang.Object implements java.beans.PropertyChangeListenerCartesianRendererdefines an interface to enable data to be rendered on aCartesianGraph.- Since:
- 1.0
- See Also:
CartesianGraph
-
-
Constructor Summary
Constructors Constructor and Description CartesianRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voiddraw(org.freehep.graphics2d.VectorGraphics g)Render theSGTDataobject.abstract AttributegetAttribute()Get theAttributeassociated with the renderer.abstract CartesianGraphgetCartesianGraph()Get theCartesianGraphassociated with the renderer.SGTDatagetDataAt(int x, int y)Find data object.abstract SGTDatagetDataAt(java.awt.Point pt)Find data object.AbstractPanegetPane()Get parent pane.static CartesianRenderergetRenderer(CartesianGraph cg, SGTData dmo, Attribute attr)Factory method to create a new Renderer instance given theSGTDataobject andAttribute.voidmodified(java.lang.String mess)For internal sgtplot use.
-
-
-
Method Detail
-
getRenderer
public static CartesianRenderer getRenderer(CartesianGraph cg, SGTData dmo, Attribute attr)
Factory method to create a new Renderer instance given theSGTDataobject andAttribute. For example, aLineCartesianRendereris created ifSGTDataobject is aSGTLine.A renderer is constucted based on the two arguements.
SGTData
Attribute
CartesianRenderer
SGTPoint PointAttribute PointCartesianRenderer SGTLine LineAttribute LineCartesianRenderer SGTGrid GridAttribute GridCartesianRenderer SGTVector VectorAttribute VectorCartesianRenderer Collection PointAttribute PointCartesianRenderer Collection LineAttribute LineCartesianRenderer Collection VectorAttribute VectorCartesianRenderer Annotation n/a AnnotationCartesianRenderer - Parameters:
dmo- DataModel object
-
draw
public abstract void draw(org.freehep.graphics2d.VectorGraphics g)
Render theSGTDataobject. This method should never be called directly.
-
getAttribute
public abstract Attribute getAttribute()
Get theAttributeassociated with the renderer.- Returns:
- the
Attribute
-
getCartesianGraph
public abstract CartesianGraph getCartesianGraph()
Get theCartesianGraphassociated with the renderer.- Returns:
- the
CartesianGraph - Since:
- 2.0
-
getPane
public AbstractPane getPane()
Get parent pane.- Since:
- 2.0
-
modified
public void modified(java.lang.String mess)
For internal sgtplot use.- Since:
- 2.0
-
getDataAt
public SGTData getDataAt(int x, int y)
Find data object.- Since:
- 3.0
-
getDataAt
public abstract SGTData getDataAt(java.awt.Point pt)
Find data object.- Since:
- 3.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG