|
Anka Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--org.kizna.anka.WhiteBoardPanel
Insert the type's description here. Creation date: (3/30/2001 2:15:04 PM)
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| 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 |
| 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.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 | |
WhiteBoardPanel(boolean isDoubleBuffered,
WhiteBoard whiteBoard)
WhiteBoardPanel constructor comment. |
|
WhiteBoardPanel(java.awt.LayoutManager layout,
boolean isDoubleBuffered,
WhiteBoard whiteBoard)
WhiteBoardPanel constructor comment. |
|
WhiteBoardPanel(java.awt.LayoutManager layout,
WhiteBoard whiteBoard)
WhiteBoardPanel constructor comment. |
|
WhiteBoardPanel(WhiteBoard whiteBoard)
WhiteBoardPanel constructor comment. |
|
| Method Summary | |
void |
activateListeners()
Insert the method's description here. |
void |
deactivateListeners()
Insert the method's description here. |
void |
delete()
Insert the method's description here. |
void |
delete(java.awt.Component component)
Insert the method's description here. |
void |
deleteMessage(Noodle noodle)
Insert the method's description here. |
double |
distanceToCord(java.util.Vector pointVector,
int start,
int end)
compute the maximum distance of each point in the [start,end] range to the start-end line (the cord) TODO : we could escape the loop as soon as we have d > epsilon |
double |
distanceToLine(java.awt.Point p,
java.awt.Point l1,
java.awt.Point l2)
Computes the distance of a point to a line Computes the distance of point p to the line given by p1 and p2 |
protected Noodle |
findNoodle(int x,
int y)
Insert the method's description here. |
double |
findSlope(java.awt.Point p1,
java.awt.Point p2)
Insert the method's description here. |
java.awt.Component |
getGlassPane()
Insert the method's description here. |
java.awt.Point |
getLastPoint()
Insert the method's description here. |
int |
getOrder()
Insert the method's description here. |
java.util.Vector |
getPointVector()
Insert the method's description here. |
WhiteBoard |
getWhiteBoard()
Insert the method's description here. |
void |
init(WhiteBoard whiteBoard)
|
boolean |
isInMenuRegion(int x,
int y)
Insert the method's description here. |
boolean |
isPressed()
Insert the method's description here. |
boolean |
isRecordingMode()
Insert the method's description here. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
optimize(java.util.Vector pointVector)
Insert the method's description here. |
void |
optimize(java.util.Vector pointVector,
double epsilon)
optmize the vector of points by deleting unneeded points epsilon decides on the quality of the output epsilon is the maximum distance of the original points to the new pointVector |
void |
remove(java.awt.Component comp)
|
void |
removeMessage(FreeHandMessage message)
Insert the method's description here. |
int |
removePoints(java.util.Vector pointVector,
int startIndex,
int endIndex)
|
int |
removePoints(java.util.Vector pointVector,
java.awt.Point start,
java.awt.Point finish)
Insert the method's description here. |
void |
run()
Insert the method's description here. |
void |
setGlassPane(WBGlassPane newGlassPane)
Insert the method's description here. |
void |
setLastPoint(java.awt.Point newLastPoint)
Insert the method's description here. |
void |
setPointVector(java.util.Vector newPointVector)
Insert the method's description here. |
void |
setPressed(boolean newPressed)
Insert the method's description here. |
void |
setRecordingMode(boolean newRecordingMode)
Set the Recording mode Creation date: (3/30/2001 2:24:45 PM) |
void |
setStatusText(java.lang.String s)
Insert the method's description here. |
void |
setWhiteBoard(WhiteBoard newWhiteBoard)
Insert the method's description here. |
void |
showMessage(FreeHandMessage msg)
Insert the method's description here. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, 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, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, 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, 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, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WhiteBoardPanel(WhiteBoard whiteBoard)
public WhiteBoardPanel(java.awt.LayoutManager layout,
WhiteBoard whiteBoard)
layout - java.awt.LayoutManager
public WhiteBoardPanel(java.awt.LayoutManager layout,
boolean isDoubleBuffered,
WhiteBoard whiteBoard)
layout - java.awt.LayoutManagerisDoubleBuffered - boolean
public WhiteBoardPanel(boolean isDoubleBuffered,
WhiteBoard whiteBoard)
isDoubleBuffered - boolean| Method Detail |
public void activateListeners()
public void deactivateListeners()
public void delete()
public void delete(java.awt.Component component)
public void deleteMessage(Noodle noodle)
protected Noodle findNoodle(int x,
int y)
public double findSlope(java.awt.Point p1,
java.awt.Point p2)
throws InfinityException
p1 - java.awt.Pointp2 - java.awt.Point
InfinityExceptionpublic java.awt.Component getGlassPane()
public java.awt.Point getLastPoint()
public int getOrder()
public java.util.Vector getPointVector()
public WhiteBoard getWhiteBoard()
public void init(WhiteBoard whiteBoard)
public boolean isInMenuRegion(int x,
int y)
x - inty - int
public boolean isPressed()
public boolean isRecordingMode()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListener
public double distanceToLine(java.awt.Point p,
java.awt.Point l1,
java.awt.Point l2)
public double distanceToCord(java.util.Vector pointVector,
int start,
int end)
public void optimize(java.util.Vector pointVector,
double epsilon)
public void optimize(java.util.Vector pointVector)
pointVector - java.util.Vectorpublic void removeMessage(FreeHandMessage message)
message - org.kizna.anka.message.FreeHandMessage
public int removePoints(java.util.Vector pointVector,
java.awt.Point start,
java.awt.Point finish)
public int removePoints(java.util.Vector pointVector,
int startIndex,
int endIndex)
public void run()
run in interface java.lang.Runnablepublic void setGlassPane(WBGlassPane newGlassPane)
newGlassPane - javax.swing.JPanelpublic void setLastPoint(java.awt.Point newLastPoint)
newLastPoint - java.awt.Pointpublic void setPointVector(java.util.Vector newPointVector)
newPointVector - java.util.Vectorpublic void setPressed(boolean newPressed)
newPressed - booleanpublic void setRecordingMode(boolean newRecordingMode)
newRecordingMode - booleanpublic void setStatusText(java.lang.String s)
public void setWhiteBoard(WhiteBoard newWhiteBoard)
newWhiteBoard - org.kizna.anka.WhiteBoardpublic void showMessage(FreeHandMessage msg)
msg - org.kizna.anka.message.FreeHandMessagepublic void remove(java.awt.Component comp)
remove in class java.awt.ContainerContainer.remove(Component)
|
(c) Kizna Corporation, Somik Raha 2002 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||