|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.interpolation.Interpolation
public class Interpolation
Describes how a numeric list should be interpolated.
Nested Class Summary | |
---|---|
static class |
Interpolation.Order
Order of the interpolation. |
Constructor Summary | |
---|---|
Interpolation()
Creates a new Interpolation with LINEAR interpolation and no extension of end data. |
|
Interpolation(Interpolation.Order order,
boolean extendEnd)
Creates a new Interpolation with a specified order and data extension policy. |
|
Interpolation(Interpolation interp)
Creates a new Interpolation which is a copy of an existing one. |
Method Summary | |
---|---|
Interpolation.Order |
getOrder()
Returns the interpolation order for this list. |
boolean |
isDataExtended()
Returns true if the extension of data values beyond the last knot point is enabled. |
boolean |
isWritable()
Returns true if this component should in fact be written to
secondary storage. |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer. |
void |
set(Interpolation interp)
Sets this interpolation to the value of another interpolation. |
void |
setDataExtended(boolean enable)
Enables the extension of data values beyond the last knot point. |
void |
setOrder(Interpolation.Order order)
Sets the interpolation order. |
java.lang.String |
toString()
|
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Interpolation()
public Interpolation(Interpolation interp)
interp
- interpolation to copypublic Interpolation(Interpolation.Order order, boolean extendEnd)
order
- order to the interpolationextendEnd
- if true, causes data to be extended past the last knot pointMethod Detail |
---|
public void set(Interpolation interp)
interp
- interpolation to copypublic void setOrder(Interpolation.Order order)
Linear
.
order
- interpolation orderpublic Interpolation.Order getOrder()
setOrder(maspack.interpolation.Interpolation.Order)
public void setDataExtended(boolean enable)
enable
- if true, enables extension of data values.public boolean isDataExtended()
setDataExtended
for details.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isWritable()
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.
isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
scan
and complete
enough to allow full reconstruction of the element.
write
in interface Scannable
pw
- stream for writing the elementfmt
- numeric formating informationref
- optional reference object which can be used for producing references to
other objects
java.io.IOException
- if an I/O error occuredpublic void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
write
.
scan
in interface Scannable
rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objects
java.io.IOException
- if an I/O or formatting error occured
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |