|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--PanelConfiguration.PanelConfiguration
|
+--PanelConfiguration.RetineConfigurationPanel
This class provides a panel in order to add on it some useful textfield for the retina algorithme simulation. By exemple, TextFields for the cone layer, horizontal layer...
PanelConfiguration, Serialized Form| Field Summary | |
protected Panel |
centerCenterPanel
The center center panel (see the code for more informations). |
protected Panel |
centerEastPanel
The center east panel (see the code for more informations). |
protected Panel |
centerGridPanel
The panel that contains the cone layer parameters |
protected Panel |
centerNorthPanel
The center north panel (see the code for more informations). |
protected Panel |
centerPanel
The center panel (see the code for more informations). |
protected float |
coneJonctionResistanceFloat
The value for the cone jonction resistance. |
protected Label |
coneJonctionResistanceLabel
The label for the cone jonction resistance. |
protected MouseListener |
coneJonctionResistanceMouseListener
The mouse listener for the cone jonction resistance. |
protected TextField |
coneJonctionResistanceTextField
The textfield for the cone jonction resistance. |
protected Label |
coneLayerLabel
The label for the cone layer. |
protected float |
coneMembranarCapacityFloat
The value for the cone membran capacity. |
protected Label |
coneMembranarCapacityLabel
The label for the cone membran capacity. |
protected MouseListener |
coneMembranarCapacityMouseListener
The mouse listener for the cone membran capacity. |
protected TextField |
coneMembranarCapacityTextField
The textfield for the cone membran capacity. |
protected float |
coneMembranarResistanceFloat
The value for the cone membran resistance. |
protected Label |
coneMembranarResistanceLabel
The label for the cone membran resistance. |
protected MouseListener |
coneMembranarResistanceMouseListener
The mouse listener for the cone membran resistance. |
protected TextField |
coneMembranarResistanceTextField
The textfield for the cone membran resistance. |
protected float |
coneSynapticResistanceFloat
The value for the cone synaptic resistance. |
protected Label |
coneSynapticResistanceLabel
The label for the cone synaptic resistance. |
protected MouseListener |
coneSynapticResistanceMouseListener
The mouse listener for the cone synaptic resistance. |
protected TextField |
coneSynapticResistanceTextField
The textfield for the cone synaptic resistance. |
protected FormsMakerPanel |
formsMakerPanel
The panel for drawing forms. |
protected float |
horizontalJonctionResistanceFloat
The value for the horizontal jonction resistance. |
protected Label |
horizontalJonctionResistanceLabel
The label for the horizontal jonction resistance. |
protected MouseListener |
horizontalJonctionResistanceMouseListener
The mouse listener for the horizontal jonction resistance. |
protected TextField |
horizontalJonctionResistanceTextField
The textfield for the horizontal jonction resistance. |
protected Label |
horizontalLayerLabel
The label for the horizontal layer. |
protected float |
horizontalMembranarCapacityFloat
The value for the horizontal membran capacity. |
protected Label |
horizontalMembranarCapacityLabel
The label for the horizontal membran capacity. |
protected MouseListener |
horizontalMembranarCapacityMouseListener
The mouse listener for the horizontal membran capacity. |
protected TextField |
horizontalMembranarCapacityTextField
The textfield for the horizontal membran capacity. |
protected float |
horizontalMembranarResistanceFloat
The value for the horizontal membran resistance. |
protected Label |
horizontalMembranarResistanceLabel
The label for the horizontal membran resistance. |
protected MouseListener |
horizontalMembranarResistanceMouseListener
The mouse listener for the horizontal membran resistance. |
protected TextField |
horizontalMembranarResistanceTextField
The textfield for the horizontal membran resistance. |
protected float |
horizontalSynapticResistanceFloat
The value for the horizontal synaptic resistance. |
protected Label |
horizontalSynapticResistanceLabel
The label for the horizontal synaptic resistance. |
protected MouseListener |
horizontalSynapticResistanceMouseListener
The mouse listener for the horizontal synaptic resistance. |
protected TextField |
horizontalSynapticResistanceTextField
The textfield for the horizontal synaptic resistance. |
protected boolean |
initSucceed
Boolean very useful to know if the user has entered valid parameters. |
protected ModifiedPaintSurfacePanel |
modifiedPaintSurfacePanel
The panel that contains the result of the algorithm. |
protected Panel |
northCenterPanel
The north center panel (see the code for more informations). |
protected Panel |
northEastPanel
The north east panel (see the code for more informations). |
protected Panel |
northNorthPanel
The north north panel (see the code for more informations). |
protected Panel |
northPanel
The north panel (see the code for more informations). |
protected Label |
numberOfMillisToSleepLabel
The label for the sleep textfield. |
protected long |
numberOfMillisToSleepLong
The value for the sleeping (in ms). |
protected MouseListener |
numberOfMillisToSleepMouseListener
The mouse listener for the sleeping (in ms). |
protected TextField |
numberOfMillisToSleepTextField
The textfield for sleeping in the algorithm. |
protected Panel[] |
panel
The panels for the parameters fields. |
protected Button |
resetButton
The reset button. |
protected MouseListener |
resetMouseListener
The mouse listener for the reset button. |
protected Panel |
southGridPanel
The panel that contains the horizontal layer parameters |
protected Panel |
southNorthPanel
The south north panel (see the code for more informations). |
protected Panel |
southPanel
The south panel (see the code for more informations). |
protected Panel |
southSouthPanel
The south south panel (see the code for more informations). |
protected Button |
startButton
The start button. |
protected MouseListener |
startMouseListener
The mouse listener for the start button. |
protected Button |
stopButton
The stop button. |
protected MouseListener |
stopMouseListener
The mouse listener for the stop button. |
protected ToolPanel |
toolPanel
The panel in which we are going to display help messages. |
protected Label[] |
unitLabel
The labels for the unit. |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
RetineConfigurationPanel()
The constructor. |
|
RetineConfigurationPanel(Color backgroundColor)
The constructor. |
|
| Method Summary | |
protected void |
disableWhenSimulating()
This method disable all the panel when we are simulating the retina algorithme. |
protected void |
enableAfterSimulating()
This method enable all the panel when the simulation stopped. |
boolean |
formsMakerEnable()
This method returns if the FormsMakerPanel is enable or not. |
boolean |
formsMakerPaintingDisable()
This method returns if the FormsMakerPanel is enable or not (used when the user is painting). |
void |
init(ToolPanel toolPanel,
FormsMakerPanel formsMakerPanel,
ModifiedPaintSurfacePanel modifiedPaintSurfacePanel)
Initialization of the RetineConfigurationPanel. |
protected void |
initLabel(int number)
This method create a number of label with a specified layout. |
protected void |
initMouseListener()
Initialization of all the mouse listeners of the different components. |
void |
initSimulation()
This method is called when the user clicked on the start button. |
boolean |
initSucceed()
Return if we can start the simulation or not. |
void |
mouseClicked(MouseEvent e)
When the mouse is clicked. |
void |
mouseEntered(MouseEvent e)
When the mouse enters. |
void |
mouseExited(MouseEvent e)
When the mouse exits. |
void |
mousePressed(MouseEvent e)
When the mouse is pressed. |
void |
mouseReleased(MouseEvent e)
When the mouse is released. |
protected void |
resetAllTextFields()
This method resets all the textfields. |
void |
setText(String string)
This method draw a help message in a text area. |
void |
setText(String string,
Color color)
This method draw a help message in a text area. |
void |
startSimulation()
We start the simulation. |
void |
stopSimulation()
We stop the simulation. |
| Methods inherited from class PanelConfiguration.PanelConfiguration |
Disable,
Enable |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate,
validateTree |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected ToolPanel toolPanel
ToolPanelprotected FormsMakerPanel formsMakerPanel
FormsMakerPanelprotected ModifiedPaintSurfacePanel modifiedPaintSurfacePanel
ModifiedPaintSurfacePanelprotected Label coneLayerLabel
protected Label horizontalLayerLabel
protected Label coneSynapticResistanceLabel
protected Label coneMembranarResistanceLabel
protected Label coneJonctionResistanceLabel
protected Label coneMembranarCapacityLabel
protected Label horizontalSynapticResistanceLabel
protected Label horizontalMembranarResistanceLabel
protected Label horizontalJonctionResistanceLabel
protected Label horizontalMembranarCapacityLabel
protected Label numberOfMillisToSleepLabel
protected Label[] unitLabel
protected TextField coneSynapticResistanceTextField
protected TextField coneMembranarResistanceTextField
protected TextField coneJonctionResistanceTextField
protected TextField coneMembranarCapacityTextField
protected TextField horizontalSynapticResistanceTextField
protected TextField horizontalMembranarResistanceTextField
protected TextField horizontalJonctionResistanceTextField
protected TextField horizontalMembranarCapacityTextField
protected TextField numberOfMillisToSleepTextField
protected Button startButton
protected Button stopButton
protected Button resetButton
protected float coneSynapticResistanceFloat
protected float coneMembranarResistanceFloat
protected float coneJonctionResistanceFloat
protected float coneMembranarCapacityFloat
protected float horizontalSynapticResistanceFloat
protected float horizontalMembranarResistanceFloat
protected float horizontalJonctionResistanceFloat
protected float horizontalMembranarCapacityFloat
protected long numberOfMillisToSleepLong
protected MouseListener coneSynapticResistanceMouseListener
protected MouseListener coneMembranarResistanceMouseListener
protected MouseListener coneJonctionResistanceMouseListener
protected MouseListener coneMembranarCapacityMouseListener
protected MouseListener horizontalSynapticResistanceMouseListener
protected MouseListener horizontalMembranarResistanceMouseListener
protected MouseListener horizontalJonctionResistanceMouseListener
protected MouseListener horizontalMembranarCapacityMouseListener
protected MouseListener numberOfMillisToSleepMouseListener
protected MouseListener startMouseListener
protected MouseListener stopMouseListener
protected MouseListener resetMouseListener
protected boolean initSucceed
protected Panel[] panel
protected Panel centerGridPanel
protected Panel southGridPanel
protected Panel northPanel
protected Panel northCenterPanel
protected Panel northNorthPanel
protected Panel northEastPanel
protected Panel centerPanel
protected Panel centerCenterPanel
protected Panel centerNorthPanel
protected Panel centerEastPanel
protected Panel southPanel
protected Panel southSouthPanel
protected Panel southNorthPanel
| Constructor Detail |
public RetineConfigurationPanel(Color backgroundColor)
backgroundcolor - The background color of the panel.public RetineConfigurationPanel()
| Method Detail |
public void init(ToolPanel toolPanel,
FormsMakerPanel formsMakerPanel,
ModifiedPaintSurfacePanel modifiedPaintSurfacePanel)
toolPanel - The panel on which we display the help message.formsMakerPanel - The panel we are going to get if the user is drawing a form or not.modifiedPaintSurfacePanel - The panel we are going to tell if the simulation could start or not.ToolPanel,
FormsMakerPanel,
ModifiedPaintSurfacePanelprotected void initLabel(int number)
number - The number of panel you want ot create.protected void initMouseListener()
public void initSimulation()
public void startSimulation()
public void stopSimulation()
public void setText(String string)
string - The help message.
public void setText(String string,
Color color)
string - The help message.color - The color of the help message.public boolean initSucceed()
public boolean formsMakerPaintingDisable()
FormsMakerPanelpublic boolean formsMakerEnable()
FormsMakerPanelprotected void disableWhenSimulating()
protected void enableAfterSimulating()
protected void resetAllTextFields()
public void mouseClicked(MouseEvent e)
e - The MouseEvent.public void mouseEntered(MouseEvent e)
e - The MouseEvent.public void mouseExited(MouseEvent e)
e - The MouseEvent.public void mousePressed(MouseEvent e)
e - The MouseEvent.public void mouseReleased(MouseEvent e)
e - The MouseEvent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||