|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.swing.styledtext.StyleRun
public class StyleRun
A style run.
This lightweight class records style information for a run of characters in a string.
Field Summary | |
---|---|
static int |
ALIGNMENT
Alignment style. |
static int |
ALIGNMENT_CENTER
Center alignment. |
static int |
ALIGNMENT_JUSTIFIED
Fully justified alignment. |
static int |
ALIGNMENT_LEFT
Left alignment. |
static int |
ALIGNMENT_RIGHT
Right alignment. |
static int |
BOLD
Bold style. |
static int |
COLOR
Color style. |
static int |
COLOR_BLACK
Black. |
static int |
COLOR_BLUE
Blue. |
static int |
COLOR_GREEN
Green. |
static int |
COLOR_RED
Red. |
static int |
EMOTICON
Emoticon "style". |
static int |
EMOTICON_ALERT
Alert emoticon. |
static int |
EMOTICON_ANGRY
Angry emoticon. |
static int |
EMOTICON_ATTENTION
Attention emoticon. |
static int |
EMOTICON_BIGGRIN
Big grin emoticon. |
static int |
EMOTICON_DEVIL
Devil emoticon. |
static int |
EMOTICON_IDEA
Idea emoticon. |
static int |
EMOTICON_SAD
Sad emoticon. |
static int |
EMOTICON_SICK
Sick emoticon. |
static int |
EMOTICON_SMILE
Smile emoticon. |
static int |
EMOTICON_TIRED
Tired emoticon. |
static int |
EMOTICON_TONGUE
Tongue emoticon. |
int |
end
The ending offset in the string of this run. |
static int |
FAMILY
Font family style. |
static int |
FAMILY_MONOSPACED
Monospaced font family. |
static int |
FAMILY_SANS_SERIF
Sans-serif font family. |
static int |
FAMILY_SERIF
Serif font family. |
static int |
ITALIC
Italic style. |
int |
kind
The kind of style. |
int |
param
The style parameter, if any. |
static int |
SIZE
Font size style. |
static int |
SIZE_BIG
Big font size. |
static int |
SIZE_BIGGER
Bigger font size. |
static int |
SIZE_BIGGEST
Biggest font size. |
static int |
SIZE_NORMAL
Normal font size. |
static int |
SIZE_SMALL
Small font size. |
static int |
SIZE_SMALLER
Smaller font size. |
static int |
SIZE_SMALLEST
Smallest font size. |
static int |
STARICON
Star icon "style". |
static int |
STARICON_FIVE
|
static int |
STARICON_FOUR
|
static int |
STARICON_FOUR_AND_A_HALF
|
static int |
STARICON_HALF
|
static int |
STARICON_ONE
|
static int |
STARICON_ONE_AND_A_HALF
|
static int |
STARICON_THREE
|
static int |
STARICON_THREE_AND_A_HALF
|
static int |
STARICON_TWO
|
static int |
STARICON_TWO_AND_A_HALF
|
static int |
STARICON_ZERO
Star icons for no stars to five stars. |
int |
start
The starting offset in the string of this run. |
static int |
STRIKETHROUGH
Strikethrough style. |
static int |
SUBSCRIPT
Subscript style. |
static int |
SUPERSCRIPT
Superscript style. |
static int |
UNDERLINE
Underline style. |
Constructor Summary | |
---|---|
StyleRun(int start,
int end,
int kind)
Constructs a new StyleRun object with param = 0. |
|
StyleRun(int start,
int end,
int kind,
int param)
Constructs a new StyleRun object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a copy of the style run. |
boolean |
equals(java.lang.Object obj)
Compares this style run to some other style run. |
java.lang.String |
toString()
Returns a string representation of the style run. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BOLD
public static final int ITALIC
public static final int UNDERLINE
public static final int STRIKETHROUGH
public static final int ALIGNMENT
public static final int ALIGNMENT_LEFT
public static final int ALIGNMENT_CENTER
public static final int ALIGNMENT_RIGHT
public static final int ALIGNMENT_JUSTIFIED
public static final int FAMILY
public static final int FAMILY_SERIF
public static final int FAMILY_SANS_SERIF
public static final int FAMILY_MONOSPACED
public static final int SIZE
public static final int SIZE_SMALLEST
public static final int SIZE_SMALLER
public static final int SIZE_SMALL
public static final int SIZE_NORMAL
public static final int SIZE_BIG
public static final int SIZE_BIGGER
public static final int SIZE_BIGGEST
public static final int COLOR
public static final int COLOR_RED
public static final int COLOR_BLUE
public static final int COLOR_GREEN
public static final int COLOR_BLACK
public static final int EMOTICON
public static final int EMOTICON_SMILE
public static final int EMOTICON_SAD
public static final int EMOTICON_ANGRY
public static final int EMOTICON_SICK
public static final int EMOTICON_TIRED
public static final int EMOTICON_DEVIL
public static final int EMOTICON_BIGGRIN
public static final int EMOTICON_TONGUE
public static final int EMOTICON_ATTENTION
public static final int EMOTICON_ALERT
public static final int EMOTICON_IDEA
public static final int STARICON
public static final int STARICON_ZERO
public static final int STARICON_HALF
public static final int STARICON_ONE
public static final int STARICON_ONE_AND_A_HALF
public static final int STARICON_TWO
public static final int STARICON_TWO_AND_A_HALF
public static final int STARICON_THREE
public static final int STARICON_THREE_AND_A_HALF
public static final int STARICON_FOUR
public static final int STARICON_FOUR_AND_A_HALF
public static final int STARICON_FIVE
public static final int SUBSCRIPT
public static final int SUPERSCRIPT
public int start
public int end
public int kind
public int param
Constructor Detail |
---|
public StyleRun(int start, int end, int kind, int param)
start
- The starting offset in the string of the run.end
- The ending offset in the string of the run.kind
- The kind of style.param
- The style parameter. public StyleRun(int start, int end, int kind)
start
- The starting offset in the string of the run.end
- The ending offset in the string of the run.kind
- The kind of style. Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other style run.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |