com.powerml.structures.text
Class TextLayout

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

public class TextLayout
extends java.lang.Object
implements java.io.Serializable

Represents the layout of a text relative to the containing shape.

See Also:
Serialized Form

Field Summary
static byte ANCHOR_BOTTOM
          Bottom anchor point for shape text
static byte ANCHOR_BOTTOM_CENTERED
          Bpttom centered anchor point for shape text
static byte ANCHOR_MIDDLE
          Middle anchor point for shape text
static byte ANCHOR_MIDDLE_CENTERED
          Middle centered anchor point for shape text
static byte ANCHOR_TOP
          Top anchor point for shape text
static byte ANCHOR_TOP_CENTERED
          Top centered anchor point for shape text
 
Method Summary
 void addXml(org.dom4j.Element parent)
          Transforms current instance to XML and adds it to a parent element.
 byte getAnchorPoint()
          Returns the anchor point (one of the ANCHOR_...
 short getBottomMargin()
          Returns the bottom margin in pmu (PowerPoint master units, 576 pmu = 1").
 short getLeftMargin()
          Returns the left margin in pmu (PowerPoint master units, 576 pmu = 1").
 short getRightMargin()
          Returns the right margin in pmu (PowerPoint master units, 576 pmu = 1").
 short getTopMargin()
          Returns the top margin in pmu (PowerPoint master units, 576 pmu = 1").
 boolean isRotate()
          Checks the rotate flag (if set, text is rotated by 90 degrees).
 boolean isWordWrap()
          Checks the word wrap flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANCHOR_BOTTOM

public static final byte ANCHOR_BOTTOM
Bottom anchor point for shape text

See Also:
Constant Field Values

ANCHOR_BOTTOM_CENTERED

public static final byte ANCHOR_BOTTOM_CENTERED
Bpttom centered anchor point for shape text

See Also:
Constant Field Values

ANCHOR_MIDDLE

public static final byte ANCHOR_MIDDLE
Middle anchor point for shape text

See Also:
Constant Field Values

ANCHOR_MIDDLE_CENTERED

public static final byte ANCHOR_MIDDLE_CENTERED
Middle centered anchor point for shape text

See Also:
Constant Field Values

ANCHOR_TOP

public static final byte ANCHOR_TOP
Top anchor point for shape text

See Also:
Constant Field Values

ANCHOR_TOP_CENTERED

public static final byte ANCHOR_TOP_CENTERED
Top centered anchor point for shape text

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

getAnchorPoint

public byte getAnchorPoint()
Returns the anchor point (one of the ANCHOR_... constants).

Returns:
text anchor point

getBottomMargin

public short getBottomMargin()
Returns the bottom margin in pmu (PowerPoint master units, 576 pmu = 1").

Returns:
bottom margin in pmu

getLeftMargin

public short getLeftMargin()
Returns the left margin in pmu (PowerPoint master units, 576 pmu = 1").

Returns:
left margin in pmu

getRightMargin

public short getRightMargin()
Returns the right margin in pmu (PowerPoint master units, 576 pmu = 1").

Returns:
right margin in pmu

getTopMargin

public short getTopMargin()
Returns the top margin in pmu (PowerPoint master units, 576 pmu = 1").

Returns:
top margin in pmu

isRotate

public boolean isRotate()
Checks the rotate flag (if set, text is rotated by 90 degrees).

Returns:
rotate flag

isWordWrap

public boolean isWordWrap()
Checks the word wrap flag. If set, text is wrapped at the margin.

Returns:
word wrap flag


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