public class ReceptiveField extends PrintablePattern implements java.awt.print.Printable
Modifier and Type | Field and Description |
---|---|
protected double |
max
Maximum value of field
|
protected double |
min
Minimum value of field
|
gheight, gwidth, height, outputFileName, printAsLattice, width
Constructor and Description |
---|
ReceptiveField()
Standard constructor
|
ReceptiveField(java.util.ArrayList<java.lang.Double> _field,
java.awt.Point position,
java.awt.Dimension dimension)
Constructs a receptive field from given data
|
ReceptiveField(double[] d)
initiate a receptive field from a double array
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
get(java.lang.Integer key)
Converts Integer in Double.
|
java.util.ArrayList<java.lang.Double> |
getField()
Returns the receptive field.
|
java.awt.Point |
getGlobalPositionInPsFile()
Returns this receptive fields coordinate within a graphical representation.
|
double |
getMax()
Returns maximum value of receptive field
|
double |
getMin()
Returns minimum value of receptive field
|
java.lang.String |
getOutputFileName()
Returns file name of the exported file
|
void |
mypaint(java.awt.Graphics2D g)
Method which provides a graphical representation of a receptive field.
|
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex) |
void |
setField(java.util.ArrayList<java.lang.Double> field1)
Sets the receptive field.
|
void |
setGlobalPositionInPsFile(java.awt.Point globalPositionInPsFile1)
Sets Returns a coordinate within a graphical representation.
|
void |
setMax(double max1)
Sets maximum value of receptive field
|
void |
setMin(double min1)
Sets minimum value of receptive field
|
void |
setOutputFileName(java.lang.String _outputFileName)
Sets file name of the exported file
|
get, getGheight, getGwidth, getHeight, getPrintAsLattice, getWidth, print, saveAsLattice, set, setGheight, setGwidth, setHeight, setPrintAsLattice, setWidth, toString
protected double min
protected double max
public ReceptiveField()
public ReceptiveField(double[] d)
public ReceptiveField(java.util.ArrayList<java.lang.Double> _field, java.awt.Point position, java.awt.Dimension dimension)
_field
- - data valuesposition
- - position in a receptive field collectiondimension
- - width and height of the receptive fieldpublic double getMax()
public void setMax(double max1)
max1
- the max to setpublic double getMin()
public void setMin(double min1)
min1
- the min to setpublic int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
print
in class PrintablePattern
java.awt.print.PrinterException
PrintablePattern.print(java.awt.Graphics,
java.awt.print.PageFormat, int)
public java.lang.Double get(java.lang.Integer key)
PrintablePattern
get
in class PrintablePattern
key
- -
identification for a sitePrintablePattern.get(java.lang.Integer)
public java.lang.String getOutputFileName()
PrintablePattern
getOutputFileName
in class PrintablePattern
PrintablePattern.getOutputFileName()
public void setOutputFileName(java.lang.String _outputFileName)
PrintablePattern
setOutputFileName
in class PrintablePattern
_outputFileName
- the output to setPrintablePattern.setOutputFileName(java.lang.String)
public java.util.ArrayList<java.lang.Double> getField()
public void setField(java.util.ArrayList<java.lang.Double> field1)
field1
- the field to setpublic java.awt.Point getGlobalPositionInPsFile()
public void setGlobalPositionInPsFile(java.awt.Point globalPositionInPsFile1)
globalPositionInPsFile1
- the globalPositionInPsFile to setpublic void mypaint(java.awt.Graphics2D g)
g
- -
a Graphics2D object to draw on.