JGraph X 1.4.1.0


com.mxgraph.io.vdx
Class mxGeneralShape

java.lang.Object
  extended by com.mxgraph.io.vdx.mxGeneralShape
Direct Known Subclasses:
mxDelegateShape, mxVdxShape

public class mxGeneralShape
extends Object

This class is a general wrapper for one Shape Element.
Provides a set of method for retrieve the value of the diferents properties stored in the shape element.
References to other shapes or stylesheets are not considered.


Field Summary
protected  Element shape
           
 
Constructor Summary
mxGeneralShape(Element shape)
          Create a new instance of mxGeneralShape
 
Method Summary
 int getAmountArcTo()
          Returns the amount of ArcTo Elements inside of Geom Element
 int getAmountConnection()
          Returns the amount of Connection Elements inside of Shape Element.
 int getAmountEllipticalArcTo()
          Returns the amount of EllipticalArcTo Elements inside of Geom Element
 int getAmountLineTo()
          Returns the amount of LineTo Elements inside of the Geom Element
 double getAngle()
          Returns the rotation angle of the Shape.
 String getBeginArrow()
          Returns the line begin arrow of the shape
 String getBeginArrowSize()
          Returns the line begin arrow size of the shape
 mxPoint getBeginXY(double parentHeight)
          Returns the co-ordinates of the begin point of an Edge Shape.
 String getBullet(String paraIX)
          Returns the bullet element value.
 String getEndArrow()
          Returns the line end arrow of the shape
 String getEndArrowSize()
          Returns the line end arrow size of the shape
 mxPoint getEndXY(double parentHeight)
          Returns the co-ordinates of the end point of an Edge Shape.
 String getFillColor()
          Returns the background color.
 String getFillForeColor()
          Returns the foreground color.
 String getFillPattern()
          Returns the pattern.
 String getFillStyleId()
          Returns the id of the stylesheet that contains the fill style.
 String getFlags(String paraIX)
          Returns the flags of one paragraph.
 double getHeight()
          Returns the value of the height element in pixels.
 int getHorizontalAlign(String paraIX)
          Returns the horizontal align property of text
 String getId()
          Returns the value of the Id attribute.
 String getIndentFirst(String paraIX)
          Returns the first indent of one paragraph in pixels.
 String getIndentLeft(String paraIX)
          Returns the indent to left of one paragraph
 String getIndentRight(String paraIX)
          Returns the indent to right of one paragraph
 String getLetterSpace(String paraIX)
          Returns the space between characters in one text fragment.
 String getLineColor()
          Returns the line color.
 String getLinePattern()
          Returns the line pattern of the shape
 String getLineStyleId()
          Returns the id of the stylesheet that contains the line style
static mxPoint getLineToXY(Element lineTo)
          Returns the xy co-ordinates inside a LineTo Element.
 double getLineWeight()
          Returns the line weight of the shape in pixels
 double getLocPinX()
          Returns the value of the locPinX element in pixels.
 double getLocPinY()
          Returns the value of the locPinY element in pixels.
 String getNameU()
          Returns the NameU attribute.
protected  double getNumericalValueOfSecundaryTag(Element primary, String tag)
          Returns the value of the element with tag name = 'tag' in the childrens of 'primary' in his double representation.
.vdx uses Inches for numerical representations, so this value is multiplied by the result of mxVdxUtils.conversionFactor() and is converted to pixels.
 double getPinX()
          Returns the value of the pinX element.
 double getPinY()
          Returns the value of the pinY element in pixels.
protected  Element getPrimaryTag(String tag)
          Returns the element with tag name = 'tag' in the childrens of shape
