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

Variable Index

 o alignStrings
 o CHAR_WRAP
 o TRUNCATE
 o WORD_WRAP
 o wrapNames
 o wrapStrings

Constructor Index

 o Style()

Method Index

 o clone()
 o equals(Object)
 o fromStream(int, InputStream)
Inputs all the parameters of this style from a stream.
 o getAlign()
 o getWrap()
 o hashCode()
 o setAlign(int)
 o setColor(Color)
 o setFont(Font)
 o setFontFamily(FontFamily)
 o setWrap(int)
 o toString()
 o toString(Style)
Outputs all the parameters of this style where they are different from the styles in the other style.

Variables

 o CHAR_WRAP
  public final static byte CHAR_WRAP
 o TRUNCATE
  public final static byte TRUNCATE
 o WORD_WRAP
  public final static byte WORD_WRAP
 o wrapNames
  public final static char wrapNames[]
 o wrapStrings
  public final static String wrapStrings[]
 o alignStrings
  public final static String alignStrings[]

Constructors

 o Style
  public Style()

Methods

 o toString
  public String toString()
Overrides:
toString in class Object
 o hashCode
  public int hashCode()
Overrides:
hashCode in class Object
 o 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.
 o 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.
 o equals
  public boolean equals(Object other)
Overrides:
equals in class Object
 o getAlign
  public int getAlign()
 o getWrap
  public int getWrap()
 o setAlign
  public void setAlign(int align)
 o setWrap
  public void setWrap(int wrap)
 o setFont
  public void setFont(Font f)
 o setFontFamily
  public void setFontFamily(FontFamily f)
 o setColor
  public void setColor(Color color)
 o clone
  public Object clone()
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index