- Timestamp:
- 09/04/08 17:07:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/InteractiveWidget.java
r286 r294 1555 1555 1556 1556 if (FrameIO.isPositiveInteger(link)) { // relative - convert to 1557 1557 // absolute 1558 1558 1559 1559 // Get the frameset of this item … … 1577 1577 return null; 1578 1578 } 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. 1584 1583 * 1585 1584 * @param c 1586 * 1585 * The color to set. 1587 1586 */ 1588 1587 public void setWidgetEdgeColor(Color c) { 1589 for (Item i : _expediteeItems) i.setColor(c); 1588 for (Item i : _expediteeItems) 1589 i.setColor(c); 1590 1590 // Above indirectly invokes setSourceBorderColor accordingly 1591 1591 } 1592 1592 1593 1593 /** 1594 1594 * Sets the thickness of the widget edge. … … 1597 1597 * 1598 1598 * @param thickness 1599 * 1599 * The new thickness to set. 1600 1600 */ 1601 1601 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! 1607 1609 public void setSourceColor(Color c) { 1608 1610 _textRepresentation.setColor(c); … … 1626 1628 1627 1629 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 1629 1632 } 1630 1633 … … 1632 1635 return _d1; 1633 1636 } 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 } 1634 1650 }
Note:
See TracChangeset
for help on using the changeset viewer.