- Timestamp:
- 08/26/08 14:18:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/InteractiveWidget.java
r278 r279 1569 1569 return null; 1570 1570 } 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) { 1573 1600 _textRepresentation.setColor(c); 1574 1601 } 1575 1602 1576 public void set BorderColor(Color c) {1603 public void setSourceBorderColor(Color c) { 1577 1604 _textRepresentation.setBorderColor(c); 1578 1605 } 1579 1606 1580 public void set FillColor(Color c) {1607 public void setSourceFillColor(Color c) { 1581 1608 _textRepresentation.setFillColor(c); 1582 1609 } 1583 1610 1584 public void set Thickness(float newThickness, boolean setConnected) {1611 public void setSourceThickness(float newThickness, boolean setConnected) { 1585 1612 _textRepresentation.setThickness(newThickness, setConnected); 1586 1613 } 1587 1614 1588 public void set Data(List<String> data) {1615 public void setSourceData(List<String> data) { 1589 1616 _textRepresentation.setData(data); 1590 1617 } 1591 1618 1592 1619 protected Point getOrigin() { 1593 return _d1.getPosition(); 1620 return _d1.getPosition(); // BROOK: This flips around ... the origin can be any point 1594 1621 } 1595 1622
Note:
See TracChangeset
for help on using the changeset viewer.