|
||||||||||
| 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.ContoursView
public class ContoursView
A view of a sampled function f(x1,x2), displayed with contour lines.
NOT YET IMPLEMENTED!
| Nested Class Summary | |
|---|---|
static class |
ContoursView.Orientation
Orientation of sample axes x1 and x2. |
| Constructor Summary | |
|---|---|
ContoursView(float[][] f)
Constructs a pixels view of the specified sampled function f(x1,x2). |
|
ContoursView(Sampling s1,
Sampling s2,
float[][] f)
Constructs a pixels view of the specified sampled function f(x1,x2). |
|
| Method Summary | |
|---|---|
float |
getClipMax()
Gets the maximum clip value. |
float |
getClipMin()
Gets the minimum clip value. |
ContoursView.Orientation |
getOrientation()
Gets the orientation of sample axes. |
float |
getPercentileMax()
Gets the maximum percentile. |
float |
getPercentileMin()
Gets the minimum percentile. |
void |
paint(java.awt.Graphics2D g2d)
Paints this tiled view. |
void |
set(float[][] f)
Sets the sampled function f(x1,x2) for this view. |
void |
set(Sampling s1,
Sampling s2,
float[][] f)
Sets the sampled function f(x1,x2) for this view. |
void |
setClips(float clipMin,
float clipMax)
Sets the clips for this view. |
void |
setOrientation(ContoursView.Orientation orientation)
Sets the orientation of sample axes. |
void |
setPercentiles(float percMin,
float percMax)
Sets the percentiles used to compute clips for 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 ContoursView(float[][] f)
f - array[n2][n1] of sampled function values f(x1,x2), where
n1 = f[0].length and n2 = f.length.
public ContoursView(Sampling s1,
Sampling s2,
float[][] f)
s1 - the sampling of the variable x1; must be uniform.s2 - the sampling of the variable x2; must be uniform.f - array[n2][n1] of sampled function values f(x1,x2), where
n1 and n2 denote the number of samples in s1 and s2, respectively.| Method Detail |
|---|
public void set(float[][] f)
f - array[n2][n1] of sampled function values f(x1,x2), where
n1 = f[0].length and n2 = f.length.
public void set(Sampling s1,
Sampling s2,
float[][] f)
s1 - the sampling of the variable x1; must be uniform.s2 - the sampling of the variable x2; must be uniform.f - array[n2][n1] of sampled function values f(x1,x2), where
n1 and n2 denote the number of samples in s1 and s2, respectively.public void setOrientation(ContoursView.Orientation orientation)
orientation - the orientation.public ContoursView.Orientation getOrientation()
public void setClips(float clipMin,
float clipMax)
Calling this method disables the computation of clips from percentiles. Any clip values computed or specified previously will be forgotten.
clipMin - the sample value corresponding to color map byte index 0.clipMax - the sample value corresponding to color map byte index 255.public float getClipMin()
public float getClipMax()
public void setPercentiles(float percMin,
float percMax)
Calling this method enables the computation of clips from percentiles. Any clip values specified or computed previously will be forgotten.
percMin - the percentile corresponding to clipMin.percMax - the percentile corresponding to clipMax.public float getPercentileMin()
public float getPercentileMax()
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 | |||||||||