com.aspose.slides
Class Portion

java.lang.Object
  extended by com.aspose.slides.Portion

public final class Portion
extends java.lang.Object

Represents a portion of a text.


Field Summary
 boolean m_bBold
           
 boolean m_bDefaultColor
           
 boolean m_bEmboss
           
 boolean m_bItalic
           
 boolean m_bShadow
           
 boolean m_bUnderline
           
 short m_nAnsiFont
           
 short m_nAsianOrComplexFont
           
 int m_nCharAttr
           
 java.awt.Color m_nColor
           
 int m_nColorIndex
           
 short m_nEscapement
           
 int m_nFlags
           
 short m_nFont
           
 short m_nFontHeight
           
 int m_nStyleCache
           
 short m_nSymbolFont
           
 
Constructor Summary
Portion()
          Initializes a new instance of the Portion class.
Portion(int dummy)
          Initializes a new instance of the Portion class.
Portion(Portion portion)
          Initializes a new instance of the Portion class.
Portion(java.lang.String str)
          Initializes a new instance of the Portion class.
Portion(java.lang.String str, int dummy)
          Initializes a new instance of the Portion class.
 
Method Summary
 int getAnsiFontIndex()
          Returns or sets the index of a font in Fonts collection for ANSI text writings.
 int getAsianOrComplexFontIndex()
          Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings.
 short getEscapement()
          Returns or sets superscript or subscript text.
 java.awt.Color getFontColor()
          Returns or sets the color of a portion.
 short getFontColorIndex()
          Returns or sets the index of a color in a color scheme or -1 for scheme-independed color.
 short getFontHeight()
          Returns or sets the font height of a portion.
 int getFontIndex()
          Returns or sets the index of a font in Fonts collection.
 com.aspose.slides.ppt.LevelStyle getMasterStyle()
           
 int getRawAnsiFontIndex()
          Returns or sets the index of a font in Fonts collection for ANSI text writings. -1 means font is undefined and should be inherited from the Master.
 int getRawAsianOrComplexFontIndex()
          Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings. -1 means font is undefined and should be inherited from the Master.
 short getRawEscapement()
          Returns or sets the superscript or subscript text.
 java.awt.Color getRawFontColor()
          Returns or sets the color of a portion.
 short getRawFontHeight()
          Returns or sets the font height of a portion. -1 means height is undefined and should be inherited from the Master.
 int getRawFontIndex()
          Returns or sets the index of a font in Fonts collection. -1 means font is undefined and should be inherited from the Master.
 int getRawSymbolFontIndex()
          Returns or sets the index of a font in Fonts collection for special symbols. -1 means font is undefined and should be inherited from the Master.
 int getSymbolFontIndex()
          Returns or sets the index of a font in Fonts collection for special symbols.
 java.lang.String getText()
          Returns or sets the plain text of a portion.
 boolean isFontBold()
          Determines whether the font is Bold.
 boolean isFontEmbossed()
          Determines whether the font is embossed.
 boolean isFontItalic()
          Determines whether the font is Italic.
 boolean isFontShadow()
          Determines whether the font has shadow.
 boolean isFontUnderline()
          Determines whether the font is underlined.
 void setAnsiFontIndex(int value)
           
 void setAsianOrComplexFontIndex(int value)
           
 void setEscapement(short value)
           
 void setFontBold(boolean value)
           
 void setFontColor(java.awt.Color value)
           
 void setFontColorIndex(short value)
           
 void setFontEmbossed(boolean value)
           
 void setFontHeight(short value)
           
 void setFontIndex(int value)
           
 void setFontItalic(boolean value)
           
 void setFontShadow(boolean value)
           
 void setFontUnderline(boolean value)
           
 void setRawAnsiFontIndex(int value)
           
 void setRawAsianOrComplexFontIndex(int value)
           
 void setRawEscapement(short value)
           
 void setRawFontBold(boolean isBold)
           
 void setRawFontColor(java.awt.Color value)
           
 void setRawFontHeight(short value)
           
 void setRawFontIndex(int value)
           
 void setRawFontItalic(boolean isItalic)
           
 void setRawFontUnderlined(boolean isUnderlined)
           
 void setRawSymbolFontIndex(int value)
           
 void setRawValue(int bitShift, int value)
           
 void setSymbolFontIndex(int value)
           
 void setText(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_nFlags

public int m_nFlags

m_nCharAttr

public int m_nCharAttr

m_nStyleCache

public int m_nStyleCache

m_bBold

public boolean m_bBold

m_bItalic

public boolean m_bItalic

m_bUnderline

public boolean m_bUnderline

m_bShadow

public boolean m_bShadow

m_bEmboss

public boolean m_bEmboss

m_nSymbolFont

public short m_nSymbolFont

m_nFont

public short m_nFont

m_nAsianOrComplexFont

public short m_nAsianOrComplexFont

m_nAnsiFont

public short m_nAnsiFont

m_nFontHeight

public short m_nFontHeight

m_nColor

public java.awt.Color m_nColor

m_nColorIndex

public int m_nColorIndex

m_bDefaultColor

public boolean m_bDefaultColor

m_nEscapement

public short m_nEscapement
Constructor Detail

Portion

public Portion()
Initializes a new instance of the Portion class.


Portion

public Portion(int dummy)
Initializes a new instance of the Portion class.


Portion

public Portion(java.lang.String str)
Initializes a new instance of the Portion class.


Portion

public Portion(java.lang.String str,
               int dummy)
Initializes a new instance of the Portion class.


Portion

public Portion(Portion portion)
Initializes a new instance of the Portion class.

Method Detail

isFontBold

public boolean isFontBold()
Determines whether the font is Bold.


setFontBold

public void setFontBold(boolean value)

isFontItalic

public boolean isFontItalic()
Determines whether the font is Italic.


setFontItalic

public void setFontItalic(boolean value)

isFontUnderline

public boolean isFontUnderline()
Determines whether the font is underlined.


setFontUnderline

public void setFontUnderline(boolean value)

isFontShadow

public boolean isFontShadow()
Determines whether the font has shadow.


setFontShadow

public void setFontShadow(boolean value)

isFontEmbossed

public boolean isFontEmbossed()
Determines whether the font is embossed.


setFontEmbossed

public void setFontEmbossed(boolean value)

getFontHeight

public short getFontHeight()
Returns or sets the font height of a portion.


setFontHeight

public void setFontHeight(short value)

getFontColor

public java.awt.Color getFontColor()
Returns or sets the color of a portion.


setFontColor

public void setFontColor(java.awt.Color value)

getFontColorIndex

public short getFontColorIndex()
Returns or sets the index of a color in a color scheme or -1 for scheme-independed color.


setFontColorIndex

public void setFontColorIndex(short value)

getFontIndex

public int getFontIndex()
Returns or sets the index of a font in Fonts collection.


setFontIndex

public void setFontIndex(int value)

getSymbolFontIndex

public int getSymbolFontIndex()
Returns or sets the index of a font in Fonts collection for special symbols.


setSymbolFontIndex

public void setSymbolFontIndex(int value)

getAsianOrComplexFontIndex

public int getAsianOrComplexFontIndex()
Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings.


setAsianOrComplexFontIndex

public void setAsianOrComplexFontIndex(int value)

getAnsiFontIndex

public int getAnsiFontIndex()
Returns or sets the index of a font in Fonts collection for ANSI text writings.


setAnsiFontIndex

public void setAnsiFontIndex(int value)

getText

public java.lang.String getText()
Returns or sets the plain text of a portion.


setText

public void setText(java.lang.String value)

getEscapement

public short getEscapement()
Returns or sets superscript or subscript text. Value from -100% (subscript) to 100% (superscript).


setEscapement

public void setEscapement(short value)

getRawFontHeight

public short getRawFontHeight()
Returns or sets the font height of a portion. -1 means height is undefined and should be inherited from the Master.


setRawFontHeight

public void setRawFontHeight(short value)

getRawFontColor

public java.awt.Color getRawFontColor()
Returns or sets the color of a portion. Color.IsEmpty value means color should be inherited from the color sheme or the Master.


setRawFontColor

public void setRawFontColor(java.awt.Color value)

getRawFontIndex

public int getRawFontIndex()
Returns or sets the index of a font in Fonts collection. -1 means font is undefined and should be inherited from the Master.


setRawFontIndex

public void setRawFontIndex(int value)

getRawSymbolFontIndex

public int getRawSymbolFontIndex()
Returns or sets the index of a font in Fonts collection for special symbols. -1 means font is undefined and should be inherited from the Master.


setRawSymbolFontIndex

public void setRawSymbolFontIndex(int value)

getRawAsianOrComplexFontIndex

public int getRawAsianOrComplexFontIndex()
Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings. -1 means font is undefined and should be inherited from the Master.


setRawAsianOrComplexFontIndex

public void setRawAsianOrComplexFontIndex(int value)

getRawAnsiFontIndex

public int getRawAnsiFontIndex()
Returns or sets the index of a font in Fonts collection for ANSI text writings. -1 means font is undefined and should be inherited from the Master.


setRawAnsiFontIndex

public void setRawAnsiFontIndex(int value)

getRawEscapement

public short getRawEscapement()
Returns or sets the superscript or subscript text. Value from -100% (subscript) to 100% (superscript). -101 means value is undefined and should be inherited from the Master.


setRawEscapement

public void setRawEscapement(short value)

getMasterStyle

public com.aspose.slides.ppt.LevelStyle getMasterStyle()

setRawValue

public void setRawValue(int bitShift,
                        int value)

setRawFontBold

public void setRawFontBold(boolean isBold)

setRawFontUnderlined

public void setRawFontUnderlined(boolean isUnderlined)

setRawFontItalic

public void setRawFontItalic(boolean isItalic)