Changes between Version 11 and Version 12 of FRAME_BOUNDS_R0
- Timestamp:
- 12/21/08 16:17:46 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FRAME_BOUNDS_R0
v11 v12 37 37 MID_BORDER, 38 38 IN_BORDER, 39 CONTE XT;39 CONTENT; 40 40 41 * Create enum !InterestingPoints: 42 TOP_LEFT, 43 TOP_MIDDLE, 44 TOP_RIGHT, 45 MIDDLE_LEFT, 46 MIDDLE, 47 MIDDLE_RIGHT, 48 BOTTOM_LEFT, 49 BOTTOM_MIDDLE, 50 BOTTOM_RIGHT; 41 * Create method setSize(ImmSize sizeToSet). It should take as argument the size in the current mode and calculate and return the size in default mode. This is the size of the frame content to be set. 42 43 * Create method ImmSize getSize(). It should calculate and return the size of the rectangle in the current mode. 51 44 52 * Setting and getting the bounds in all modes and relating to all special points will be realized in the concrete tasks for position, size and Z Order. 45 * Create method setLocation(ImmPoint locationToSet). It should take as argument coordinates of the current mode rectangle. It should calculate and return the location in default mode. This is the location of the frame content to be set. 46 47 * Create method ImmPoint getLocation(). It should calculate and return he location of of the rectangular in the current mode. 53 48 54 * Calculating of the bounds of a frame using different modes and points will be demonstrated in the concrete tasks for position, size and Z Order. 49 * There should also be getRect(ImmRect contentRect) and ImmRect setRect() methods using the above for getting and setting a Rectangular in current mode. 50 51 * TestBoundMode demonstrates the use of those frame bounds functionalities in different modes. 52 [source:trunk/sophie2-platform/modules//org.sophie2.base.model.book/src/test/java/org/sophie2/base/model/book/TestBoundMode.java?rev=991] 53 55 54 56 55 = Implementation = 56 57 * [source:trunk/sophie2-platform/modules/org.sophie2.base.model.book/src/main/java/org/sophie2/base/model/book/frame/BoundMode.java?rev=991] 57 58 58 59 = Testing =