protected  Element getPrimaryTagIndexed(String tag, String ix)
          Returns the element with tag name = 'tag' and IX attribute = 'ix' in the childrens of shape.
 double getRounding()
          Returns the rounding factor.
 List<mxPoint> getRoutingPoints(double parentHeight)
          Returns the list of routing points of a edge shape.
 String getRTLText(String paraIX)
          Returns the direction of one text fragment.
 Element getShape()
          Returns the shape contained.
 String getShdwPattern()
          Returns the shadow pattern.
 String getSpAfter(String paraIX)
          Returns the space after one paragraph
 String getSpBefore(String paraIX)
          Returns the space before one paragraph.
 double getSpLine(String paraIX)
          Returns the space between lines in one paragraph.
 String getText()
          Returns the value of the Text element.
 String getTextBkgndColor()
          Returns the background color of text.
 double getTextBottomMargin()
          Returns the bottom margin of text in pixels.
 int getTextCase(String charIX)
          Returns the case property of one text fragment
 List<Node> getTextChildrens()
          Returns the childrens Nodes of Text.
 String getTextColor(String charIX)
          Returns the color of one text fragment
 String getTextFont(String charIX)
          Returns the font of one text fragment
 double getTextLeftMargin()
          Returns the left margin of text in pixels.
 int getTextPos(String charIX)
          Returns the position of one text fragment
 double getTextRightMargin()
          Returns the right margin of text in pixels.
 String getTextSize(String charIX)
          Returns the size of one text fragment in pixels.
 boolean getTextStrike(String charIX)
          Checks if one text fragment is Strikethru
 String getTextStyle(String charIX)
          Returns the style of one text fragment.
 String getTextStyleId()
          Returns the id of the stylesheet that contains the text style
 double getTextTopMargin()
          Returns the top margin of text in pixels.
 double getTransparence()
          Returns the level of transparence of the Shape.
 double getTxtAngle()
          Returns the angle of the text.
protected  String getValueOfSecundaryTag(Element primary, String tag)
          Returns the value of the element with tag name = 'tag' in the childrens of primary.
 int getVerticalAlign()
          Returns the vertical align property of text.
 double getWidth()
          Returns the value of the width element in pixels.
 boolean hasAngle()
          Checks if angle of the Shape is defined.
 boolean hasBeginArrow()
          Checks if begin arrow of the line is defined.
 boolean hasBeginArrowSize()
          Checks if begin arrow size of the line is defined.
 boolean hasBullet(String paraIX)
          Checks if the bullet element is defined.
 boolean hasEllipse()
          Checks if the Geom Element of the shape contains the Ellipse element.
 boolean hasEndArrow()
          Checks if end arrow of the line is defined.
 boolean hasEndArrowSize()
          Checks if end arrow size of the line is defined.
 boolean hasFillColor()
          Checks if back ground color of the Shape is defined.
 boolean hasFillForeColor()
          Checks if foreground color of the Shape is defined.
 boolean hasFillPattern()
          Checks if pattern of the Shape is defined.
 boolean hasFlags(String paraIX)
          Checks if the flags of one paragraph is defined.
 boolean hasHeight()
          Checks if the shape has defined a height element.
 boolean hasHorizontalAlign(String paraIX)
          Checks if the horizontal align of text is defined
 boolean hasIndentFirst(String paraIX)
          Checks if the first indent of one paragraph is defined
 boolean hasIndentLeft(String paraIX)
          Checks if the indent to left of one paragraph is defined
 boolean hasIndentRight(String paraIX)
          Checks if the indent to right of one paragraph is defined
 boolean hasLetterSpace(String paraIX)
          Checks if the space between characters in one text fragment is defined.
 boolean hasLineColor()
          Checks if line color of the Shape is defined.
 boolean hasLinePattern()
          Checks if pattern of the line is defined.
 boolean hasLineWeight()
          Checks if the line weight is defined.
 boolean hasLocPinX()
          Check if the shape has defined a locPinX element.
 boolean hasLocPinY()
          Check if the shape has defined a locPinY element.
 boolean hasPinX()
          Check if the shape has defined a pinX element.
 boolean hasPinY()
          Returns true if the shape has defined a pinY element.
protected  boolean hasPrimaryTag(String tag)
          Checks if the shape Element has a children with tag name = 'tag'.
 boolean hasRounding()
          Checks if the rounding factor of the Shape is defined.
 boolean hasRTLText(String paraIX)
          Checks if the direction of one text fragment is defined
