|
|||||||||
| 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.FormsMakerPanel
This class create a panel that can be used to draw forms.
FormsMakerPanel, Serialized Form| Field Summary | |
protected Button |
colorButton
The color button. |
protected MouseListener |
colorMouseListener
The mouse listener for the color button. |
protected Panel |
eastPanel
The panel that contains the negative checkbox and the color button. |
protected Choice |
formsChoice
The shape choice. |
protected Label |
formsLabel
The forms label. |
protected boolean |
formsMakerEnable
If the user is simulating. |
protected boolean |
formsMakerPaintingDisable
If the user is drawing a form. |
protected MouseListener |
formsMouseListener
The mouse listener for the shape choice. |
protected GrayColorChooser |
grayColorChooser
The gray color chooser. |
protected int |
lastColorClicked
The color the user has choosen. |
protected Checkbox |
negativeCheckbox
The checkbox for the negative image. |
protected MouseListener |
negativeMouseListener
The mouse listener for the negative checkbox. |
protected Panel |
northEastPanel
The panel that contains the negative checkbox. |
protected Panel |
northWestPanel
The panel that contains the shapes choice. |
protected Panel |
southEastPanel
The panel that contains the color button. |
protected Panel |
southWestPanel
The panel that contains the texture choice. |
protected Choice |
textureChoice
The texture choice. |
protected boolean |
textureChoosen
If the user has choosen a texture or a color. |
protected Label |
textureLabel
The texture label. |
protected MouseListener |
textureMouseListener
The mouse listener for the texture choice. |
protected ToolPanel |
toolPanel
This is the panel on which we display the help message. |
protected Panel |
westPanel
The panel that contains the shapes choice and the texture choice. |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
FormsMakerPanel()
The second constructor. |
|
FormsMakerPanel(Color backgroundColor)
The constructor. |
|
| Method Summary | |
boolean |
colorButtonEnabled()
This method return if the color button is enabled or not. |
int |
colorChoosen()
Return the rgb value of the color that the user has choosen. |
void |
disableFormsMaker()
This method disable the panel and all his component. |
void |
disableFormsMakerPainting()
This method disable the panel and all the component but only when the user is painting forms. |
void |
enableFormsMaker()
This method enable the panel and all his component. |
int |
formsChoice()
Return the forms that the user has choosen. |
boolean |
formsMakerEnable()
This method return if the panel is enable or not. |
boolean |
formsMakerPaintingDisable()
This method return if the panel is enable or not (used when the user is painting). |
GrayColorChooser |
grayColorChooser()
Return the gray color chooser. |
void |
init(ToolPanel toolPanel)
Initialisation of the panel. |
protected void |
initMouseListener()
Initialisation of the mouse listener. |
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. |
boolean |
negativeChoosen()
Return the state of the checkbox. |
void |
setText(String string)
This method set the help message. |
int |
textureChoice()
Return the texture mode. |
boolean |
textureChoosen()
Return if the user has choosen a texture or a color. |
void |
textureChoosen(boolean choosen)
Assign the textureChoosen boolean to a new value. |
| 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 Label formsLabel
protected Label textureLabel
protected Button colorButton
protected Choice formsChoice
protected Choice textureChoice
protected Checkbox negativeCheckbox
protected Panel eastPanel
protected Panel westPanel
protected Panel northEastPanel
protected Panel southEastPanel
protected Panel northWestPanel
protected Panel southWestPanel
protected MouseListener formsMouseListener
protected MouseListener textureMouseListener
protected MouseListener colorMouseListener
protected MouseListener negativeMouseListener
protected ToolPanel toolPanel
ToolPanelprotected GrayColorChooser grayColorChooser
GrayColorChooserprotected boolean textureChoosen
protected boolean formsMakerEnable
protected boolean formsMakerPaintingDisable
protected int lastColorClicked
| Constructor Detail |
public FormsMakerPanel(Color backgroundColor)
backgroundColor - The background color of the panel.public FormsMakerPanel()
| Method Detail |
protected void initMouseListener()
public void init(ToolPanel toolPanel)
toolPanel - The panel on which we display the help.ToolPanelpublic void enableFormsMaker()
public void disableFormsMaker()
public void disableFormsMakerPainting()
public boolean formsMakerEnable()
public boolean formsMakerPaintingDisable()
public boolean textureChoosen()
public int textureChoice()
public int formsChoice()
public int colorChoosen()
public GrayColorChooser grayColorChooser()
GrayColorChooserpublic void textureChoosen(boolean choosen)
choosen - The new value we want to set the boolean textureChoosenpublic boolean colorButtonEnabled()
public boolean negativeChoosen()
public void setText(String string)
string - The help message.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 | ||||||||