Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » hslf » model » [javadoc | source]
org.apache.poi.hslf.model
abstract public class: Sheet [javadoc | source]
java.lang.Object
   org.apache.poi.hslf.model.Sheet

Direct Known Subclasses:
    TitleMaster, SlideMaster, Notes, Slide, MasterSheet

This class defines the common format of "Sheets" in a powerpoint document. Such sheets could be Slides, Notes, Master etc
Constructor:
 public Sheet(SheetContainer container,
    int sheetNo) 
Method from org.apache.poi.hslf.model.Sheet Summary:
_getSheetNumber,   _getSheetRefId,   addShape,   allocateShapeId,   draw,   findTextRuns,   findTextRuns,   getBackground,   getColorScheme,   getMasterSheet,   getPPDrawing,   getShapes,   getSheetContainer,   getSlideShow,   getTextRuns,   onCreate,   removeShape,   setSlideShow
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hslf.model.Sheet Detail:
 public int _getSheetNumber() 
    Returns the (internal, SlideIdentifier based) sheet number, as used to reference this sheet from other records.
 public int _getSheetRefId() 
    Returns the (internal, RefID based) sheet number, as used to in PersistPtr stuff.
 public  void addShape(Shape shape) 
    Add a new Shape to this Slide
 public int allocateShapeId() 
    Allocates new shape id for the new drawing group id.
 public  void draw(Graphics2D graphics) 
 public static TextRun[] findTextRuns(PPDrawing ppdrawing) 
    For a given PPDrawing, grab all the TextRuns
 protected static  void findTextRuns(Record[] records,
    Vector found) 
    Scans through the supplied record array, looking for a TextHeaderAtom followed by one of a TextBytesAtom or a TextCharsAtom. Builds up TextRuns from these
 public Background getBackground() 
    Returns the background shape for this sheet.
 public ColorSchemeAtom getColorScheme() 
    Color scheme for this sheet.
 abstract public MasterSheet getMasterSheet()
    Return the master sheet .
 protected PPDrawing getPPDrawing() 
    Fetch the PPDrawing from the underlying record
 public Shape[] getShapes() 
    Returns all shapes contained in this Sheet
 public SheetContainer getSheetContainer() 
    Return record container for this sheet
 public SlideShow getSlideShow() 
    Fetch the SlideShow we're attached to
 abstract public TextRun[] getTextRuns()
    Returns an array of all the TextRuns in the sheet.
 public  void onCreate() 
    Called by SlideShow ater a new sheet is created
 public boolean removeShape(Shape shape) 
    Removes the specified shape from this sheet.
 public  void setSlideShow(SlideShow ss) 
    Set the SlideShow we're attached to. Also passes it on to our child RichTextRuns