forked from NearInfinityBrowser/JHexView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
JCaret
to Caret
, because J
prefix is reserved for standa…
…rd Swing classes
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* | ||
* @author Sebastian Porst ([email protected]) | ||
*/ | ||
public class JCaret | ||
public class Caret | ||
{ | ||
//<editor-fold defaultstate="collapsed" desc="Fields"> | ||
/** | ||
|
@@ -69,7 +69,7 @@ public class JCaret | |
* Creates a new caret with a default blink period of 500ms and the default | ||
* caret color red. | ||
*/ | ||
public JCaret() | ||
public Caret() | ||
{ | ||
this(DEFAULT_BLINK_TIME, DEFAULT_CARET_COLOR); | ||
} | ||
|
@@ -83,7 +83,7 @@ public JCaret() | |
* @throws NullPointerException | ||
* Thrown if the color is null. | ||
*/ | ||
public JCaret(final Color caretColor) | ||
public Caret(final Color caretColor) | ||
{ | ||
this(DEFAULT_BLINK_TIME, caretColor); | ||
} | ||
|
@@ -98,7 +98,7 @@ public JCaret(final Color caretColor) | |
* @throws IllegalArgumentException | ||
* Thrown if the blink period is negative. | ||
*/ | ||
public JCaret(final int blinkPeriod) | ||
public Caret(final int blinkPeriod) | ||
{ | ||
this(blinkPeriod, DEFAULT_CARET_COLOR); | ||
} | ||
|
@@ -116,7 +116,7 @@ public JCaret(final int blinkPeriod) | |
* @throws NullPointerException | ||
* Thrown if the color is null. | ||
*/ | ||
public JCaret(final int blinkPeriod, final Color caretColor) | ||
public Caret(final int blinkPeriod, final Color caretColor) | ||
{ | ||
if (blinkPeriod < 0) { | ||
throw new IllegalArgumentException("Error: Blink period can't be negative"); | ||
|
@@ -161,7 +161,7 @@ public void setPosition(long position) { | |
private void notifyListeners() | ||
{ | ||
for (final ICaretListener listener : m_listeners) { | ||
listener.caretStatusChanged(JCaret.this); | ||
listener.caretStatusChanged(Caret.this); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters