JGraph X 1.4.1.0


com.mxgraph.io.vdx
Class mxMasterShape

java.lang.Object
  extended by com.mxgraph.io.vdx.mxGeneralShape
      extended by com.mxgraph.io.vdx.mxDelegateShape
          extended by com.mxgraph.io.vdx.mxMasterShape

public class mxMasterShape
extends mxDelegateShape

This class is a wrapper for a shape element contained in a Master element.
If a property is not found in the shape Element but it may be found in a stylesheet the property is searched in such stylesheet.


Field Summary
 
Fields inherited from class com.mxgraph.io.vdx.mxDelegateShape
fillStyle, lineStyle, textStyle
 
Fields inherited from class com.mxgraph.io.vdx.mxGeneralShape
shape
 
Constructor Summary
mxMasterShape(Element s)
           
 
Method Summary
 mxPoint getDimentions()
          Return the width and height of the Shape expressed like a mxPoint.
 mxPoint getOriginPoint(double parentHeight)
          Return the co-ordinates of the top left corner of the Shape.
 mxPoint[] getVertexPoints(double parentHeight)
          Returns the points of a vertex shape.
 
Methods inherited from class com.mxgraph.io.vdx.mxDelegateShape
getBeginArrow, getBeginArrowSize, getEndArrow, getEndArrowSize, getFillColor, getFillForeColor, getFillPattern, getFlags, getHorizontalAlign, getIndentFirst, getIndentLeft, getIndentRight, getLetterSpace, getLineColor, getLinePattern, getLineWeight, getRounding, getRTLText, getShdwPattern, getSpAfter, getSpBefore, getSpLine, getTextBkgndColor, getTextBottomMargin, getTextColor, getTextFont, getTextLeftMargin, getTextPos, getTextRightMargin, getTextSize, getTextStrike, getTextStyle, getTextTopMargin, getTransparence, getVerticalAlign, hasBeginArrow, hasBeginArrowSize, hasEndArrow, hasEndArrowSize, hasFillColor, hasFillForeColor, hasFillPattern, hasFlags, hasHorizontalAlign, hasIndentFirst, hasIndentLeft, hasIndentRight, hasLetterSpace, hasLineColor, hasLinePattern, hasLineWeight, hasRounding, hasRTLText, hasShdwPattern, hasSpAfter, hasSpBefore, hasSpLine, hasTextBkgndColor, hasTextBottomMargin, hasTextColor, hasTextFont, hasTextLeftMargin, hasTextPos, hasTextRightMargin, hasTextSize, hasTextStrike, hasTextStyle, hasTextTopMargin, hasTransparence, hasVerticalAlign
 
Methods inherited from class com.mxgraph.io.vdx.mxGeneralShape
getAmountArcTo, getAmountConnection, getAmountEllipticalArcTo, getAmountLineTo, getAngle, getBeginXY, getBullet, getEndXY, getFillStyleId, getHeight, getId, getLineStyleId, getLineToXY, getLocPinX, getLocPinY, getNameU, getNumericalValueOfSecundaryTag, getPinX, getPinY, getPrimaryTag, getPrimaryTagIndexed, getRoutingPoints, getShape, getText, getTextCase, getTextChildrens, getTextStyleId, getTxtAngle, getValueOfSecundaryTag, getWidth, hasAngle, hasBullet, hasEllipse, hasHeight, hasLocPinX, hasLocPinY, hasPinX, hasPinY, hasPrimaryTag, hasSecundaryTag, hasText, hasTextCase, hasTxtAngle, hasWidth, hasXForm1D, setShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxMasterShape

public mxMasterShape(Element s)
Method Detail

getVertexPoints

public mxPoint[] getVertexPoints(double parentHeight)
Returns the points of a vertex shape.

Parameters:
parentHeight - Height of the parent cell of the vertex.
Returns:
array of mxPoint whith the vertex's points

getOriginPoint

public mxPoint getOriginPoint(double parentHeight)
Return the co-ordinates of the top left corner of the Shape.

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

getDimentions

public mxPoint getDimentions()
Return the width and height of the Shape expressed like a mxPoint. x = width y = height

Returns:
mxPoint that represents the dimentions of the shape

JGraph X 1.4.1.0


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