P | |
paintCell, mxGraph | |
paintState, mxGraph | |
parsePoints, mxGraphViewImageReader | |
parseState, mxGraphViewImageReader | |
parseXml, mxUtils | |
postProcessCellStyle, mxGraph | |
processInclude, mxObjectCodec | |
putCellStyle, mxStylesheet | |
putDefaultEdgeStyle, mxStylesheet | |
putDefaultVertexStyle, mxStylesheet | |
putImage, mxImageBundle | |
putObject, mxCodec | |
putValue, mxStyleRegistry | |
R | |
read, mxGraphViewImageReader | |
readFile | |
reference, mxCodec | |
register, mxCodecRegistry | |
remove | |
removeAllStylenames, mxUtils | |
removeEdge, mxCell | |
removeFromParent, mxCell | |
removeFromTerminal, mxCell | |
removeImageBundle, mxGraph | |
removeState, mxGraphView | |
removeStylename, mxUtils | |
resolve, mxCellPath | |
restoreClone, mxGraphModel | |
S | |
selectSingleNode, mxUtils | |
setAttribute | |
setCellStyleFlags, mxUtils | |
setCellStyles | |
setCollapsed | |
setConnectable, mxCell | |
setEdge, mxCell | |
setGeometry | |
setGraphBounds, mxGraphView | |
setId, mxCell | |
setImage, mxGdCanvas | |
setImageBundles, mxGraph | |
setParent, mxCell | |
setRect, mxRectangle | |
setRoot, mxGraphModel | |
setScale, mxGraphView | |
setStyle | |
setStyleFlag, mxUtils | |
setTerminal | |
setTerminalPoint, mxGeometry | |
setTerminals, mxGraphModel | |
setTranslate, mxGraphView | |
setValue | |
setVertex, mxCell | |
setVisible | |
stackTrace, mxUtils | |
startElement, mxGraphViewImageReader | |
styles, mxStylesheet |
Parses a string that represents a list of points into an array of mxPoints.
function parsePoints( $str )
Parses the bounds, absolute points and label information from the style of the state into its respective fields and returns the label of the cell.
function parseState( $state, $edge )
Returns a new DOM document for the given XML string.
static function parseXml( $xml )
Tries to resolve the value for the image style in the image bundles and turns short data URIs as defined in mxImageBundle to data URIs as defined in RFC 2397 of the IETF.
function postProcessCellStyle( $style )
Returns true if the given node is an include directive and executes the include by decoding the XML document.
function processInclude( $dec, $node, $into )
Stores the specified style under the given name.
function putCellStyle( $name, $style )
Sets the default style for edges.
function putDefaultEdgeStyle( $style )
Sets the default style for vertices.
function putDefaultVertexStyle( $style )
Adds the specified entry to the map.
function putImage( $key, $value )
Assoiates the given object with the given ID.
function putObject( $id, $object )
Puts the given object into the registry under the given name.
static function putValue( $name, $value )
Reads the specified view XML string.
function read( $string )
Reads the specified view XML file in blocks of 4096 bytes.
function readFile( $filename )
Reads the given filename into a string.
static function readFile( $filename )
Hook for subclassers to implement a custom method for retrieving IDs from objects.
function reference( $obj )
Registers a new codec and associates the name of the template constructor in the codec with the codec object.
static function register( $codec )
Removes the child at the specified index from the child array and returns the child that was removed.
function remove( $index )
Removes the specified cell from the model using mxChildChange and adds the change to the current transaction.
function remove( $cell )
Removes all stylenames from the given style and returns the updated style.
static function removeAllStylenames( $style )
Removes the specified edge from the edge array and returns the edge.
function removeEdge( $edge, $outgoing )
Removes the cell from its parent.
function removeFromParent()
Removes the edge from its source or target terminal.
function removeFromTerminal( $source )
Removes the specified mxImageBundle.
function removeImageBundle( $bundle )
Removes and returns the mxCellState for the given cell.
function removeState( $cell )
Removes all occurrences of the specified stylename in the given style and returns the updated style.
static function removeStylename( $style, $stylename )
Returns the cell for the specified cell path using the given root as the root of the path.
static function resolve( $root, $path )
Inner helper method for restoring the connections in a network of cloned cells.
function restoreClone( $clne, $cell, $mapping )
Evaluates the XPath expression and returns the first node of the result.
static function selectSingleNode( $doc, $expr )
Sets the specified attribute on the user object if it is an XML node.
function setAttribute( $key, $value )
Sets the attribute on the specified node to value.
function setAttribute( $node, $attribute, $value )
Sets or toggles the flag bit for the given key in the cell’s styles.
static function setCellStyleFlags( $model, $cells, $key, $flag, $value )
Sets the key to value in the styles of the given cells.
function setCellStyles( $key, $value, $cells )
Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null.
static function setCellStyles( $model, $cells, $key, $value )
Sets the collapsed state.
function setCollapsed( $collapsed )
Sets the collapsed state of the given mxCell using mxCollapseChange and adds the change to the current transaction.
function setCollapsed( $cell, $isCollapsed )
Sets the connectable state.
function setConnectable( $connectable )
Specifies if the cell is an edge.
function setEdge( $edge )
Sets the mxGeometry to be used as the geometry.
function setGeometry( $geometry )
Sets the mxGeometry of the given mxCell.
function setGeometry( $cell, $geometry )
Sets graphBounds.
function setGraphBounds( $value )
Sets the Id of the cell to the given string.
function setId( $id )
Sets the image that represents the canvas.
function setImage( $img )
Sets the imageBundles.
function setImageBundles( $value )
Sets the parent cell.
function setParent( $parent )
Sets this rectangle to the specified values.
function setRect( $x, $y, $width, $height )
Sets the scale, revalidates the view and fires a scale event.
function setScale( $scale )
Sets the string to be used as the style.
function setStyle( $style )
Sets the style of the given mxCell using mxStyleChange and adds the change to the current transaction.
function setStyle( $cell, $style )
Adds or removes the given key, value pair to the style and returns the new style.
static function setStyle( $style, $key, $value )
Sets or removes the given key from the specified style and returns the new style.
static function setStyleFlag( $style, $key, $flag, $value )
Sets the source or target terminal and returns the new terminal.
function setTerminal( $terminal, $source )
Sets the source or target terminal of the given mxCell using mxTerminalChange and adds the change to the current transaction.
function setTerminal( $edge, $terminal, $source )
Sets the sourcePoint or targetPoint to the given mxPoint and returns the new point.
function setTerminalPoint( $point, $isSource )
Sets the source and target mxCell of the given mxCell in a single transaction using setTerminal for each end of the edge.
function setTerminals( $edge, $source, $target )
Sets the translation, revalidates the view and fires a translate event.
function setTranslate( $translate )
Sets the user object of the cell.
function setValue( $value )
Sets the user object of then given mxCell using mxValueChange and adds the change to the current transaction.
function setValue( $cell, $value )
Specifies if the cell is a vertex.
function setVertex( $vertex )
Specifies if the cell is visible.
function setVisible( $visible )
Sets the visible state of the given mxCell using mxVisibleChange and adds the change to the current transaction.
function setVisible( $cell, $visible )
Prints a simple stack trace in the error log.
static function stackTrace()
Invoked by the SAX parser when an element starts.
function startElement( $parser, $name, $attrs )
Maps from names to styles.
var $styles = array()