Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.noa.graphic
Class TextInfo

java.lang.Object
  extended by ag.ion.noa.graphic.TextInfo

public class TextInfo
extends java.lang.Object

Info class for text shapes in a text document. It contains information like height and width of the shape and the containing text.


Constructor Summary
TextInfo(java.lang.String name, short verticalAlignment, short horizontalAlignment, int minimumWidth, boolean widthPixel, boolean autoWidth, int minimumHeight, boolean heightPixel, boolean autoHeight, int backColor, com.sun.star.text.TextContentAnchorType anchor)
          Constructs new TextInfo.
 
Method Summary
 com.sun.star.text.TextContentAnchorType getAnchor()
          Returns the anchor of the text shape, or null.
 int getBackColor()
          Returns the background color of the text shape, or -1 if not set (in this case it will be transparent).
 short getHorizontalAlignment()
          Returns the horizontal alignment of the text shape.
 int getMinimumHeight()
          Returns the minimum height of the text shape in tenth millimeter.
 int getMinimumWidth()
          Returns the minimum width of the text shape in tenth millimeter.
 java.lang.String getName()
          Returns the name of the text shape.
 short getVerticalAlignment()
          Returns the vertical alignment of the text shape.
 boolean isAutoHeight()
          Returns if auto height should be used.
 boolean isAutoWidth()
          Returns if auto width should be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextInfo

public TextInfo(java.lang.String name,
                short verticalAlignment,
                short horizontalAlignment,
                int minimumWidth,
                boolean widthPixel,
                boolean autoWidth,
                int minimumHeight,
                boolean heightPixel,
                boolean autoHeight,
                int backColor,
                com.sun.star.text.TextContentAnchorType anchor)
Constructs new TextInfo.

Parameters:
name - the name for the text shape
minimumWidth - the minimum width
widthPixel - if the width is described as pixels, otherwise it is assumed that the width is in thenth millimeter
minimumHeight - the minimum height
heightPixel - if the height is described as pixels, otherwise it is assumed that the height is in thenth millimeter
verticalAlignment - the vertical alignment. Possible values are described in VertOrientation
horizontalAlignment - the horizontal alignment. Possible values are described in HoriOrientation
backColor - the color of the background for the text shape, or -1 to be transparent
anchor - the anchor type of the image. Possible values are described in TextContentAnchorType
Throws:
java.lang.IllegalArgumentException - if the OpenOffice.org interface or the document or text info is not valid
Method Detail

getName

public java.lang.String getName()
Returns the name of the text shape.

Returns:
the iname of the text shape

getMinimumWidth

public int getMinimumWidth()
Returns the minimum width of the text shape in tenth millimeter.

Returns:
the minimum width of the text shape in tenth millimeter

getMinimumHeight

public int getMinimumHeight()
Returns the minimum height of the text shape in tenth millimeter.

Returns:
the minimum height of the text shape in tenth millimeter

isAutoWidth

public boolean isAutoWidth()
Returns if auto width should be used.

Returns:
if auto width should be used

isAutoHeight

public boolean isAutoHeight()
Returns if auto height should be used.

Returns:
if auto height should be used

getVerticalAlignment

public short getVerticalAlignment()
Returns the vertical alignment of the text shape. Possible values are described in VertOrientation

Returns:
the vertical alignment of the text shape

getHorizontalAlignment

public short getHorizontalAlignment()
Returns the horizontal alignment of the text shape. Possible values are described in HoriOrientation

Returns:
the horizontal alignment of the text shape

getBackColor

public int getBackColor()
Returns the background color of the text shape, or -1 if not set (in this case it will be transparent).

Returns:
the background color of the text shape, or -1 if not set (in this case it will be transparent)

getAnchor

public com.sun.star.text.TextContentAnchorType getAnchor()
Returns the anchor of the text shape, or null. Possible values are described in TextContentAnchorType

Returns:
the anchor of the text shape, or null

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013