public abstract class Sheet
extends java.lang.Object
Constructor and Description |
---|
Sheet(SheetContainer container,
int sheetNo) |
Modifier and Type | Method and Description |
---|---|
int |
_getSheetNumber()
Returns the (internal, SlideIdentifier based) sheet number, as used
to reference this sheet from other records.
|
int |
_getSheetRefId()
Returns the (internal, RefID based) sheet number, as used
to in PersistPtr stuff.
|
void |
addShape(Shape shape)
Add a new Shape to this Slide
|
int |
allocateShapeId()
Allocates new shape id for the new drawing group id.
|
void |
draw(java.awt.Graphics2D graphics) |
protected static void |
findTextRuns(EscherTextboxWrapper wrapper,
java.util.List<TextRun> found)
Scans through the supplied record array, looking for
a TextHeaderAtom followed by one of a TextBytesAtom or
a TextCharsAtom.
|
static TextRun[] |
findTextRuns(PPDrawing ppdrawing)
For a given PPDrawing, grab all the TextRuns
|
protected static void |
findTextRuns(Record[] records,
java.util.List<TextRun> found)
Scans through the supplied record array, looking for
a TextHeaderAtom followed by one of a TextBytesAtom or
a TextCharsAtom.
|
protected static void |
findTextRuns(Record[] records,
java.util.List<TextRun> found,
StyleTextProp9Atom styleTextProp9Atom)
Scans through the supplied record array, looking for
a TextHeaderAtom followed by one of a TextBytesAtom or
a TextCharsAtom.
|
Background |
getBackground()
Returns the background shape for this sheet.
|
ColorSchemeAtom |
getColorScheme()
Color scheme for this sheet.
|
abstract MasterSheet |
getMasterSheet()
Return the master sheet .
|
TextShape |
getPlaceholder(int type)
Search text placeholer by its type
|
TextShape |
getPlaceholderByTextType(int type)
Return placeholder by text type
|
protected PPDrawing |
getPPDrawing()
Fetch the PPDrawing from the underlying record
|
java.lang.String |
getProgrammableTag()
Return programmable tag associated with this sheet, e.g.
|
Shape[] |
getShapes()
Returns all shapes contained in this Sheet
|
SheetContainer |
getSheetContainer()
Return record container for this sheet
|
SlideShow |
getSlideShow()
Fetch the SlideShow we're attached to
|
abstract TextRun[] |
getTextRuns()
Returns an array of all the TextRuns in the sheet.
|
protected void |
onAddTextShape(TextShape shape)
Subclasses should call this method and update the array of text runs
when a text shape is added
|
void |
onCreate()
Called by SlideShow ater a new sheet is created
|
boolean |
removeShape(Shape shape)
Removes the specified shape from this sheet.
|
void |
setSlideShow(SlideShow ss)
Set the SlideShow we're attached to.
|
public Sheet(SheetContainer container, int sheetNo)
public abstract TextRun[] getTextRuns()
public int _getSheetRefId()
public int _getSheetNumber()
protected PPDrawing getPPDrawing()
public SlideShow getSlideShow()
public SheetContainer getSheetContainer()
public void setSlideShow(SlideShow ss)
public static TextRun[] findTextRuns(PPDrawing ppdrawing)
protected static void findTextRuns(Record[] records, java.util.List<TextRun> found)
records
- the records to build fromfound
- vector to add any found toprotected static void findTextRuns(EscherTextboxWrapper wrapper, java.util.List<TextRun> found)
wrapper
- an EscherTextboxWrapperfound
- vector to add any found toprotected static void findTextRuns(Record[] records, java.util.List<TextRun> found, StyleTextProp9Atom styleTextProp9Atom)
records
- the records to build fromfound
- vector to add any found tostyleTextProp9Atom
- a StyleTextProp9Atom with numbered lists infopublic Shape[] getShapes()
public void addShape(Shape shape)
shape
- - the Shape to addpublic int allocateShapeId()
public boolean removeShape(Shape shape)
shape
- shape to be removed from this sheet, if present.public void onCreate()
public abstract MasterSheet getMasterSheet()
public ColorSchemeAtom getColorScheme()
public Background getBackground()
public void draw(java.awt.Graphics2D graphics)
protected void onAddTextShape(TextShape shape)
shape
- public TextShape getPlaceholderByTextType(int type)
type
- type of text, See TextHeaderAtom
TextShape
or null
public TextShape getPlaceholder(int type)
type
- type of placeholder to search. See OEPlaceholderAtom
TextShape
or null
public java.lang.String getProgrammableTag()
___PPT12
.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.