sub_arctic.text
Class style
java.lang.Object
|
+--sub_arctic.text.style
- public class style
- extends java.lang.Object
This is the class that represents the style information about
a given hunk of text.
Field Summary |
protected java.awt.Color |
_color
The color of this style |
protected java.awt.Font |
_font
The font this style is using. |
protected java.lang.String |
_name
|
Constructor Summary |
style(java.awt.Font f,
java.awt.Color c)
Create a new style object. |
style(java.lang.String name,
java.awt.Font f,
java.awt.Color c)
Create a new style object. |
Method Summary |
java.awt.Color |
color()
Retrieve the color of this style |
boolean |
equals(style s)
Are they the same style? |
java.awt.Font |
font()
Retrieve the font of this style |
java.lang.String |
name()
|
void |
set_color(java.awt.Color c)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_name
protected java.lang.String _name
_font
protected java.awt.Font _font
- The font this style is using.
_color
protected java.awt.Color _color
- The color of this style
style
public style(java.awt.Font f,
java.awt.Color c)
- Create a new style object.
style
public style(java.lang.String name,
java.awt.Font f,
java.awt.Color c)
- Create a new style object.
name
public java.lang.String name()
font
public java.awt.Font font()
- Retrieve the font of this style
- Returns:
- font the font of this style
color
public java.awt.Color color()
- Retrieve the color of this style
- Returns:
- Color the color of this style
set_color
public void set_color(java.awt.Color c)
equals
public boolean equals(style s)
- Are they the same style?