public abstract class SheetOverlayWrapper extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
SheetOverlayWrapper.OverlayChangeListener |
| Constructor and Description |
|---|
SheetOverlayWrapper(org.apache.poi.ss.usermodel.ClientAnchor anchor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.apache.poi.ss.usermodel.ClientAnchor |
getAnchor()
Gets the anchor for this image within the sheet containing this image.
|
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.
|
com.vaadin.server.Resource |
getResource() |
abstract OverlayInfo.Type |
getType() |
float |
getWidth(org.apache.poi.ss.usermodel.Sheet sheet,
int[] colW,
int defaultColumnWidthPX)
Calculates the width of the image.
|
int |
hashCode() |
boolean |
isVisible()
Gets the visibility state of this overlay in the current spreadsheet
view.
|
boolean |
isVisible(int r1,
int c1,
int r2,
int c2)
Determines if this image should be visible within the given visible area.
|
void |
setOverlayChangeListener(SheetOverlayWrapper.OverlayChangeListener listener)
If this overlay's state can be dynamically changed (like minimizing),
this method can inform the spreadsheet.
|
void |
setVisible(boolean visible)
Marks this as image visible or hidden in the current spreadsheet view.
|
String |
toString() |
public SheetOverlayWrapper(org.apache.poi.ss.usermodel.ClientAnchor anchor)
public void setOverlayChangeListener(SheetOverlayWrapper.OverlayChangeListener listener)
listener - public boolean isVisible(int r1,
int c1,
int r2,
int c2)
r1 - Row index of topmost row, 1-basedc1 - Column index of leftmost column, 1-basedr2 - Row index of bottom-most row, 1-basedc2 - Column index of rightmost column, 1-basedpublic float getWidth(org.apache.poi.ss.usermodel.Sheet sheet,
int[] colW,
int defaultColumnWidthPX)
If the image doesn't have a specified width and should be sized to image file size, -1 is returned.
sheet - The sheet this image belongs tocolW - Array of column widths in pixelsdefaultColumnWidthPX - Default column width in pixelspublic float getHeight(org.apache.poi.ss.usermodel.Sheet sheet,
float[] rowH)
If the image doesn't have a specified height and should be sized to image file size, -1 is returned.
sheet - The sheet this image belongs torowH - Array of row heights in pointspublic String getId()
public boolean isVisible()
public void setVisible(boolean visible)
visible - true to set visible, false to set hiddenpublic org.apache.poi.ss.usermodel.ClientAnchor getAnchor()
public com.vaadin.server.Resource getResource()
public com.vaadin.ui.Component getComponent(boolean init)
init - false if you don't want to initialize the component, calling
with true after the first time has no effect.public abstract OverlayInfo.Type getType()
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.