|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--giden.CORE.UserBase | +--giden.CORE.UserIO
Copyright (c) 1993-2004 C. R. Coullard, D. S. Dilworth, J. H. Owen,
All Rights Reserved.
We make no representations or warranties about the suitability of
the software, either express or implied, including but not limited
to the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. We shall not be liable for
any damages suffered by user as a result of using, modifying or
distributing this software or its derivatives.
UserIO is class that provides methods for interacting with the user.
Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.
Fields inherited from class giden.CORE.UserBase |
NullBase, Services |
Constructor Summary | |
UserIO(giden.CORE.SolverServices services,
giden.CORE.GUISolver gui)
Creates a user window, called from SolverMenu |
Method Summary | |
giden.CORE.UiEdge |
AddEdge(Edge edge)
Add the edge to the window |
giden.CORE.UiEdge |
AddEdge(Edge edge,
UiEdgeInfo info)
Add the edge to the window, draw as defined by info |
giden.CORE.UiNode |
AddNode(Node node,
int x,
int y)
Add the node to the window at the (x,y), and using the default draw information. |
giden.CORE.UiNode |
AddNode(Node node,
java.awt.Point pt)
Add the node to the window at the given point, and using the default draw information |
giden.CORE.UiNode |
AddNode(Node node,
UiNodeInfo info)
Add the node to the window, draw as defined by info |
void |
ClearStatusLine()
Clear the status line |
void |
CreateAnimationButtons()
Create animation sets |
giden.CORE.AnimationSet |
CreateAnimationSet(java.lang.String label,
java.awt.Color color)
Create a named AnimationSet and define color |
giden.CORE.ColorSet |
CreateColorSet(java.awt.Color color)
Create a named AnimationSet and define color |
void |
CreateFinalButtons()
Create animation sets |
giden.CORE.FinalSet |
CreateFinalSet(java.lang.String label,
java.awt.Color color)
Create a named final AnimationSet and define color |
RowDialogMain |
CreateRowDialog(java.lang.String name)
|
void |
CreateSolverInputDialog(java.lang.String textname,
giden.CORE.ExecBase solver,
Network net,
giden.GUI.GidenSolverInput input)
Create a dialog box and wait for user response |
void |
DrawNetwork()
Internal Method |
UiEdgeInfo |
GetDefaultUiEdgeInfo()
Returns the default draw information for edges |
UiNodeInfo |
GetDefaultUiNodeInfo()
Returns the default draw information for nodes |
UiEdgeInfo |
GetEdgeInfo(Edge edge)
Gets draw info for the given edge |
giden.CORE.GUISolver |
GetGUI()
Returns to GUI for this window |
Network |
GetNet()
Create a named AnimationSet and define color |
UiNodeInfo |
GetNodeInfo(Node node)
Gets draw info for the given node |
java.awt.Point |
GetTopRight()
Internal Method |
giden.CORE.UiNetwork |
GetUiNet()
Gets the UiNet for this window |
boolean |
IsNodeMember(Node node)
Returns true if the node is a member of this window |
void |
MoveAll(giden.CORE.AnimationSet set)
Move all nodes and edges into the given set |
boolean |
MoveToSet(Edge edge,
giden.CORE.AnimationSet set)
Move this edge to this set |
boolean |
MoveToSet(Node node,
giden.CORE.AnimationSet set)
Move this node to the animation set |
void |
NotifyOfSolverError(java.lang.String message)
Internal Method |
void |
NotifyOfSolverNotice(java.lang.String message)
Internal Method |
void |
NotifyOfSolverWarning(java.lang.String message)
Internal Method |
void |
PutDirected(boolean flag)
Changes the network to directed or undirected |
void |
PutEdgeColor(Edge edge,
java.awt.Color color)
Puts the color of an edge |
void |
PutEdgeInfo(Edge edge,
UiEdgeInfo info)
Puts draw info for the given edge |
void |
PutEdgeVisibility(Edge edge,
boolean visible)
Puts edge visibility |
void |
PutEdgeVisiblty(Edge edge,
boolean visible)
Deprecated. |
void |
PutLabel(Edge edge,
int label)
Changes the integer label for this edge |
void |
PutLabel(Edge edge,
java.lang.String label)
Changes the string label for this edge |
void |
PutLabel(Node node,
int label)
Changes the integer label for this node |
void |
PutLabel(Node node,
java.lang.String label)
Changes the string label for this node |
void |
PutNodeColor(Node node,
java.awt.Color color)
Puts the color of a node |
void |
PutNodeInfo(Node node,
UiNodeInfo info)
Puts draw info for the given node |
void |
SetEdgeColor(Edge edge,
java.awt.Color color)
Deprecated. |
void |
SetNodeColor(Node node,
java.awt.Color color)
Deprecated. |
void |
ShowPseudoCodeText(java.lang.String token)
Display the line with given token in the PseudoCode window |
void |
SingleStep()
Single step trace all sets |
void |
SingleStep(giden.CORE.AnimationSet set)
Single step trace this animation set |
void |
SingleStep(Edge edge,
giden.CORE.AnimationSet set)
Single step trace this edge and set |
void |
SingleStep(Node node,
giden.CORE.AnimationSet set)
Single step trace this node and set |
void |
StatusLine(java.lang.String message)
Copies the message to the status line buffer |
void |
Trace(giden.CORE.AnimationSet set)
Update an AnimationSet |
void |
Update()
Update the UI to show changes to animation controls |
Edge |
UserMouseEdgeInput(java.lang.String prompt)
Prompts the user and returns the clicked edge or null |
java.awt.Point |
UserMouseInput(java.lang.String question)
Prompt user, wait for mouse click, returns coordinates |
Node |
UserMouseNodeInput(java.lang.String prompt)
Prompts the user and returns the clicked node or null |
java.lang.String |
UserTextInput(java.lang.String question,
java.lang.String answer)
Prompt user with default answer, wait for text, returns text |
Methods inherited from class giden.CORE.UserBase |
CreateSolverResult, CreateSolverResult, PutEdgeVisibilty, RemoveFromSet, RemoveFromSet |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserIO(giden.CORE.SolverServices services, giden.CORE.GUISolver gui)
Method Detail |
public UiNodeInfo GetDefaultUiNodeInfo()
GetDefaultUiNodeInfo
in class giden.CORE.UserBase
public UiEdgeInfo GetDefaultUiEdgeInfo()
GetDefaultUiEdgeInfo
in class giden.CORE.UserBase
public giden.CORE.UiNode AddNode(Node node, int x, int y)
AddNode
in class giden.CORE.UserBase
public giden.CORE.UiNode AddNode(Node node, java.awt.Point pt)
AddNode
in class giden.CORE.UserBase
public giden.CORE.UiNode AddNode(Node node, UiNodeInfo info)
AddNode
in class giden.CORE.UserBase
public giden.CORE.UiEdge AddEdge(Edge edge)
AddEdge
in class giden.CORE.UserBase
public giden.CORE.UiEdge AddEdge(Edge edge, UiEdgeInfo info)
AddEdge
in class giden.CORE.UserBase
public boolean IsNodeMember(Node node)
IsNodeMember
in class giden.CORE.UserBase
public RowDialogMain CreateRowDialog(java.lang.String name)
CreateRowDialog
in class giden.CORE.UserBase
public giden.CORE.ColorSet CreateColorSet(java.awt.Color color)
CreateColorSet
in class giden.CORE.UserBase
public giden.CORE.FinalSet CreateFinalSet(java.lang.String label, java.awt.Color color)
CreateFinalSet
in class giden.CORE.UserBase
public giden.CORE.AnimationSet CreateAnimationSet(java.lang.String label, java.awt.Color color)
CreateAnimationSet
in class giden.CORE.UserBase
public void NotifyOfSolverWarning(java.lang.String message)
NotifyOfSolverWarning
in class giden.CORE.UserBase
public void NotifyOfSolverError(java.lang.String message)
NotifyOfSolverError
in class giden.CORE.UserBase
public void NotifyOfSolverNotice(java.lang.String message)
NotifyOfSolverNotice
in class giden.CORE.UserBase
public Network GetNet()
GetNet
in class giden.CORE.UserBase
public giden.CORE.UiNetwork GetUiNet()
GetUiNet
in class giden.CORE.UserBase
public giden.CORE.GUISolver GetGUI()
GetGUI
in class giden.CORE.UserBase
public java.awt.Point GetTopRight()
GetTopRight
in class giden.CORE.UserBase
public void Update()
Update
in class giden.CORE.UserBase
public void CreateAnimationButtons()
CreateAnimationButtons
in class giden.CORE.UserBase
public void CreateFinalButtons()
CreateFinalButtons
in class giden.CORE.UserBase
public void Trace(giden.CORE.AnimationSet set)
Trace
in class giden.CORE.UserBase
public void SingleStep()
SingleStep
in class giden.CORE.UserBase
public void SingleStep(giden.CORE.AnimationSet set)
SingleStep
in class giden.CORE.UserBase
set
- the animation set to mark as steppedpublic void SingleStep(Node node, giden.CORE.AnimationSet set)
SingleStep
in class giden.CORE.UserBase
node
- the node to move to the given setset
- the animation set to mark as steppedpublic void SingleStep(Edge edge, giden.CORE.AnimationSet set)
SingleStep
in class giden.CORE.UserBase
edge
- the nedge to move to the given setset
- the animation set to mark as steppedpublic boolean MoveToSet(Node node, giden.CORE.AnimationSet set)
MoveToSet
in class giden.CORE.UserBase
node
- the node to move to a new setset
- the set to move the node intopublic boolean MoveToSet(Edge edge, giden.CORE.AnimationSet set)
MoveToSet
in class giden.CORE.UserBase
edge
- the edge to move to a new setset
- the set to move the edge intopublic void MoveAll(giden.CORE.AnimationSet set)
MoveAll
in class giden.CORE.UserBase
set
- the set to move all nodes and edge intopublic void StatusLine(java.lang.String message)
StatusLine
in class giden.CORE.UserBase
public void ClearStatusLine()
ClearStatusLine
in class giden.CORE.UserBase
public java.lang.String UserTextInput(java.lang.String question, java.lang.String answer)
UserTextInput
in class giden.CORE.UserBase
public java.awt.Point UserMouseInput(java.lang.String question)
UserMouseInput
in class giden.CORE.UserBase
public Node UserMouseNodeInput(java.lang.String prompt)
UserMouseNodeInput
in class giden.CORE.UserBase
public Edge UserMouseEdgeInput(java.lang.String prompt)
UserMouseEdgeInput
in class giden.CORE.UserBase
public void ShowPseudoCodeText(java.lang.String token)
ShowPseudoCodeText
in class giden.CORE.UserBase
token
- the string token associated with the text linepublic void CreateSolverInputDialog(java.lang.String textname, giden.CORE.ExecBase solver, Network net, giden.GUI.GidenSolverInput input)
CreateSolverInputDialog
in class giden.CORE.UserBase
textname
- the text name for the solversolver
- the base class for the solvernet
- the network the solver is currently processinginput
- class with solver input informationpublic UiNodeInfo GetNodeInfo(Node node)
GetNodeInfo
in class giden.CORE.UserBase
public UiEdgeInfo GetEdgeInfo(Edge edge)
GetEdgeInfo
in class giden.CORE.UserBase
public void PutNodeInfo(Node node, UiNodeInfo info)
PutNodeInfo
in class giden.CORE.UserBase
public void PutEdgeInfo(Edge edge, UiEdgeInfo info)
PutEdgeInfo
in class giden.CORE.UserBase
public void SetNodeColor(Node node, java.awt.Color color)
SetNodeColor
in class giden.CORE.UserBase
public void PutNodeColor(Node node, java.awt.Color color)
public void SetEdgeColor(Edge edge, java.awt.Color color)
SetEdgeColor
in class giden.CORE.UserBase
public void PutEdgeColor(Edge edge, java.awt.Color color)
PutEdgeColor
in class giden.CORE.UserBase
public void PutEdgeVisiblty(Edge edge, boolean visible)
public void PutEdgeVisibility(Edge edge, boolean visible)
PutEdgeVisibility
in class giden.CORE.UserBase
public void PutLabel(Node node, java.lang.String label)
PutLabel
in class giden.CORE.UserBase
node
- the node to be assigned the labellabel
- the new text label for this nodepublic void PutLabel(Node node, int label)
PutLabel
in class giden.CORE.UserBase
node
- the node to be assigned the labellabel
- the new integer label for this nodepublic void PutLabel(Edge edge, java.lang.String label)
PutLabel
in class giden.CORE.UserBase
edge
- the edge to be assigned the labellabel
- the new text label for this edgepublic void PutLabel(Edge edge, int label)
PutLabel
in class giden.CORE.UserBase
edge
- the edge to be assigned the labellabel
- the new integer label for this edgepublic void PutDirected(boolean flag)
PutDirected
in class giden.CORE.UserBase
flag
- true if the edge should be directed, otherwise falsepublic void DrawNetwork()
DrawNetwork
in class giden.CORE.UserBase
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |