org.openswing.swing.export.java
Class ExportToPDFCallbacks

java.lang.Object
  extended byorg.openswing.swing.export.java.ExportToPDFCallbacks
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExportToPDFCallbacks14Impl

public abstract class ExportToPDFCallbacks
extends java.lang.Object
implements java.io.Serializable

Title: OpenSwing Framework

Description: This class is used when exporting data in PDF format: it can be extended to override some methods.

Copyright: Copyright (C) 2006 Mauro Carniel

This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it

See Also:
Serialized Form

Constructor Summary
ExportToPDFCallbacks()
           
 
Method Summary
 float getBottomRowsGrayFill(int row)
           
 float getEvenRowsGrayFill()
           
abstract  java.lang.Object getFontTitle()
           
abstract  java.lang.Object getGenericComponentFont(int row, int col, java.lang.Object value)
           
abstract  java.lang.Object getHeaderFont(java.lang.String attributeName)
           
 float getHeaderGrayFill()
           
 float getOddRowsGrayFill()
           
abstract  java.lang.Object getRowFont(java.lang.String attributeName)
           
 float getTopRowsGrayFill(int row)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportToPDFCallbacks

public ExportToPDFCallbacks()
Method Detail

getGenericComponentFont

public abstract java.lang.Object getGenericComponentFont(int row,
                                                         int col,
                                                         java.lang.Object value)
Returns:
Font to set for the specified generic cell

getFontTitle

public abstract java.lang.Object getFontTitle()
Returns:
Font to set for the title

getHeaderFont

public abstract java.lang.Object getHeaderFont(java.lang.String attributeName)
Parameters:
attributeName - attribute name that identify column header
Returns:
Font to set for the specified column header

getHeaderGrayFill

public float getHeaderGrayFill()
Returns:
gray fill to use in cells of column headers

getTopRowsGrayFill

public float getTopRowsGrayFill(int row)
Parameters:
row - row index of current locked row to color
Returns:
gray fill to use in cells of locked rows on top of the grid

getEvenRowsGrayFill

public float getEvenRowsGrayFill()
Returns:
gray fill to use in cells of even rows

getOddRowsGrayFill

public float getOddRowsGrayFill()
Returns:
gray fill to use in cells of odd rows

getBottomRowsGrayFill

public float getBottomRowsGrayFill(int row)
Parameters:
row - row index of current locked row to color
Returns:
gray fill to use in cells of locked rows on the bottom of the grid

getRowFont

public abstract java.lang.Object getRowFont(java.lang.String attributeName)
Parameters:
attributeName - attribute name that identify current column
Returns:
Font to set for the specified cell