Ignore:
Timestamp:
08/25/08 15:19:25 (16 years ago)
Author:
ra33
Message:

Fixed some bugs...
AbstractCharts can not be copied, resized, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Frame.java

    r247 r278  
    709709        }
    710710
    711         public void refreshSize(Dimension size) {
    712                 assert (size != null);
    713                 int height = size.height;
    714                 int width = size.width;
     711        public void refreshSize() {
     712                //assert (size != null);
    715713                boolean bReparse = false;
    716714                for (Item i : getItems()) {
     
    718716                        Float anchorRight = i.getAnchorRight();
    719717                        if (anchorRight != null) {
    720                                 i.setX(width - anchorRight);
     718                                i.setAnchorRight(anchorRight);
    721719                                if (i.hasVector()) {
    722720                                        bReparse = true;
     
    724722                        }
    725723                        if (anchorBottom != null) {
    726                                 i.setY(height - anchorBottom);
     724                                i.setAnchorBottom(anchorBottom);
    727725                                if (i.hasVector()) {
    728726                                        bReparse = true;
     
    730728                        }
    731729                }
     730               
     731                //Do the anchors on the overlays
     732                for(Overlay o: getOverlays()){
     733                        o.Frame.refreshSize();
     734                }
     735               
    732736                if (bReparse) {
    733737                        FrameUtils.Parse(this, false);
Note: See TracChangeset for help on using the changeset viewer.