protected  boolean hasSecundaryTag(Element primary, String tag)
          Checks if the 'primary' Element has a children with tag name = 'tag'.
 boolean hasShdwPattern()
          Checks if shadow pattern of the Shape is defined.
 boolean hasSpAfter(String paraIX)
          Checks if the space after one paragraph is defined
 boolean hasSpBefore(String paraIX)
          Checks if the space before one paragraph is defined
 boolean hasSpLine(String paraIX)
          Checks if the space between lines in one paragraph is defined
 boolean hasText()
          Checks if the shape has defined a Text element.
 boolean hasTextBkgndColor()
          Checks if the background color of text is defined
 boolean hasTextBottomMargin()
          Checks if the bottom margin of text is defined
 boolean hasTextCase(String charIX)
          Checks if the case of one text fragment is defined
 boolean hasTextColor(String charIX)
          Checks if the color of one text fragment is defined
 boolean hasTextFont(String charIX)
          Checks if the font of one text fragment is defined
 boolean hasTextLeftMargin()
          Checks if the left margin of text is defined.
 boolean hasTextPos(String charIX)
          Checks if the position of one text fragment is defined
 boolean hasTextRightMargin()
          Checks if the right margin of text is defined.
 boolean hasTextSize(String charIX)
          Checks if the size of one text fragment is defined.
 boolean hasTextStrike(String charIX)
          Checks if the strikethru of one text fragment is defined
 boolean hasTextStyle(String charIX)
          Checks if the style of one text fragment is defined.
 boolean hasTextTopMargin()
          Checks if the top margin of text is defined
 boolean hasTransparence()
          Checks if transparence of the Shape is defined.
 boolean hasTxtAngle()
          Checks if the angle of text is defined
 boolean hasVerticalAlign()
          Checks if the vertical align of text is defined.
 boolean hasWidth()
          Checks if the shape has defined a width element.
 boolean hasXForm1D()
          Checks if the shape has the XForm1D element.
 void setShape(Element shape)
          Sets the shape to be contained.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shape

protected Element shape
Constructor Detail

mxGeneralShape

public mxGeneralShape(Element shape)
Create a new instance of mxGeneralShape

Parameters:
shape - Shape Element to be wrapped.
Method Detail

getShape

public Element getShape()
Returns the shape contained.

Returns:
Shape Element contained.

setShape

public void setShape(Element shape)
Sets the shape to be contained.

Parameters:
shape - Shape Element to be contained.

getFillStyleId

public String getFillStyleId()
Returns the id of the stylesheet that contains the fill style.

Returns:
ID of the stylesheet.

getLineStyleId

public String getLineStyleId()
Returns the id of the stylesheet that contains the line style

Returns:
ID of the stylesheet.

getTextStyleId

public String getTextStyleId()
Returns the id of the stylesheet that contains the text style

Returns:
ID of the stylesheet.

hasPrimaryTag

protected boolean hasPrimaryTag(String tag)
Checks if the shape Element has a children with tag name = 'tag'.

Parameters:
tag - Name of the Element to be found.
Returns:
Returns true if the shape Element has a children with tag name = 'tag'

getPrimaryTag

protected Element getPrimaryTag(String tag)
Returns the element with tag name = 'tag' in the childrens of shape

Parameters:
tag - Name of the Element to be found.
Returns:
Element with tag name = 'tag'.

getPrimaryTagIndexed

protected Element getPrimaryTagIndexed(String tag,
                                       String ix)
Returns the element with tag name = 'tag' and IX attribute = 'ix' in the childrens of shape.

Parameters:
tag - Name of the Element to be found.
ix - Index of the Element to be found.
Returns:
Element with tag name = 'tag' and IX attribute = 'ix'.

hasSecundaryTag

protected boolean hasSecundaryTag(Element primary,
                                  String tag)
Checks if the 'primary' Element has a children with tag name = 'tag'.

Parameters:
tag - Name of the Element to be found.
Returns:
Returns true if the 'primary' Element has a children with tag name = 'tag'.

getNumericalValueOfSecundaryTag

protected double getNumericalValueOfSecundaryTag(Element primary,
                                                 String tag)
