|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jimm.datavision.field.Border
public class Border
A border is a visual decoration around a report field. Each of its four
edges (top, left, bottom, and right) is a BorderEdge and may be
null.
| Field Summary | |
|---|---|
protected static int |
BORDER_LINE_SPACE_MULT
|
protected BorderEdge |
bottom
|
protected java.awt.Color |
color
|
protected static java.awt.Color |
DEFAULT_COLOR
|
protected Field |
field
|
protected BorderEdge |
left
|
protected BorderEdge |
right
|
protected BorderEdge |
top
|
| Constructor Summary | |
|---|---|
Border(Field field)
Constructs a new border for the specified field. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this border. |
void |
eachLine(LineDrawer ld,
java.lang.Object arg)
For each edge, hand the lines that make up that edge to the specified line drawer's drawLine method. |
boolean |
equals(java.lang.Object obj)
For testing only. |
protected void |
finalize()
|
BorderEdge |
getBottom()
Returns the border's bottom edge. |
java.awt.Color |
getColor()
Retrieves the border color. |
BorderEdge |
getLeft()
Returns the border's left edge. |
BorderEdge |
getRight()
Returns the border's right edge. |
BorderEdge |
getTop()
Returns the border's top edge. |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if this border's edges are all
null or have zero count or width. |
protected boolean |
isEmptyEdge(BorderEdge edge)
Returns true if edge is null or has
zero count or width. |
void |
setBottom(BorderEdge newBottom)
Sets the bottom edge. |
void |
setColor(java.awt.Color c)
Sets the border color. |
void |
setField(Field f)
Used only when cloning a field, this sets our field. |
void |
setLeft(BorderEdge newLeft)
Sets the left edge. |
void |
setRight(BorderEdge newRight)
Sets the right edge. |
void |
setTop(BorderEdge newTop)
Sets the top edge. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
void |
writeXML(XMLWriter out)
Writes this border 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 |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int BORDER_LINE_SPACE_MULT
protected static final java.awt.Color DEFAULT_COLOR
protected Field field
protected BorderEdge top
protected BorderEdge left
protected BorderEdge bottom
protected BorderEdge right
protected java.awt.Color color
| Constructor Detail |
|---|
public Border(Field field)
field - a report field| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectReportTest.testCloning()public int hashCode()
hashCode in class java.lang.Objectpublic void setField(Field f)
f - the new field
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerpublic BorderEdge getTop()
null.
public void setTop(BorderEdge newTop)
null.
newTop - the new edgepublic BorderEdge getLeft()
null.
public void setLeft(BorderEdge newLeft)
null.
newLeft - the new edgepublic BorderEdge getBottom()
null.
public void setBottom(BorderEdge newBottom)
null.
newBottom - the new edgepublic BorderEdge getRight()
null.
public void setRight(BorderEdge newRight)
null.
newRight - the new edgepublic java.awt.Color getColor()
public void setColor(java.awt.Color c)
c - the new color
public void eachLine(LineDrawer ld,
java.lang.Object arg)
drawLine method.
ld - a line drawerpublic boolean isEmpty()
true if this border's edges are all
null or have zero count or width.
true if this border's edges are all
null or have zero count or widthprotected boolean isEmptyEdge(BorderEdge edge)
true if edge is null or has
zero count or width.
true if edge is null or has
zero count or widthpublic void writeXML(XMLWriter out)
isEmpty() returns true, returns without writing
anything.
writeXML in interface Writeableout - a writer that knows how to write XML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||