Package org.apache.poi.hssf.usermodel
Interface HSSFShapeContainer
- All Superinterfaces:
Iterable<HSSFShape>,ShapeContainer<HSSFShape>
- All Known Implementing Classes:
HSSFPatriarch,HSSFShapeGroup
An interface that indicates whether a class can contain children.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd shape to the list of child recordsvoidclear()intgetX1()intgetX2()intgetY1()intgetY2()booleanremoveShape(HSSFShape shape) remove first level shapesvoidsetCoordinates(int x1, int y1, int x2, int y2) set coordinates of this group relative to the parentMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getChildren
- Returns:
- Any children contained by this shape.
-
addShape
add shape to the list of child records- Parameters:
shape-
-
setCoordinates
void setCoordinates(int x1, int y1, int x2, int y2) set coordinates of this group relative to the parent -
clear
void clear() -
getX1
int getX1()- Returns:
- The top left x coordinate of this group.
-
getY1
int getY1()- Returns:
- The top left y coordinate of this group.
-
getX2
int getX2()- Returns:
- The bottom right x coordinate of this group.
-
getY2
int getY2()- Returns:
- The bottom right y coordinate of this group.
-
removeShape
remove first level shapes- Parameters:
shape- to be removed- Returns:
- true if shape is removed else return false
-