public class ToBinaryPlugin extends ConverterPlugIn
pluginListeners| Constructor and Description |
|---|
ToBinaryPlugin()
Creates a new instance of ToBinaryPlugin
|
ToBinaryPlugin(java.lang.String anAdvancedSerieSelector)
Creates a new instance of ToBinaryPlugin
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
apply()
Applies all the conversions on the patterns contained by
AbstractConverterPlugIn.InputVector |
protected boolean |
convert(int serie)
Applies the conversion on the Nth serie of the buffered pattern data.
|
protected double[] |
getBinary(double aNumber)
Converts a number to a binary number (the part after the .
|
double |
getLowerBit()
Gets the value used for the lower bit.
|
double |
getUpperBit()
Gets the value used for the upper bit.
|
void |
setLowerBit(double aValue)
Sets the value for the lower bit.
|
void |
setUpperBit(double aValue)
Sets the value for the upper bit.
|
isApplyEveryCycle, newCycle, setApplyEveryCycleaddPlugIn, addPlugInListener, applyOnColumns, applyOnRows, cascade, check, convertPatterns, dataChanged, fireDataChanged, getAdvancedSerieSelector, getInputVector, getName, getNextPlugIn, getPluginListeners, getSerieIndexNumber, getSerieSelected, getValuePoint, isConnected, removeAllPlugIns, removePlugInListener, setAdvancedSerieSelector, setConnected, setInputVector, setName, setNextPlugin, setNextPlugInpublic ToBinaryPlugin()
public ToBinaryPlugin(java.lang.String anAdvancedSerieSelector)
anAdvancedSerieSelector - the advanced serie selector to use.setAdvancedSerieSelector()protected boolean convert(int serie)
AbstractConverterPlugInAbstractConverterPlugIn.getInputVector() method. The result is a
Vector of Pattern objects which this method should use by converting
the requested serie.convert in class AbstractConverterPlugInserie - the serie to convertprotected boolean apply()
AbstractConverterPlugInAbstractConverterPlugIn.InputVectorapply in class AbstractConverterPlugInprotected double[] getBinary(double aNumber)
aNumber - the number to convert.public void setUpperBit(double aValue)
aValue - the value to use for the upper bit.public double getUpperBit()
public void setLowerBit(double aValue)
aValue - the value to use for the lower bit.public double getLowerBit()
Submit Feedback to pmarrone@users.sourceforge.net