Ignore:
Timestamp:
09/04/08 17:07:39 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/InteractiveWidget.java

    r286 r294  
    15551555
    15561556                if (FrameIO.isPositiveInteger(link)) { // relative - convert to
    1557                                                                                                 // absolute
     1557                        // absolute
    15581558
    15591559                        // Get the frameset of this item
     
    15771577                return null;
    15781578        }
    1579        
    1580         /**
    1581          * Sets the border color for the widget.
    1582          * That is, for the source (so it is remembered) and also for all the
    1583          * corners/edges.
     1579
     1580        /**
     1581         * Sets the border color for the widget. That is, for the source (so it is
     1582         * remembered) and also for all the corners/edges.
    15841583         *
    15851584         * @param c
    1586          *              The color to set.
     1585         *            The color to set.
    15871586         */
    15881587        public void setWidgetEdgeColor(Color c) {
    1589                 for (Item i : _expediteeItems) i.setColor(c);
     1588                for (Item i : _expediteeItems)
     1589                        i.setColor(c);
    15901590                // Above indirectly invokes setSourceBorderColor accordingly
    15911591        }
    1592        
     1592
    15931593        /**
    15941594         * Sets the thickness of the widget edge.
     
    15971597         *
    15981598         * @param thickness
    1599          *              The new thickness to set.
     1599         *            The new thickness to set.
    16001600         */
    16011601        public void setWidgetEdgeThickness(float thickness) {
    1602                 for (Item i : _expediteeItems) i.setThickness(thickness);
    1603 //               Above indirectly invokes setSourceThickness accordingly
    1604         }
    1605 
    1606         // TODO: Maybe rename setSource* ..  to update* ... These should actually be friendly!
     1602                for (Item i : _expediteeItems)
     1603                        i.setThickness(thickness);
     1604                // Above indirectly invokes setSourceThickness accordingly
     1605        }
     1606
     1607        // TODO: Maybe rename setSource* .. to update* ... These should actually be
     1608        // friendly!
    16071609        public void setSourceColor(Color c) {
    16081610                _textRepresentation.setColor(c);
     
    16261628
    16271629        protected Point getOrigin() {
    1628                 return _d1.getPosition(); // BROOK: This flips around ... the origin can be any point
     1630                return _d1.getPosition(); // BROOK: This flips around ... the origin
     1631                // can be any point
    16291632        }
    16301633
     
    16321635                return _d1;
    16331636        }
     1637
     1638        public void setAnchorBottom(Float anchor) {
     1639                setPosition(getX(),
     1640                                Math.round(FrameGraphics.getMaxFrameSize().height - anchor - getHeight()));
     1641                getSource().setAnchorBottom(anchor);
     1642        }
     1643
     1644        public void setAnchorRight(Float anchor) {
     1645                setPosition(
     1646                                Math.round(FrameGraphics.getMaxFrameSize().width - anchor - getWidth()),
     1647                                getY());
     1648                getSource().setAnchorRight(anchor);
     1649        }
    16341650}
Note: See TracChangeset for help on using the changeset viewer.