com.java4less.rreport
Class RLine

java.lang.Object
  |
  +--com.java4less.rreport.RObject
        |
        +--com.java4less.rreport.RLine

public class RLine
extends RObject

Uses the x,y,width,height fields of Robject to draw the line.


Field Summary
 java.awt.Color color
          color of the line
static int HORIZONTAL
          draw a horizontal line.
 int lineDirection
          can be USERDEFINED, HORIZONTAL or VERTICAL.
 RLineStyle Style
          style of the line
static int USERDEFINED
          use provided coordinates.
static int VERTICAL
          draw a vertical line.
 
Fields inherited from class com.java4less.rreport.RObject
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, constant, DHTMLLink, fieldName, height, name, selectable, tooltip, triggerAction, visible, width, x, y
 
Constructor Summary
RLine()
           
 
Method Summary
 void drawLineWithStyle(java.awt.Graphics g, int x1, int y1, int x2, int y2)
          protected
 void importLine(java.lang.String key, java.lang.String val)
          load properties from definition file.
 void print(java.awt.Graphics g, double px, double py, java.lang.Object Value)
          print object at the specified location (in pixels) using the specified value.
 
Methods inherited from class com.java4less.rreport.RObject
canHTML, convertColor, convertDoubleList, convertFont, convertList, convertToCM, convertToPixels, createFile, getActivateAction, getdefaultValue, getruntimeValue, isConstant, isVisible, setActivateAction, setConstant, setdefaultValue, setruntimeValue, setVisible, toHTML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Style

public RLineStyle Style
style of the line

color

public java.awt.Color color
color of the line

lineDirection

public int lineDirection
can be USERDEFINED, HORIZONTAL or VERTICAL.

USERDEFINED

public static int USERDEFINED
use provided coordinates.

HORIZONTAL

public static int HORIZONTAL
draw a horizontal line.

VERTICAL

public static int VERTICAL
draw a vertical line.
Constructor Detail

RLine

public RLine()
Method Detail

drawLineWithStyle

public void drawLineWithStyle(java.awt.Graphics g,
                              int x1,
                              int y1,
                              int x2,
                              int y2)
protected

print

public void print(java.awt.Graphics g,
                  double px,
                  double py,
                  java.lang.Object Value)
Description copied from class: RObject
print object at the specified location (in pixels) using the specified value.
Overrides:
print in class RObject

importLine

public void importLine(java.lang.String key,
                       java.lang.String val)
load properties from definition file. Used by RReportImp.
Overrides:
importLine in class RObject