Ignore:
Timestamp:
08/26/08 14:18:34 (16 years ago)
Author:
bjn8
Message:

Refactored naming of some methods in widget

File:
1 edited

Legend:

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

    r278 r279  
    15691569                return null;
    15701570        }
    1571 
    1572         public void setColor(Color c) {
     1571       
     1572        /**
     1573         * Sets the border color for the widget.
     1574         * That is, for the source (so it is remembered) and also for all the
     1575         * corners/edges.
     1576         *
     1577         * @param c
     1578         *              The color to set.
     1579         */
     1580        public void setWidgetEdgeColor(Color c) {
     1581                for (Item i : _expediteeItems) i.setColor(c);
     1582                // Above indirectly invokes setSourceBorderColor accordingly
     1583        }
     1584       
     1585        /**
     1586         * Sets the thickness of the widget edge.
     1587         *
     1588         * @see Item#setThickness(float)
     1589         *
     1590         * @param thickness
     1591         *              The new thickness to set.
     1592         */
     1593        public void setWidgetEdgeThickness(float thickness) {
     1594                for (Item i : _expediteeItems) i.setThickness(thickness);
     1595//               Above indirectly invokes setSourceThickness accordingly
     1596        }
     1597
     1598        // TODO: Maybe rename setSource* ..  to update* ... These should actually be friendly!
     1599        public void setSourceColor(Color c) {
    15731600                _textRepresentation.setColor(c);
    15741601        }
    15751602       
    1576         public void setBorderColor(Color c) {
     1603        public void setSourceBorderColor(Color c) {
    15771604                _textRepresentation.setBorderColor(c);
    15781605        }
    15791606       
    1580         public void setFillColor(Color c) {
     1607        public void setSourceFillColor(Color c) {
    15811608                _textRepresentation.setFillColor(c);
    15821609        }
    15831610       
    1584         public void setThickness(float newThickness, boolean setConnected) {
     1611        public void setSourceThickness(float newThickness, boolean setConnected) {
    15851612                _textRepresentation.setThickness(newThickness, setConnected);
    15861613        }
    15871614
    1588         public void setData(List<String> data) {
     1615        public void setSourceData(List<String> data) {
    15891616                _textRepresentation.setData(data);
    15901617        }
    15911618       
    15921619        protected Point getOrigin() {
    1593                 return _d1.getPosition();
     1620                return _d1.getPosition(); // BROOK: This flips around ... the origin can be any point
    15941621        }
    15951622       
Note: See TracChangeset for help on using the changeset viewer.