Changeset 130 for trunk/src/org/expeditee/items/Text.java
- Timestamp:
- 07/10/08 11:01:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Text.java
r126 r130 8 8 import java.awt.Point; 9 9 import java.awt.Polygon; 10 import java.awt.Rectangle; 10 11 import java.awt.Stroke; 11 12 import java.awt.event.KeyEvent; … … 807 808 */ 808 809 public void setFont(Font font) { 810 invalidateAll(); 809 811 // all decoding occurs in the Utils class 810 811 812 _font = font; 812 813 // rejustify(); 813 814 rebuild(false); 815 816 invalidateAll(); 814 817 } 815 818 … … 907 910 } else if (newFace.equals("italic")) { 908 911 setFont(getPaintFont().deriveFont(Font.ITALIC)); 909 } else if (newFace. contains("bold") && newFace.contains("italic")) {912 } else if (newFace.equals("bolditalic") || newFace.equals("italicbold")) { 910 913 setFont(getPaintFont().deriveFont(Font.BOLD + Font.ITALIC)); 911 914 } … … 1415 1418 paintLink(g); 1416 1419 } 1420 1421 @Override 1422 protected Rectangle getLinkDrawArea() { // TODO: Revise 1423 return getDrawingArea()[0]; 1424 } 1417 1425 1418 1426 /** … … 1465 1473 @Override 1466 1474 public void setSize(float size) { 1475 invalidateAll(); 1467 1476 // Dont want to have size set when duplicating a point which has size 0 1468 1477 if (size < 0) … … 1472 1481 size = MINIMUM_FONT_SIZE; 1473 1482 setFont(getPaintFont().deriveFont(size)); 1483 invalidateAll(); 1474 1484 } 1475 1485 … … 1737 1747 } 1738 1748 1739 @Override1740 public void setLink(String frame) {1741 // If a link is being removed or set then need to reset poly so the1742 // highlighting is drawn with the correct width1743 if (frame == null || getLink() == null)1744 _poly = null;1745 super.setLink(frame);1746 }1747 1748 1749 public static boolean isBulletChar(char c) { 1749 1750 for(int i = 0; i < BULLETS.length; i++){
Note:
See TracChangeset
for help on using the changeset viewer.