Skip to content
Browse files

changed a couple method names to be more descriptive

  • Loading branch information...
1 parent 4875646 commit 15dda8f9f2eae08c419194aeed382c5fe1b2454a @capnmidnight committed Nov 25, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/com/wedusc/ui/EasyEditorPane.java
View
11 src/com/wedusc/ui/EasyEditorPane.java
@@ -4,7 +4,6 @@
*/
package com.wedusc.ui;
-import java.awt.event.KeyEvent;
import javax.swing.text.html.HTMLDocument;
/**
@@ -13,23 +12,23 @@
*/
public class EasyEditorPane extends javax.swing.JEditorPane {
- public boolean embolden() {
+ public boolean toggleBoldAtSelection() {
return simpleEdit("b", "");
}
- public boolean italicize() {
+ public boolean toggleItalicAtSelection() {
return simpleEdit("i", "");
}
- public boolean underline() {
+ public boolean toggleUnderlineAtSelection() {
return simpleEdit("u", "");
}
- public boolean centerText() {
+ public boolean toggleCenterAtSelection() {
return simpleEdit("center", "");
}
- public boolean setFontAttributes(String color, String face, int size) {
+ public boolean toggleFontAttributesAtSelection(String color, String face, int size) {
return simpleEdit("font", String.format(" color=\"%s\" face=\"%s\" size=\"%d\"", color, face, size));
}

0 comments on commit 15dda8f

Please sign in to comment.
Something went wrong with that request. Please try again.