| java.lang.Object org.apache.poi.hslf.model.Shape
All known Subclasses: org.apache.poi.hslf.model.SimpleShape, org.apache.poi.hslf.model.ShapeGroup, org.apache.poi.hslf.model.Background,
Shape | abstract public class Shape (Code) | |
Represents a Shape which is the elemental object that composes a drawing.
This class is a wrapper around EscherSpContainer which holds all information
about a shape in PowerPoint document.
When you add a shape, you usually specify the dimensions of the shape and the position
of the upper�left corner of the bounding box for the shape relative to the upper�left
corner of the page, worksheet, or slide. Distances in the drawing layer are measured
in points (72 points = 1 inch).
author: Yegor Kozlov |
EMU_PER_CENTIMETER | final public static int EMU_PER_CENTIMETER(Code) | | |
EMU_PER_INCH | final public static int EMU_PER_INCH(Code) | | In Escher absolute distances are specified in
English Metric Units (EMUs), occasionally referred to as A units;
there are 360000 EMUs per centimeter, 914400 EMUs per inch, 12700 EMUs per point.
|
EMU_PER_POINT | final public static int EMU_PER_POINT(Code) | | |
MASTER_DPI | final public static int MASTER_DPI(Code) | | Master DPI (576 pixels per inch).
Used by the reference coordinate system in PowerPoint.
|
PIXEL_DPI | final public static int PIXEL_DPI(Code) | | Pixels DPI (96 pixels per inch)
|
POINT_DPI | final public static int POINT_DPI(Code) | | Points DPI (72 pixels per inch)
|
_escherContainer | protected EscherContainerRecord _escherContainer(Code) | | Either EscherSpContainer or EscheSpgrContainer record
which holds information about this shape.
|
_parent | protected Shape _parent(Code) | | Parent of this shape.
null for the topmost shapes.
|
_sheet | protected Sheet _sheet(Code) | | The Sheet this shape belongs to
|
Shape | protected Shape(EscherContainerRecord escherRecord, Shape parent)(Code) | | Create a Shape object. This constructor is used when an existing Shape is read from from a PowerPoint document.
Parameters: escherRecord - EscherSpContainer container which holds information about this shape Parameters: parent - the parent of this Shape |
afterInsert | protected void afterInsert(Sheet sh)(Code) | | Event which fires when a shape is inserted in the sheet.
In some cases we need to propagate changes to upper level containers.
Default implementation does nothing.
Parameters: sh - - owning shape |
createSpContainer | abstract protected EscherContainerRecord createSpContainer(boolean isChild)(Code) | | Creates the lowerlevel escher records for this shape.
|
getAnchor | public java.awt.Rectangle getAnchor()(Code) | | Returns the anchor (the bounding box rectangle) of this shape.
All coordinates are expressed in points (72 dpi).
the anchor of this shape |
getFill | public Fill getFill()(Code) | | Fill properties of this shape
fill properties of this shape |
getHyperlink | public Hyperlink getHyperlink()(Code) | | Returns the hyperlink assigned to this shape
the hyperlink assigned to this shapeor null if not found. |
getParent | public Shape getParent()(Code) | | the parent of this shape |
getShapeName | public String getShapeName()(Code) | | name of the shape. |
getSheet | public Sheet getSheet()(Code) | | the SlideShow this shape belongs to |
moveTo | public void moveTo(int x, int y)(Code) | | Moves the top left corner of the shape to the specified point.
Parameters: x - the x coordinate of the top left corner of the shape Parameters: y - the y coordinate of the top left corner of the shape |
setAnchor | public void setAnchor(java.awt.Rectangle anchor)(Code) | | Sets the anchor (the bounding box rectangle) of this shape.
All coordinates should be expressed in points (72 dpi).
Parameters: anchor - new anchor |
setEscherProperty | public static void setEscherProperty(EscherOptRecord opt, short propId, int value)(Code) | | Set an escher property for this shape.
Parameters: opt - The opt record to set the properties to. Parameters: propId - The id of the property. One of the constants defined in EscherOptRecord. Parameters: value - value of the property. If value = -1 then the property is removed. |
setSheet | public void setSheet(Sheet sheet)(Code) | | Assign the SlideShow this shape belongs to
Parameters: sheet - owner of this shape |
|
|