Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.bu
Class BuAssistant  view BuAssistant download BuAssistant.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended bycom.memoire.bu.BuAssistant
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, javax.swing.event.InternalFrameListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class BuAssistant
extends javax.swing.JComponent
implements java.awt.event.ActionListener, java.awt.event.FocusListener, javax.swing.event.InternalFrameListener, java.awt.event.MouseListener

An always-happy assistant.


Nested Class Summary
private  class BuAssistant.Blinker
           
(package private)  class BuAssistant.Disque
           
(package private)  class BuAssistant.Face
           
(package private)  class BuAssistant.Point
           
(package private)  class BuAssistant.Triangle
           
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ABSENT
           
private static int AINC
           
static int ATTENTE
           
protected  int aval_
           
protected  BuAssistant.Blinker blinker_
           
static int COLERE
           
private static int DELAI
           
private  int face_
           
(package private)  BuAssistant.Face faceActuelle_
           
(package private)  BuAssistant.Face faceApres_
           
(package private)  BuAssistant.Face faceAvant_
           
(package private)  BuAssistant.Face[] faces_
           
protected  java.lang.Thread festival_
           
private  java.io.PrintWriter log_
           
static int MAX_ATTITUDES
           
private  java.lang.String[] message_
           
private static int NBCOL
           
static int PAROLE
           
static int PEUR
           
private  java.util.Hashtable table_
           
private  boolean use_
           
private  javax.swing.JWindow window_
           
private  java.lang.String[] window_message_
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BuAssistant()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent _evt)
          This method is invoked when an action occurs.
 void addEmitters(java.awt.Container _parent)
           
 void addSpecificEmitters(java.awt.Container _parent, java.lang.String _type)
           
 void changeAttitude(int _f, java.lang.String _m)
           
 void commentUser(java.lang.String _info)
           
 void commentUser(java.lang.String _info, java.lang.String _default)
           
 void focusGained(java.awt.event.FocusEvent _evt)
          This method is called when a component gains the keyboard focus.
 void focusLost(java.awt.event.FocusEvent _evt)
          This method is invoked when a component loses the keyboard focus.
 javax.swing.JWindow getCommentWindow()
           
protected  java.lang.String getDefaultText(java.lang.Object _o)
           
 int getFace()
           
 java.lang.String getMessage()
           
 boolean getUseCommentWindow()
           
protected  void init()
           
private  void internalFrameAction(javax.swing.event.InternalFrameEvent _evt)
           
 void internalFrameActivated(javax.swing.event.InternalFrameEvent _evt)
          Internal frame activated
 void internalFrameClosed(javax.swing.event.InternalFrameEvent _evt)
          Internal frame closed
 void internalFrameClosing(javax.swing.event.InternalFrameEvent _evt)
          Internal frame closing
 void internalFrameDeactivated(javax.swing.event.InternalFrameEvent _evt)
          Internal frame deactivated
 void internalFrameDeiconified(javax.swing.event.InternalFrameEvent _evt)
          Internal frame deiconified
 void internalFrameIconified(javax.swing.event.InternalFrameEvent _evt)
          Internal frame iconified
 void internalFrameOpened(javax.swing.event.InternalFrameEvent _evt)
          Internal frame opened
private  void loadTips(java.lang.Class _classe, java.lang.String _fichier)
           
protected  void loadTips(java.lang.String _fichier)
           
private static java.lang.String logfileName()
           
static void main(java.lang.String[] _args)
           
 void mouseClicked(java.awt.event.MouseEvent _evt)
          This method is called when the mouse is clicked (pressed and released in short succession) on a component.
 void mouseEntered(java.awt.event.MouseEvent _evt)
          This method is called when the mouse enters a component.
 void mouseExited(java.awt.event.MouseEvent _evt)
          This method is called when the mouse exits a component.
 void mousePressed(java.awt.event.MouseEvent _evt)
          This method is called when the mouse is pressed over a component.
 void mouseReleased(java.awt.event.MouseEvent _evt)
          This method is called when the mouse is released over a component.
 void paint(java.awt.Graphics _g)
          Paint the component.
 void paintComponent(java.awt.Graphics _g)
          Paint the component's body.
 void runActoScript(java.awt.event.ActionListener _l)
           
 void setCommentWindow(javax.swing.JWindow _window)
           
 void setFace(int _v)
           
 void setMessage(java.lang.String _v)
           
 void setUseCommentWindow(boolean _use)
           
 void setVisible(boolean _v)
          Set the value of the visible property.
 void start()
           
 void stop()
           
 void updateUI()
          This method should be overridden in subclasses.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAROLE

public static final int PAROLE
See Also:
Constant Field Values

ATTENTE

public static final int ATTENTE
See Also:
Constant Field Values

PEUR

public static final int PEUR
See Also:
Constant Field Values

COLERE

public static final int COLERE
See Also:
Constant Field Values

ABSENT

public static final int ABSENT
See Also:
Constant Field Values

MAX_ATTITUDES

public static final int MAX_ATTITUDES
See Also:
Constant Field Values

DELAI

private static final int DELAI
See Also:
Constant Field Values

AINC

private static final int AINC
See Also:
Constant Field Values

NBCOL

private static final int NBCOL
See Also:
Constant Field Values

table_

private java.util.Hashtable table_

aval_

protected int aval_

blinker_

protected BuAssistant.Blinker blinker_

festival_

protected java.lang.Thread festival_

faceActuelle_

BuAssistant.Face faceActuelle_

faceAvant_

BuAssistant.Face faceAvant_

faceApres_

BuAssistant.Face faceApres_

faces_

BuAssistant.Face[] faces_

log_

private java.io.PrintWriter log_

message_

