org.openswing.swing.export.java
Class ExportToPDFCallbacks14Impl

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

public class ExportToPDFCallbacks14Impl
extends ExportToPDFCallbacks
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
ExportToPDFCallbacks14Impl()
           
 
Method Summary
 float getBottomRowsGrayFill(int row)
           
 float getEvenRowsGrayFill()
           
 java.lang.Object getFontTitle()
           
 java.lang.Object getGenericComponentFont(int row, int col, java.lang.Object value)
           
 java.lang.Object getHeaderFont(java.lang.String attributeName)
           
 float getHeaderGrayFill()
           
 float getOddRowsGrayFill()
           
 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

ExportToPDFCallbacks14Impl

public ExportToPDFCallbacks14Impl()
Method Detail

getGenericComponentFont

public java.lang.Object getGenericComponentFont(int row,
                                                int col,
                                                java.lang.Object value)
Specified by:
getGenericComponentFont in class ExportToPDFCallbacks
Returns:
Font to set for the specified generic cell

getFontTitle

public java.lang.Object getFontTitle()
Specified by:
getFontTitle in class ExportToPDFCallbacks
Returns:
Font to set for the title

getHeaderFont

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

getHeaderGrayFill

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

getTopRowsGrayFill

public float getTopRowsGrayFill(int row)
Overrides:
getTopRowsGrayFill in class ExportToPDFCallbacks
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()
Overrides:
getEvenRowsGrayFill in class ExportToPDFCallbacks
Returns:
gray fill to use in cells of even rows

getOddRowsGrayFill

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

getBottomRowsGrayFill

public float getBottomRowsGrayFill(int row)
Overrides:
getBottomRowsGrayFill in class ExportToPDFCallbacks
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 java.lang.Object getRowFont(java.lang.String attributeName)
Specified by:
getRowFont in class ExportToPDFCallbacks
Parameters:
attributeName - attribute name that identify current column
Returns:
Font to set for the specified cell