Changes between Version 9 and Version 10 of GROUP_BASE_HALOS_AND_FRAME_POSITION_R1
- Timestamp:
- 07/11/09 19:09:13 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_BASE_HALOS_AND_FRAME_POSITION_R1
v9 v10 19 19 ///////////////////////////////////////// 20 20 // // 21 // * -upper left//21 // **** -top // 22 22 // +-----------+* - right // 23 23 // | |* // … … 26 26 // | |* // 27 27 // +-----------+ // 28 // ***** ** - bottom right//28 // ***** // 29 29 // | // 30 30 // bottom // … … 33 33 34 34 35 TOP, BOTTOM, LEFT, RIGHT, TOP_LEFT_CORNER, BOTTOM_LEFT_CORNER, TOP_RIGHT_CORNER, BOTTOM_RIGHT_CORNER 35 TOP, BOTTOM, LEFT, RIGHT 36 36 }}} 37 * Having these positions menus will be positioned at the specified side or corner. What is more menus will have an orientation - vertical for left and right sides and horizontal in all other cases. Note that the latter include menus that are at the corner of the rectangle!37 * Having these positions menus will be positioned at the specified side. What is more menus will have an orientation - vertical for left and right sides. If a menu is to be bound to a corner of a rectangle it will be a floating halo menu, since there is now button alignment for it. What is more, StaticHaloMenus provide buttons' margin and padding. The MENU_PADDING is the distance between the rectangle of the menu and its buttons. The BUTTON_MARGIN is the margin between buttons. 38 38 * An implementation of the StaticHaloMenu menu will be provided that is bound to the selection rectangle in the PageWorkArea. This is usually the rectangle that menu are going to be bound to. ( see[source:branches/private/peko/sophie2-base-halos-r1/sophie2-platform/modules/org.sophie2.main.app.halos/src/main/java/org/sophie2/main/app/halos/shared/SelectionHaloMenu.java SelectionHaloMenu] for more info.) 39 * HaloMenus need to align their buttons. This means that buttons in a StaticHaloMenu should be able to be aligned at both ends of the side of the rectangle. That is why HaloButton should have an alignment property. This is going to be START and END of the halo menu. By default buttons will be aligned at the start of the menu. For floating halo menus buttons will always be aligned at the start. This also include halo menus that are positioned at the corners of the rectangle where the menu is a static one. 39 * HaloMenus need to align their buttons. This means that buttons in a StaticHaloMenu should be able to be aligned at both ends of the side of the rectangle. That is why HaloButton should have an alignment property. This is going to be START and END of the halo menu. By default buttons will be aligned at the start of the menu. For floating halo menus buttons will always be aligned at the start. No matter what an alignment of a halo button is, if it is put in a FloatingHaloMenu, its alignment is ignored! 40 40 41 41 42 * Changesets (include changes for both tasks):