private java.lang.String[] message_

window_message_

private java.lang.String[] window_message_

use_

private boolean use_

window_

private javax.swing.JWindow window_

face_

private int face_
Constructor Detail

BuAssistant

public BuAssistant()
Method Detail

init

protected void init()

loadTips

protected void loadTips(java.lang.String _fichier)

loadTips

private void loadTips(java.lang.Class _classe,
                      java.lang.String _fichier)

updateUI

public void updateUI()
Description copied from class: javax.swing.JComponent
This method should be overridden in subclasses. In JComponent, the method does nothing. In subclasses, it should a UI delegate (corresponding to the symbolic name returned from JComponent.getUIClassID()>JComponent.getUIClassID() 55 ) from the javax.swing.UIManager, and calls JComponent.setUI(javax.swing.plaf.ComponentUI)>JComponent.setUI(javax.swing.plaf.ComponentUI) 55 with the new delegate.


mouseClicked

public void mouseClicked(java.awt.event.MouseEvent _evt)
Description copied from interface: java.awt.event.MouseListener
This method is called when the mouse is clicked (pressed and released in short succession) on a component.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent _evt)
Description copied from interface: java.awt.event.MouseListener
This method is called when the mouse enters a component.

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent _evt)
Description copied from interface: java.awt.event.MouseListener
This method is called when the mouse exits a component.

Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent _evt)
Description copied from interface: java.awt.event.MouseListener
This method is called when the mouse is pressed over a component.

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent _evt)
Description copied from interface: java.awt.event.MouseListener
This method is called when the mouse is released over a component.

Specified by:
mouseReleased in interface java.awt.event.MouseListener

paint

public void paint(java.awt.Graphics _g)
Description copied from class: javax.swing.JComponent

Paint the component. This is a delicate process, and should only be called from the repaint thread, under control of the javax.swing.RepaintManager. Client code should usually call Component.repaint()>Component.repaint() 55 to trigger painting.

The body of the paint call involves calling JComponent.paintComponent(java.awt.Graphics)>JComponent.paintComponent(java.awt.Graphics) 55 , JComponent.paintBorder(java.awt.Graphics)>JComponent.paintBorder(java.awt.Graphics) 55 , and JComponent.paintChildren(java.awt.Graphics)>JComponent.paintChildren(java.awt.Graphics) 55 in order. If you want to customize painting behavior, you should override one of these methods rather than paint.

For more details on the painting sequence, see this article.


paintComponent

public void paintComponent(java.awt.Graphics _g)
Description copied from class: javax.swing.JComponent
Paint the component's body. This usually means calling ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)>ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) 55 on the JComponent.ui>JComponent.ui 55 property of the component, if it is non-null. You may override this if you wish to customize the component's body-painting behavior. The component's body is painted first, before the border and children.


logfileName

private static java.lang.String logfileName()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent _evt)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

focusGained

public void focusGained(java.awt.event.FocusEvent _evt)
Description copied from interface: java.awt.event.FocusListener
This method is called when a component gains the keyboard focus.

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent _evt)
Description copied from interface: java.awt.event.FocusListener
This method is invoked when a component loses the keyboard focus.

Specified by:
focusLost in interface java.awt.event.FocusListener

internalFrameAction

private void internalFrameAction(javax.swing.event.InternalFrameEvent _evt)

internalFrameActivated

public void internalFrameActivated(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame activated

Specified by:
internalFrameActivated in interface javax.swing.event.InternalFrameListener

internalFrameDeactivated

public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame deactivated

Specified by:
internalFrameDeactivated in interface javax.swing.event.InternalFrameListener

internalFrameClosed

public void internalFrameClosed(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame closed

Specified by:
internalFrameClosed in interface javax.swing.event.InternalFrameListener

internalFrameClosing

public void internalFrameClosing(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame closing

Specified by:
internalFrameClosing in interface javax.swing.event.InternalFrameListener

internalFrameDeiconified

public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame deiconified

Specified by:
internalFrameDeiconified in interface javax.swing.event.InternalFrameListener

internalFrameIconified

public void internalFrameIconified(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame iconified

Specified by:
internalFrameIconified in interface javax.swing.event.InternalFrameListener

internalFrameOpened

public void internalFrameOpened(javax.swing.event.InternalFrameEvent _evt)
Description copied from interface: javax.swing.event.InternalFrameListener
Internal frame opened

Specified by:
internalFrameOpened in interface javax.swing.event.InternalFrameListener

getDefaultText

protected java.lang.String getDefaultText(java.lang.Object _o)

commentUser

public void commentUser(java.lang.String _info)

commentUser

public void commentUser(java.lang.String _info,
                        java.lang.String _default)

start

public void start()

stop

public void stop()

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String _v)

getUseCommentWindow

public boolean getUseCommentWindow()

setUseCommentWindow

public void setUseCommentWindow(boolean _use)

getCommentWindow

public javax.swing.JWindow getCommentWindow()

setCommentWindow

public void setCommentWindow(javax.swing.JWindow _window)

getFace

public int getFace()

setFace

public void setFace(int _v)

setVisible

public void setVisible(boolean _v)
Description copied from class: javax.swing.JComponent
Set the value of the visible property. If the value is changed, then the AncestorListeners of this component and all its children (recursivly) are notified.


changeAttitude

public void changeAttitude(int _f,
                           java.lang.String _m)

addEmitters

public void addEmitters(java.awt.Container _parent)

addSpecificEmitters

public void addSpecificEmitters(java.awt.Container _parent,
                                java.lang.String _type)

runActoScript

public void runActoScript(java.awt.event.ActionListener _l)

main

public static void main(java.lang.String[] _args)