Returns the value of the element with tag name = 'tag' in the childrens of 'primary' in his double representation.
.vdx uses Inches for numerical representations, so this value is multiplied by the result of mxVdxUtils.conversionFactor() and is converted to pixels.

Parameters:
tag - Name of the Element to be found.
Returns:
Numerical value of the element.

getValueOfSecundaryTag

protected String getValueOfSecundaryTag(Element primary,
                                        String tag)
Returns the value of the element with tag name = 'tag' in the childrens of primary.

Parameters:
tag - Name of the Element to be found.
Returns:
String value of the element.

hasPinX

public boolean hasPinX()
Check if the shape has defined a pinX element.

Returns:
Returns true if the shape has defined a pinX element.

getPinX

public double getPinX()
Returns the value of the pinX element.

Returns:
The shape pinX element

hasPinY

public boolean hasPinY()
Returns true if the shape has defined a pinY element.

Returns:
Returns true if the shape has defined a pinY element.

getPinY

public double getPinY()
Returns the value of the pinY element in pixels.

Returns:
Numerical value of the pinY element.

hasLocPinX

public boolean hasLocPinX()
Check if the shape has defined a locPinX element.

Returns:
Returns true if the shape has defined a locPinX element.

getLocPinX

public double getLocPinX()
Returns the value of the locPinX element in pixels.

Returns:
Numerical value of the pinY element.

hasLocPinY

public boolean hasLocPinY()
Check if the shape has defined a locPinY element.

Returns:
Returns true if the shape has defined a locPinY element.

getLocPinY

public double getLocPinY()
Returns the value of the locPinY element in pixels.

Returns:
Numerical value of the locPinY element.

hasWidth

public boolean hasWidth()
Checks if the shape has defined a width element.

Returns:
Returns true if the shape has defined a width element.

getWidth

public double getWidth()
Returns the value of the width element in pixels.

Returns:
Numerical value of the width element.

hasHeight

public boolean hasHeight()
Checks if the shape has defined a height element.

Returns:
Returns true if the shape has defined a height element.

getHeight

public double getHeight()
Returns the value of the height element in pixels.

Returns:
Numerical value of the height element.

hasFillColor

public boolean hasFillColor()
Checks if back ground color of the Shape is defined.

Returns:
Returns true if back ground color of the Shape is defined.

getFillColor

public String getFillColor()
Returns the background color.

Returns:
Background color in hexadecimal representation.

hasFillForeColor

public boolean hasFillForeColor()
Checks if foreground color of the Shape is defined.

Returns:
Returns true if foreground color of the Shape is defined.

getFillForeColor

public String getFillForeColor()
Returns the foreground color.

Returns:
Foreground color in hexadecimal representation.

hasFillPattern

public boolean hasFillPattern()
Checks if pattern of the Shape is defined.

Returns:
Returns true if pattern of the Shape is defined.

getFillPattern

public String getFillPattern()
Returns the pattern.

Returns:
String value of the FillPattern element.

hasShdwPattern

public boolean hasShdwPattern()
Checks if shadow pattern of the Shape is defined.

Returns:
Returns true if shadow pattern of the Shape is defined.

getShdwPattern

public String getShdwPattern()
Returns the shadow pattern.

Returns:
String value of the ShdwPattern Element

hasLinePattern

public boolean hasLinePattern()
Checks if pattern of the line is defined.

Returns:
Returns true if pattern of the line is defined.

getLinePattern

public String getLinePattern()
Returns the line pattern of the shape

Returns:
String value of the LinePattern element.

hasBeginArrow

public boolean hasBeginArrow()
Checks if begin arrow of the line is defined.

Returns:
Returns true if begin arrow of the line is defined.

getBeginArrow

public String getBeginArrow()
Returns the line begin arrow of the shape

Returns:
String value of the BeginArrow element.

hasEndArrow

public boolean hasEndArrow()
Checks if end arrow of the line is defined.

Returns:
Returns true if end arrow of the line is defined.

getEndArrow

public String getEndArrow()
Returns the line end arrow of the shape

Returns:
String value of the EndArrow element.

hasBeginArrowSize

public boolean hasBeginArrowSize()
Checks if begin arrow size of the line is defined.

