| java.lang.Object java.util.Observable jimm.datavision.field.BorderEdge
BorderEdge | public class BorderEdge extends Observable implements Cloneable(Code) | | 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.
author: Jim Menard, jimm@io.com |
Constructor Summary | |
public | BorderEdge() Creates a new edge with DEFAULT_NUMBER lines of
DEFAULT_STYLE and DEFAULT_THICKNESS . | public | BorderEdge(int style) Creates a new edge with DEFAULT_NUMBER lines of
the specified style and DEFAULT_THICKNESS . | public | BorderEdge(int style, double thickness) Creates a new edge with DEFAULT_NUMBER lines of
the specified style and thickness. | public | BorderEdge(int style, double thickness, int number) Creates a new edge with number lines of the specified style
and thickness. |
Method Summary | |
public Object | clone() Returns a clone of this border. | public boolean | equals(Object obj) | public int | getNumber() Returns the number of lines to draw along this border edge. | public int | getStyle() Returns the edge's style. | public double | getThickness() Returns the edge's thickness. | public int | hashCode() | public void | setNumber(int newNumber) Sets the number of lines to draw along this border edge. | public void | setStyle(int newStyle) Sets the edge's style. | public void | setThickness(double newThickness) Sets the edge's thickness. | public static int | styleFromString(String styleStr) Returns the integer style constant associated with the specified string.
The string must be null , "none", "line", "dash", or "dot"
and comes from the XML files that describe reports. | public String | toString() | public void | writeXML(XMLWriter out, String location) Writes this edge as an XML tag. |
DEFAULT_NUMBER | final public static int DEFAULT_NUMBER(Code) | | |
DEFAULT_STYLE | final public static int DEFAULT_STYLE(Code) | | |
DEFAULT_THICKNESS | final public static double DEFAULT_THICKNESS(Code) | | |
STYLE_DASH | final public static int STYLE_DASH(Code) | | Draw dashed lines.
|
STYLE_DOT | final public static int STYLE_DOT(Code) | | Draw dotted lines.
|
STYLE_LINE | final public static int STYLE_LINE(Code) | | Draw simple lines. This is the default style.
|
number | protected int number(Code) | | |
style | protected int style(Code) | | |
thickness | protected double thickness(Code) | | |
BorderEdge | public BorderEdge()(Code) | | Creates a new edge with DEFAULT_NUMBER lines of
DEFAULT_STYLE and DEFAULT_THICKNESS .
|
BorderEdge | public BorderEdge(int style)(Code) | | Creates a new edge with DEFAULT_NUMBER lines of
the specified style and DEFAULT_THICKNESS .
Parameters: style - one of the STYLE_ constants |
BorderEdge | public BorderEdge(int style, double thickness)(Code) | | Creates a new edge with DEFAULT_NUMBER lines of
the specified style and thickness.
Parameters: style - one of the STYLE_ constants Parameters: thickness - line thickness |
BorderEdge | public BorderEdge(int style, double thickness, int number)(Code) | | Creates a new edge with number lines of the specified style
and thickness.
Parameters: style - one of the STYLE_ constants Parameters: thickness - line thickness Parameters: number - the number of liens to draw |
clone | public Object clone()(Code) | | Returns a clone of this border. All edges are cloned as well.
|
getNumber | public int getNumber()(Code) | | Returns the number of lines to draw along this border edge.
the number of lines to draw along this border edge |
getStyle | public int getStyle()(Code) | | Returns the edge's style.
one of the STYLE_ constants |
getThickness | public double getThickness()(Code) | | Returns the edge's thickness.
the thickness |
hashCode | public int hashCode()(Code) | | |
setNumber | public void setNumber(int newNumber)(Code) | | Sets the number of lines to draw along this border edge.
Parameters: newNumber - the number of lines to draw |
setStyle | public void setStyle(int newStyle)(Code) | | Sets the edge's style.
Parameters: newStyle - one of the STYLE_ constants |
setThickness | public void setThickness(double newThickness)(Code) | | Sets the edge's thickness.
Parameters: newThickness - line thickness |
styleFromString | public static int styleFromString(String styleStr)(Code) | | Returns the integer style constant associated with the specified string.
The string must be 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;
Parameters: styleStr - one of null , "none", "line", "dash", or "dot" one of the STYLE_* constants; STYLE_LINE is returned if styleStr is null |
writeXML | public void writeXML(XMLWriter out, String location)(Code) | | Writes this edge as an XML tag.
Parameters: out - a writer that knows how to write XML Parameters: location - from the border; the string "top", "bottom", "left", or"right" |
|
|