|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreebolic.control.Commander
treebolic.control.Controller
public class Controller
Controller
| Nested Class Summary | |
|---|---|
static class |
Controller.Action
Action types |
static class |
Controller.Event
Event types |
static class |
Controller.MatchMode
Match mode |
static class |
Controller.MatchScope
Match scope |
| Nested classes/interfaces inherited from class treebolic.control.Commander |
|---|
Commander.Command |
| Field Summary | |
|---|---|
private AbstractLayerOut |
theLayerOut
Connected layout agent |
private static java.lang.String[] |
theMatchModeString
Match modes |
private static java.lang.String[] |
theMatchScopeString
Match scopes |
private Model |
theModel
Connected model |
private View |
theView
Connected view |
private Widget |
theWidget
Connected widget |
private static boolean |
verbose
Verbose status flag (use for debug purposes) |
| Constructor Summary | |
|---|---|
Controller()
Constructor |
|
| Method Summary | |
|---|---|
void |
connect(AbstractLayerOut thisLayerOut)
Connect with layout agent |
void |
connect(Model thisModel)
Connect |
void |
connect(View thisView)
Connect with view |
void |
connect(Widget thisWidget)
Connect with widget |
private java.lang.String |
decode(java.lang.String thisString)
Decode encoded URL (for display) |
void |
dispatch(Controller.Action thisAction,
java.lang.String thisLink,
java.lang.String thisLinkTarget,
java.lang.String thisMatchTarget,
Controller.MatchScope thisMatchScope,
Controller.MatchMode thisMatchMode,
INode thisNode)
Dispatch action |
INode |
findNode(int vx,
int vy)
Find node |
void |
focus(java.lang.String thisNodeId)
Focus node |
protected AbstractLayerOut |
getLayerOut()
Get layout agent |
protected Model |
getModel()
Get model |
protected View |
getView()
Get view |
void |
handle(Controller.Event thisEventType,
java.lang.Object thisParameter)
Handle events |
void |
linkTo(java.lang.String thisHref,
java.lang.String thisTarget)
Follow hypertext link |
java.lang.String |
match(java.lang.String thisString,
Controller.MatchScope thisScope,
Controller.MatchMode thisMode)
Match node against string (wrapper) |
private INode |
match(java.lang.String thisString,
Controller.MatchScope thisScope,
Controller.MatchMode thisMode,
INode thisNode)
Match node against for string |
void |
popup(int x,
int y,
INode thisNode)
|
private void |
putNode(INode thisNode)
Display node |
Complex |
viewToUnitCircle(java.awt.Point thisPoint)
Convert view space to unit circle |
| Methods inherited from class treebolic.control.Commander |
|---|
execute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Widget theWidget
private Model theModel
private View theView
private AbstractLayerOut theLayerOut
private static final boolean verbose
private static final java.lang.String[] theMatchScopeString
private static final java.lang.String[] theMatchModeString
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
public void connect(Widget thisWidget)
thisWidget - widgetpublic void connect(Model thisModel)
thisModel - modelpublic void connect(View thisView)
thisView - viewpublic void connect(AbstractLayerOut thisLayerOut)
thisLayerOut - layeroutprotected Model getModel()
Commander
getModel in class Commanderprotected View getView()
Commander
getView in class Commanderprotected AbstractLayerOut getLayerOut()
Commander
getLayerOut in class Commander
public void handle(Controller.Event thisEventType,
java.lang.Object thisParameter)
thisEventType - event typethisParameter - event-specific object
public void dispatch(Controller.Action thisAction,
java.lang.String thisLink,
java.lang.String thisLinkTarget,
java.lang.String thisMatchTarget,
Controller.MatchScope thisMatchScope,
Controller.MatchMode thisMatchMode,
INode thisNode)
thisAction - actionthisLink - urlthisLinkTarget - url link targetthisMatchTarget - match targetthisMatchScope - match scopethisMatchMode - match modethisNode - nodeprivate void putNode(INode thisNode)
thisNode - node
public void popup(int x,
int y,
INode thisNode)
private INode match(java.lang.String thisString,
Controller.MatchScope thisScope,
Controller.MatchMode thisMode,
INode thisNode)
thisString - string to matchthisScope - scopethisMode - modethisNode - node
public java.lang.String match(java.lang.String thisString,
Controller.MatchScope thisScope,
Controller.MatchMode thisMode)
thisString - string to matchthisScope - scope (LABEL, CONTENT, LINK, ID)thisMode - mode (EQUALS, STARTSWITH, INCLUDES)
public INode findNode(int vx,
int vy)
vx - at view x positionvy - at view y position
public void focus(java.lang.String thisNodeId)
thisNodeId - node id to get focusprivate java.lang.String decode(java.lang.String thisString)
thisString - encode URL string
public void linkTo(java.lang.String thisHref,
java.lang.String thisTarget)
thisHref - url stringthisTarget - target framepublic Complex viewToUnitCircle(java.awt.Point thisPoint)
thisPoint - view space coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||