|
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
com.mxgraph.io.vdx.mxVdxShape
public class mxVdxShape
This class is a wrapper for one Shape Element.
This class is responsible for retrieve all the properties of the shape and add it
to the graph. If a property is not found in the shape element but it is an instance
of a Master, the property is taken from the masterShape element. If the property
is not found neither in the masterShape , and it has a reference to a stylesheet
the property is taken from there.
Field Summary |
---|
Fields inherited from class com.mxgraph.io.vdx.mxGeneralShape |
---|
shape |
Constructor Summary | |
---|---|
mxVdxShape(Element shape)
Create a new instance of mxVdxShape. |
Method Summary | |
---|---|
mxCell |
addComplexShapeToGraph(mxGraph graph,
Object parent,
double parentHeight)
Adds a Complex shape to the graph. |
mxCell |
addSimpleShapeToGraph(mxGraph graph,
Object parent,
double parentHeight)
Adds a simple shape to the graph |
boolean |
containsXForm1D()
Checks if the shape or the master shape has the XForm1D element. |
String |
getAlignVertical()
Returns the vertical align of the label. The property may to be defined in master shape or text stylesheet. |
double |
getBottomSpacing()
Returns the bottom spacing of the label in pixels. The property may to be defined in master shape or text stylesheet. |
mxPoint |
getDimentions()
Returns the width and height of the Shape expressed like a mxPoint. x = width y = height When a dimention is not found, it is taken from masterShape. |
String |
getEdgeStyle()
Returns the style of the edge. |
String |
getFinalArrow()
Returns the end arrow of the line. |
float |
getFinalArrowSize()
Returns the end arrow size. The property may to be defined in master shape or line stylesheet. Determines the value in pixels of each arrow size category in .vdx. |
String |
getIsRounded()
Returns if the line is Rounded. The property may to be defined in master shape or line stylesheet. |
String |
getIsShadow()
Return if the line has shadow. The property may to be defined in master shape or line stylesheet. |
String |
getLabelBkgndColor()
Returns the label background color. The property may to be defined in master shape or text stylesheet. |
boolean |
getLabelRotation()
Checks if the label must be rotated. The property may to be defined in master shape or text stylesheet. |
double |
getLeftSpacing()
Returns the left spacing of the label in pixels. The property may to be defined in master shape or text stylesheet. |
String |
getLineStrokeColor()
Returns the line color. The property may to be defined in master shape or line stylesheet. |
double |
getLineWidth()
Returns the line width. The property may to be defined in master shape or line stylesheet. |
String |
getMasterId()
Returns the master's Id of the Shape. |
mxPoint |
getOriginPoint(double parentHeight)
Returns the coordinates of the top left corner of the Shape. |
double |
getRightSpacing()
Returns the right spacing of the label in pixels. The property may to be defined in master shape or text stylesheet. |
double |
getRotation()
Returns the rotation of the shape. If no gradient must be applicated, returns an empty string. |
String |
getShapeMasterId()
Returns the masterShape's Id of the shape. |
String |
getStartArrow()
Returns the start arrow of the line. |
float |
getStartArrowSize()
Returns the start arrow size. The property may to be defined in master shape or line stylesheet. Determines the value in pixels of each arrow size category in .vdx. |
String |
getStyleFromEdgeShape(double parentHeight)
Analizes a edge shape and returns a string with the style. |
String |
getStyleFromShape(double parentHeight)
Analizes the shape and returns a string whith the style. |
String |
getTextLabel()
Returns the value of the Text element. If the shape has not text, it is obtained from master shape. |
double |
getTopSpacing()
Returns the top spacing of the label in pixels. The property may to be defined in master shape or text stylesheet. |
mxPoint[] |
getVertexPoints(double parentHeight)
Returns the points of a vertex shape. |
boolean |
isComplexShape()
Returns if the shape is composed for several shapes. |
boolean |
isConnectorBigNameU(String nameU)
Checks if a nameU is for big connectors. |
boolean |
isDashed()
Checks if the lines of the shape are dashed. The property may to be defined in master shape or line stylesheet. |
boolean |
isExceptionEdge()
Checks if the shape must be treated as an edge. |
boolean |
isGroup()
Checks if a shape contains other shapes inside. |
boolean |
isSupportedShape()
Checks if the shape is supported by the application. |
boolean |
isVertexShape()
Checks if the shape represents a vertex. |
String |
lookForMasterId()
Gets the Master's Id of the shape. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mxVdxShape(Element shape)
shape
- Method Detail |
---|
public String getTextLabel()
public boolean isConnectorBigNameU(String nameU)
nameU
- NameU attribute.
true
if a nameU is for big connectors.public boolean containsXForm1D()
true
if the shape or the master shape
has the XForm1D element.public boolean isExceptionEdge()
true
if the shape must be treated as an edge.public boolean isVertexShape()
true
if the shape represents a vertex.public boolean isSupportedShape()
true
if the shape is supported by the application.public mxPoint getOriginPoint(double parentHeight)
parentHeight
- Height of the parent cell of the shape.
public mxPoint getDimentions()
public double getRotation()
public String getLabelBkgndColor()
public double getTopSpacing()
public double getBottomSpacing()
public double getLeftSpacing()
public double getRightSpacing()
public String getAlignVertical()
public boolean getLabelRotation()
true
if the label must remains horizontal.
public String getStyleFromShape(double parentHeight)
public boolean isDashed()
true
if the lines of the shape are dashed.public String getStartArrow()
public String getFinalArrow()
public String getLineStrokeColor()
public double getLineWidth()
public float getStartArrowSize()
public float getFinalArrowSize()
public String getIsRounded()
mxVdxConstants.TRUE
if the line is Rounded.public String getIsShadow()
mxVdxConstants.TRUE
if the line has shadow.public String getEdgeStyle()
public String getStyleFromEdgeShape(double parentHeight)
public mxPoint[] getVertexPoints(double parentHeight)
parentHeight
- Height of the parent cell of the shape.
public String getMasterId()
public String lookForMasterId()
public String getShapeMasterId()
public boolean isGroup()
true
if a shape contains other shapes inside.public boolean isComplexShape()
true
if the shape is composed for several shapes.public mxCell addComplexShapeToGraph(mxGraph graph, Object parent, double parentHeight)
graph
- Graph where the parsed graph is included.parent
- Parent cell of the shape.parentHeight
- Height of the parent cell of the shape.
public mxCell addSimpleShapeToGraph(mxGraph graph, Object parent, double parentHeight)
graph
- Graph where the parsed graph is included.parent
- Parent cell of the shape.parentHeight
- Height of the parent cell of the shape.
|
JGraph X 1.4.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |