|
create
|
key parent x args
|
|
Create a gui::Pe_ object and display a view of it on the current canvas (procedure)
|
|
destroy
|
|
|
Delete a gui::Pe_ object and undisplay any views |
|
deploy
|
x args
|
|
A view of the object is displayed and sub-objects are also deployed |
|
recall
|
args
|
|
Any view is undisplayed and sub-objects are also recalled |
|
move
|
mode args
|
|
Move a view of the Pe object around on a drawing canvas |
|
optget
|
option
|
|
Optain a value for the specified graphical option |
|
optmod
|
args
|
|
Set a value for a graphical option, or obtain option list(s), do arch checks, history, update |
|
update
|
args
|
|
Bring the current view of the object up-to-date with the architecture state |
|
select
|
|
|
Show the object as selected |
|
unselect
|
|
|
Undo the effects of 'select' |
|
fade
|
|
|
Show the current view of the object as faded |
|
unfade
|
|
|
Undo the effects of 'fade' |
|
activate
|
sbtag args
|
|
Show a piece of the object as ready to resize |
|
deactivate
|
args
|
|
Undo the effects of 'activate' |
|
resize
|
sbtag mode args
|
|
Resize the object due to movement of a selectbox |
|
addSelectBoxes
|
|
|
Show selection boxes on the current view of the object |
|
adjust
|
args
|
|
Adjust the Pe's graphical appearance, needed due to changes in other objects |
|
align
|
args
|
|
Align the object to the nearest canvas grid lines |
|
buildTree
|
top
|
|
Build the architectural state and graphical defaults of the object into a DOM tree |
|
buildTree_gui
|
top view
|
|
Build the graphical values of the specified view into a DOM tree |
|
bump
|
y dist
|
|
|
|
checkConfig
|
vname
|
|
|
|
constructor
|
parent args
|
|
create a Processing Entity object |
|
copy
|
|
|
|
|
cut
|
|
|
|
|
delete
|
{mod none}
|
|
Destroy the object |
|
deleteSelectBoxes
|
|
|
Undo the effects of 'addSelectBoxes' |
|
destructor
|
|
|
Destroy the Pe object |
|
display
|
x args
|
|
Display a graphical view of the object on the current canvas |
|
dump
|
|
|
|
|
getCanvas
|
|
|
Get a widget name (command) for the current canvas |
|
getClass
|
|
|
|
|
getCname
|
|
|
|
|
getCommand
|
mode
|
|
Returns a string that can be used to re-create/display/copy the object as it exists now |
|
getCoord
|
req
|
|
Get a coordinate value for the requested part of the object |
|
getGraphicsId
|
piece
|
|
Get the tag name for the requested piece of the object |
|
getGroupTag
|
|
|
Get a tag which is used for "grouping" |
|
getInitRules
|
|
|
Get a list of rules that "Initial" rules (no incoming msgs) |
|
getOptions
|
args
|
|
Return information about the options for this object |
|
getPcode
|
|
|
|
|
getProperties
|
|
|
(procedure)
|
|
getPropertyList
|
|
|
|
|
insert
|
y dist
|
|
|
|
isEditable
|
|
|
(procedure)
|
|
isOkToDelete
|
|
|
Determine if it is ok to delete the object. |
|
moveDist
|
moveit xDist yDist
|
|
|
|
optset
|
args
|
|
|
|
paste
|
{mode obj}
|
|
|
|
raise
|
|
|
Raise the view of the object in the canvas display order |
|
recallList
|
lpes
|
|
(procedure)
|
|
undisplay
|
{view {}}
|
|
Undisplay a view of the object |
|
adjust
?<hints>? ?<actionlist>?
|
| |
Adjust the graphical components of the Pe to their correct position given the current situation. If no arguments are given, then all components (see <actionlist>) are checked to see if adjustment is required. Providing <hints> can improve efficiency. |
| |
This method is public so that as other objects undergo changes changes (move, resize) that can affect the rule, they can invoke this method and get the rule to adjust itself. |
| |
|
?<hints>?
|
| |
used to give hints to the adjust method |
| |
|
-y <y>
|
| |
a y-value to use |
| |
If the calling code already has the pertinent y-value, then passing it here can remove the need for a lookup. This will speed up adjustment of 'Stem'. |
|
|
| |
|
?<actionlist>?
|
| |
a list of components to be adjusted (default is all) |
| |
|
Stem
|
| |
adjust the length of the Pe stem |
| |
If -y is passed, it is used as the southernmost y-value past which the Pe stem must extend |
|
|
|
create
key parent x ?<options>?
|
| |
A gui::Pe_ object is created with name <key> and parent <parent>. The initial placement is at x-coordinate <x>. A view of the object is shown on the current canvas. |
| |
Graphical options can be passed in which will be used as default values for all subsequent views of the object which are displayed on any canvas. (Any graphical options not specified will use the class values set up during program start up.) |
| |
The command is posted to the Hist/Undo stacks. |
| |
|
key
|
| |
used to create a name for the object |
| |
can be #auto, see documentation for itcl::class |
|
| |
|
parent
|
| |
must be a binder object or another Pe object |
|
| |
|
x
|
| |
physical x-value for initial placement of Pe object |
|
| |
|
?<options>?
|
| |
graphical options (do '<obj> optmod' to see all options) |
|
|
move
mode ?options?
|
| |
Move a Processing Entity (PE) on a canvas. This method is designed for ease of use by canvas binding code. See the examples. |
| |
|
mode
|
| |
operation control |
| |
Use 'start' and 'end' modes to bracket a series of one or more 'delta' or 'track' commands in order to record history correctly. A 'track' command uses the x/y input as a coordinate, while 'delta' uses the x/y input as a relative distance. (It is possible to issue 'delta' commands without a 'start' or 'end' and get correct operation, but no history.) |
| |
The 'end' method is built to accept x,y values to facilitate recording/playback. When recording, the 'move delta' is not saved, but we do want to have a record of the final object disposition. |
| |
allowed: |
start, delta, track, end, to
|
|
| |
|
?options?
|
| |
arguments used depending on mode |
| |
|
-x <f>
|
| |
x-coordinate value (or x-delta value) |
| |
Only the coordinate (x or y) being changed needs to be specified. |
|
| |
|
-y <f>
|
| |
y-coordinate value (or y-delta value) |
| |
Only the coordinate (x or y) being changed needs to be specified. |
|
| |
|
-align <b>
|
| |
control alignment to grid (default=0) |
| |
only recognized on modes 'end' and 'to' |
|
|
| |
-
pe_0 move to -x 2c -y 2c
-
the Pe object is placed at x = 2cm and y = 2cm, history is recorded
-
-
pe_0 move start; pe_0 move delta -x 64; pe_0 move delta -x 32; pe_0 move end -align 1;
-
the Pe object is moved 128 pixels to the right, do alignment, one history event is recorded
-
-
pe_0 move delta -x 0 -y -10m
-
The Pe object is moved 10mm upward, no x-movement, no history is recorded. Both -x and -y must be given.
-
-
$pe move start -x %x -y %y
-
place in Button press binding, give cursor start location
-
-
$pe move track -x %x -y %y
-
place in Button motion binding, track cursor location
-
-
$pe move end -x %x -y %y
-
place in Button release binding, give final cursor locationCalls which could be placed in mouse bindings. The 'start' and 'end' calls could be recorded and would be sufficient to playback the motion.
|
|
resize
sbtag mode ?<options>?
|
| |
A select-box has been clicked on and now the user wants to drag it around on the screen to resize the PE. This method should be called as the motion begins (start), during the motion (track), and when the motion is complete (end). This method is also responsible for animating any and all selectboxes on the object whose location needs to be adjusted. |
| |
Use start and end modes to bracket one or more track commands. Coordinates must be supplied for start and track modes, but not for end mode. The coordinates specify a point on the canvas (not a delta). When ending resize the method will snap to grid if alignment is on. History is recorded by this method. |
| |
|
sbtag
|
| |
tag of a selectbox on the object to be resized |
|
| |
|
| |
|
?<options>?
|
| |
options used depending on mode |
| |
Both x and y must be specified if mode is start. |
| |
|
-x <f>
|
| |
x-coordinate value |
|
| |
|
-y <f>
|
| |
y-coordinate value |
|
|