Ignore:
Timestamp:
02/19/20 15:29:48 (4 years ago)
Author:
bnemhaus
Message:

You now have the ability to anchor Items to the center of the frame. AnchorCenterX: 0 will anchor a item directly to the vertical center of the frame. AnchorCenterY: 0 to the horizontal center of the frame. Negative numbers go left/up from the center, positive numbers right/down.

More work to come to deal with connected items such as rectangles made up on connected dots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/gesture/StandardGestureActions.java

    r1511 r1513  
    26702670                for (Item i : items) {
    26712671                        Integer anchorLeft = i.getAnchorLeft();
     2672                        Integer anchorCenterX = i.getAnchorCenterX();
    26722673                        Integer anchorRight = i.getAnchorRight();
    26732674                        Integer anchorTop = i.getAnchorTop();
     2675                        Integer anchorCenterY = i.getAnchorCenterY();
    26742676                        Integer anchorBottom = i.getAnchorBottom();
    26752677
     
    26802682                                }
    26812683                        }
     2684                       
     2685                        if (anchorCenterX != null) {
     2686                                i.setAnchorCenterX(anchorCenterX);
     2687                                if (i.hasVector()) {
     2688                                        bReparse = true;
     2689                                }
     2690                        }
    26822691
    26832692                        if (anchorRight != null) {
     
    26902699                        if (anchorTop != null) {
    26912700                                i.setAnchorTop(anchorTop);
     2701                                if (i.hasVector()) {
     2702                                        bReparse = true;
     2703                                }
     2704                        }
     2705                       
     2706                        if (anchorCenterY != null) {
     2707                                i.setAnchorCenterY(anchorCenterY);
    26922708                                if (i.hasVector()) {
    26932709                                        bReparse = true;
Note: See TracChangeset for help on using the changeset viewer.