CLASS Activity
Highlights/Dependencies |
---|
|
GraphRep Code |
---|
GRAPHREP AVAL plv:"People-like view" AVAL k:"Classification" FILL r:102 g:153 b:255 AVAL actionType:"Action type" IF (plv = "No") RECTANGLE x:-1.4cm y:-.7cm w:2.8cm h:1.4cm ATTR "Name" y:1.2cm w:c:2.8cm h:t ELSE SET filename:("db:\\actor_4.png") IF (actionType = "Register") { SET filename:"db:\\register.jpg" } IF (actionType = "Observe") { SET filename:"db:\\observe.jpg" } IF (actionType = "Plan") { SET filename:"db:\\plan.jpg" } IF (actionType = "Do") { SET filename:"db:\\do.jpg" } IF (actionType = "Check") { SET filename:"db:\\check.jpg" } IF (actionType = "Adjust") { SET filename:"db:\\adjust.jpg" } SET we:5.6cm SET he:2.8cm PEN w:0.07cm color:black FILL style:null SET bigRectangle:(CM (5.6)) RECTANGLE x:((-1)*(we/2)) y:((-1)*(he/2)) w:(bigRectangle) h:(CM 3) # a border marking the object's size TABLE w:(we/2) h:(he/2) rows:1 cols:1 w1:100% h1:100% # get the current size of the object BITMAPINFO (filename) # get the bitmap size STRETCH off IF (bmpwidth / CMS tabw1 < bmpheight / CMS tabh1) { # use maximum height, space left and right SET w:(tabh1 * 2 * (bmpwidth / bmpheight)) BITMAP (filename) x:((-1)*(w)) y:(((-1)*(tabh1)) + (CM 0.05)) w:(w) h:(he) } ELSE { # use maximum width, space at top and bottom SET h:(tabw1 * 2 * (bmpheight / bmpwidth)) BITMAP (filename) x:((-1)*(tabw1 * 2)) y:((-1)*(h)) w:(tabw1 * 2) h:(h) } ATTR "Name" x:1cm y:.7cm w:l:2.0cm h:b:1.5cm line-break:rigorous ENDIF
|
Graphical Representation |
---|
|
7172 Views