Skip navigation links


com.essbase.eas.utils.print
Class RAFObjectPainter

java.lang.Object
  extended by com.essbase.eas.utils.print.RAFObjectPainter

All Implemented Interfaces:
PrintableObject

public class RAFObjectPainter
extends java.lang.Object
implements PrintableObject

A Table painter object

Since:
6.5.1
Version:
7.1.0
Author:
Sree Menon

Field Summary
static short COLOR
           
protected  CRandomAccessFile file
           
static short FONT
           
protected  int height
           
protected  long offset
           
static short TEXT
           
protected  int width
           

 

Constructor Summary
RAFObjectPainter(CRandomAccessFile file, java.lang.Object[] objects)
           

 

Method Summary
 void dispose()
           
 int drawObject(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int posX, int posY, int height)
          Draws the object at the x and y.
 int getHeight(java.awt.print.PageFormat pageFormat, java.awt.Font font)
          Returns the height of the object with the font
 int getWidth(java.awt.print.PageFormat pageFormat, java.awt.Font font)
          Returns the width of the object using the font

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

FONT

public static final short FONT
See Also:
Constant Field Values

COLOR

public static final short COLOR
See Also:
Constant Field Values

TEXT

public static final short TEXT
See Also:
Constant Field Values

file

protected CRandomAccessFile file

offset

protected long offset

height

protected int height

width

protected int width

Constructor Detail

RAFObjectPainter

public RAFObjectPainter(CRandomAccessFile file,
                        java.lang.Object[] objects)
                 throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getHeight

public int getHeight(java.awt.print.PageFormat pageFormat,
                     java.awt.Font font)
Description copied from interface: PrintableObject
Returns the height of the object with the font
Specified by:
getHeight in interface PrintableObject
font - font
Returns:
the height

getWidth

public int getWidth(java.awt.print.PageFormat pageFormat,
                    java.awt.Font font)
Description copied from interface: PrintableObject
Returns the width of the object using the font
Specified by:
getWidth in interface PrintableObject
font - font
Returns:
the width

drawObject

public int drawObject(java.awt.Graphics graphics,
                      java.awt.print.PageFormat pageFormat,
                      int posX,
                      int posY,
                      int height)
Description copied from interface: PrintableObject
Draws the object at the x and y.
Specified by:
drawObject in interface PrintableObject
Parameters:
graphics - graphics to draw
pageFormat - the current page format
posX - the x position
posY - the Y position
height - the height
Returns:
the width of the object

dispose

public void dispose()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.