|
JGraph X 1.4.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mxgraph.io.vdx.mxVdxTextParser
public class mxVdxTextParser
This class allows get the text contained in a shape formated with tags html.
The properties referenced in the Text element are processed by this class.
Constructor Summary | |
---|---|
mxVdxTextParser(mxVdxShape shape,
mxMasterShape masterShape,
mxStyleSheet styleSheet)
Creates a new instance of mxVdxTextParser. |
Method Summary | |
---|---|
String |
getBulletValue(String index)
Returns the value of the Bullet element of the shape. This element may to be founded in the shape, master shape, stylesheet or default stylesheet. |
int |
getCase(String index)
Returns the value of the case property. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getCharDirection(String index)
Returns the direction of the text. |
String |
getCharSpace(String index)
Returns the space between characters. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getHorzAlign(String index)
Return the value of the horizontal align. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getHtmlTextContent()
Returns the text contained in the shape formated with tags html. |
String |
getIndFirst(String index)
Returns the indent of the first line in a paragraph. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getIndLeft(String index)
Returns the indent to left in a paragraph. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getIndRight(String index)
Returns the indent to right in a paragraph. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
int |
getPos(String index)
Returns the Position of the text(If is superscript, subscript or normal text). This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getSpcAfter(String index)
Returns the space after a paragraph. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getSpcBefore(String index)
Returns the space before a paragraph. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getSpcLine(String index)
Returns the space between lines in a paragraph. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getTextCharFormated(String text)
Returns the text formated according the properties in the last Char element referenced. |
String |
getTextDirection(String index)
Returns the direction of the text. |
String |
getTextFont(String index)
Returns the actual font defined by the Char element referenced in cp. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
getTextParagraphFormated(String para)
Returns the paragraph formated according the properties in the last Para element referenced. |
String |
insertAttributes(String text,
HashMap<String,Object> attr)
Inserts the style attributes contained in attr into the text. The text must be surrounded by tags html. |
boolean |
isBold(String index)
Checks if the style property of the Char element of index = 'index' indicates bold. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
boolean |
isItalic(String index)
Checks if the style property of the Char element of index = 'index' indicates italic. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
boolean |
isSmallCaps(String index)
Checks if the style property of the Char element of index = 'index' indicates small caps. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
boolean |
isStrikeThru(String index)
Checks if the strikethru property of the Char element of index = 'index' indicates true. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
boolean |
isUnderline(String index)
Checks if the style property of the Char element of index = 'index' indicates underline. This property may to be founded in the shape, master shape, stylesheet or default stylesheet. |
String |
textToList(String text,
String pp)
Transform plain text into a html list if the Para element referenced by pp indicates it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mxVdxTextParser(mxVdxShape shape, mxMasterShape masterShape, mxStyleSheet styleSheet)
shape
- Shape that contains the text.masterShape
- Master Shape of the shape.styleSheet
- Stylesheet with the Text Style.Method Detail |
---|
public String getHtmlTextContent()
public String textToList(String text, String pp)
text
- Text to be transformed.pp
- Reference to a Para element.
public String getBulletValue(String index)
index
- Index of the Para element that contains the Bullet element.
public String getTextParagraphFormated(String para)
para
- Paragraph to be formated
public String getTextDirection(String index)
index
- Index of the Para element that contains the Flags element.
public String getSpcLine(String index)
index
- Index of the Para element that contains the SpLine element.
public String getSpcBefore(String index)
index
- Index of the Para element that contains the SpBefore element.
public String getSpcAfter(String index)
index
- Index of the Para element that contains the SpAfter element.
public String getIndLeft(String index)
index
- Index of the Para element that contains the IndLeft element.
public String getIndRight(String index)
index
- Index of the Para element that contains the IndRight element.
public String getIndFirst(String index)
index
- Index of the Para element that contains the IndFirst element.
public String getHorzAlign(String index)
index
- Index of the Para element that contains the HorzAlign element.
public String insertAttributes(String text, HashMap<String,Object> attr)
text
- Text where the attributes must be inserted.attr
- Map with the attributes.
public String getTextCharFormated(String text)
text
- Text to be formated
public String getCharSpace(String index)
index
- Index of the Char element that contains the LetterSpace element.
public String getCharDirection(String index)
index
- Index of the Char element that contains the RTLText element.
public int getCase(String index)
index
- Index of the Char element that contains the Case element.
public int getPos(String index)
index
- Index of the Char element that contains the Pos element.
public boolean isBold(String index)
index
- Index of the Char element that contains the Style element.
true
if the style property of the Char element of
index = 'index' indicates bold.public boolean isItalic(String index)
index
- Index of the Char element that contains the Style element.
true
if the style property of the Char element of
index = 'index' indicates italic.public boolean isUnderline(String index)
index
- Index of the Char element that contains the Style element.
true
if the style property of the Char element of
index = 'index' indicates underline.public boolean isSmallCaps(String index)
index
- Index of the Char element that contains the Style element.
true
if the style property of the Char element of
index = 'index' indicates small caps.public boolean isStrikeThru(String index)
index
- Index of the Char element that contains the StrikeThru element.
true
if the strikethru property of the Char
element of index = 'index' indicates true.public String getTextFont(String index)
index
- Index of the Char element that contains the Font element.
|
JGraph X 1.4.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |