|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.sgt.CartesianRenderer | +--gov.noaa.pmel.sgt.LineCartesianRenderer
Produces a line 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.
Constructor Summary | |
LineCartesianRenderer(CartesianGraph cg)
Default constructor. |
|
LineCartesianRenderer(CartesianGraph cg,
Collection col,
LineAttribute attr)
Construct a LineCartesianRenderer . |
|
LineCartesianRenderer(CartesianGraph cg,
SGTLine line)
Construct a LineCartesianRenderer . |
|
LineCartesianRenderer(CartesianGraph cg,
SGTLine line,
LineAttribute attr)
Construct a LineCartesianRenderer . |
Method Summary | |
void |
draw(java.awt.Graphics g)
Render the SGTData . |
Attribute |
getAttribute()
Get the Attribute associated with the data. |
CartesianGraph |
getCartesianGraph()
Get the associated CartesianGraph object. |
Collection |
getCollection()
Get the Collection of SGTLine objects. |
SGTLine |
getLine()
Get the SGTLine object. |
LineAttribute |
getLineAttribute()
Get the LineAttribute . |
boolean |
hasCollection()
Test if a Collection of SGTLine
was using to construct this renderer. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
setLineAttribute(LineAttribute l)
Set the LineAttribute . |
Methods inherited from class gov.noaa.pmel.sgt.CartesianRenderer |
getPane, getRenderer, modified |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LineCartesianRenderer(CartesianGraph cg)
CartesianGraph
,
Graph
public LineCartesianRenderer(CartesianGraph cg, SGTLine line)
LineCartesianRenderer
. The default
LineAttribute
will be used.cg
- the parent CartesianGraph
data
- an SGTLine
objectCartesianGraph
,
Graph
public LineCartesianRenderer(CartesianGraph cg, SGTLine line, LineAttribute attr)
LineCartesianRenderer
.cg
- the parent CartesianGraph
data
- an SGTLine
line
- the LineAttribute
CartesianGraph
,
Graph
public LineCartesianRenderer(CartesianGraph cg, Collection col, LineAttribute attr)
LineCartesianRenderer
.cg
- the parent CartesianGraph
col
- a Collection
of SGTLine
objectsline
- the LineAttribute
CartesianGraph
,
Graph
Method Detail |
public Attribute getAttribute()
Attribute
associated with the data.getAttribute
in class CartesianRenderer
gov.noaa.pmel.sgt.CartesianRenderer
Attribute
public void draw(java.awt.Graphics g)
SGTData
. This method should not
be directly called.draw
in class CartesianRenderer
g
- graphics contextPane.draw()
public void setLineAttribute(LineAttribute l)
LineAttribute
. The line appearance is controlled by
this object.l
- LineAttribute
public LineAttribute getLineAttribute()
LineAttribute
.LineAttribute
public boolean hasCollection()
Collection
of SGTLine
was using to construct this renderer.Collection
was usedpublic Collection getCollection()
Collection
of SGTLine
objects.Collection
public SGTLine getLine()
SGTLine
object.SGTLine
public CartesianGraph getCartesianGraph()
CartesianGraph
object.getCartesianGraph
in class CartesianRenderer
CartesianGraph
public void propertyChange(java.beans.PropertyChangeEvent evt)
java.beans.PropertyChangeListener
java.beans.PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source
and the property that has changed.
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |