net.sf.jasperreports.engine.export
Class CutsInfo
java.lang.Object
net.sf.jasperreports.engine.export.CutsInfo
public class CutsInfo
- extends java.lang.Object
Utility class used by grid exporters to create a grid for page layout.
- Version:
- $Id: CutsInfo.java 4758 2011-10-27 13:18:37Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CutsInfo
public CutsInfo()
CutsInfo
public CutsInfo(java.lang.Integer lastCutOffset)
getCutOffsets
public java.util.List<java.lang.Integer> getCutOffsets()
size
public int size()
use
public void use()
getCutOffset
public int getCutOffset(int index)
getCut
public Cut getCut(int index)
addUsage
public void addUsage(int index,
int usage)
setAutoFit
public void setAutoFit(int index,
java.lang.Boolean autoFit)
setCustomWidth
public void setCustomWidth(int index,
int customWidth)
setRowLevelMap
public void setRowLevelMap(int index,
java.util.SortedMap<java.lang.String,java.lang.Boolean> levelMap)
addCutOffset
public boolean addCutOffset(java.lang.Integer cutOffset)
indexOfCutOffset
public int indexOfCutOffset(java.lang.Integer cutOffset)
isAutoFit
public boolean isAutoFit(int index)
getCustomWidth
public java.lang.Integer getCustomWidth(int index)
getRowLevelMap
public java.util.SortedMap<java.lang.String,java.lang.Boolean> getRowLevelMap(int index)
isCutNotEmpty
public boolean isCutNotEmpty(int index)
- Decides whether a cut is empty or not.
- Parameters:
index
- the cut index
- Returns:
true
if and only if the cut is not empty
isCutSpanned
public boolean isCutSpanned(int index)
- Decides whether a cut is occupied by spanning cells or not.
- Parameters:
index
- the cut index
- Returns:
true
if and only if the cut is not empty
isBreak
public boolean isBreak(int index)
hasCuts
public boolean hasCuts()
getFirstCutOffset
public int getFirstCutOffset()
getLastCutOffset
public int getLastCutOffset()
getTotalLength
public int getTotalLength()
getWidthRatio
public java.lang.Float getWidthRatio()
setWidthRatio
public void setWidthRatio(java.lang.Float widthRatio)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com