Modifier and Type | Class and Description |
---|---|
static class |
Interpolation.Order
Order of the interpolation.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 pointpublic 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.public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
write
.