|
Class: DisplayObjectView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--DisplayObjectView
- Package:
- stx:libtool
- Category:
- Views-Misc
- Version:
- rev:
1.9
date: 2023/07/06 14:34:46
- user: cg
- file: DisplayObjectView.st directory: libtool
- module: stx stc-classLibrary: libtool
- Author:
- cg
documentation to be added.
class:
<a short class summary here, describing what instances represent>
responsibilities:
<describing what my main role is>
collaborators:
<describing with whom and how I talk to>
API:
<public api and main messages>
example:
<a one-line examples on how to use - can also be in a separate example method>
implementation:
<implementation points>
[instance variables:]
[class variables:]
drawing
-
computeScale
-
scale to make the graph occupy 0.5 of my area
-
drawAxis
-
-
redraw
-
@Commented by cg at: 2021-11-23 14:50 Reason:
-
sizeChanged: how
-
my bounds have changed
Notice that everything between [exBegin] and [exEnd] is extracted by the html-doc generator
to create nicely formatted and clickable executable examples in the generated html-doc.
(see the browsers class-documentation menu items for more)
trying the widget as standAlone view:
DisplayObjectView new open
|
embedded in another view:
|top v|
top := StandardSystemView new.
top extent:300@300.
v := DisplayObjectView new.
v origin:0.0@0.0 corner:1.0@1.0.
v model:(Polygon vertices:{ 10@10 . 30@10 . 20@20 . 10@10 }).
top add:v.
top open
|
|top v|
top := StandardSystemView new.
top extent:300@300.
v := DisplayObjectView new.
v origin:0.0@0.0 corner:1.0@1.0.
v model:(Image fromScreen ).
top add:v.
top open
|
|