public class SheetChartWrapper extends SheetOverlayWrapper implements Serializable
SheetOverlayWrapper.OverlayChangeListener| Constructor and Description |
|---|
SheetChartWrapper(org.apache.poi.xssf.usermodel.XSSFChart chartXml,
Spreadsheet spreadsheet) |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.ui.Component |
getComponent(boolean init)
Returns the component contained in this wrapper if there is one.
|
float |
getHeight(org.apache.poi.ss.usermodel.Sheet sheet,
float[] rowH)
Calculates the height of the image.
|
String |
getId()
Returns a unique ID of this overlay, used also as a resource key for
images.
|
OverlayInfo.Type |
getType() |
float |
getWidth(org.apache.poi.ss.usermodel.Sheet sheet,
int[] colW,
int defaultColumnWidthPX)
Calculates the width of the image.
|
static void |
setChartCreator(ChartCreator newChartCreator) |
void |
setOverlayChangeListener(SheetOverlayWrapper.OverlayChangeListener listener)
If this overlay's state can be dynamically changed (like minimizing),
this method can inform the spreadsheet.
|
equals, getAnchor, getResource, hashCode, isVisible, isVisible, setVisible, toStringpublic SheetChartWrapper(org.apache.poi.xssf.usermodel.XSSFChart chartXml,
Spreadsheet spreadsheet)
public void setOverlayChangeListener(SheetOverlayWrapper.OverlayChangeListener listener)
SheetOverlayWrappersetOverlayChangeListener in class SheetOverlayWrapperpublic static void setChartCreator(ChartCreator newChartCreator)
public String getId()
SheetOverlayWrappergetId in class SheetOverlayWrapperpublic com.vaadin.ui.Component getComponent(boolean init)
SheetOverlayWrappergetComponent in class SheetOverlayWrapperinit - false if you don't want to initialize the component, calling
with true after the first time has no effect.public OverlayInfo.Type getType()
getType in class SheetOverlayWrapperpublic float getHeight(org.apache.poi.ss.usermodel.Sheet sheet,
float[] rowH)
SheetOverlayWrapperIf the image doesn't have a specified height and should be sized to image file size, -1 is returned.
getHeight in class SheetOverlayWrappersheet - The sheet this image belongs torowH - Array of row heights in pointspublic float getWidth(org.apache.poi.ss.usermodel.Sheet sheet,
int[] colW,
int defaultColumnWidthPX)
SheetOverlayWrapperIf the image doesn't have a specified width and should be sized to image file size, -1 is returned.
getWidth in class SheetOverlayWrappersheet - The sheet this image belongs tocolW - Array of column widths in pixelsdefaultColumnWidthPX - Default column width in pixelsCopyright © 2013–2026 Vaadin Ltd. All rights reserved.