multivalent
public class CLGeneral extends Object implements ContextListener
Used frequently by style sheets, same as CLGeneral except priority set to structural priority and box-only attributes such as margin and padding. INode responsible for slipping into/out of Context base__ as enter/exit.
CLGeneral should inherit from CLGeneral because it adds structural attributes: margin, border, padding, .... But CLGeneral should inherit from CLGeneral because it doesn't want the Span fields and methods.
Different style sheets should subclass multivalent.StyleSheet, and their generic ContextListeners should subclass this class, in both cases so that other behaviors can in various situations get an object of type StyleSheet or type CLGeneral and make hay.
Version: $Revision: 1.5 $ $Date: 2003/06/02 04:58:39 $
Field Summary | |
---|---|
Color | background_ |
int | borderbottom |
int | borderleft |
int | borderright |
int | bordertop |
float[] | dasharray_ |
float | dashphase_ |
String | display_ |
byte | elide_ |
String | family_ |
Color | foreground_ |
int | justify_ |
int | linecap_ |
int | linejoin_ |
float | linewidth_ |
int | marginbottom |
int | marginleft |
int | marginright |
int | margintop |
float | miterlimit_ |
Color | overline_ |
Color | overstrike_ |
int | paddingbottom |
int | paddingleft |
int | paddingright |
int | paddingtop |
protected int | priority_ |
Map<Object,Object> | signal_ |
float | size_ |
int | spaceabove_ |
int | spacebelow_ |
Color | strokeColor_ |
int | style_ |
String | texttransform_ |
Color | underline_ |
Color | underline2_ |
int | xdelta_ |
Color | xor_ |
int | ydelta_ |
double | zoom_ |
Constructor Summary | |
---|---|
CLGeneral() | |
CLGeneral(int priority) |
Method Summary | |
---|---|
boolean | appearance(Context cx, boolean all) All attributes or just inherited ones? |
void | copyInto(CLGeneral dest) All attributes or just inherited ones? |
boolean | equals(Object o)
Are all attributes equal to those of another CLGeneral?
|
byte | getAlign() |
Color | getBackground() |
String | getDisplay() |
byte | getElide() |
String | getFamily() |
byte | getFloats() |
Color | getForeground() |
int | getJustify() |
Color | getOverline() |
Color | getOverstrike() |
int | getPriority() |
float | getSize() |
int | getSpaceAbove() |
int | getSpaceBelow() |
Color | getstroke() |
int | getStyle() |
String | getTextTransform() |
Color | getUnderline() |
Color | getUnderline2() |
byte | getVAlign() |
int | getXdelta() |
Color | getXor() |
int | getYdelta() |
int | hashCode() |
void | invalidate() |
void | setAlign(byte align) |
void | setBackground(Color background) |
void | setBorder(int border) |
void | setBorder(Insets borders) |
void | setBorder(int top, int left, int bottom, int right) |
void | setDisplay(String display) |
void | setElide(byte elide) |
void | setFamily(String family) |
void | setFloats(byte floats) |
void | setFont(Font font) Convenience method for setFamily, setStyle, and setSize. |
void | setForeground(Color foreground) |
void | setJustify(int justify) |
void | setMargins(int margin) |
void | setMargins(Insets margins) |
void | setMargins(int top, int left, int bottom, int right) |
void | setOverline(Color overline) |
void | setOverstrike(Color overstrike) |
void | setPadding(int padding) |
void | setPadding(Insets padding) |
void | setPadding(int top, int left, int bottom, int right) |
void | setPriority(int priority) |
void | setSignal(Object name, Object value) |
void | setSize(float size) |
void | setSpaceAbove(int spaceabove) |
void | setSpaceBelow(int spacebelow) |
void | setStroke(Color stroke) |
void | setStyle(int style) |
void | setTextTransform(String transform) |
void | setUnderline(Color underline) |
void | setUnderline2(Color underline2) |
void | setVAlign(byte valign) |
void | setXdelta(int xdelta) |
void | setXor(Color xor) |
void | setYdelta(int ydelta) |
String | toString() |