|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.mosaic.TiledView
edu.mines.jtk.mosaic.SequenceView
public class SequenceView
A view of a sequence of samples of a function f(x) of one variable x. This view renders each sample with a filled circle centered on the sample value and a vertical line drawn from that sample value to the origin. In other words, this view draws a sequence as lollipops with different heights that correspond to sample values.
| Nested Class Summary | |
|---|---|
static class |
SequenceView.Zero
The visibility of function value zero in the view. |
| Constructor Summary | |
|---|---|
SequenceView(float[] f)
Constructs a sequence view with specified values f(x). |
|
SequenceView(Sampling sx,
float[] f)
Constructs a sequence view with specified sampling and values f(x). |
|
| Method Summary | |
|---|---|
float[] |
getFunction()
Gets a copy of the array of function values. |
Sampling |
getSampling()
Gets the sampling. |
void |
paint(java.awt.Graphics2D g2d)
Paints this tiled view. |
void |
set(float[] f)
Sets default sampling and specified function values f(x). |
void |
set(Sampling sx,
float[] f)
Sets specified sampling and function values. |
void |
setColor(java.awt.Color color)
Sets the color used to paint the sequence. |
void |
setZero(SequenceView.Zero zero)
Sets the visibility of function value zero in this view. |
| Methods inherited from class edu.mines.jtk.mosaic.TiledView |
|---|
getBestHorizontalProjector, getBestVerticalProjector, getHorizontalProjector, getLineWidth, getTile, getTranscaler, getVerticalProjector, repaint, setBestProjectors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceView(float[] f)
f - array of sampled function values f(x).
public SequenceView(Sampling sx,
float[] f)
sx - the sampling of the variable x.f - array of sampled function values f(x).| Method Detail |
|---|
public void set(float[] f)
f - array of sampled function values f(x).
public void set(Sampling sx,
float[] f)
sx - the sampling of the variable x.f - array of sampled function values f(x).public Sampling getSampling()
public float[] getFunction()
public void setZero(SequenceView.Zero zero)
zero - the visibility of function value zero.public void setColor(java.awt.Color color)
color - the color; null, for tile foreground color.public void paint(java.awt.Graphics2D g2d)
TiledViewTiled views should not replace (set) entirely the transform in the specified graphics context. This transform may already have been set by the tile or its mosaic. Therefore, tiled views should modify this transform only by specifying additional scaling, translation, etc.
paint in class TiledViewg2d - the graphics context in which to paint.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||