Returns:
Returns true if begin arrow size of the line is defined.

getBeginArrowSize

public String getBeginArrowSize()
Returns the line begin arrow size of the shape

Returns:
String value of the BeginArrowSize element.

hasEndArrowSize

public boolean hasEndArrowSize()
Checks if end arrow size of the line is defined.

Returns:
Returns true if end arrow size of the line is defined.

getEndArrowSize

public String getEndArrowSize()
Returns the line end arrow size of the shape

Returns:
String value of the EndArrowSize element.

hasLineWeight

public boolean hasLineWeight()
Checks if the line weight is defined.

Returns:
Returns true if the line weight is defined.

getLineWeight

public double getLineWeight()
Returns the line weight of the shape in pixels

Returns:
Numerical value of the LineWeight element.

hasLineColor

public boolean hasLineColor()
Checks if line color of the Shape is defined.

Returns:
Returns true if line color of the Shape is defined.

getLineColor

public String getLineColor()
Returns the line color.

Returns:
Line color of the shape in hexadecimal representation.

hasRounding

public boolean hasRounding()
Checks if the rounding factor of the Shape is defined.

Returns:
Returns true if line color of the Shape is defined.

getRounding

public double getRounding()
Returns the rounding factor.

Returns:
Value of the Rounding element

hasTransparence

public boolean hasTransparence()
Checks if transparence of the Shape is defined.

Returns:
Returns true if transparence of the Shape is defined.

getTransparence

public double getTransparence()
Returns the level of transparence of the Shape.

Returns:
double in range (opaque = 0)..(100 = transparent)

hasAngle

public boolean hasAngle()
Checks if angle of the Shape is defined.

Returns:
Returns true if angle of the Shape is defined.

getAngle

public double getAngle()
Returns the rotation angle of the Shape.

Returns:
Value of the Angle element in radians.

hasText

public boolean hasText()
Checks if the shape has defined a Text element.

Returns:
Returns true if the shape has defined a Text element.

getText

public String getText()
Returns the value of the Text element.

Returns:
Value of the Text element.

getTextChildrens

public List<Node> getTextChildrens()
Returns the childrens Nodes of Text.

Returns:
List with the childrens of the Text element.

getNameU

public String getNameU()
Returns the NameU attribute.

Returns:
Value of the NameU attribute.

getId

public String getId()
Returns the value of the Id attribute.

Returns:
Value of the Id attribute.

hasEllipse

public boolean hasEllipse()
Checks if the Geom Element of the shape contains the Ellipse element.

Returns:
Returns true if the Geom Element of the shape contains the Ellipse element.

getAmountLineTo

public int getAmountLineTo()
Returns the amount of LineTo Elements inside of the Geom Element

Returns:
Number of LineTo elements.

getAmountConnection

public int getAmountConnection()
Returns the amount of Connection Elements inside of Shape Element.

Returns:
Number of Connection Elements.

getAmountEllipticalArcTo

public int getAmountEllipticalArcTo()
Returns the amount of EllipticalArcTo Elements inside of Geom Element

Returns:
Number of EllipticalArcTo Elements.

getAmountArcTo

public int getAmountArcTo()
Returns the amount of ArcTo Elements inside of Geom Element

Returns:
Number of ArcTo Elements.

hasXForm1D

public boolean hasXForm1D()
Checks if the shape has the XForm1D element.

Returns:
Returns true if the shape has the XForm1D element.

getBeginXY

public mxPoint getBeginXY(double parentHeight)
Returns the co-ordinates of the begin point of an Edge Shape.

Parameters:
parentHeight - Height of the parent of the shape.
Returns:
mxPoint that represents the co-ordinates.

getEndXY

public mxPoint getEndXY(double parentHeight)
Returns the co-ordinates of the end point of an Edge Shape.

Parameters:
parentHeight - Height of the parent of the shape.
Returns:
mxPoint that represents the co-ordinates.

getRoutingPoints

public List<mxPoint> getRoutingPoints(double parentHeight)
Returns the list of routing points of a edge shape.

Parameters:
parentHeight - Height of the parent of the shape.
Returns:
List of mxPoint that represents the routing points.

