|
|||||||||
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.Segment
public class Segment
Represents a segment in a Text paragraph.
Constructor Summary | |
---|---|
Segment(Heading heading)
Initializes a new instance of the Segment class. |
|
Segment(Heading heading,
java.lang.String content)
Initializes a new instance of the Segment class. |
|
Segment(List parentList,
java.lang.String content)
Initializes a new instance of the Segment class. |
|
Segment(Section section)
Initializes a new instance of the Segment class. |
|
Segment(Text parentText)
Initializes a new instance of the Segment class. |
|
Segment(Text parentText,
java.lang.String content)
Initializes a new instance of the Segment class. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone an object. |
int |
getAction()
|
java.lang.String |
getContent()
Gets a string that indicates the content of the text segment. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
HyperLink |
getHyperLink()
Gets a Hyperlink object that indicates the hyper link info of the segment. |
java.lang.String |
getJavaScript()
Gets the javascript that will be executed when the text is clicked. |
boolean |
getSymbolReplaceable()
Gets a boolean value that indicates whether a symbol like #$TAB is replaceable or not. |
TextInfo |
getTextInfo()
Gets a TextInfo object that indicates the text info of the segment. |
Segment |
setAction(int action)
Sets an action to happen. |
void |
setAttachment(Attachment atta)
Sets the attachment for this Segment. |
Segment |
setContent(java.lang.String content)
Sets a string that indicates the content of the text segment. |
Segment |
setHyperLink(HyperLink link)
Sets a Hyperlink object that indicates the hyper link info of the segment. |
void |
setJavaScript(java.lang.String javaScript)
Sets the javascript that will be executed when the text is clicked. |
void |
setSymbolReplaceable(boolean symbolReplaceable)
Sets a boolean value that indicates whether a symbol like #$TAB is replaceable or not. |
Segment |
setTextInfo(TextInfo textInfo)
Sets a TextInfo object that indicates the text info of the segment. |
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 Segment(Text parentText)
parentText
- The text that owns Segment.public Segment(Text parentText, java.lang.String content)
parentText
- The text that owns Segment.content
- The content string of the segment.public Segment(List parentList, java.lang.String content)
parentList
- The text that owns Segment.content
- The content string of the segment.public Segment(Heading heading, java.lang.String content)
heading
- The text that owns Segment.content
- The content string of the segment.public Segment(Heading heading)
heading
- The text that owns Segment.public Segment(Section section)
section
- Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PdfElementBase
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
Object.clone()
public java.lang.String getContent()
public Segment setContent(java.lang.String content)
content
- The content to set.public TextInfo getTextInfo()
public Segment setTextInfo(TextInfo textInfo)
textInfo
- public HyperLink getHyperLink()
public Segment setHyperLink(HyperLink link)
public int getAction()
public Segment setAction(int action)
action
- The action to set.ActionType
public java.lang.String getJavaScript()
public void setJavaScript(java.lang.String javaScript)
public void setAttachment(Attachment atta)
public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class PdfElementBase
AsposeBaseException
PdfElementBase.getDOMElement()
public boolean getSymbolReplaceable()
public void setSymbolReplaceable(boolean symbolReplaceable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |