com.java4less.rreport
Class RLineStyle

java.lang.Object
  |
  +--com.java4less.rreport.RLineStyle

public class RLineStyle
extends java.lang.Object

Defines color, width and style of a line.


Field Summary
static int LINE_DASHED
           
static int LINE_DOTS
           
static int LINE_NORMAL
           
 
Constructor Summary
RLineStyle(float width, java.awt.Color c, int t)
          Creates a line style.
 
Method Summary
 java.awt.Color getColor()
          line color
 int getType()
          returns line style.
 float getWidth()
          line width
 void setColor(java.awt.Color c)
          line color
 void setType(int t)
          sets line style
 void setWidth(float f)
          line width
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_NORMAL

public static final int LINE_NORMAL

LINE_DASHED

public static final int LINE_DASHED

LINE_DOTS

public static final int LINE_DOTS
Constructor Detail

RLineStyle

public RLineStyle(float width,
                  java.awt.Color c,
                  int t)
Creates a line style. The parameters mean:
- Width.
- Color.
- Type: LINE_NORMAL,LINE_DASHED or LINE_DOTS.

Example: new RLineStyle(0.2f,java.awt.Color.black,RLineStyle.LINE_NORMAL);
Method Detail

getType

public int getType()
returns line style.

setType

public void setType(int t)
sets line style

getColor

public java.awt.Color getColor()
line color

setColor

public void setColor(java.awt.Color c)
line color

getWidth

public float getWidth()
line width

setWidth

public void setWidth(float f)
line width