Changes between Version 19 and Version 20 of FRAME_POSITION_R0
- Timestamp:
- 01/06/09 18:47:22 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FRAME_POSITION_R0
v19 v20 23 23 24 24 * [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] 28 26 * [wiki:FRAME_BOUNDS_R0] 29 27 * [wiki:FRAME_SIZE_R0] 28 * [wiki:FRAME_INSETS_R0] 30 29 31 30 == How to demo == … … 35 34 = Design = 36 35 In 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().38 36 39 * Create boundsTodo() Auto property computed by the locationTodo and sizeTodo so that they could be manipulated simultaneously40 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. 42 40 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. 44 42 45 43 * !TestBoundMode demonstrates the use of those frame bounds functionalities in different modes.