|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.PdfElementBase com.aspose.pdf.elements.Paragraph com.aspose.pdf.elements.Text com.aspose.pdf.elements.Heading
public class Heading
Represents a heading in Pdf document.
Constructor Summary | |
---|---|
Heading(Pdf pdf,
Section section,
int level)
Initializes an object of Heading class. |
|
Heading(Section section)
Initializes an object of Heading class. |
Method Summary | |
---|---|
Color |
getBulletColor()
Gets a Colorvalue that indicates the color of the bullet/label. |
java.lang.String |
getBulletFontName()
Gets a string that indicates the font name for bullet. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
int |
getHeadingLevel()
Gets an int value that indicates the level of the heading. |
int |
getHeadingType()
Gets the HeadingType of this heading. |
float |
getLabelWidth()
Gets a float value that indicates the width of the label of the heading. |
int |
getStartNumber()
Gets a int number that indicates the start number of this heading when using auto numbering. |
java.lang.String |
getUserLabel()
Gets a string that indicates the caption label. |
boolean |
isAutoSequence()
Gets a bool value that indicates whether the number of the heading is in an automatical sequence. |
boolean |
isPrefixed()
Gets a bool value that indicates if the prefix of the number is shown when using auto sequence. |
Heading |
setBulletColor(Color bulletColor)
Sets a Color value that indicates the color of the bullet/label. |
void |
setBulletFontName(java.lang.String bulletFontName)
Sets a string that indicates the font name for bullet. |
Heading |
setHeadingLevel(int level)
Sets an int value that indicates the level of the heading. |
Heading |
setHeadingType(int type)
Sets the HeadingType of this heading. |
Heading |
setIsAutoSequence(boolean autoSequence)
Sets a bool value that indicates whether the number of the heading is in an automatical sequence. |
Heading |
setIsPrefixed(boolean prefixed)
Sets a bool value that indicates if the prefix of the number is shown when using auto sequence. |
Heading |
setLabelWidth(float width)
Sets a float value that indicates the width of the label of the heading. |
Heading |
setStartNumber(int number)
Sets a int number that indicates the start number of this heading when using auto numbering. |
Heading |
setUserLabel(java.lang.String label)
Gets a string that indicates the caption label. |
Methods inherited from class com.aspose.pdf.elements.Text |
---|
getFirstLineIndent, getRotatingAngle, getSegments, getTextInfo, getTextWidth, isAlignedByWord, isSpaced, setFirstLineIndent, setIsAlignedByWord, setIsSpaced, setRotatingAngle, setSegments, setTextInfo, setTextWidth |
Methods inherited from class com.aspose.pdf.elements.Paragraph |
---|
clone, getLeft, getMargin, getTop, isDisabled, isFirstParagraph, isKeptTogether, isOnOddPage, setDisabled, setFirstParagraph, setKeptTogether, setLeft, setMargin, setOnOddPage, setTop |
Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
---|
getElementFactory, getID, getNameIndex, setID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Heading(Pdf pdf, Section section, int level) throws AsposeBaseException
pdf
- The pdf that owns the Section.section
- The section that the Heading will inherits the text info.level
- The level of the heading.
AsposeBaseException
public Heading(Section section) throws AsposeBaseException
section
- The section that the Heading will inherits the text info.
AsposeBaseException
Method Detail |
---|
public int getHeadingType()
HeadingType
public Heading setHeadingType(int type)
type
- The heading type to set.public boolean isAutoSequence()
public Heading setIsAutoSequence(boolean autoSequence)
public boolean isPrefixed()
public Heading setIsPrefixed(boolean prefixed)
public int getHeadingLevel()
public Heading setHeadingLevel(int level)
level
- The level to set.public int getStartNumber()
public Heading setStartNumber(int number)
number
- The start number to set.public java.lang.String getUserLabel()
public Heading setUserLabel(java.lang.String label)
label
- The UserLabel to set.public float getLabelWidth()
public Heading setLabelWidth(float width)
width
- The LabelWidth to set.public Color getBulletColor()
public Heading setBulletColor(Color bulletColor)
public java.lang.String getBulletFontName()
public void setBulletFontName(java.lang.String bulletFontName)
bulletFontName
- the bulletfont name you want to setpublic org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class Text
AsposeBaseException
PdfElementBase.getDOMElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |