com.stimulsoft.report.export.tools
Class StiMatrix

java.lang.Object
  extended by com.stimulsoft.report.export.tools.StiMatrix

public class StiMatrix
extends java.lang.Object

Matrix objec. Copyright Stimulsoft


Nested Class Summary
 class StiMatrix.DataField
          Accessory object DataField
static class StiMatrix.StiTableLineInfo
          Table line info Copyright Stimulsoft
 
Field Summary
 int DataArrayLength
           
 int[][][] interactions
           
 
Constructor Summary
StiMatrix(StiPagesCollection pages, boolean checkForExcel, StiExportService service)
           
StiMatrix(StiPagesCollection pages, boolean checkForExcel, StiExportService service, java.util.ArrayList<StiCellStyle> styles)
           
StiMatrix(StiPagesCollection pages, StiExportService service)
           
StiMatrix(StiPagesCollection pages, StiExportService service, java.util.ArrayList<StiCellStyle> styles)
           
 
Method Summary
 void checkStylesNames()
          Check style names
 void clear()
          Clear matrix
 java.lang.String[][] getBookmarks()
           
 java.util.List<StiBorderSide> getBorderSides()
           
 StiBorderSide[][] getBordersX()
           
 StiBorderSide[][] getBordersY()
           
 StiCell[][] getCells()
           
 StiCellStyle[][] getCellStyles()
           
 java.util.SortedMap<java.lang.Double,java.lang.Double> getCoordX()
           
 java.util.SortedMap<java.lang.Double,java.lang.Double> getCoordY()
           
 StiMatrix.DataField[] getFields()
           
 java.util.ArrayList<java.lang.Integer> getHorizontalPageBreaks()
           
 java.util.Hashtable<StiComponent,StiRectangle> getImagesBaseRect()
           
 StiMatrix.StiTableLineInfo[] getLinePlacement()
           
 java.lang.String[] getParentBandName()
           
 StiRectangle getRange(StiRectangle rect)
          Get range by StiRectangle
 java.awt.image.BufferedImage getRealImageData(StiCell cell, java.awt.image.BufferedImage baseImage)
          Get real BufferedImage
static java.lang.String[] getStringsFromTag(java.lang.String tag, int startPosition)
          Get string from tag
 StiCellStyle getStyleFromComponent(StiComponent component, int x, int y)
          Get StiCellStyle from StiComponent
 java.util.ArrayList<StiCellStyle> getStyles()
           
 double getTotalHeight()
           
 double getTotalWidth()
           
 boolean isComponentHasInteraction(StiComponent component)
           
 void prepareDocument(StiExportService service, StiDataExportMode mode)
          Prepare document
 void prepareTable()
          Prepare table
 void scanComponentsPlacement(boolean optimize)
          Scan component placement
 void scanComponentsPlacement(boolean optimize, boolean exportObjectFormatting)
          Scan component placement
 void setCoordX(java.util.SortedMap<java.lang.Double,java.lang.Double> coordX)
           
 void setCoordY(java.util.SortedMap<java.lang.Double,java.lang.Double> coordY)
           
 void setStyles(java.util.ArrayList<StiCellStyle> styles)
           
 void setTotalHeight(double totalHeight)
           
 void setTotalWidth(double totalWidth)
           
static java.lang.String[] splitTag(java.lang.String inputString)
          Split tag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DataArrayLength

public int DataArrayLength

interactions

public int[][][] interactions
Constructor Detail

StiMatrix

public StiMatrix(StiPagesCollection pages,
                 StiExportService service)

StiMatrix

public StiMatrix(StiPagesCollection pages,
                 boolean checkForExcel,
                 StiExportService service)

StiMatrix

public StiMatrix(StiPagesCollection pages,
                 StiExportService service,
                 java.util.ArrayList<StiCellStyle> styles)

StiMatrix

public StiMatrix(StiPagesCollection pages,
                 boolean checkForExcel,
                 StiExportService service,
                 java.util.ArrayList<StiCellStyle> styles)
Method Detail

prepareTable

public void prepareTable()
Prepare table


getRange

public StiRectangle getRange(StiRectangle rect)
Get range by StiRectangle

Parameters:
rect -
Returns:
Range

getStyleFromComponent

public StiCellStyle getStyleFromComponent(StiComponent component,
                                          int x,
                                          int y)
Get StiCellStyle from StiComponent

Parameters:
component - StiComponent
x -
y -
Returns:
StiCellStyle

isComponentHasInteraction

public boolean isComponentHasInteraction(StiComponent component)

scanComponentsPlacement

public void scanComponentsPlacement(boolean optimize)
Scan component placement

Parameters:
optimize -

scanComponentsPlacement

public void scanComponentsPlacement(boolean optimize,
                                    boolean exportObjectFormatting)
Scan component placement

Parameters:
optimize -
exportObjectFormatting -

splitTag

public static java.lang.String[] splitTag(java.lang.String inputString)
Split tag

Parameters:
inputString -
Returns:
Stplitted strings

getStringsFromTag

public static java.lang.String[] getStringsFromTag(java.lang.String tag,
                                                   int startPosition)
Get string from tag

Parameters:
tag -
startPosition -
Returns:
Strings

prepareDocument

public void prepareDocument(StiExportService service,
                            StiDataExportMode mode)
Prepare document

Parameters:
service - StiExportService
mode - StiDataExportMode

checkStylesNames

public void checkStylesNames()
Check style names


getRealImageData

public java.awt.image.BufferedImage getRealImageData(StiCell cell,
                                                     java.awt.image.BufferedImage baseImage)
Get real BufferedImage

Parameters:
cell - StiCell
baseImage - BufferedImage
Returns:
Result BufferedImage

clear

public void clear()
Clear matrix


getImagesBaseRect

public java.util.Hashtable<StiComponent,StiRectangle> getImagesBaseRect()
Returns:
the imagesBaseRect

getStyles

public java.util.ArrayList<StiCellStyle> getStyles()
Returns:
the styles

setStyles

public void setStyles(java.util.ArrayList<StiCellStyle> styles)
Parameters:
styles - the styles to set

getTotalHeight

public double getTotalHeight()
Returns:
the totalHeight

setTotalHeight

public void setTotalHeight(double totalHeight)
Parameters:
totalHeight - the totalHeight to set

getTotalWidth

public double getTotalWidth()
Returns:
the totalWidth

setTotalWidth

public void setTotalWidth(double totalWidth)
Parameters:
totalWidth - the totalWidth to set

getCoordX

public java.util.SortedMap<java.lang.Double,java.lang.Double> getCoordX()
Returns:
the coordX

setCoordX

public void setCoordX(java.util.SortedMap<java.lang.Double,java.lang.Double> coordX)
Parameters:
coordX - the coordX to set

getCoordY

public java.util.SortedMap<java.lang.Double,java.lang.Double> getCoordY()
Returns:
the coordY

setCoordY

public void setCoordY(java.util.SortedMap<java.lang.Double,java.lang.Double> coordY)
Parameters:
coordY - the coordY to set

getCells

public StiCell[][] getCells()
Returns:
the cells

getCellStyles

public StiCellStyle[][] getCellStyles()
Returns:
the cellStyles

getBookmarks

public java.lang.String[][] getBookmarks()
Returns:
the bookmarks

getBordersX

public StiBorderSide[][] getBordersX()
Returns:
the bordersX

getBordersY

public StiBorderSide[][] getBordersY()
Returns:
the bordersY

getHorizontalPageBreaks

public java.util.ArrayList<java.lang.Integer> getHorizontalPageBreaks()
Returns:
the horizontalPageBreaks

getLinePlacement

public StiMatrix.StiTableLineInfo[] getLinePlacement()
Returns:
the linePlacement

getParentBandName

public java.lang.String[] getParentBandName()
Returns:
the parentBandName

getFields

public StiMatrix.DataField[] getFields()
Returns:
the fields

getBorderSides

public java.util.List<StiBorderSide> getBorderSides()
Returns:
the borderSides