Changeset 314


Ignore:
Timestamp:
09/23/08 15:22:50 (16 years ago)
Author:
bjn8
Message:
 
Location:
trunk/src/org/expeditee
Files:
6 edited

Legend:

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

    r311 r314  
    708708                                }
    709709                        }
    710                         if (current.getLink() != null) {
     710                        if (current != null && current.getLink() != null) {
    711711                                Navigation.Goto(current.getAbsoluteLink());
    712712                                return;
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r311 r314  
    19751975                }
    19761976        }
    1977 
     1977       
    19781978        /**
    19791979         * Moves the items to the current mouse position (plus the current offset)
     
    29822982                return new Point(getX(), getY());
    29832983        }
     2984       
     2985        public static Point getFreeItemsOffset() {
     2986                return new Point(_offX, _offY);
     2987        }
    29842988}
  • trunk/src/org/expeditee/gui/FrameUtils.java

    r311 r314  
    811811                                } else if (i.hasOverlay()) {
    812812                                        i.setVisible(true);
    813                                         int x = i.getBoundsHeight();
     813                                        //int x = i.getBoundsHeight();
    814814                                }
    815815                        }
  • trunk/src/org/expeditee/items/Line.java

    r311 r314  
    638638        @Override
    639639        public final float getThickness() {
    640                 assert(_start.getThickness() == _end.getThickness());
     640                //assert(_start.getThickness() == _end.getThickness()); // TODO: assertions on a getter? Brook: Breaks widgets - unsure how to atomically set thickness over whole widget
    641641               
    642642                return _start.getThickness();
  • trunk/src/org/expeditee/items/widgets/HeavyDutyInteractiveWidget.java

    r277 r314  
    359359        }*/
    360360
     361        /**
     362         * Important: Must be called otherwise the widget states may become unstable.
     363         */
    361364        @Override
    362         public final void onDelete() {
     365        public void onDelete() {
    363366                super.onDelete();
    364367                // Evenetually - unload the data - with the intention of possible recovery, but not saving...
  • trunk/src/org/expeditee/items/widgets/InteractiveWidget.java

    r296 r314  
    16661666
    16671667        protected Point getOrigin() {
    1668                 return _d1.getPosition(); // BROOK: This flips around ... the origin can be any point
     1668                return _d1.getPosition(); // NOTE FROM BROOK: This flips around ... the origin can be any point
    16691669        }
    16701670
     
    16851685                getSource().setAnchorRight(anchor);
    16861686        }
     1687       
    16871688}
Note: See TracChangeset for help on using the changeset viewer.