public class FocusTraversalManager extends java.lang.Object implements java.awt.event.MouseListener, java.awt.event.KeyListener, WorkspaceListener
| Constructor and Description |
|---|
FocusTraversalManager(Workspace workspace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
focusAfterBlock()
Gives focus to the first after block down the tree,
that is, the next control block in the stack.
|
boolean |
focusBeforeBlock()
Gives focus to the first beforeblock up the tree,
that is, the previous control block in the stack.
|
boolean |
focusNextBlock()
Reassigns the focus to the "next block" of the current focusBlock.
|
boolean |
focusPrevBlock()
Reassigns the focus to the "previous block" of the current focusBlock.
|
java.awt.Point |
getBlockPoint() |
java.awt.Point |
getCanvasPoint() |
java.lang.Long |
getFocusBlockID() |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
setFocus(Block block)
Sets focus to block
|
void |
setFocus(java.lang.Long blockID) |
void |
setFocus(java.awt.Point canvasPoint,
java.lang.Long blockID)
Set Focus to canvas at canvasPoint.
|
java.lang.String |
toString() |
void |
workspaceEventOccurred(WorkspaceEvent event)
Subscription: BLOCK_ADDED events.
|
public FocusTraversalManager(Workspace workspace)
public java.lang.Long getFocusBlockID()
public java.awt.Point getCanvasPoint()
public java.awt.Point getBlockPoint()
public void setFocus(Block block)
block - TODO: finish method documentationpublic void setFocus(java.lang.Long blockID)
public void setFocus(java.awt.Point canvasPoint,
java.lang.Long blockID)
canvasPoint - blockID - TODO: finish method documentationpublic boolean focusNextBlock()
public boolean focusPrevBlock()
public boolean focusAfterBlock()
public boolean focusBeforeBlock()
public 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.MouseListenerpublic 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 mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void workspaceEventOccurred(WorkspaceEvent event)
workspaceEventOccurred in interface WorkspaceListenerevent - WorkspaceEvent object holding information regarding the triggered
event.public java.lang.String toString()
toString in class java.lang.Object