getLineToXY

public static mxPoint getLineToXY(Element lineTo)
Returns the xy co-ordinates inside a LineTo Element.

Parameters:
lineTo - LineTo Element
Returns:
mxPoint that represents the xy co-ordinates

hasTextColor

public boolean hasTextColor(String charIX)
Checks if the color of one text fragment is defined

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the color of one text fragment is defined.

getTextColor

public String getTextColor(String charIX)
Returns the color of one text fragment

Parameters:
charIX - IX atribute of Char element
Returns:
Text color in hexadecimal representation.

hasTextBkgndColor

public boolean hasTextBkgndColor()
Checks if the background color of text is defined

Returns:
Returns true if the background color of text is defined.

getTextBkgndColor

public String getTextBkgndColor()
Returns the background color of text.

Returns:
Text background color in hexadecimal representation.

hasTextTopMargin

public boolean hasTextTopMargin()
Checks if the top margin of text is defined

Returns:
Returns true if the top margin of text is defined

getTextTopMargin

public double getTextTopMargin()
Returns the top margin of text in pixels.

Returns:
Numerical value of the TopMargin element

hasTextBottomMargin

public boolean hasTextBottomMargin()
Checks if the bottom margin of text is defined

Returns:
Returns true if the bottom margin of text is defined.

getTextBottomMargin

public double getTextBottomMargin()
Returns the bottom margin of text in pixels.

Returns:
Numerical value of the BottomMargin element.

hasTextLeftMargin

public boolean hasTextLeftMargin()
Checks if the left margin of text is defined.

Returns:
Returns true if the left margin of text is defined.

getTextLeftMargin

public double getTextLeftMargin()
Returns the left margin of text in pixels.

Returns:
Numerical value of the LeftMargin element.

hasTextRightMargin

public boolean hasTextRightMargin()
Checks if the right margin of text is defined.

Returns:
Returns true if the right margin of text is defined.

getTextRightMargin

public double getTextRightMargin()
Returns the right margin of text in pixels.

Returns:
Numerical value of the RightMargin element.

hasTextSize

public boolean hasTextSize(String charIX)
Checks if the size of one text fragment is defined.

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the size of one text fragment is defined.

getTextSize

public String getTextSize(String charIX)
Returns the size of one text fragment in pixels.

Parameters:
charIX - IX atribute of Char element
Returns:
String representation of the numerical value of the Size element.

hasTextStyle

public boolean hasTextStyle(String charIX)
Checks if the style of one text fragment is defined.

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the style of one text fragment is defined.

getTextStyle

public String getTextStyle(String charIX)
Returns the style of one text fragment.

Parameters:
charIX - IX atribute of Char element
Returns:
String value of the Style element.

hasTextFont

public boolean hasTextFont(String charIX)
Checks if the font of one text fragment is defined

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the font of one text fragment is defined.

getTextFont

public String getTextFont(String charIX)
Returns the font of one text fragment

Parameters:
charIX - IX atribute of Char element
Returns:
Name of the font.

hasTextPos

public boolean hasTextPos(String charIX)
Checks if the position of one text fragment is defined

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the position of one text fragment is defined.

getTextPos

public int getTextPos(String charIX)
Returns the position of one text fragment

Parameters:
charIX - IX atribute of Char element
Returns:
Integer value of the Pos element.

hasTextStrike

public boolean hasTextStrike(String charIX)
Checks if the strikethru of one text fragment is defined

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the strikethru of one text fragment is defined

getTextStrike

public boolean getTextStrike(String charIX)
Checks if one text fragment is Strikethru

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if one text fragment is Strikethru

hasTextCase

public boolean hasTextCase(String charIX)
Checks if the case of one text fragment is defined

Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the case of one text fragment is defined.

getTextCase

public int getTextCase(String charIX)
Returns the case property of one text fragment

Parameters:
charIX - IX atribute of Char element
Returns:
Integer value of the Case element

hasVerticalAlign

public boolean hasVerticalAlign()
Checks if the vertical align of text is defined.

Returns:
Returns true if the vertical align of text is defined.

getVerticalAlign

