eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DisplayObjectView':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: DisplayObjectView


Inheritance:

   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

Description:


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:]


Related information:



Instance protocol:

drawing
o  computeScale
scale to make the graph occupy 0.5 of my area

o  drawAxis

o  redraw
@Commented by cg at: 2021-11-23 14:50 Reason:

o  sizeChanged: how
my bounds have changed


Examples:


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


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 04:35:24 GMT