|
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.mxGeneralShape
public class mxGeneralShape
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 |
---|
protected Element shape
Constructor Detail |
---|
public mxGeneralShape(Element shape)
shape
- Shape Element to be wrapped.Method Detail |
---|
public Element getShape()
public void setShape(Element shape)
shape
- Shape Element to be contained.public String getFillStyleId()
public String getLineStyleId()
public String getTextStyleId()
protected boolean hasPrimaryTag(String tag)
tag
- Name of the Element to be found.
true
if the shape Element has a children with tag name = 'tag'protected Element getPrimaryTag(String tag)
tag
- Name of the Element to be found.
protected Element getPrimaryTagIndexed(String tag, String ix)
tag
- Name of the Element to be found.ix
- Index of the Element to be found.
protected boolean hasSecundaryTag(Element primary, String tag)
tag
- Name of the Element to be found.
true
if the 'primary' Element has a children with tag name = 'tag'.protected double getNumericalValueOfSecundaryTag(Element primary, String tag)
mxVdxUtils.conversionFactor()
and is converted to pixels.
tag
- Name of the Element to be found.
protected String getValueOfSecundaryTag(Element primary, String tag)
tag
- Name of the Element to be found.
public boolean hasPinX()
true
if the shape has defined a pinX element.public double getPinX()
public boolean hasPinY()
true
if the shape has defined a pinY element.
true
if the shape has defined a pinY element.public double getPinY()
public boolean hasLocPinX()
true
if the shape has defined a locPinX element.public double getLocPinX()
public boolean hasLocPinY()
true
if the shape has defined a locPinY element.public double getLocPinY()
public boolean hasWidth()
true
if the shape has defined a width element.public double getWidth()
public boolean hasHeight()
true
if the shape has defined a height element.public double getHeight()
public boolean hasFillColor()
true
if back ground color of the Shape is defined.public String getFillColor()
public boolean hasFillForeColor()
true
if foreground color of the Shape is defined.public String getFillForeColor()
public boolean hasFillPattern()
true
if pattern of the Shape is defined.public String getFillPattern()
public boolean hasShdwPattern()
true
if shadow pattern of the Shape is defined.public String getShdwPattern()
public boolean hasLinePattern()
true
if pattern of the line is defined.public String getLinePattern()
public boolean hasBeginArrow()
true
if begin arrow of the line is defined.public String getBeginArrow()
public boolean hasEndArrow()
true
if end arrow of the line is defined.public String getEndArrow()
public boolean hasBeginArrowSize()
true
if begin arrow size of the line is defined.public String getBeginArrowSize()
public boolean hasEndArrowSize()
true
if end arrow size of the line is defined.public String getEndArrowSize()
public boolean hasLineWeight()
true
if the line weight is defined.public double getLineWeight()
public boolean hasLineColor()
true
if line color of the Shape is defined.public String getLineColor()
public boolean hasRounding()
true
if line color of the Shape is defined.public double getRounding()
public boolean hasTransparence()
true
if transparence of the Shape is defined.public double getTransparence()
public boolean hasAngle()
true
if angle of the Shape is defined.public double getAngle()
public boolean hasText()
true
if the shape has defined a Text element.public String getText()
public List<Node> getTextChildrens()
public String getNameU()
public String getId()
public boolean hasEllipse()
true
if the Geom Element of the shape contains the Ellipse element.public int getAmountLineTo()
public int getAmountConnection()
public int getAmountEllipticalArcTo()
public int getAmountArcTo()
public boolean hasXForm1D()
true
if the shape has the XForm1D element.public mxPoint getBeginXY(double parentHeight)
parentHeight
- Height of the parent of the shape.
public mxPoint getEndXY(double parentHeight)
parentHeight
- Height of the parent of the shape.
public List<mxPoint> getRoutingPoints(double parentHeight)
parentHeight
- Height of the parent of the shape.
public static mxPoint getLineToXY(Element lineTo)
lineTo
- LineTo Element
public boolean hasTextColor(String charIX)
charIX
- IX atribute of Char element
true
if the color of one text fragment is defined.public String getTextColor(String charIX)
charIX
- IX atribute of Char element
public boolean hasTextBkgndColor()
true
if the background color of text is defined.public String getTextBkgndColor()
public boolean hasTextTopMargin()
true
if the top margin of text is definedpublic double getTextTopMargin()
public boolean hasTextBottomMargin()
true
if the bottom margin of text is defined.public double getTextBottomMargin()
public boolean hasTextLeftMargin()
true
if the left margin of text is defined.public double getTextLeftMargin()
public boolean hasTextRightMargin()
true
if the right margin of text is defined.public double getTextRightMargin()
public boolean hasTextSize(String charIX)
charIX
- IX atribute of Char element
true
if the size of one text fragment is defined.public String getTextSize(String charIX)
charIX
- IX atribute of Char element
public boolean hasTextStyle(String charIX)
charIX
- IX atribute of Char element
true
if the style of one text fragment is defined.public String getTextStyle(String charIX)
charIX
- IX atribute of Char element
public boolean hasTextFont(String charIX)
charIX
- IX atribute of Char element
true
if the font of one text fragment is defined.public String getTextFont(String charIX)
charIX
- IX atribute of Char element
public boolean hasTextPos(String charIX)
charIX
- IX atribute of Char element
true
if the position of one text fragment is defined.public int getTextPos(String charIX)
charIX
- IX atribute of Char element
public boolean hasTextStrike(String charIX)
charIX
- IX atribute of Char element
true
if the strikethru of one text fragment is definedpublic boolean getTextStrike(String charIX)
charIX
- IX atribute of Char element
true
if one text fragment is Strikethrupublic boolean hasTextCase(String charIX)
charIX
- IX atribute of Char element
true
if the case of one text fragment is defined.public int getTextCase(String charIX)
charIX
- IX atribute of Char element
public boolean hasVerticalAlign()
true
if the vertical align of text is defined.public int getVerticalAlign()
public boolean hasTxtAngle()
true
if the angle of text is defined.public double getTxtAngle()
public boolean hasHorizontalAlign(String paraIX)
paraIX
- IX atribute of Para element
true
if the horizontal align of text is defined.public int getHorizontalAlign(String paraIX)
paraIX
- IX atribute of Para element
public boolean hasIndentFirst(String paraIX)
paraIX
- IX atribute of Para element
true
if the first indent of one paragraph is defined.public String getIndentFirst(String paraIX)
paraIX
- IX atribute of Para element
public boolean hasIndentLeft(String paraIX)
paraIX
- IX atribute of Para element
true
if the indent to left of one paragraph is defined.public String getIndentLeft(String paraIX)
paraIX
- IX atribute of Para element
public boolean hasIndentRight(String paraIX)
paraIX
- IX atribute of Para element
true
if the indent to right of one paragraph is defined.public String getIndentRight(String paraIX)
paraIX
- IX atribute of Para element
public boolean hasSpBefore(String paraIX)
paraIX
- IX atribute of Para element
true
if the space before one paragraph is defined.public String getSpBefore(String paraIX)
paraIX
- IX atribute of Para element
public boolean hasSpAfter(String paraIX)
paraIX
- IX atribute of Para element
true
if the space after one paragraph is defined.public String getSpAfter(String paraIX)
paraIX
- IX atribute of Para element
public boolean hasSpLine(String paraIX)
paraIX
- IX atribute of Para element
true
if the space between lines in one paragraph is defined.public double getSpLine(String paraIX)
paraIX
- IX atribute of Para element.
public boolean hasFlags(String paraIX)
paraIX
- IX atribute of Para element.
true
if the flags of one paragraph is defined.public String getFlags(String paraIX)
paraIX
- IX atribute of Para element.
public boolean hasRTLText(String paraIX)
paraIX
- IX atribute of Para element
true
if the direction of one text fragment is defined.public String getRTLText(String paraIX)
paraIX
- IX atribute of Para element.
public boolean hasLetterSpace(String paraIX)
paraIX
- IX atribute of Para element.
true
if the space between characters in one text fragment is defined.public String getLetterSpace(String paraIX)
paraIX
- IX atribute of Para element.
public boolean hasBullet(String paraIX)
paraIX
- IX atribute of Para element.
true
if the bullet element is defined.public String getBullet(String paraIX)
paraIX
- IX atribute of Para element.
|
JGraph X 1.4.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |