Skip navigation links


com.essbase.eas.utils.print
Class TreePainter

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

All Implemented Interfaces:
PrintableObject
Direct Known Subclasses:
CDefaultPrint.PrintTree

public abstract class TreePainter
extends java.lang.Object
implements PrintableObject

A Tree painter object

Since:
6.5.1
Version:
7.1.0
Author:
Sree Menon

Constructor Summary
TreePainter(javax.swing.JTree tree, int row, int level, javax.swing.tree.TreeNode node)
           

 

Method Summary
 void dispose()
           
 int drawComponent(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int posX, int posY, int height)
           
 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
abstract  javax.swing.JComponent getPreviewComponent()
           
 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

 

Constructor Detail

TreePainter

public TreePainter(javax.swing.JTree tree,
                   int row,
                   int level,
                   javax.swing.tree.TreeNode node)

Method Detail

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

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

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

drawComponent

public int drawComponent(java.awt.Graphics graphics,
                         java.awt.print.PageFormat pageFormat,
                         int posX,
                         int posY,
                         int height)

getPreviewComponent

public abstract javax.swing.JComponent getPreviewComponent()

dispose

public void dispose()

Skip navigation links


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