jdbreport.model
Class Border

java.lang.Object
  extended by jdbreport.model.Border
All Implemented Interfaces:
Serializable, Cloneable

public class Border
extends Object
implements Cloneable, Serializable

Version:
2.0 03.05.2011
Author:
Andrey Kholmanskih
See Also:
Serialized Form

Field Summary
static String[] borderPosition
           
static Border defaultBorder
           
static byte LINE_BORDER
           
static byte LINE_BOTTOM
           
static byte LINE_GRID
           
static byte LINE_HMIDDLE
           
static byte LINE_LEFT
           
static byte LINE_MIDDLE
           
static byte LINE_RIGHT
           
static byte LINE_TOP
           
static byte LINE_VMIDDLE
           
static float MAX_WIDTH
           
static int psDash
           
static int psDashDot
           
static int psDashDotDot
           
static int psDot
           
static int psDouble
           
static int psSolid
           
static String[] str_position
           
 
Constructor Summary
Border()
           
Border(Color color)
           
Border(Color color, float width)
           
Border(Color color, float width, int style)
           
 
Method Summary
 Border clone()
           
 boolean equals(Object obj)
           
 Color getColor()
          Returns the border's color
 float getLineWidth()
           
 Stroke getStroke()
           
 int getStyle()
          Returns the border's style
 int getWidth()
          Deprecated. 
 int hashCode()
           
static byte parsePosition(String name)
           
 void setStyle(int style)
          Sets the border's style
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

psSolid

public static final int psSolid
See Also:
Constant Field Values

psDash

public static final int psDash
See Also:
Constant Field Values

psDot

public static final int psDot
See Also:
Constant Field Values

psDashDot

public static final int psDashDot
See Also:
Constant Field Values

psDashDotDot

public static final int psDashDotDot
See Also:
Constant Field Values

psDouble

public static final int psDouble
See Also:
Constant Field Values

LINE_LEFT

public static final byte LINE_LEFT
See Also:
Constant Field Values

LINE_TOP

public static final byte LINE_TOP
See Also:
Constant Field Values

LINE_RIGHT

public static final byte LINE_RIGHT
See Also:
Constant Field Values

LINE_BOTTOM

public static final byte LINE_BOTTOM
See Also:
Constant Field Values

LINE_VMIDDLE

public static final byte LINE_VMIDDLE
See Also:
Constant Field Values

LINE_HMIDDLE

public static final byte LINE_HMIDDLE
See Also:
Constant Field Values

LINE_BORDER

public static final byte LINE_BORDER
See Also:
Constant Field Values

LINE_GRID

public static final byte LINE_GRID
See Also:
Constant Field Values

LINE_MIDDLE

public static final byte LINE_MIDDLE
See Also:
Constant Field Values

borderPosition

public static final String[] borderPosition

str_position

public static final String[] str_position

MAX_WIDTH

public static final float MAX_WIDTH
See Also:
Constant Field Values

defaultBorder

public static Border defaultBorder
Constructor Detail

Border

public Border()

Border

public Border(Color color)

Border

public Border(Color color,
              float width)

Border

public Border(Color color,
              float width,
              int style)
Method Detail

parsePosition

public static byte parsePosition(String name)

getColor

public Color getColor()
Returns the border's color

Returns:
the border's color.

getWidth

@Deprecated
public int getWidth()
Deprecated. 

Returns the border's width in pixels. Deprecated, use getLineWidth

Returns:
the border's width.

getLineWidth

public float getLineWidth()

setStyle

public void setStyle(int style)
Sets the border's style

Parameters:
style - The style to set.

getStyle

public int getStyle()
Returns the border's style

Returns:
the style.

getStroke

public Stroke getStroke()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

clone

public Border clone()
Overrides:
clone in class Object