public class SequenceView extends TiledView
Modifier and Type | Class and Description |
---|---|
static class |
SequenceView.Zero
The visibility of function value zero in the view.
|
Constructor and Description |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
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.
|
getBestHorizontalProjector, getBestVerticalProjector, getHorizontalProjector, getLineWidth, getTile, getTranscaler, getVerticalProjector, repaint, setBestProjectors
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).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)
TiledView
Tiled 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.