public class ReceptiveFieldCollection
extends java.lang.Object
implements java.awt.print.Printable
Constructor and Description |
---|
ReceptiveFieldCollection()
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Color[] |
createGradient(java.awt.Color one,
java.awt.Color two,
int numSteps)
Creates an array of Color objects for use as a gradient, using a linear
interpolation between the two specified colors.
|
static java.awt.Color[] |
createMultiGradient(java.awt.Color[] colors,
int numSteps)
Creates an array of Color objects for use as a gradient, using an array of
Color objects.
|
double |
filter(double y)
A nonlinear color filter
|
int |
getAbs_x()
Sets absolute x position for a graphical representation of receptive field.
|
int |
getAbs_y()
Returns absolute y position for a graphical representation of receptive
field.
|
int |
getHeigth()
Returns number of sites in a receptive fields in a column.
|
int |
getHorizontalDistance()
Returns horizontal distance between receptive fields in pixels.
|
java.util.ArrayList<ReceptiveField> |
getReceptiveFieldList()
Returns a List with receptive fields.
|
java.lang.String |
getTitle()
Returns the title of the receptive field collection
|
int |
getVerticalDistance()
Returns the vertical distance between receptive fields in pixels.
|
int |
getWidth()
Returns number of sites in a receptive fields in a row.
|
void |
paint(java.awt.Graphics2D g2d)
Proprietary paint method, as this class does not extend or implement a AWT or
Swing component.
|
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex) |
void |
print(java.lang.String outputFileNamePath)
Exports a all receptive fields to a postscript file
|
void |
setAbs_x(int abs_x)
Sets absolute x position for a graphical representation of receptive field.
|
void |
setAbs_y(int abs_y)
Sets absolute y position for a graphical representation of receptive field.
|
void |
setHeigth(int heigth)
Sets number of sites in a receptive fields in a column.
|
void |
setHorizontalDistance(int distance)
Sets horizontal distance between receptive fields in pixels.
|
void |
setReceptiveFieldList(java.util.ArrayList<ReceptiveField> _receptiveFieldList)
Sets a List with receptive fields.
|
void |
setTitle(java.lang.String title)
Sets the title of the receptive field collection
|
void |
setVerticalDistance(int distance)
Sets the vertical distance between receptive fields in pixels.
|
void |
setWidth(int width)
Sets number of sites in a receptive fields in a row.
|
int |
size()
Returns number of receptive fields in this ReceptiveFieldCollection.
|
public void paint(java.awt.Graphics2D g2d)
g2d
- public 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
java.awt.print.PrinterException
Printable.print(java.awt.Graphics,
java.awt.print.PageFormat, int)
public double filter(double y)
y
- -
a parameterpublic void print(java.lang.String outputFileNamePath)
outputFileNamePath
- -
path to the file to which ReceptiveFieldCollection
is
exportedpublic static java.awt.Color[] createGradient(java.awt.Color one, java.awt.Color two, int numSteps)
one
- -
Color used for the bottom of the gradienttwo
- -
Color used for the top of the gradientnumSteps
- -
The number of steps in the gradient. 250 is a good number.public static java.awt.Color[] createMultiGradient(java.awt.Color[] colors, int numSteps)
colors
- -
An array of Color objects used for the gradient. The Color at index
0 will be the lowest color.numSteps
- -
The number of steps in the gradient. 250 is a good number.public java.util.ArrayList<ReceptiveField> getReceptiveFieldList()
public void setReceptiveFieldList(java.util.ArrayList<ReceptiveField> _receptiveFieldList)
_receptiveFieldList
- -
the receptive field list to setpublic int getVerticalDistance()
public void setVerticalDistance(int distance)
distance
- -
the vertical distance between receptive fields in pixels.public int getHorizontalDistance()
public void setHorizontalDistance(int distance)
distance
- -
horizontal distance between receptive fields in pixels.public int size()
public int getAbs_x()
public void setAbs_x(int abs_x)
abs_x
- -
absolute y position for a graphical representation of receptive
field.public int getAbs_y()
public void setAbs_y(int abs_y)
abs_y
- -
absolute y position for a graphical representation of receptive
field.public int getHeigth()
public void setHeigth(int heigth)
heigth
- -
number of sites in a receptive fields in a column.public int getWidth()
public void setWidth(int width)
width
- -
number of sites in a receptive fields in a row.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- - a String as title