fi.hut.tml.xsmiles.csslayout
Class CSSBorder

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.CSSBorder

public class CSSBorder
extends java.lang.Object

Author:
Alessandro

Field Summary
protected  java.awt.Color border_bottom_color
           
protected  java.lang.String border_bottom_style
           
protected  int border_bottom_width
           
protected  java.awt.Color border_left_color
           
protected  java.lang.String border_left_style
           
protected  int border_left_width
           
protected  java.awt.Color border_right_color
           
protected  java.lang.String border_right_style
           
protected  int border_right_width
           
protected  java.awt.Color border_top_color
           
protected  java.lang.String border_top_style
           
protected  int border_top_width
           
protected  java.awt.Color borderColor
           
static short BOTTOM
           
static short LEFT
           
static short RIGHT
           
protected  int thickness
           
static short TOP
           
 
Constructor Summary
CSSBorder()
          Creates a new instance of Border
CSSBorder(java.awt.Color color)
           
CSSBorder(java.awt.Color color, int thick)
           
CSSBorder(org.w3c.dom.css.CSSStyleDeclaration style)
           
CSSBorder(int thick)
           
 
Method Summary
 int getBorderWidth(short border)
           
 void paintBorder(java.awt.Graphics g, int x, int y, int width, int height)
           
 void paintBorderSideCombi(int side, java.lang.String bs, java.awt.Graphics g, int[] OutXAxis, int[] OutYAxis, int[] InXAxis, int[] InYAxis)
           
 void paintBorderSideInset(int side, java.lang.String bs, java.awt.Graphics g, int[] XAxis, int[] YAxis)
           
 void paintBorderSideOutset(int side, java.lang.String bs, java.awt.Graphics g, int[] XAxis, int[] YAxis)
           
 void paintBorderSolidSide(int side, java.lang.String bs, java.awt.Graphics g, int[] XAxis, int[] YAxis)
           
 void paintBorderStyle(int side, java.lang.String bs, java.awt.Graphics g, int[] XAxis, int[] YAxis)
           
 void setColor(java.awt.Color color)
           
 void setCSSBorderColor(XSmilesCSSStyleDeclarationImpl attributes)
           
 void setCSSBorderStyle(XSmilesCSSStyleDeclarationImpl attributes)
           
 void setCSSBorderWidth(XSmilesCSSStyleDeclarationImpl attributes)
           
 void setThickness(int thick)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP

public static final short TOP
See Also:
Constant Field Values

RIGHT

public static final short RIGHT
See Also:
Constant Field Values

LEFT

public static final short LEFT
See Also:
Constant Field Values

BOTTOM

public static final short BOTTOM
See Also:
Constant Field Values

border_top_style

protected java.lang.String border_top_style

border_right_style

protected java.lang.String border_right_style

border_left_style

protected java.lang.String border_left_style

border_bottom_style

protected java.lang.String border_bottom_style

border_top_width

protected int border_top_width

border_right_width

protected int border_right_width

border_left_width

protected int border_left_width

border_bottom_width

protected int border_bottom_width

border_top_color

protected java.awt.Color border_top_color

border_right_color

protected java.awt.Color border_right_color

border_left_color

protected java.awt.Color border_left_color

border_bottom_color

protected java.awt.Color border_bottom_color

thickness

protected int thickness

borderColor

protected java.awt.Color borderColor
Constructor Detail

CSSBorder

public CSSBorder()
Creates a new instance of Border


CSSBorder

public CSSBorder(org.w3c.dom.css.CSSStyleDeclaration style)

CSSBorder

public CSSBorder(java.awt.Color color)

CSSBorder

public CSSBorder(int thick)

CSSBorder

public CSSBorder(java.awt.Color color,
                 int thick)
Method Detail

getBorderWidth

public int getBorderWidth(short border)

paintBorder

public void paintBorder(java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)

paintBorderStyle

public void paintBorderStyle(int side,
                             java.lang.String bs,
                             java.awt.Graphics g,
                             int[] XAxis,
                             int[] YAxis)

paintBorderSolidSide

public void paintBorderSolidSide(int side,
                                 java.lang.String bs,
                                 java.awt.Graphics g,
                                 int[] XAxis,
                                 int[] YAxis)

paintBorderSideInset

public void paintBorderSideInset(int side,
                                 java.lang.String bs,
                                 java.awt.Graphics g,
                                 int[] XAxis,
                                 int[] YAxis)

paintBorderSideOutset

public void paintBorderSideOutset(int side,
                                  java.lang.String bs,
                                  java.awt.Graphics g,
                                  int[] XAxis,
                                  int[] YAxis)

paintBorderSideCombi

public void paintBorderSideCombi(int side,
                                 java.lang.String bs,
                                 java.awt.Graphics g,
                                 int[] OutXAxis,
                                 int[] OutYAxis,
                                 int[] InXAxis,
                                 int[] InYAxis)

setThickness

public void setThickness(int thick)

setColor

public void setColor(java.awt.Color color)

setCSSBorderStyle

public void setCSSBorderStyle(XSmilesCSSStyleDeclarationImpl attributes)

setCSSBorderWidth

public void setCSSBorderWidth(XSmilesCSSStyleDeclarationImpl attributes)

setCSSBorderColor

public void setCSSBorderColor(XSmilesCSSStyleDeclarationImpl attributes)


X-Smiles 1.2