|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jimm.datavision.field.BorderEdge
public class BorderEdge
A border edge represents one of the four edges of a Border.
It has its own line style, thickness, and number of lines.
Note: line thickness is currently ignored.
| Field Summary | |
|---|---|
static int |
DEFAULT_NUMBER
|
static int |
DEFAULT_STYLE
|
static double |
DEFAULT_THICKNESS
|
protected int |
number
|
protected int |
style
|
static int |
STYLE_DASH
Draw dashed lines. |
static int |
STYLE_DOT
Draw dotted lines. |
static int |
STYLE_LINE
Draw simple lines. |
protected double |
thickness
|
| Constructor Summary | |
|---|---|
BorderEdge()
Creates a new edge with DEFAULT_NUMBER lines of
DEFAULT_STYLE and DEFAULT_THICKNESS. |
|
BorderEdge(int style)
Creates a new edge with DEFAULT_NUMBER lines of
the specified style and DEFAULT_THICKNESS. |
|
BorderEdge(int style,
double thickness)
Creates a new edge with DEFAULT_NUMBER lines of
the specified style and thickness. |
|
BorderEdge(int style,
double thickness,
int number)
Creates a new edge with number lines of the specified style and thickness. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this border. |
boolean |
equals(java.lang.Object obj)
|
int |
getNumber()
Returns the number of lines to draw along this border edge. |
int |
getStyle()
Returns the edge's style. |
double |
getThickness()
Returns the edge's thickness. |
int |
hashCode()
|
void |
setNumber(int newNumber)
Sets the number of lines to draw along this border edge. |
void |
setStyle(int newStyle)
Sets the edge's style. |
void |
setThickness(double newThickness)
Sets the edge's thickness. |
static int |
styleFromString(java.lang.String styleStr)
Returns the integer style constant associated with the specified string. |
java.lang.String |
toString()
|
void |
writeXML(XMLWriter out,
java.lang.String location)
Writes this edge as an XML tag. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STYLE_LINE
public static final int STYLE_DASH
public static final int STYLE_DOT
public static final int DEFAULT_STYLE
public static final int DEFAULT_NUMBER
public static final double DEFAULT_THICKNESS
protected int style
protected double thickness
protected int number
| Constructor Detail |
|---|
public BorderEdge()
DEFAULT_NUMBER lines of
DEFAULT_STYLE and DEFAULT_THICKNESS.
public BorderEdge(int style)
DEFAULT_NUMBER lines of
the specified style and DEFAULT_THICKNESS.
style - one of the STYLE_ constants
public BorderEdge(int style,
double thickness)
DEFAULT_NUMBER lines of
the specified style and thickness.
style - one of the STYLE_ constantsthickness - line thickness
public BorderEdge(int style,
double thickness,
int number)
style - one of the STYLE_ constantsthickness - line thicknessnumber - the number of liens to draw| Method Detail |
|---|
public static int styleFromString(java.lang.String styleStr)
null, "none", "line", "dash", or "dot"
and comes from the XML files that describe reports. If the string is
null, then we return the default value of STYLE_LINE;
styleStr - one of null, "none", "line", "dash", or "dot"
STYLE_* constants; STYLE_LINE
is returned if styleStr is nullpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getStyle()
STYLE_ constantspublic void setStyle(int newStyle)
newStyle - one of the STYLE_ constantspublic double getThickness()
public void setThickness(double newThickness)
newThickness - line thicknesspublic int getNumber()
public void setNumber(int newNumber)
newNumber - the number of lines to draw
public void writeXML(XMLWriter out,
java.lang.String location)
out - a writer that knows how to write XMLlocation - from the border; the string "top", "bottom", "left", or
"right"public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||