Changes between Version 19 and Version 20 of FRAME_POSITION_R0


Ignore:
Timestamp:
01/06/09 18:47:22 (16 years ago)
Author:
mira
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FRAME_POSITION_R0

    v19 v20  
    2323 
    2424 * [source:trunk/sophie2-platform/doc/spec-diagrams/FrameBounds.png] 
    25  * [wiki:FRAME_PADDING_R0] 
    26  * [wiki:FRAME_MARGINS_R0] 
    27  * [wiki:FRAME_INSETS_R0] 
     25 * [wiki:FRAME_Z_ORDER_R0] 
    2826 * [wiki:FRAME_BOUNDS_R0] 
    2927 * [wiki:FRAME_SIZE_R0] 
     28 * [wiki:FRAME_INSETS_R0] 
    3029 
    3130== How to demo == 
     
    3534= Design = 
    3635In the Frame class: 
    37   * Create locationToDo() property for the location of the frames default point in default mode. The name ends with "todo" because there is location property used by the !FrameView to visualize the frame with JComponents. In later revisions (when the JComponents are no longer used and the view is only creating scene elements) it should be changed to just location().  
    3836 
    39   * Create boundsTodo() Auto property computed by the locationTodo and sizeTodo so that they could be manipulated simultaneously 
    40                  
    41   * Create the method !ImmPoint getLocation(!BoundMode mode, Position pos). Using the !BoundMode and Position enums it should calculate the location of any of the interesting points of any of the bound modes rectangles.   
     37  * Use the location() property for the location of the frames default point in default mode. This is the upper left point of the content.  
     38 
     39  * Create the method !ImmPoint getLocation(!BoundMode mode, Position pos). It uses the !BoundMode.getRect() method to get the frame rectangular in the given  mode and the Position.getPoint() method to get the location of the given position of this rectangular. 
    4240         
    43   * Create the method setLocation(!BoundMode mode, Position pos, !ImmPoint newLocation). The arguments represent the location of any of the interesting points of any of the bound modes rectangles.  Using the !BoundMode and Position enums it should calculate the location of the default point in default mode. This is the location to be set in the Frame.        
     41  * Create the method setLocation(!BoundMode mode, Position pos, !ImmPoint newLocation). The arguments represent the location to set in given position and mode. The method uses the Position.setPoint to calculate the location to be set according to the given location and the !BoundMode.setLocation method to calculate the location to be set according given mode.       
    4442 
    4543* !TestBoundMode demonstrates the use of those frame bounds functionalities in different modes.