public int getVerticalAlign()
Returns the vertical align property of text.

Returns:
Integer value of the VerticalAlign element.

hasTxtAngle

public boolean hasTxtAngle()
Checks if the angle of text is defined

Returns:
Returns true if the angle of text is defined.

getTxtAngle

public double getTxtAngle()
Returns the angle of the text.

Returns:
Double value of the TxtAngle element.

hasHorizontalAlign

public boolean hasHorizontalAlign(String paraIX)
Checks if the horizontal align of text is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the horizontal align of text is defined.

getHorizontalAlign

public int getHorizontalAlign(String paraIX)
Returns the horizontal align property of text

Parameters:
paraIX - IX atribute of Para element
Returns:
Integer value of the HorizontalAlign element.

hasIndentFirst

public boolean hasIndentFirst(String paraIX)
Checks if the first indent of one paragraph is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the first indent of one paragraph is defined.

getIndentFirst

public String getIndentFirst(String paraIX)
Returns the first indent of one paragraph in pixels.

Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the IndentFirst element.

hasIndentLeft

public boolean hasIndentLeft(String paraIX)
Checks if the indent to left of one paragraph is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the indent to left of one paragraph is defined.

getIndentLeft

public String getIndentLeft(String paraIX)
Returns the indent to left of one paragraph

Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the IndentLeft element.

hasIndentRight

public boolean hasIndentRight(String paraIX)
Checks if the indent to right of one paragraph is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the indent to right of one paragraph is defined.

getIndentRight

public String getIndentRight(String paraIX)
Returns the indent to right of one paragraph

Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the IndentRight element.

hasSpBefore

public boolean hasSpBefore(String paraIX)
Checks if the space before one paragraph is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the space before one paragraph is defined.

getSpBefore

public String getSpBefore(String paraIX)
Returns the space before one paragraph.

Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the SpBefore element.

hasSpAfter

public boolean hasSpAfter(String paraIX)
Checks if the space after one paragraph is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the space after one paragraph is defined.

getSpAfter

public String getSpAfter(String paraIX)
Returns the space after one paragraph

Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the SpAfter element.

hasSpLine

public boolean hasSpLine(String paraIX)
Checks if the space between lines in one paragraph is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the space between lines in one paragraph is defined.

getSpLine

public double getSpLine(String paraIX)
Returns the space between lines in one paragraph.

Parameters:
paraIX - IX atribute of Para element.
Returns:
Double representation of the value of the SpLine element.

hasFlags

public boolean hasFlags(String paraIX)
Checks if the flags of one paragraph is defined.

Parameters:
paraIX - IX atribute of Para element.
Returns:
Returns true if the flags of one paragraph is defined.

getFlags

public String getFlags(String paraIX)
Returns the flags of one paragraph.

Parameters:
paraIX - IX atribute of Para element.
Returns:
String value of the Flags element.

hasRTLText

public boolean hasRTLText(String paraIX)
Checks if the direction of one text fragment is defined

Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the direction of one text fragment is defined.

getRTLText

public String getRTLText(String paraIX)
Returns the direction of one text fragment.

Parameters:
paraIX - IX atribute of Para element.
Returns:
String value of the RTLText.

hasLetterSpace

public boolean hasLetterSpace(String paraIX)
Checks if the space between characters in one text fragment is defined.

Parameters:
paraIX - IX atribute of Para element.
Returns:
Returns true if the space between characters in one text fragment is defined.

getLetterSpace

public String getLetterSpace(String paraIX)
Returns the space between characters in one text fragment.

Parameters:
paraIX - IX atribute of Para element.
Returns:
String representation of the numerical value of the Letterspace element.

hasBullet

public boolean hasBullet(String paraIX)
Checks if the bullet element is defined.

Parameters:
paraIX - IX atribute of Para element.
Returns:
Returns true if the bullet element is defined.

getBullet

public String getBullet(String paraIX)
Returns the bullet element value.

Parameters:
paraIX - IX atribute of Para element.
Returns:
String value of the Bullet element.

JGraph X 1.4.1.0


Copyright (c) 2010 Gaudenz Alder. All rights reserved.