Class marimba.text.Style
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.text.Style
java.lang.Object
|
+----marimba.text.Style
- public class Style
- extends Object
- implements Cloneable, WidgetConstants
A representation of a style. To save on the number of classes, a
style is really a reference to a style, i.e., it has a position in
the buffer that the style occurs at.
- Version:
- 1.12, 12/05/96
- Author:
- Jonathan Payne
-
alignStrings
-
-
CHAR_WRAP
-
-
TRUNCATE
-
-
WORD_WRAP
-
-
wrapNames
-
-
wrapStrings
-
-
Style()
-
-
clone()
-
-
equals(Object)
-
-
fromStream(int, InputStream)
- Inputs all the parameters of this style from a stream.
-
getAlign()
-
-
getWrap()
-
-
hashCode()
-
-
setAlign(int)
-
-
setColor(Color)
-
-
setFont(Font)
-
-
setFontFamily(FontFamily)
-
-
setWrap(int)
-
-
toString()
-
-
toString(Style)
- Outputs all the parameters of this style where they are
different from the styles in the other style.
CHAR_WRAP
public final static byte CHAR_WRAP
TRUNCATE
public final static byte TRUNCATE
WORD_WRAP
public final static byte WORD_WRAP
wrapNames
public final static char wrapNames[]
wrapStrings
public final static String wrapStrings[]
alignStrings
public final static String alignStrings[]
Style
public Style()
toString
public String toString()
- Overrides:
- toString in class Object
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
toString
public String toString(Style other)
- Outputs all the parameters of this style where they are
different from the styles in the other style. If other is
null, outputs all the parameters.
fromStream
public Style fromStream(int c,
InputStream in) throws IOException
- Inputs all the parameters of this style from a stream. C is
the first character read, and the rest can be found from the
stream.
equals
public boolean equals(Object other)
- Overrides:
- equals in class Object
getAlign
public int getAlign()
getWrap
public int getWrap()
setAlign
public void setAlign(int align)
setWrap
public void setWrap(int wrap)
setFont
public void setFont(Font f)
setFontFamily
public void setFontFamily(FontFamily f)
setColor
public void setColor(Color color)
clone
public Object clone()
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index