com.powerml.structures
Class PlaceholderDescriptor

java.lang.Object
  extended bycom.powerml.structures.PlaceholderDescriptor
All Implemented Interfaces:
java.io.Serializable

public final class PlaceholderDescriptor
extends java.lang.Object
implements java.io.Serializable

Describes the placeholder attributes. Used with shapes which are placeholders or derived from placeholders.

See Also:
Serialized Form

Field Summary
static byte SIZE_FULL
          Full body size (or title)
static byte SIZE_HALF
          Half size
static byte SIZE_QUARTER
          Quarter size
static byte TYPE_CHART
          Chart on a slide
static byte TYPE_CLIPART
          Clipart on a slide
static byte TYPE_HEADER
          Header on a slide
static byte TYPE_MASTER_DATE
          Date on a (slide/title/notes) master
static byte TYPE_MASTER_FOOTER
          Footer on a (slide/title/notes) master
static byte TYPE_MASTER_SLIDE_NUMBER
          Slide number on a (slide/title/notes) master
static byte TYPE_MEDIACLIP
          Media clip on a slide
static byte TYPE_OBJECT
          Object on a slide (can be a chart, a table, a clipart etc.)
static byte TYPE_ORGCHART
          Organizational chart on a slide
static byte TYPE_SLIDE_MASTER_BODY
          Body on a slide master
static byte TYPE_SLIDE_MASTER_HEADER
          Title on a slide master
static byte TYPE_TABLE
          Table on a slide
static byte TYPE_TEXT
          Text on a slide
static byte TYPE_TITLE_MASTER_BODY
          Subtitle on a title master
static byte TYPE_TITLE_MASTER_HEADER
          Title on a title master
static byte TYPE_TITLE_SLIDE_BODY
          Subtitle on a title slide
static byte TYPE_TITLE_SLIDE_HEADER
          Title on a title slide
static byte TYPE_VERTICAL_HEADER
          Vertical header on a slide
static byte TYPE_VERTICAL_TEXT
          Vertical text on a slide
 
Method Summary
 void addXml(org.dom4j.Element parent)
          Transforms current instance to XML and adds it to a parent element.
 byte getPlacement()
          Returns the placement ID (0 for header, 1 for first body etc.)
 byte getSize()
          Returns the size of the placeholder (full, half or quarter, use SIZE_...
 byte getType()
          Returns the placeholder type (see TYPE_...
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE_FULL

public static final byte SIZE_FULL
Full body size (or title)

See Also:
Constant Field Values

SIZE_HALF

public static final byte SIZE_HALF
Half size

See Also:
Constant Field Values

SIZE_QUARTER

public static final byte SIZE_QUARTER
Quarter size

See Also:
Constant Field Values

TYPE_CHART

public static final byte TYPE_CHART
Chart on a slide

See Also:
Constant Field Values

TYPE_CLIPART

public static final byte TYPE_CLIPART
Clipart on a slide

See Also:
Constant Field Values

TYPE_HEADER

public static final byte TYPE_HEADER
Header on a slide

See Also:
Constant Field Values

TYPE_MASTER_DATE

public static final byte TYPE_MASTER_DATE
Date on a (slide/title/notes) master

See Also:
Constant Field Values

TYPE_MASTER_FOOTER

public static final byte TYPE_MASTER_FOOTER
Footer on a (slide/title/notes) master

See Also:
Constant Field Values

TYPE_MASTER_SLIDE_NUMBER

public static final byte TYPE_MASTER_SLIDE_NUMBER
Slide number on a (slide/title/notes) master

See Also:
Constant Field Values

TYPE_MEDIACLIP

public static final byte TYPE_MEDIACLIP
Media clip on a slide

See Also:
Constant Field Values

TYPE_OBJECT

public static final byte TYPE_OBJECT
Object on a slide (can be a chart, a table, a clipart etc.)

See Also:
Constant Field Values

TYPE_ORGCHART

public static final byte TYPE_ORGCHART
Organizational chart on a slide

See Also:
Constant Field Values

TYPE_SLIDE_MASTER_BODY

public static final byte TYPE_SLIDE_MASTER_BODY
Body on a slide master

See Also:
Constant Field Values

TYPE_SLIDE_MASTER_HEADER

public static final byte TYPE_SLIDE_MASTER_HEADER
Title on a slide master

See Also:
Constant Field Values

TYPE_TABLE

public static final byte TYPE_TABLE
Table on a slide

See Also:
Constant Field Values

TYPE_TEXT

public static final byte TYPE_TEXT
Text on a slide

See Also:
Constant Field Values

TYPE_TITLE_MASTER_BODY

public static final byte TYPE_TITLE_MASTER_BODY
Subtitle on a title master

See Also:
Constant Field Values

TYPE_TITLE_MASTER_HEADER

public static final byte TYPE_TITLE_MASTER_HEADER
Title on a title master

See Also:
Constant Field Values

TYPE_TITLE_SLIDE_BODY

public static final byte TYPE_TITLE_SLIDE_BODY
Subtitle on a title slide

See Also:
Constant Field Values

TYPE_TITLE_SLIDE_HEADER

public static final byte TYPE_TITLE_SLIDE_HEADER
Title on a title slide

See Also:
Constant Field Values

TYPE_VERTICAL_HEADER

public static final byte TYPE_VERTICAL_HEADER
Vertical header on a slide

See Also:
Constant Field Values

TYPE_VERTICAL_TEXT

public static final byte TYPE_VERTICAL_TEXT
Vertical text on a slide

See Also:
Constant Field Values
Method Detail

addXml

public void addXml(org.dom4j.Element parent)
Transforms current instance to XML and adds it to a parent element.

Parameters:
parent - parent element

getPlacement

public byte getPlacement()
Returns the placement ID (0 for header, 1 for first body etc.)

Returns:
placement ID

getSize

public byte getSize()
Returns the size of the placeholder (full, half or quarter, use SIZE_... constants)

Returns:
placeholder size

getType

public byte getType()
Returns the placeholder type (see TYPE_... constants)

Returns:
placeholder type


© 2004-2005 Ralf Terdic. All rights reserved.
www.powerml.com