Changes between Version 3 and Version 4 of FRAME_ROTATION_R1
- Timestamp:
- 05/30/09 02:10:55 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FRAME_ROTATION_R1
v3 v4 15 15 * Rotate around the topLeft corner of the frame (ie 0,0, so later when the coordinates change, the rotation works as expected) 16 16 * Make sure the halo button moves with the frame. Currently halos lay out around the unrotated bounding box enclosing the rotated frame 17 * Position the halo button at the bottom right corner of the frame 17 * Position the halo button at the bottom right corner of the frame, along a vector that extends from the topLeft corner, offset from the outside of the frame by 15,15 pixels (hard coded, changeable) 18 18 19 19 == Task result == … … 34 34 35 35 = Design = 36 ^(Describe your design here.)^ 36 37 * Define class FrameRotateButton: 38 39 {{{ 40 public class FrameRotateButton extends MoveHaloButton { 41 private static void defineSkin(ElementSkinPart part); 42 public Prop<FrameRotateHaloMenu> parent(); 43 protected MouseCapture captureClick(MouseEvent e); 44 protected boolean computeVisible(); 45 public Prop<PageWorkArea> workArea(); 46 } 47 }}} 48 49 * Update FrameRotateHaloMenu 50 51 FrameRotateHaloMenu currently defines it's location as the topRIght of the selection bounds, but that is no longer valid. It should define 52 37 53 38 54 = Implementation = … … 44 60 = Comments = 45 61 62 == Rotating Selection 63 64 We need to think about what rotation means for 3 selected frames, where does the halo go, where doe the rotation center, on the temporary group or on each frame, each rotating potentially differently (one topLeft, one center, one bottomRight?) I checked out pages, and while they do not have an onscreen rotation widget (it is in a palette), it sets the rotation of each object, thus if you select 3 boxes, which rotate on center, then change the rotation, they all spin at the same time, and are set to the same rotation. If we are to do this, we likely will need a non-rectangular selection, which will take more time, and then the effect on the other halo menus is in question - sriggins 65 46 66 == Future Revisions == 47 67 48 Put the discreet rotation buttons into the hud. Change the halo menu button to show the halo hud if single clicked. 68 Put the discreet rotation buttons into the hud. Change the halo menu button to show the halo hud if single clicked. -sriggins