libjgraphx-java-2.1.0.7/0000755000175000017500000000000012177712725015625 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/build.xml0000664000175000017500000001026312176166702017447 0ustar sylvestresylvestre
${product.name} ${product.version}

]]>
Copyright (c) 2010 Gaudenz Alder. All rights reserved.]]>
libjgraphx-java-2.1.0.7/docs/0000775000175000017500000000000012176166704016556 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/0000775000175000017500000000000012176166726017333 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/overview-tree.html0000664000175000017500000021255612176166726023037 0ustar sylvestresylvestre Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For All Packages

Package Hierarchies:
com.mxgraph.analysis, com.mxgraph.canvas, com.mxgraph.costfunction, com.mxgraph.generatorfunction, com.mxgraph.io, com.mxgraph.io.graphml, com.mxgraph.layout, com.mxgraph.layout.hierarchical, com.mxgraph.layout.hierarchical.model, com.mxgraph.layout.hierarchical.stage, com.mxgraph.layout.orthogonal, com.mxgraph.layout.orthogonal.model, com.mxgraph.model, com.mxgraph.reader, com.mxgraph.shape, com.mxgraph.sharing, com.mxgraph.swing, com.mxgraph.swing.handler, com.mxgraph.swing.util, com.mxgraph.swing.view, com.mxgraph.util, com.mxgraph.util.png, com.mxgraph.util.svg, com.mxgraph.view

Class Hierarchy

Interface Hierarchy

Enum Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/index.html0000664000175000017500000000261012176166726021327 0ustar sylvestresylvestre JGraph X 2.1.0.7 API Specification <H2> Frame Alert</H2> <P> This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. <BR> Link to<A HREF="overview-summary.html">Non-frame version.</A> libjgraphx-java-2.1.0.7/docs/api/constant-values.html0000664000175000017500000022355112176166726023357 0ustar sylvestresylvestre Constant Field Values (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Constant Field Values


Contents
com.mxgraph.*

com.mxgraph.canvas.mxGraphics2DCanvas
public static final String TEXT_SHAPE_DEFAULT "default"
public static final String TEXT_SHAPE_HTML "html"

com.mxgraph.swing.mxGraphComponent
public static final double DEFAULT_PAGESCALE 1.4
public static final int GRID_STYLE_CROSS 1
public static final int GRID_STYLE_DASHED 3
public static final int GRID_STYLE_DOT 0
public static final int GRID_STYLE_LINE 2
public static final int ZOOM_POLICY_NONE 0
public static final int ZOOM_POLICY_PAGE 1
public static final int ZOOM_POLICY_WIDTH 2

com.mxgraph.util.mxConstants
public static final String ALIGN_BOTTOM "bottom"
public static final String ALIGN_CENTER "center"
public static final String ALIGN_LEFT "left"
public static final String ALIGN_MIDDLE "middle"
public static final String ALIGN_RIGHT "right"
public static final String ALIGN_TOP "top"
public static final String ARROW_BLOCK "block"
public static final String ARROW_CLASSIC "classic"
public static final String ARROW_DIAMOND "diamond"
public static final String ARROW_OPEN "open"
public static final String ARROW_OVAL "oval"
public static final String DIRECTION_EAST "east"
public static final int DIRECTION_MASK_ALL 15
public static final int DIRECTION_MASK_EAST 8
public static final int DIRECTION_MASK_NONE 0
public static final int DIRECTION_MASK_NORTH 2
public static final int DIRECTION_MASK_SOUTH 4
public static final int DIRECTION_MASK_WEST 1
public static final String DIRECTION_NORTH "north"
public static final String DIRECTION_SOUTH "south"
public static final String DIRECTION_WEST "west"
public static final String EDGESTYLE_ELBOW "elbowEdgeStyle"
public static final String EDGESTYLE_ENTITY_RELATION "entityRelationEdgeStyle"
public static final String EDGESTYLE_LOOP "loopEdgeStyle"
public static final String EDGESTYLE_ORTHOGONAL "orthogonalEdgeStyle"
public static final String EDGESTYLE_SEGMENT "segmentEdgeStyle"
public static final String EDGESTYLE_SIDETOSIDE "sideToSideEdgeStyle"
public static final String EDGESTYLE_TOPTOBOTTOM "topToBottomEdgeStyle"
public static final String ELBOW_HORIZONTAL "horizontal"
public static final String ELBOW_VERTICAL "vertical"
public static final int FONT_BOLD 1
public static final int FONT_ITALIC 2
public static final int FONT_SHADOW 8
public static final int FONT_UNDERLINE 4
public static final String PERIMETER_ELLIPSE "ellipsePerimeter"
public static final String PERIMETER_HEXAGON "hexagonPerimeter"
public static final String PERIMETER_RECTANGLE "rectanglePerimeter"
public static final String PERIMETER_RHOMBUS "rhombusPerimeter"
public static final String PERIMETER_TRIANGLE "trianglePerimeter"
public static final String SHAPE_ACTOR "actor"
public static final String SHAPE_ARROW "arrow"
public static final String SHAPE_CLOUD "cloud"
public static final String SHAPE_CONNECTOR "connector"
public static final String SHAPE_CURVE "curve"
public static final String SHAPE_CYLINDER "cylinder"
public static final String SHAPE_DOUBLE_ELLIPSE "doubleEllipse"
public static final String SHAPE_ELLIPSE "ellipse"
public static final String SHAPE_HEXAGON "hexagon"
public static final String SHAPE_IMAGE "image"
public static final String SHAPE_LABEL "label"
public static final String SHAPE_LINE "line"
public static final String SHAPE_RECTANGLE "rectangle"
public static final String SHAPE_RHOMBUS "rhombus"
public static final String SHAPE_SWIMLANE "swimlane"
public static final String SHAPE_TRIANGLE "triangle"

com.mxgraph.util.mxEvent
public static final String ADD "add"
public static final String ADD_CELLS "addCells"
public static final String ADD_OVERLAY "addOverlay"
public static final String AFTER_PAINT "afterPaint"
public static final String ALIGN_CELLS "alignCells"
public static final String BEFORE_PAINT "beforePaint"
public static final String BEFORE_UNDO "beforeUndo"
public static final String BEGIN_UPDATE "beginUpdate"
public static final String CELL_CONNECTED "cellConnected"
public static final String CELLS_ADDED "cellsAdded"
public static final String CELLS_FOLDED "cellsFolded"
public static final String CELLS_MOVED "cellsMoved"
public static final String CELLS_ORDERED "cellsOrdered"
public static final String CELLS_REMOVED "cellsRemoved"
public static final String CELLS_RESIZED "cellsResized"
public static final String CELLS_TOGGLED "cellsToggled"
public static final String CHANGE "change"
public static final String CLEAR "clear"
public static final String CONNECT "connect"
public static final String CONNECT_CELL "connectCell"
public static final String DONE "done"
public static final String DOWN "down"
public static final String END_UPDATE "endUpdate"
public static final String EXECUTE "execute"
public static final String FIRED "fired"
public static final String FLIP_EDGE "flipEdge"
public static final String FOLD_CELLS "foldCells"
public static final String GROUP_CELLS "groupCells"
public static final String INSERT "insert"
public static final String LABEL_CHANGED "labelChanged"
public static final String MOVE_CELLS "moveCells"
public static final String NOTIFY "notify"
public static final String ORDER_CELLS "orderCells"
public static final String PAINT "paint"
public static final String REDO "redo"
public static final String REMOVE_CELLS "removeCells"
public static final String REMOVE_CELLS_FROM_PARENT "removeCellsFromParent"
public static final String REMOVE_OVERLAY "removeOverlay"
public static final String REPAINT "repaint"
public static final String RESIZE_CELLS "resizeCells"
public static final String SCALE "scale"
public static final String SCALE_AND_TRANSLATE "scaleAndTranslate"
public static final String SELECT "select"
public static final String SPLIT_EDGE "splitEdge"
public static final String START_EDITING "startEditing"
public static final String TOGGLE_CELLS "toggleCells"
public static final String TRANSLATE "translate"
public static final String UNDO "undo"
public static final String UNGROUP_CELLS "ungroupCells"
public static final String UP "up"
public static final String UPDATE_CELL_SIZE "updateCellSize"

com.mxgraph.util.png.mxPngEncodeParam
public static final int INTENT_ABSOLUTE 3
public static final int INTENT_PERCEPTUAL 0
public static final int INTENT_RELATIVE 1
public static final int INTENT_SATURATION 2
public static final int PNG_FILTER_AVERAGE 3
public static final int PNG_FILTER_NONE 0
public static final int PNG_FILTER_PAETH 4
public static final int PNG_FILTER_SUB 1
public static final int PNG_FILTER_UP 2

com.mxgraph.util.png.mxPngTextDecoder
public static final int PNG_CHUNK_IEND 1229278788
public static final int PNG_CHUNK_ZTXT 2052348020

com.mxgraph.util.svg.AbstractParser
public static final String BUNDLE_CLASSNAME "org.apache.batik.parser.resources.Messages"

com.mxgraph.util.svg.CSSConstants
public static final String CSS_FILL_PROPERTY "fill"
public static final String CSS_NONE_VALUE "none"
public static final String CSS_STROKE_PROPERTY "stroke"

com.mxgraph.util.svg.ExtendedPathIterator
public static final int SEG_ARCTO 4321
public static final int SEG_CLOSE 4
public static final int SEG_CUBICTO 3
public static final int SEG_LINETO 1
public static final int SEG_MOVETO 0
public static final int SEG_QUADTO 2
public static final int WIND_EVEN_ODD 0
public static final int WIND_NON_ZERO 1

com.mxgraph.view.mxGraph
public static final String VERSION "2.1.0.7"


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/help-doc.html0000664000175000017500000002336312176166726021723 0ustar sylvestresylvestre API Help (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


How This API Document Is Organized

This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

Overview

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

Package

Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

Class/Interface

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

Annotation Type

Each annotation type has its own separate page with the following sections:

Enum

Each enum has its own separate page with the following sections:

Use

Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

Tree (Class Hierarchy)

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

Deprecated API

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

Index

The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

Prev/Next

These links take you to the next or previous class, interface, package, or related page.

Frames/No Frames

These links show and hide the HTML frames. All pages are available with or without frames.

Serialized Form

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

Constant Field Values

The Constant Field Values page lists the static final fields and their values.

This help file applies to API documentation generated using the standard doclet.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/allclasses-frame.html0000664000175000017500000010636612176166726023453 0ustar sylvestresylvestre All Classes (JGraph X 2.1.0.7 API Specification) All Classes
AbstractParser
AWTPathProducer
AWTPolygonProducer
AWTPolylineProducer
CSSConstants
DefaultErrorHandler
ErrorHandler
ExtendedGeneralPath
ExtendedPathIterator
mxActorShape
mxAnalysisGraph
mxAnimation
mxArrowShape
mxBase64
mxBasicCanvas
mxBasicShape
mxCell
mxCellCodec
mxCellEditor
mxCellHandler
mxCellMarker
mxCellOverlay
mxCellPath
mxCellRenderer
mxCellRenderer.CanvasFactory
mxCellState
mxCellStatePreview
mxCellTracker
mxChildChangeCodec
mxCircleLayout
mxCloudShape
mxCodec
mxCodecRegistry
mxCompactTreeLayout
mxCompactTreeLayout.Polygon
mxCompactTreeLayout.Polyline
mxCompactTreeLayout.TreeNode
mxConnectionConstraint
mxConnectionHandler
mxConnectorShape
mxConnectPreview
mxConstantCostFunction
mxConstants
mxConstCostFunction
mxCoordinateAssignment
mxCostFunction
mxCurve
mxCurveLabelShape
mxCurveShape
mxCylinderShape
mxDefaultTextShape
mxDistanceCostFunction
mxDomOutputParser
mxDomOutputParser.IElementHandler
mxDomUtils
mxDoubleEllipseShape
mxDoubleValCostFunction
mxEdgeHandler
mxEdgeLabelLayout
mxEdgeStyle
mxEdgeStyle.mxEdgeStyleFunction
mxElbowEdgeHandler
mxEllipseShape
mxEvent
mxEventObject
mxEventSource
mxEventSource.mxIEventListener
mxFastOrganicLayout
mxFibonacciHeap
mxFibonacciHeap.Node
mxGdCodec
mxGdCodec.mxGDParseState
mxGeneratorConstFunction
mxGeneratorFunction
mxGeneratorRandomFunction
mxGeneratorRandomIntFunction
mxGenericChangeCodec
mxGeometry
mxGraph
mxGraph.mxICellVisitor
mxGraphAbstractHierarchyCell
mxGraphActions
mxGraphActions.DeleteAction
mxGraphActions.DrillAction
mxGraphActions.EditAction
mxGraphActions.FoldAction
mxGraphActions.GroupAction
mxGraphActions.LayerAction
mxGraphActions.RemoveFromParentAction
mxGraphActions.SelectAction
mxGraphActions.UngroupAction
mxGraphActions.UpdateGroupBoundsAction
mxGraphActions.ZoomAction
mxGraphAnalysis
mxGraphComponent
mxGraphComponent.mxMouseRedirector
mxGraphGenerator
mxGraphHandler
mxGraphHierarchyEdge
mxGraphHierarchyModel
mxGraphHierarchyModel.CellVisitor
mxGraphHierarchyNode
mxGraphHierarchyRank
mxGraphics2DCanvas
mxGraphicsCanvas2D
mxGraphLayout
mxGraphMlCodec
mxGraphMlConstants
mxGraphMlData
mxGraphMlEdge
mxGraphMlGraph
mxGraphMlKey
mxGraphMlKey.keyForValues
mxGraphMlKey.keyTypeValues
mxGraphMlKeyManager
mxGraphMlNode
mxGraphMlPort
mxGraphMlShapeEdge
mxGraphMlShapeNode
mxGraphMlUtils
mxGraphModel
mxGraphModel.Filter
mxGraphModel.mxChildChange
mxGraphModel.mxCollapseChange
mxGraphModel.mxGeometryChange
mxGraphModel.mxRootChange
mxGraphModel.mxStyleChange
mxGraphModel.mxTerminalChange
mxGraphModel.mxValueChange
mxGraphModel.mxVisibleChange
mxGraphOutline
mxGraphProperties
mxGraphProperties.GraphType
mxGraphSelectionModel
mxGraphSelectionModel.mxSelectionChange
mxGraphStructure
mxGraphTransferable
mxGraphTransferHandler
mxGraphView
mxGraphView.mxCurrentRootChange
mxGraphViewImageReader
mxGraphViewReader
mxHexagonShape
mxHierarchicalLayout
mxHierarchicalLayoutStage
mxHtmlCanvas
mxHtmlColor
mxHtmlTextShape
mxICanvas
mxICanvas2D
mxICell
mxICellEditor
mxICellOverlay
mxICostFunction
mxIGraphLayout
mxIGraphModel
mxIGraphModel.mxAtomicGraphModelChange
mxImage
mxImageBundle
mxImageCanvas
mxImageShape
mxIMarker
mxInsertHandler
mxInteractiveCanvas
mxIShape
mxITextShape
mxKeyboardHandler
mxLabelShape
mxLayoutManager
mxLightweightLabel
mxLine
mxLineShape
mxMarkerRegistry
mxMedianHybridCrossingReduction
mxMinimumCycleRemover
mxModelCodec
mxMorphing
mxMouseAdapter
mxMovePreview
mxMultiplicity
mxObjectCodec
mxOrganicLayout
mxOrthogonalLayout
mxOrthogonalModel
mxPanningHandler
mxParallelEdgeLayout
mxPartitionLayout
mxPerimeter
mxPerimeter.mxPerimeterFunction
mxPngEncodeParam
mxPngEncodeParam.Gray
mxPngEncodeParam.Palette
mxPngEncodeParam.RGB
mxPngImageEncoder
mxPngSuggestedPaletteEntry
mxPngTextDecoder
mxPoint
mxPointPair
mxPointSequence
mxRectangle
mxRectangleShape
mxResources
mxRhombusShape
mxRootChangeCodec
mxRotationHandler
mxRubberband
mxSaxOutputHandler
mxSaxOutputHandler.IElementHandler
mxSegment
mxSelectionCellsHandler
mxSession
mxSharedGraphModel
mxSharedState
mxSharedState.mxDiagramChangeListener
mxSpaceManager
mxSpline
mxSpline1D
mxStackLayout
mxStencil
mxStencilRegistry
mxStencilShape
mxStyleRegistry
mxStylesheet
mxStylesheetCodec
mxStyleUtils
mxSvgCanvas
mxSwimlaneManager
mxSwimlaneShape
mxSwingConstants
mxTemporaryCellStates
mxTerminalChangeCodec
mxTraversal
mxTriangleShape
mxUndoableEdit
mxUndoableEdit.mxUndoableChange
mxUndoManager
mxUnionFind
mxUtils
mxVertexHandler
mxVmlCanvas
mxXmlUtils
NormalizingReader
NumberParser
ParseException
Parser
PathHandler
PathParser
PointsHandler
PointsParser
ShapeProducer
StringNormalizingReader
StructuralException
libjgraphx-java-2.1.0.7/docs/api/deprecated-list.html0000664000175000017500000002445712176166726023306 0ustar sylvestresylvestre Deprecated List (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Deprecated API


Contents
Deprecated Methods
com.mxgraph.util.mxUtils.createDocument()
          Use mxDomUtils.createDocument (Jan 2012) 
com.mxgraph.util.mxUtils.createHtmlDocument()
          Use mxDomUtils.createHtmlDocument (Jan 2012) 
com.mxgraph.util.mxUtils.createSvgDocument(int, int)
          Use mxDomUtils.createSvgDocument(int, int) (Jan 2012) 
com.mxgraph.util.mxUtils.createVmlDocument()
          Use mxDomUtils.createVmlDocument (Jan 2012) 
com.mxgraph.util.mxUtils.getStylename(String)
          Use mxStyleUtils.getStylename(String) (Jan 2012) 
com.mxgraph.util.mxUtils.getStylenames(String)
          Use mxStyleUtils.getStylenames(String) (Jan 2012) 
com.mxgraph.util.mxUtils.getXml(Node)
          Use mxXmlUtils.getXml(Node) (Jan 2012) 
com.mxgraph.util.mxUtils.indexOfStylename(String, String)
          Use mxStyleUtils.indexOfStylename(String, String) (Jan 2012) 
com.mxgraph.util.mxUtils.parseXml(String)
          Use mxXmlUtils.parseXml (Jan 2012) 
com.mxgraph.util.mxUtils.removeAllStylenames(String)
          Use mxStyleUtils.removeAllStylenames(String) (Jan 2012) 
com.mxgraph.util.mxUtils.setCellStyleFlags(mxIGraphModel, Object[], String, int, Boolean)
          Use mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean) (Jan 2012) 
com.mxgraph.util.mxUtils.setCellStyles(mxIGraphModel, Object[], String, String)
          Use mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String) (Jan 2012) 
com.mxgraph.util.mxUtils.setStyle(String, String, String)
          Use mxStyleUtils.setStyle(String, String, String) (Jan 2012) 
com.mxgraph.util.mxUtils.setStyleFlag(String, String, int, Boolean)
          Use mxStyleUtils.setStyleFlag(String, String, int, Boolean) (Jan 2012) 
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/package-list0000664000175000017500000000106712176166726021626 0ustar sylvestresylvestrecom.mxgraph.analysis com.mxgraph.canvas com.mxgraph.costfunction com.mxgraph.generatorfunction com.mxgraph.io com.mxgraph.io.graphml com.mxgraph.layout com.mxgraph.layout.hierarchical com.mxgraph.layout.hierarchical.model com.mxgraph.layout.hierarchical.stage com.mxgraph.layout.orthogonal com.mxgraph.layout.orthogonal.model com.mxgraph.model com.mxgraph.reader com.mxgraph.shape com.mxgraph.sharing com.mxgraph.swing com.mxgraph.swing.handler com.mxgraph.swing.util com.mxgraph.swing.view com.mxgraph.util com.mxgraph.util.png com.mxgraph.util.svg com.mxgraph.view libjgraphx-java-2.1.0.7/docs/api/allclasses-noframe.html0000664000175000017500000007450612176166726024010 0ustar sylvestresylvestre All Classes (JGraph X 2.1.0.7 API Specification) All Classes
AbstractParser
AWTPathProducer
AWTPolygonProducer
AWTPolylineProducer
CSSConstants
DefaultErrorHandler
ErrorHandler
ExtendedGeneralPath
ExtendedPathIterator
mxActorShape
mxAnalysisGraph
mxAnimation
mxArrowShape
mxBase64
mxBasicCanvas
mxBasicShape
mxCell
mxCellCodec
mxCellEditor
mxCellHandler
mxCellMarker
mxCellOverlay
mxCellPath
mxCellRenderer
mxCellRenderer.CanvasFactory
mxCellState
mxCellStatePreview
mxCellTracker
mxChildChangeCodec
mxCircleLayout
mxCloudShape
mxCodec
mxCodecRegistry
mxCompactTreeLayout
mxCompactTreeLayout.Polygon
mxCompactTreeLayout.Polyline
mxCompactTreeLayout.TreeNode
mxConnectionConstraint
mxConnectionHandler
mxConnectorShape
mxConnectPreview
mxConstantCostFunction
mxConstants
mxConstCostFunction
mxCoordinateAssignment
mxCostFunction
mxCurve
mxCurveLabelShape
mxCurveShape
mxCylinderShape
mxDefaultTextShape
mxDistanceCostFunction
mxDomOutputParser
mxDomOutputParser.IElementHandler
mxDomUtils
mxDoubleEllipseShape
mxDoubleValCostFunction
mxEdgeHandler
mxEdgeLabelLayout
mxEdgeStyle
mxEdgeStyle.mxEdgeStyleFunction
mxElbowEdgeHandler
mxEllipseShape
mxEvent
mxEventObject
mxEventSource
mxEventSource.mxIEventListener
mxFastOrganicLayout
mxFibonacciHeap
mxFibonacciHeap.Node
mxGdCodec
mxGdCodec.mxGDParseState
mxGeneratorConstFunction
mxGeneratorFunction
mxGeneratorRandomFunction
mxGeneratorRandomIntFunction
mxGenericChangeCodec
mxGeometry
mxGraph
mxGraph.mxICellVisitor
mxGraphAbstractHierarchyCell
mxGraphActions
mxGraphActions.DeleteAction
mxGraphActions.DrillAction
mxGraphActions.EditAction
mxGraphActions.FoldAction
mxGraphActions.GroupAction
mxGraphActions.LayerAction
mxGraphActions.RemoveFromParentAction
mxGraphActions.SelectAction
mxGraphActions.UngroupAction
mxGraphActions.UpdateGroupBoundsAction
mxGraphActions.ZoomAction
mxGraphAnalysis
mxGraphComponent
mxGraphComponent.mxMouseRedirector
mxGraphGenerator
mxGraphHandler
mxGraphHierarchyEdge
mxGraphHierarchyModel
mxGraphHierarchyModel.CellVisitor
mxGraphHierarchyNode
mxGraphHierarchyRank
mxGraphics2DCanvas
mxGraphicsCanvas2D
mxGraphLayout
mxGraphMlCodec
mxGraphMlConstants
mxGraphMlData
mxGraphMlEdge
mxGraphMlGraph
mxGraphMlKey
mxGraphMlKey.keyForValues
mxGraphMlKey.keyTypeValues
mxGraphMlKeyManager
mxGraphMlNode
mxGraphMlPort
mxGraphMlShapeEdge
mxGraphMlShapeNode
mxGraphMlUtils
mxGraphModel
mxGraphModel.Filter
mxGraphModel.mxChildChange
mxGraphModel.mxCollapseChange
mxGraphModel.mxGeometryChange
mxGraphModel.mxRootChange
mxGraphModel.mxStyleChange
mxGraphModel.mxTerminalChange
mxGraphModel.mxValueChange
mxGraphModel.mxVisibleChange
mxGraphOutline
mxGraphProperties
mxGraphProperties.GraphType
mxGraphSelectionModel
mxGraphSelectionModel.mxSelectionChange
mxGraphStructure
mxGraphTransferable
mxGraphTransferHandler
mxGraphView
mxGraphView.mxCurrentRootChange
mxGraphViewImageReader
mxGraphViewReader
mxHexagonShape
mxHierarchicalLayout
mxHierarchicalLayoutStage
mxHtmlCanvas
mxHtmlColor
mxHtmlTextShape
mxICanvas
mxICanvas2D
mxICell
mxICellEditor
mxICellOverlay
mxICostFunction
mxIGraphLayout
mxIGraphModel
mxIGraphModel.mxAtomicGraphModelChange
mxImage
mxImageBundle
mxImageCanvas
mxImageShape
mxIMarker
mxInsertHandler
mxInteractiveCanvas
mxIShape
mxITextShape
mxKeyboardHandler
mxLabelShape
mxLayoutManager
mxLightweightLabel
mxLine
mxLineShape
mxMarkerRegistry
mxMedianHybridCrossingReduction
mxMinimumCycleRemover
mxModelCodec
mxMorphing
mxMouseAdapter
mxMovePreview
mxMultiplicity
mxObjectCodec
mxOrganicLayout
mxOrthogonalLayout
mxOrthogonalModel
mxPanningHandler
mxParallelEdgeLayout
mxPartitionLayout
mxPerimeter
mxPerimeter.mxPerimeterFunction
mxPngEncodeParam
mxPngEncodeParam.Gray
mxPngEncodeParam.Palette
mxPngEncodeParam.RGB
mxPngImageEncoder
mxPngSuggestedPaletteEntry
mxPngTextDecoder
mxPoint
mxPointPair
mxPointSequence
mxRectangle
mxRectangleShape
mxResources
mxRhombusShape
mxRootChangeCodec
mxRotationHandler
mxRubberband
mxSaxOutputHandler
mxSaxOutputHandler.IElementHandler
mxSegment
mxSelectionCellsHandler
mxSession
mxSharedGraphModel
mxSharedState
mxSharedState.mxDiagramChangeListener
mxSpaceManager
mxSpline
mxSpline1D
mxStackLayout
mxStencil
mxStencilRegistry
mxStencilShape
mxStyleRegistry
mxStylesheet
mxStylesheetCodec
mxStyleUtils
mxSvgCanvas
mxSwimlaneManager
mxSwimlaneShape
mxSwingConstants
mxTemporaryCellStates
mxTerminalChangeCodec
mxTraversal
mxTriangleShape
mxUndoableEdit
mxUndoableEdit.mxUndoableChange
mxUndoManager
mxUnionFind
mxUtils
mxVertexHandler
mxVmlCanvas
mxXmlUtils
NormalizingReader
NumberParser
ParseException
Parser
PathHandler
PathParser
PointsHandler
PointsParser
ShapeProducer
StringNormalizingReader
StructuralException
libjgraphx-java-2.1.0.7/docs/api/stylesheet.css0000664000175000017500000000255712176166726022247 0ustar sylvestresylvestre/* Javadoc style sheet */ /* Define colors, fonts and other style attributes here to override the defaults */ /* Page background color */ body { background-color: #FFFFFF; color:#000000 } /* Headings */ h1 { font-size: 145% } /* Table colors */ .TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ .TableRowColor { background: #FFFFFF; color:#000000 } /* White */ /* Font used in left-hand frame lists */ .FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } .FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } .FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } /* Navigation bar fonts and colors */ .NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ .NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} libjgraphx-java-2.1.0.7/docs/api/index-all.html0000664000175000017500000574476212176166726022127 0ustar sylvestresylvestre Index (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

a - Variable in class com.mxgraph.util.mxSpline1D
 
absoluteOffset - Variable in class com.mxgraph.view.mxCellState
Holds the absolute offset.
absolutePoints - Variable in class com.mxgraph.view.mxCellState
List of mxPoints that represent the absolute points of an edge.
AbstractParser - Class in com.mxgraph.util.svg
This class is the superclass of all parsers.
AbstractParser() - Constructor for class com.mxgraph.util.svg.AbstractParser
 
accessors - Variable in class com.mxgraph.io.mxObjectCodec
Caches accessors for the given method names.
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.DeleteAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.DrillAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.EditAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.FoldAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.GroupAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.LayerAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.SelectAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.UngroupAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction
 
actionPerformed(ActionEvent) - Method in class com.mxgraph.swing.util.mxGraphActions.ZoomAction
 
active - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
add(Object, Object, int) - Method in class com.mxgraph.model.mxGraphModel
 
add(Object, Object, int) - Method in interface com.mxgraph.model.mxIGraphModel
Adds the specified child to the parent at the given index.
ADD - Static variable in class com.mxgraph.util.mxEvent
 
add(mxRectangle) - Method in class com.mxgraph.util.mxRectangle
Adds the given rectangle to this rectangle.
add(String) - Static method in class com.mxgraph.util.mxResources
Adds a resource bundle.
add(String, Locale) - Static method in class com.mxgraph.util.mxResources
Adds a resource bundle.
add(mxUndoableEdit.mxUndoableChange) - Method in class com.mxgraph.util.mxUndoableEdit
Adds the specified change to this edit.
ADD_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
ADD_OVERLAY - Static variable in class com.mxgraph.util.mxEvent
 
addAlias(String, String) - Static method in class com.mxgraph.io.mxCodecRegistry
Adds an alias for mapping a classname to a codecname.
addAllEdges(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns an array with the given cells and all edges that are connected to a cell or one of its descendants.
addCell(Object) - Method in class com.mxgraph.view.mxGraph
Adds the cell to the default parent.
addCell(Object, Object) - Method in class com.mxgraph.view.mxGraph
Adds the cell to the parent.
addCell(Object, Object, Integer, Object, Object) - Method in class com.mxgraph.view.mxGraph
Adds the cell to the parent and connects it to the given source and target terminals.
addCell(Object) - Method in class com.mxgraph.view.mxGraphSelectionModel
Adds the given cell to the selection.
addCellOverlay(Object, mxICellOverlay) - Method in class com.mxgraph.swing.mxGraphComponent
Adds an overlay for the specified cell.
addCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Adds the cells to the default parent.
addCells(Object[], Object) - Method in class com.mxgraph.view.mxGraph
Adds the cells to the parent.
addCells(Object[], Object, Integer) - Method in class com.mxgraph.view.mxGraph
Adds the cells to the parent at the given index.
addCells(Object[], Object, Integer, Object, Object) - Method in class com.mxgraph.view.mxGraph
Adds the cells to the parent at the given index, connecting each cell to the optional source and target terminal.
addCells(Object[]) - Method in class com.mxgraph.view.mxGraphSelectionModel
 
addDelta(String) - Method in class com.mxgraph.sharing.mxSharedGraphModel
 
addDelta(String) - Method in class com.mxgraph.sharing.mxSharedState
 
addDiagramChangeListener(mxSharedState.mxDiagramChangeListener) - Method in class com.mxgraph.sharing.mxSharedState
Adds the given listener to the list of diagram change listeners.
added - Variable in class com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange
 
addEdge(Object, Object, Object, Object, Integer) - Method in class com.mxgraph.view.mxGraph
Adds the edge to the parent and connects it to the given source and target terminals.
addEdgeData(mxGraphMlEdge, mxCell) - Static method in class com.mxgraph.io.mxGraphMlCodec
Add the edge data in the gmlEdge.
addEdges(mxCellState) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
addEnabled - Variable in class com.mxgraph.view.mxSwimlaneManager
Specifies if newly added cells should be resized to match the size of their existing siblings.
addGraph(mxGraph, Object) - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
Adds the elements represented for this graph model into the given graph.
addGraphListeners(mxGraph) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Installs the listeners to update the handles after any changes.
addGraphListeners(mxGraph) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Installs the listeners to update the handles after any changes.
addHandler - Variable in class com.mxgraph.view.mxSwimlaneManager
 
addImageBundle(mxImageBundle) - Method in class com.mxgraph.view.mxGraph
Adds the specified bundle.
addListener(String, mxEventSource.mxIEventListener) - Method in interface com.mxgraph.model.mxIGraphModel
Binds the specified function to the given event name.
addListener(String, mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.handler.mxCellMarker
Adds the given event listener.
addListener(String, mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Adds the given event listener.
addListener(String, mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
addListener(String, mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.mxGraphComponent
 
addListener(String, mxEventSource.mxIEventListener) - Method in class com.mxgraph.util.mxEventSource
Binds the specified function to the given event name.
addNodeData(mxGraphMlNode, mxCell) - Static method in class com.mxgraph.io.mxGraphMlCodec
Add the node data in the gmlNode.
addObjectValue(Object, String, Object, Object) - Method in class com.mxgraph.io.mxObjectCodec
Sets the decoded child node as a value of the given object.
addPackage(String) - Static method in class com.mxgraph.io.mxCodecRegistry
Adds the given package name to the list of known package names.
addPrivateChunk(String, byte[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Adds a private chunk, in binary form, to the list of chunks to be stored with this image.
addPropertyChangeListener(PropertyChangeListener) - Method in class com.mxgraph.view.mxGraph
 
addPropertyChangeListener(String, PropertyChangeListener) - Method in class com.mxgraph.view.mxGraph
 
addSelectionCell(Object) - Method in class com.mxgraph.view.mxGraph
 
addSelectionCells(Object[]) - Method in class com.mxgraph.view.mxGraph
 
addStencil(String, mxStencil) - Static method in class com.mxgraph.shape.mxStencilRegistry
Adds the given stencil.
addStylename(String, String) - Static method in class com.mxgraph.util.mxStyleUtils
Adds the specified stylename to the given style if it does not already contain the stylename.
adjustmentHandler - Variable in class com.mxgraph.swing.mxGraphOutline
 
adjustParents(Set<Object>) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Adjust parent cells whose child geometries have changed.
adjustParents() - Method in class com.mxgraph.layout.mxCompactTreeLayout
Adjust parent cells whose child geometries have changed.
AFTER_PAINT - Static variable in class com.mxgraph.util.mxEvent
 
afterDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxChildChangeCodec
 
afterDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxGenericChangeCodec
 
afterDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Hook for subclassers to post-process the object after decoding.
afterDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxRootChangeCodec
 
afterDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxTerminalChangeCodec
 
afterEncode(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxCellCodec
Encodes an mxCell and wraps the XML up inside the XML of the user object (inversion).
afterEncode(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxChildChangeCodec
 
afterEncode(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node.
afterEncode(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxRootChangeCodec
 
aliases - Static variable in class com.mxgraph.io.mxCodecRegistry
Maps from classnames to codecnames.
align - Variable in class com.mxgraph.swing.util.mxCellOverlay
Holds the horizontal alignment for the overlay.
ALIGN_BOTTOM - Static variable in class com.mxgraph.util.mxConstants
ALIGN_BOTTOM
ALIGN_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
ALIGN_CENTER - Static variable in class com.mxgraph.util.mxConstants
ALIGN_CENTER
ALIGN_LEFT - Static variable in class com.mxgraph.util.mxConstants
ALIGN_LEFT
ALIGN_MIDDLE - Static variable in class com.mxgraph.util.mxConstants
ALIGN_MIDDLE
ALIGN_RIGHT - Static variable in class com.mxgraph.util.mxConstants
ALIGN_RIGHT
ALIGN_TOP - Static variable in class com.mxgraph.util.mxConstants
ALIGN_TOP
alignCells(String) - Method in class com.mxgraph.view.mxGraph
Aligns the selection cells vertically or horizontally according to the given alignment.
alignCells(String, Object[]) - Method in class com.mxgraph.view.mxGraph
Aligns the given cells vertically or horizontally according to the given alignment.
alignCells(String, Object[], Object) - Method in class com.mxgraph.view.mxGraph
Aligns the given cells vertically or horizontally according to the given alignment using the optional parameter as the coordinate.
ALL - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
allowDanglingEdges - Variable in class com.mxgraph.view.mxGraph
Specifies if edges with disconnected terminals are allowed in the graph.
allowedToRun - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Boolean flag that specifies if the layout is allowed to run.
allowLoops - Variable in class com.mxgraph.view.mxGraph
Specifies if loops (aka self-references) are allowed.
allowNegativeCoordinates - Variable in class com.mxgraph.view.mxGraph
Specifies if negative coordinates for vertices are allowed.
alpha - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
alpha - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The alpha opacity value of the entry.
alternateBounds - Variable in class com.mxgraph.model.mxGeometry
Stores alternate values for x, y, width and height in a rectangle.
alternateEdgeStyle - Variable in class com.mxgraph.view.mxGraph
Specifies the alternate edge style to be used if the main control point on an edge is being doubleclicked.
animateCell(Object, mxCellStatePreview, boolean) - Method in class com.mxgraph.swing.util.mxMorphing
Animates the given cell state using moveState.
antiAlias - Variable in class com.mxgraph.reader.mxGraphViewImageReader
Specifies if the image should be anti-aliased.
antiAlias - Variable in class com.mxgraph.swing.mxGraphComponent
 
antiAlias - Variable in class com.mxgraph.swing.mxGraphOutline
 
append(Shape, boolean) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
append(PathIterator, boolean) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
append(ExtendedPathIterator, boolean) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
appendHtmlElement(Element) - Method in class com.mxgraph.canvas.mxHtmlCanvas
 
appendSvgElement(Element) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
appendVmlElement(Element) - Method in class com.mxgraph.canvas.mxVmlCanvas
 
apply(mxCompactTreeLayout.TreeNode, mxRectangle) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
apply(mxCellState, mxCellState, mxCellState, List<mxPoint>, List<mxPoint>) - Method in interface com.mxgraph.view.mxEdgeStyle.mxEdgeStyleFunction
Implements an edge style function.
apply(mxRectangle, mxCellState, mxPoint, boolean) - Method in interface com.mxgraph.view.mxPerimeter.mxPerimeterFunction
Implements a perimeter function.
approxNodeDimensions - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not to use approximate node dimensions or not.
arcAbs(float, float, float, boolean, boolean, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.arcAbs(float,float,float,boolean,boolean,float,float).
arcAbs(float, float, float, boolean, boolean, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute elliptical arc command has been parsed.
arcRel(float, float, float, boolean, boolean, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.arcRel(float,float,float,boolean,boolean,float,float).
arcRel(float, float, float, boolean, boolean, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative elliptical arc command has been parsed.
arcTo(float, float, float, boolean, boolean, float, float) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Adds an elliptical arc, defined by two radii, an angle from the x-axis, a flag to choose the large arc or not, a flag to indicate if we increase or decrease the angles and the final point of the arc.
arcToCurves(double, double, double, double, double, double, double, double, double) - Static method in class com.mxgraph.util.mxUtils
Function: arcToCurves Converts the given arc to a series of curves.
areConnected(mxAnalysisGraph, Object, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
arrangeGroups(Object[], int) - Method in class com.mxgraph.layout.mxGraphLayout
Updates the bounds of the given groups to include all children.
ARROW_BLOCK - Static variable in class com.mxgraph.util.mxConstants
ARROW_BLOCK
ARROW_CLASSIC - Static variable in class com.mxgraph.util.mxConstants
ARROW_CLASSIC
ARROW_DIAMOND - Static variable in class com.mxgraph.util.mxConstants
ARROW_OPEN
ARROW_OPEN - Static variable in class com.mxgraph.util.mxConstants
ARROW_OPEN
ARROW_OVAL - Static variable in class com.mxgraph.util.mxConstants
ARROW_BLOCK
ARROW_SIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the size of the arrowhead in the arrow shape.
ARROW_SPACING - Static variable in class com.mxgraph.util.mxConstants
Defines the spacing between the arrow shape and its terminals.
ARROW_WIDTH - Static variable in class com.mxgraph.util.mxConstants
Defines the width of the arrow shape.
aspect - Variable in class com.mxgraph.shape.mxStencil
Holds the aspect of the shape.
attachParent(mxCompactTreeLayout.TreeNode, double) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
attr - Variable in class com.mxgraph.view.mxMultiplicity
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
autoExtend - Variable in class com.mxgraph.swing.mxGraphComponent
Whether to extend the graph bounds and scroll towards the limit of those new bounds in the direction of mouse travel if a handler is active while the mouse leaves the container that the graph exists in.
autoOrigin - Variable in class com.mxgraph.view.mxGraph
Specifies if the origin should be automatically updated.
autoScroll - Variable in class com.mxgraph.swing.mxGraphComponent
Whether or not to scroll the scrollable container the graph exists in if a suitable handler is active and the graph bounds already exist extended in the direction of mouse travel.
autoSizeCells - Variable in class com.mxgraph.view.mxGraph
Specifies if the graph should automatically update the cell size after an edit.
averageNodeArea - Variable in class com.mxgraph.layout.mxOrganicLayout
The average amount of area allocated per node.
avoid(mxCellState, mxCellState) - Method in class com.mxgraph.layout.mxEdgeLabelLayout
 
AWTPathProducer - Class in com.mxgraph.util.svg
This class provides an implementation of the PathHandler that initializes a Shape from the value of a path's 'd' attribute.
AWTPathProducer() - Constructor for class com.mxgraph.util.svg.AWTPathProducer
 
AWTPolygonProducer - Class in com.mxgraph.util.svg
This class produces a polygon shape from a reader.
AWTPolygonProducer() - Constructor for class com.mxgraph.util.svg.AWTPolygonProducer
 
AWTPolylineProducer - Class in com.mxgraph.util.svg
This class produces a polyline shape from a reader.
AWTPolylineProducer() - Constructor for class com.mxgraph.util.svg.AWTPolylineProducer
 

B

b - Variable in class com.mxgraph.util.mxSpline1D
 
background - Variable in class com.mxgraph.reader.mxGraphViewImageReader
Specifies the background color.
backgroundImage - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the to be returned by .
bbox - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Scaled, translated bounding box of the selection cells.
BEFORE_PAINT - Static variable in class com.mxgraph.util.mxEvent
 
BEFORE_UNDO - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the beforeUndo event.
beforeDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxCellCodec
Decodes an mxCell and uses the enclosing XML node as the user object for the cell (inversion).
beforeDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxChildChangeCodec
Reads the cells into the graph model.
beforeDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxModelCodec
Reads the cells into the graph model.
beforeDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Hook for subclassers to pre-process the node for the specified object and return the node to be used for further processing by mxObjectCodec.decode(mxCodec, Node).
beforeDecode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxRootChangeCodec
Reads the cells into the graph model.
beforeEncode(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Hook for subclassers to pre-process the object before encoding.
beforeUndo(mxUndoableEdit) - Method in class com.mxgraph.view.mxLayoutManager
 
begin() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
begin() - Method in interface com.mxgraph.canvas.mxICanvas2D
Begins a new path.
BEGIN_UPDATE - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the beginUpdate event.
beginUpdate() - Method in class com.mxgraph.model.mxGraphModel
 
beginUpdate() - Method in interface com.mxgraph.model.mxIGraphModel
Increments the updateLevel by one.
bellmanFord(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxTraversal
Implements the Bellman-Ford shortest path from startVertex to all vertices.
bfs(mxAnalysisGraph, Object, mxGraph.mxICellVisitor) - Static method in class com.mxgraph.analysis.mxTraversal
Implements a recursive breadth first search starting from the specified cell.
bgNode - Variable in class com.mxgraph.shape.mxStencil
Holds the XML node with the stencil description.
bitDepth - Variable in class com.mxgraph.util.png.mxPngEncodeParam
 
bitDepthSet - Variable in class com.mxgraph.util.png.mxPngEncodeParam
 
blue - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The blue color value of the entry.
border - Variable in class com.mxgraph.layout.mxPartitionLayout
Integer that specifies the absolute inset in pixels for the parent that contains the children.
border - Variable in class com.mxgraph.layout.mxStackLayout
Border to be added if fill is true.
border - Variable in class com.mxgraph.reader.mxGraphViewImageReader
Specifies the border which is added to the size of the graph.
border - Variable in class com.mxgraph.view.mxGraph
Border to be added to the bottom and right side when the container is being resized after the graph has been changed.
borderColor - Variable in class com.mxgraph.swing.handler.mxRubberband
Defines the border color for drawing the rubberband selection.
borderLineCostFactor - Variable in class com.mxgraph.layout.mxOrganicLayout
Cost factor applied to energy calculations for node promixity to the notional border of the graph.
BOTTOM - Static variable in class com.mxgraph.view.mxEdgeStyle
 
BOTTOM_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
boundingBox - Variable in class com.mxgraph.shape.mxStencilShape
 
boundingBox - Variable in class com.mxgraph.view.mxCellState
Holds the largest rectangle which contains all rendering for this cell.
bounds - Variable in class com.mxgraph.swing.handler.mxCellHandler
Holds the bounding box of the handler.
bounds - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
bounds - Variable in class com.mxgraph.swing.handler.mxRubberband
Holds the current rubberband bounds.
bounds - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Reference to the enclosing graph component.
bounds - Variable in class com.mxgraph.swing.util.mxGraphTransferable
 
boundsHeight - Variable in class com.mxgraph.layout.mxOrganicLayout
The height coordinate of the final graph
boundsWidth - Variable in class com.mxgraph.layout.mxOrganicLayout
The width coordinate of the final graph
boundsX - Variable in class com.mxgraph.layout.mxOrganicLayout
The x coordinate of the final graph
boundsY - Variable in class com.mxgraph.layout.mxOrganicLayout
The y coordinate of the final graph
bridge(mxCompactTreeLayout.Polyline, double, double, mxCompactTreeLayout.Polyline, double, double) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
bubbling - Variable in class com.mxgraph.view.mxLayoutManager
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
buffer - Variable in class com.mxgraph.sharing.mxSession
Holds the send buffer for this session.
buildFloat(int, int) - Static method in class com.mxgraph.util.svg.NumberParser
Computes a float from mantissa and exponent.
BUNDLE_CLASSNAME - Static variable in class com.mxgraph.util.svg.AbstractParser
The default resource bundle base name.
bundles - Static variable in class com.mxgraph.util.mxResources
Ordered list of the inserted resource bundles.

C

c - Variable in class com.mxgraph.util.mxSpline1D
 
cachedTransform - Variable in class com.mxgraph.shape.mxStencilShape
Transform cached to save instance created.
calcAttraction() - Method in class com.mxgraph.layout.mxFastOrganicLayout
Calculates the attractive forces between all laid out nodes linked by edges
calcEnergyDelta(int, double, double, double, double, double, double) - Method in class com.mxgraph.layout.mxOrganicLayout
Calculates the change in energy for the specified node.
calcPositions() - Method in class com.mxgraph.layout.mxFastOrganicLayout
Takes the displacements calculated for each cell and applies them to the local cache of cell positions.
calcRepulsion() - Method in class com.mxgraph.layout.mxFastOrganicLayout
Calculates the repulsive forces between all laid out nodes
calculateRankCrossing(int, mxGraphHierarchyModel) - Method in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
Calculates the number of edges crossings between the specified rank and the rank below it
calculateWidestRank(mxGraph, mxGraphHierarchyModel) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Calculates the width rank in the hierarchy.
calculationLabelPosition(Map<String, Object>, String) - Method in class com.mxgraph.shape.mxCurveLabelShape
Hook method to override how the label is positioned on the curve
cancelEditingAction - Variable in class com.mxgraph.swing.view.mxCellEditor
 
canExportCell(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Returns true if the given cell can be exported via datatransfer.
canImport - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
canImport(JComponent, DataFlavor[]) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
canImportCell(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Returns true if the given cell can be imported via datatransfer.
canRedo() - Method in class com.mxgraph.util.mxUndoManager
Returns true if a redo is possible.
canUndo() - Method in class com.mxgraph.util.mxUndoManager
Returns true if an undo is possible.
canvas - Variable in class com.mxgraph.canvas.mxImageCanvas
 
canvas - Variable in class com.mxgraph.reader.mxDomOutputParser
 
canvas - Variable in class com.mxgraph.reader.mxGraphViewReader
Holds the canvas to be used for rendering the graph.
canvas - Variable in class com.mxgraph.reader.mxSaxOutputHandler
 
canvas - Variable in class com.mxgraph.swing.mxGraphComponent
 
cascadingCut(mxFibonacciHeap.Node) - Method in class com.mxgraph.analysis.mxFibonacciHeap
Performs a cascading cut operation.
cell - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
The graph cell this object represents.
cell - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
The cell whose median value is being calculated
cell - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
cell - Variable in class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
The cell whose median value is being calculated
cell - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The actual graph cell this wrapper represents
cell - Variable in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
cell - Variable in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
cell - Variable in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
cell - Variable in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
cell - Variable in class com.mxgraph.model.mxGraphModel.mxValueChange
 
cell - Variable in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
cell - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
cell - Variable in class com.mxgraph.view.mxCellState
Reference to the cell that is represented by this state.
CELL_CONNECTED - Static variable in class com.mxgraph.util.mxEvent
 
cellAdded(Object) - Method in class com.mxgraph.model.mxGraphModel
Invoked after a cell has been added to a parent.
cellAdded(Object) - Method in class com.mxgraph.view.mxGraphSelectionModel
 
cellBounds - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Scaled, translated bounds of the selection cells.
cellConnected(Object, Object, boolean, mxConnectionConstraint) - Method in class com.mxgraph.view.mxGraph
Sets the new terminal for the given edge and resets the edge points if isResetEdgesOnConnect returns true.
cellDrawn(mxICanvas, mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
cellDrawn(mxICanvas, mxCellState, Object, Object) - Method in class com.mxgraph.view.mxGraph
Called when a cell has been painted as the specified object, typically a DOM node that represents the given cell graphically in a document.
cellEditor - Variable in class com.mxgraph.swing.mxGraphComponent
 
cellLabelChanged(Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Sets the new label for a cell.
cellLocation - Variable in class com.mxgraph.layout.mxFastOrganicLayout
An array of locally stored co-ordinate positions for the vertices.
cellRemoved(Object) - Method in class com.mxgraph.model.mxGraphModel
Invoked after a cell has been removed from the model.
cellRemoved(Object) - Method in class com.mxgraph.sharing.mxSharedGraphModel
Adds removed cells to the codec object lookup for references to the removed cells after this point in time.
cellRemoved(Object) - Method in class com.mxgraph.view.mxGraphSelectionModel
 
cellResized(Object) - Method in class com.mxgraph.view.mxSpaceManager
 
cells - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.AreaSpatialCache
 
cells - Variable in class com.mxgraph.model.mxGraphModel
Maps from Ids to cells.
cells - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Holds the cells that are being moved by this handler.
cells - Variable in class com.mxgraph.swing.util.mxGraphTransferable
 
cells - Variable in class com.mxgraph.swing.util.mxMorphing
Optional array of cells to limit the animation to.
cells - Variable in class com.mxgraph.view.mxGraphSelectionModel
Holds the selection cells.
CELLS_ADDED - Static variable in class com.mxgraph.util.mxEvent
 
CELLS_FOLDED - Static variable in class com.mxgraph.util.mxEvent
 
CELLS_MOVED - Static variable in class com.mxgraph.util.mxEvent
 
CELLS_ORDERED - Static variable in class com.mxgraph.util.mxEvent
 
CELLS_REMOVED - Static variable in class com.mxgraph.util.mxEvent
 
CELLS_RESIZED - Static variable in class com.mxgraph.util.mxEvent
 
CELLS_TOGGLED - Static variable in class com.mxgraph.util.mxEvent
 
cellsAdded(Object[], Object, Integer, Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Adds the specified cells to the given parent.
cellsAdded(Object[], Object, Integer, Object, Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Adds the specified cells to the given parent.
cellsAdded(Object[]) - Method in class com.mxgraph.view.mxSwimlaneManager
Called if any cells have been added.
cellsBendable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Bendable.
cellsCloneable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Cloneable.
cellsDeletable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Deletable.
cellsDisconnectable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCellDisconntableFromTerminal.
cellsEditable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Editable.
cellsFolded(Object[], boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Invokes cellsFoldable with checkFoldable set to false.
cellsFolded(Object[], boolean, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Sets the collapsed state of the specified cells.
cellSizeUpdated(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
cellsLocked - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Locked.
cellsMap - Static variable in class com.mxgraph.io.mxGdCodec
Map with the vertex cells added in the addNode method.
cellsMovable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Movable.
cellsMoved(Object[], double, double, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Moves the specified cells by the given vector, disconnecting the cells using disconnectGraph if disconnect is true.
cellsMoved(Object[], Point) - Method in class com.mxgraph.view.mxLayoutManager
 
cellsOrdered(Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Moves the given cells to the front or back.
cellsRemoved(Object[]) - Method in class com.mxgraph.view.mxGraph
Removes the given cells from the model.
cellsResizable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Sizable.
cellsResized(Object[], mxRectangle[]) - Method in class com.mxgraph.view.mxGraph
Sets the bounds of the given cells and fires a event.
cellsResized(Object[]) - Method in class com.mxgraph.view.mxSpaceManager
 
cellsResized(Object[]) - Method in class com.mxgraph.view.mxSwimlaneManager
Called if any cells have been resizes.
cellsSelectable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isCell(s)Selectable.
cellStates - Variable in class com.mxgraph.swing.view.mxCellStatePreview
 
cellsToggled(Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Sets the visible state of the specified cells.
CENTER_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
centerPage - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if the background page should be centered by automatically setting the translate in the view.
centerPreview - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if the preview should be centered around the mouse cursor if there was no mouse click to define the offset within the shape (eg.
centerVisibleIndex - Variable in class com.mxgraph.shape.mxCurveLabelShape
The index of the central glyph of the label that is visible
centerZoom - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if the zoom operations should go into the center of the actual diagram rather than going from top, left.
CHANGE - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the change event.
changes - Variable in class com.mxgraph.util.mxUndoableEdit
Holds the list of changes that make up this undoable edit.
changeSelection(Collection<Object>, Collection<Object>) - Method in class com.mxgraph.view.mxGraphSelectionModel
 
changesRepaintThreshold - Variable in class com.mxgraph.view.mxGraph
Specifies the maximum number of changes that should be processed to find the dirty region.
changeSupport - Variable in class com.mxgraph.view.mxGraph
Property change event handling.
channelBuffer - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The size of the vertical buffer in the center of inter-rank channels where edge control points should not be placed
channelBuffer - Variable in class com.mxgraph.layout.mxCompactTreeLayout
The size of the vertical buffer in the center of inter-rank channels where edge control points should not be placed
check(mxGraph, Object, Object, Object, int, int) - Method in class com.mxgraph.view.mxMultiplicity
Function: check Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply.
checkMoveTo() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Checks if previous command was a moveto command, skipping a close command (if present).
checkNeighbors(mxGraph, Object, Object, Object) - Method in class com.mxgraph.view.mxMultiplicity
Checks the type of the given value.
checkTerminal(mxGraph, Object, Object) - Method in class com.mxgraph.view.mxMultiplicity
Checks the type of the given value.
checkTripleBuffer() - Method in class com.mxgraph.swing.mxGraphComponent
Checks if the triple buffer exists and creates a new one if it does not.
checkTripleBuffer() - Method in class com.mxgraph.swing.mxGraphOutline
Checks if the triple buffer exists and creates a new one if it does not.
checkType(mxGraph, Object, String) - Method in class com.mxgraph.view.mxMultiplicity
Checks the type of the given value.
checkType(mxGraph, Object, String, String, String) - Method in class com.mxgraph.view.mxMultiplicity
Checks the type of the given value.
checkValues() - Method in class com.mxgraph.util.mxSpline
Used to check the correctness of this spline
child - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
child - Variable in class com.mxgraph.model.mxGraphModel.mxChildChange
 
childMoved(mxCellState, mxCellState) - Method in class com.mxgraph.view.mxGraphView
Invoked when a child state was moved as a result of late evaluation of its position.
children - Variable in class com.mxgraph.model.mxCell
Holds the child cells and connected edges.
childsHasTag(Element, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Checks if the childrens of element has a Node with name = tag.
childsTag(Element, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Returns the first Element that has name = tag in the childrens of element.
childsTags(Element, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Returns a list with the elements included in the childrens of element that have name = tag.
circle(Object[], double, double, double) - Method in class com.mxgraph.layout.mxCircleLayout
Executes the circular layout for the specified array of vertices and the given radius.
clear() - Method in class com.mxgraph.model.mxGraphModel
Sets a new root using createRoot.
CLEAR - Static variable in class com.mxgraph.util.mxEvent
 
clear() - Method in class com.mxgraph.util.mxUndoManager
Clears the command history.
clear() - Method in class com.mxgraph.view.mxGraphSelectionModel
Clears the selection.
clear(Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraphView
Removes the state of the given cell and all descendants if the given cell is not the current root.
clearCellOverlays() - Method in class com.mxgraph.swing.mxGraphComponent
Removes all overlays in the graph.
clearCellOverlays(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Removes all overlays in the graph for the given cell and all its descendants.
clearRect(Graphics2D, Rectangle, Color) - Static method in class com.mxgraph.util.mxUtils
Clears the given area of the specified graphics object with the given color or makes the region transparent.
clearSelection() - Method in class com.mxgraph.view.mxGraph
 
clip - Variable in class com.mxgraph.reader.mxGraphViewImageReader
Defines the clip to be drawn.
clone() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
clone() - Method in class com.mxgraph.model.mxCell
Returns a clone of the cell.
clone() - Method in class com.mxgraph.model.mxGeometry
Returns a clone of the cell.
clone() - Method in interface com.mxgraph.model.mxICell
Returns a clone of this cell.
clone() - Method in class com.mxgraph.util.mxPoint
Returns a new instance of the same point.
clone() - Method in class com.mxgraph.util.mxRectangle
Returns a new instance of the same rectangle.
clone() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
clone() - Method in class com.mxgraph.view.mxCellState
Returns a clone of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance.
cloneCell(Object, Map<Object, Object>, boolean) - Method in class com.mxgraph.model.mxGraphModel
Inner helper method for cloning cells recursively.
cloneCells(Object[], boolean) - Method in class com.mxgraph.model.mxGraphModel
 
cloneCells(Object[], boolean) - Method in interface com.mxgraph.model.mxIGraphModel
Returns an array of clones for the given array of cells.
cloneCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Clones all cells in the given array.
cloneCells(Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Returns the clones for the given cells.
cloned - Variable in class com.mxgraph.swing.view.mxCellStatePreview
Specifies if cell states should be cloned or changed in-place.
cloneEnabled - Variable in class com.mxgraph.swing.handler.mxEdgeHandler
 
cloneEnabled - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if cloning by control-drag is enabled.
cloneInvalidEdges - Variable in class com.mxgraph.view.mxGraph
Specifies if edges that are cloned should be validated and only inserted if they are valid.
clonePreview - Variable in class com.mxgraph.swing.handler.mxMovePreview
Specifies if the preview should use clones of the original shapes.
cloneState(mxGraphicsCanvas2D.CanvasState) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Returns a clone of thec given state.
cloneTemplate(Node) - Method in class com.mxgraph.io.mxObjectCodec
Returns a new instance of the template object for representing the given node.
cloneValue() - Method in class com.mxgraph.model.mxCell
Returns a clone of the user object.
close() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Closes the current path.
close() - Method in interface com.mxgraph.canvas.mxICanvas2D
Closes the current path.
close() - Method in class com.mxgraph.util.svg.StringNormalizingReader
Close the stream.
closePath() - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.closePath().
closePath() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
closePath() - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a closepath has been parsed.
codec - Variable in class com.mxgraph.sharing.mxSharedGraphModel
 
codecs - Static variable in class com.mxgraph.io.mxCodecRegistry
Maps from constructor names to codecs.
collapsed - Variable in class com.mxgraph.model.mxCell
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
collapsed - Variable in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
collapsedIcon - Variable in class com.mxgraph.swing.mxGraphComponent
 
collapsedStateForCellChanged(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
Inner callback to update the collapsed state of the given mxCell using mxCell.setCollapsed and return the previous collapsed state.
collapseToPreferredSize - Variable in class com.mxgraph.view.mxGraph
Specifies if the cell size should be changed to the preferred size when a cell is first collapsed.
collisionMove(String, mxRectangle, double) - Method in class com.mxgraph.util.mxCurve
Returns a point to move the input rectangle to, in order to attempt to place the rectangle away from the curve.
COLOR_CACHE_SIZE - Static variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Specifies the size of the cache used to store parsed colors
colorCache - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Caches parsed colors.
column - Variable in class com.mxgraph.util.svg.StringNormalizingReader
The current column in the stream.
columnNumber - Variable in exception com.mxgraph.util.svg.ParseException
 
com.mxgraph.analysis - package com.mxgraph.analysis
This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree.
com.mxgraph.canvas - package com.mxgraph.canvas
This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML.
com.mxgraph.costfunction - package com.mxgraph.costfunction
 
com.mxgraph.generatorfunction - package com.mxgraph.generatorfunction
 
com.mxgraph.io - package com.mxgraph.io
This package contains all classes for input/output.
com.mxgraph.io.graphml - package com.mxgraph.io.graphml
 
com.mxgraph.layout - package com.mxgraph.layout
This package contains various graph layouts.
com.mxgraph.layout.hierarchical - package com.mxgraph.layout.hierarchical
 
com.mxgraph.layout.hierarchical.model - package com.mxgraph.layout.hierarchical.model
 
com.mxgraph.layout.hierarchical.stage - package com.mxgraph.layout.hierarchical.stage
 
com.mxgraph.layout.orthogonal - package com.mxgraph.layout.orthogonal
 
com.mxgraph.layout.orthogonal.model - package com.mxgraph.layout.orthogonal.model
 
com.mxgraph.model - package com.mxgraph.model
This package contains the classes that define a graph model.
com.mxgraph.reader - package com.mxgraph.reader
This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model.
com.mxgraph.shape - package com.mxgraph.shape
 
com.mxgraph.sharing - package com.mxgraph.sharing
This package contains all classes required for concurrent diagram editing by multiple clients.
com.mxgraph.swing - package com.mxgraph.swing
This package contains the main component for JFC/Swing, namely the graph component and the outline component.
com.mxgraph.swing.handler - package com.mxgraph.swing.handler
This package contains all classes required for mouse event handling in JFC/Swing.
com.mxgraph.swing.util - package com.mxgraph.swing.util
This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays.
com.mxgraph.swing.view - package com.mxgraph.swing.view
This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes.
com.mxgraph.util - package com.mxgraph.util
This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history.
com.mxgraph.util.png - package com.mxgraph.util.png
 
com.mxgraph.util.svg - package com.mxgraph.util.svg
 
com.mxgraph.view - package com.mxgraph.view
This package implements the graph component, represented by the mxGraph class.
compare(String, String) - Static method in class com.mxgraph.model.mxCellPath
Compares the given cell paths and returns -1 if cp1 is smaller, 0 if cp1 is equal and 1 if cp1 is greater than cp2.
compareTo(Object) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
comparator on the medianValue
compareTo(Object) - Method in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction.MedianCellSorter
comparator on the medianValue
compareTo(Object) - Method in class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
comparator on the medianValue
complementaryGraph(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
Makes the complement of aGraph
componentHandler - Variable in class com.mxgraph.swing.mxGraphOutline
 
components - Variable in class com.mxgraph.swing.mxGraphComponent
Maps from cells to lists of heavyweights.
computeArc(double, double, double, double, double, boolean, boolean, double, double) - Static method in class com.mxgraph.util.svg.ExtendedGeneralPath
This constructs an unrotated Arc2D from the SVG specification of an Elliptical arc.
computeAspect(mxCellState, mxRectangle, String) - Method in class com.mxgraph.shape.mxStencil
Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.
configureActionMaps() - Method in class com.mxgraph.swing.view.mxCellEditor
Installs the keyListener in the textArea and editorPane for handling the enter keystroke and updating the modified state.
configureGraphics(mxGraphics2DCanvas, mxCellState, boolean) - Method in class com.mxgraph.shape.mxBasicShape
Configures the graphics object ready to paint.
connect(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
connect(Object, Object, boolean, boolean) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Connects the given edge to the given source or target terminal.
CONNECT - Static variable in class com.mxgraph.util.mxEvent
 
CONNECT_CELL - Static variable in class com.mxgraph.util.mxEvent
 
CONNECT_CURSOR - Static variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
CONNECT_HANDLE_ENABLED - Static variable in class com.mxgraph.util.mxConstants
Defines the default value for the connect handle.
CONNECT_HANDLE_FILLCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the connect handle fill color.
CONNECT_HANDLE_SIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the connect handle size.
connectable - Variable in class com.mxgraph.model.mxCell
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
connectableEdges - Variable in class com.mxgraph.view.mxGraph
Specifies if edges are connectable.
connectCell(Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.
connectCell(Object, Object, boolean, mxConnectionConstraint) - Method in class com.mxgraph.view.mxGraph
Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.
connectedEdges - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
the index of all connected edges in the e array to this node.
connectIcon - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
Specifies the icon to be used for creating new connections.
connectionHandler - Variable in class com.mxgraph.swing.mxGraphComponent
 
connectPreview - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
connectsAsSource - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Collection of hierarchy edges that have this node as a source
connectsAsTarget - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Collection of hierarchy edges that have this node as a target
consolidate() - Method in class com.mxgraph.analysis.mxFibonacciHeap
Consolidates the trees in the heap by joining trees of equal degree until there are no more trees of equal degree in the root list.
constrainChild(Object) - Method in class com.mxgraph.view.mxGraph
Keeps the given cell inside the bounds returned by getCellContainmentArea for its parent, according to the rules defined by getOverlap and isConstrainChild.
constrainChildren - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isConstrainChildren.
constrainedEvent - Variable in class com.mxgraph.swing.handler.mxEdgeHandler
Workaround for shift-key-state not correct in mouseReleased.
constrainedEvent - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Workaround for shift-key-state not correct in mouseReleased.
constrainedEvent - Variable in class com.mxgraph.swing.handler.mxVertexHandler
Workaround for shift-key-state not correct in mouseReleased.
consume() - Method in class com.mxgraph.util.mxEventObject
Consumes the event.
consumed - Variable in class com.mxgraph.util.mxEventObject
Holds the consumed state of the event.
contains(Object) - Method in class com.mxgraph.model.mxGraphModel
 
contains(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the model contains the given cell.
contains(mxGraphComponent, Rectangle, mxCellState) - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
 
contains(double, double) - Method in class com.mxgraph.util.mxRectangle
Returns true if the given point is contained in the rectangle.
contains(Object[], Object) - Static method in class com.mxgraph.util.mxUtils
Returns true if the given array contains the given object.
contains(double, double) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
contains(Point2D) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
contains(double, double, double, double) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
contains(Rectangle2D) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
contextPreview - Variable in class com.mxgraph.swing.handler.mxMovePreview
Specifies if connected, unselected edges should be included in the preview.
CONTINUE - Static variable in class com.mxgraph.util.mxEvent
 
contour - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
convert(String, mxGraphViewImageReader) - Static method in class com.mxgraph.reader.mxGraphViewImageReader
Creates the image for the given display XML file.
convert(InputSource, mxGraphViewImageReader) - Static method in class com.mxgraph.reader.mxGraphViewImageReader
Creates the image for the given display XML input source.
convertPoint(mxPoint, boolean) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
convertPoint(Point) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
convertValueFromXml(Class<?>, Object) - Method in class com.mxgraph.io.mxObjectCodec
Converts XML attribute values to object of the given type.
convertValueToString(Object) - Method in class com.mxgraph.view.mxGraph
Returns the textual representation for the given cell.
convertValueToXml(Object) - Method in class com.mxgraph.io.mxObjectCodec
Converts true to "1" and false to "0".
copyNodeList(NodeList) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Copy a given NodeList into a List
CORE_CURVE - Static variable in class com.mxgraph.util.mxCurve
Defines the key for the central curve index
cost - Variable in class com.mxgraph.analysis.mxConstantCostFunction
 
count - Variable in class com.mxgraph.swing.view.mxCellStatePreview
 
countError - Variable in class com.mxgraph.view.mxMultiplicity
Holds the localized error message to be displayed if the number of connections for which the rule applies is smaller than min or greater than max.
create(mxICell) - Static method in class com.mxgraph.model.mxCellPath
Creates the cell path for the given cell.
createActionMap() - Method in class com.mxgraph.swing.handler.mxKeyboardHandler
Return the mapping between JTree's input map and JGraph's actions.
createBufferedImage(mxGraph, Object[], double, Color, boolean, mxRectangle) - Static method in class com.mxgraph.util.mxCellRenderer
 
createBufferedImage(mxGraph, Object[], double, Color, boolean, mxRectangle, mxGraphics2DCanvas) - Static method in class com.mxgraph.util.mxCellRenderer
 
createBufferedImage(int, int, Color) - Static method in class com.mxgraph.util.mxUtils
Creates a buffered image for the given parameters.
createCanvas(Map<String, Object>) - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
createCanvas(Map<String, Object>) - Method in class com.mxgraph.reader.mxGraphViewReader
Returns the canvas to be used for rendering.
createCanvas(mxGraphics2DCanvas) - Method in class com.mxgraph.shape.mxStencil
Creates the canvas for rendering the stencil.
createCanvas() - Method in class com.mxgraph.swing.mxGraphComponent
Hook for subclassers to replace the graphics canvas for rendering and and printing.
createCanvas(int, int) - Method in class com.mxgraph.util.mxCellRenderer.CanvasFactory
Separates the creation of the canvas from its initialization, when the size of the required graphics buffer / document / container is known.
createCell(mxCellState, String) - Method in class com.mxgraph.swing.handler.mxConnectPreview
Creates a new instance of mxShape for previewing the edge.
createCellEditor() - Method in class com.mxgraph.swing.mxGraphComponent
 
createCellStatePreview() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
createComponents(mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent
Hook for subclassers to create the array of heavyweights for the given state.
createConnectionHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
createConnectPreview() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
createCoreCurve() - Method in class com.mxgraph.util.mxCurve
Creates the core curve that is based on the guide points passed into this class instance
createDataUrl(String) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
createDefaultEdgeStyle() - Method in class com.mxgraph.view.mxStylesheet
Creates and returns the default edge style.
createDefaultVertexStyle() - Method in class com.mxgraph.view.mxStylesheet
Creates and returns the default vertex style.
createDocument() - Static method in class com.mxgraph.util.mxDomUtils
Returns a new, empty DOM document.
createDocument() - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxDomUtils.createDocument (Jan 2012)
createEdge(Object, String, Object, Object, Object, String) - Method in class com.mxgraph.view.mxGraph
Hook method that creates the new edge for insertEdge.
createElement(Node) - Method in class com.mxgraph.shape.mxStencilShape
Forms an internal representation of the specified SVG element and returns that representation
createErrorMessage(String, Object[]) - Method in class com.mxgraph.util.svg.AbstractParser
Returns a localized error message.
createEvent(DropTargetEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
createFillPaint(mxRectangle, Map<String, Object>) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
createFont(String, int, int) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Hook for subclassers to implement font caching.
createGradientElement(String, String, String) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
createGraphControl() - Method in class com.mxgraph.swing.mxGraphComponent
Creates the inner control that handles tooltips, preferred size and can draw cells onto a canvas.
createGraphHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
createGraphicsCanvas() - Method in class com.mxgraph.reader.mxGraphViewImageReader
Hook that creates the graphics canvas.
createGraphTransferable(mxGraphComponent, Object[], ImageIcon) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
createGraphTransferable(mxGraphComponent, Object[], mxRectangle, ImageIcon) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
createGraphView() - Method in class com.mxgraph.view.mxGraph
Constructs a new view to be used in this graph.
createGroupCell(Object[]) - Method in class com.mxgraph.view.mxGraph
Hook for creating the group cell to hold the given array of if no group cell was given to the function.
createHandle(Point) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
createHandle(Point, int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
createHandle() - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
createHandler(mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent
 
createHandlers() - Method in class com.mxgraph.swing.mxGraphComponent
Creates the connection-, panning and graphhandler (in this order).
createHandles() - Method in class com.mxgraph.swing.handler.mxCellHandler
Creates the rectangles that define the handles.
createHandles() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
createHandles() - Method in class com.mxgraph.swing.handler.mxElbowEdgeHandler
 
createHandles() - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
createHtmlDocument(String, String, String, int, int, boolean, String, boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Creates a HTML document around the given markup.
createHtmlDocument(Map<String, Object>, String) - Method in class com.mxgraph.shape.mxHtmlTextShape
 
createHtmlDocument(mxGraph, Object[], double, Color, mxRectangle) - Static method in class com.mxgraph.util.mxCellRenderer
 
createHtmlDocument() - Static method in class com.mxgraph.util.mxDomUtils
Returns a document with a HTML node containing a HEAD and BODY node.
createHtmlDocument() - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxDomUtils.createHtmlDocument (Jan 2012)
createHtmlDocument(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns a new, empty DOM document.
createHtmlDocument(Map<String, Object>, String, double) - Static method in class com.mxgraph.util.mxUtils
Returns a new, empty DOM document.
createHtmlDocument(Map<String, Object>, String, double, int) - Static method in class com.mxgraph.util.mxUtils
Returns a new, empty DOM document.
createHtmlDocument(Map<String, Object>, String, double, int, String) - Static method in class com.mxgraph.util.mxUtils
Returns a new, empty DOM document.
createHtmlDocumentObject(Map<String, Object>, double) - Static method in class com.mxgraph.util.mxUtils
Returns a new, empty DOM document.
createId(Object) - Method in class com.mxgraph.model.mxGraphModel
Creates a new Id for the given cell and increments the global counter for creating new Ids.
createIds - Variable in class com.mxgraph.model.mxGraphModel
Specifies if the model should automatically create Ids for new cells.
createImageElement(double, double, double, double, String, boolean, boolean, boolean, boolean) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
createImageGraphics(double, double, double, double, boolean, boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Creates a graphic instance for rendering an image.
createInternalCells(mxHierarchicalLayout, Object[], mxGraphHierarchyNode[]) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Creates all edges in the internal model
createLabelCurve() - Method in class com.mxgraph.util.mxCurve
 
createLine(double, double, mxCompactTreeLayout.Polyline) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
createMarker() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
createMovePreview() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
createNode(Object) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
createPanningHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
createPoints(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLineShape
 
createPoints(mxCellState) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
createPreview() - Method in class com.mxgraph.swing.handler.mxCellHandler
Creates the preview for this handler.
createPreview() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
createPreview() - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
createPriorityQueue() - Method in class com.mxgraph.analysis.mxGraphAnalysis
Hook for subclassers to provide a custom fibonacci heap.
createRoot() - Method in class com.mxgraph.model.mxGraphModel
Creates a new root cell with a default layer (child 0).
createSelectionCellsHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
createSelectionModel() - Method in class com.mxgraph.view.mxGraph
Constructs a new selection model to be used in this graph.
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxActorShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxArrowShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxCloudShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxEllipseShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxHexagonShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxRhombusShape
 
createShape(Node, mxStencilShape.svgShape) - Method in class com.mxgraph.shape.mxStencilShape
 
createShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxTriangleShape
 
createShape(String, int) - Static method in class com.mxgraph.util.svg.AWTPathProducer
Utility method for creating an ExtendedGeneralPath.
createShape(String, int) - Static method in class com.mxgraph.util.svg.AWTPolygonProducer
Utility method for creating an ExtendedGeneralPath.
createShape(String, int) - Static method in class com.mxgraph.util.svg.AWTPolylineProducer
Utility method for creating an ExtendedGeneralPath.
createState(Object) - Method in class com.mxgraph.view.mxGraphView
Creates and returns a cell state for the given cell.
createStroke(Map<String, Object>) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
createStylesheet() - Method in class com.mxgraph.view.mxGraph
Constructs a new stylesheet to be used in this graph.
createSvgDocument(mxGraph, Object[], double, Color, mxRectangle) - Static method in class com.mxgraph.util.mxCellRenderer
 
createSvgDocument(int, int) - Static method in class com.mxgraph.util.mxDomUtils
Creates a new SVG document for the given width and height.
createSvgDocument(int, int) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxDomUtils.createSvgDocument(int, int) (Jan 2012)
createTable(Document, String, int, int, int, int, double, Map<String, Object>) - Static method in class com.mxgraph.util.mxUtils
Creates a table for the given text using the given document to create the DOM nodes.
createTarget - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
Specifies if the source should be cloned and used as a target if no target was selected.
createTargetVertex(MouseEvent, Object) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
createTemporaryGraphics(Map<String, Object>, float, mxRectangle) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
createTextGraphics(double, double, double, double, double, boolean, String, String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Returns a new graphics instance with the correct color and font for text rendering.
createTransferable(JComponent) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
(non-Javadoc)
createTransferableImage(mxGraphComponent, Object[]) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
createTransferHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
createTransformedShape(AffineTransform) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
createTripleBuffer(int, int) - Method in class com.mxgraph.swing.mxGraphComponent
Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer.
createTripleBuffer(int, int) - Method in class com.mxgraph.swing.mxGraphOutline
Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer.
createUndoableEdit() - Method in class com.mxgraph.model.mxGraphModel
Creates a new undoable edit.
createUndoableEdit(mxIGraphModel.mxAtomicGraphModelChange[]) - Method in class com.mxgraph.sharing.mxSharedGraphModel
Creates a new mxUndoableEdit that implements the notify function to fire a change and notify event via the model.
createUnionFind(Object[]) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Hook for subclassers to provide a custom union find structure.
createVertex(Object, String, Object, double, double, double, double, String) - Method in class com.mxgraph.view.mxGraph
Hook method that creates the new vertex for insertVertex.
createVertex(Object, String, Object, double, double, double, double, String, boolean) - Method in class com.mxgraph.view.mxGraph
Hook method that creates the new vertex for insertVertex.
createVmlDocument(mxGraph, Object[], double, Color, mxRectangle) - Static method in class com.mxgraph.util.mxCellRenderer
 
createVmlDocument() - Static method in class com.mxgraph.util.mxDomUtils
 
createVmlDocument() - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxDomUtils.createVmlDocument (Jan 2012)
cropping - Variable in class com.mxgraph.reader.mxGraphViewImageReader
Specifies the border which is added to the size of the graph.
crossingStage(Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Executes the crossing stage using mxMedianHybridCrossingReduction.
CSS_FILL_PROPERTY - Static variable in interface com.mxgraph.util.svg.CSSConstants
 
CSS_NONE_VALUE - Static variable in interface com.mxgraph.util.svg.CSSConstants
 
CSS_STROKE_PROPERTY - Static variable in interface com.mxgraph.util.svg.CSSConstants
 
CSSConstants - Interface in com.mxgraph.util.svg
This interface defines constants for CSS.
current - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
current - Variable in class com.mxgraph.util.svg.AbstractParser
The current character.
currentAngle - Variable in class com.mxgraph.swing.handler.mxRotationHandler
 
currentBestCrossings - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
The total number of crossings found in the best configuration so far
currentColor - Variable in class com.mxgraph.swing.handler.mxCellMarker
Holds the current marker color.
currentDropTarget - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Reference to the current drop target.
currentEdit - Variable in class com.mxgraph.model.mxGraphModel
Holds the changes for the current transaction.
currentPath - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Holds the current path.
currentRoot - Variable in class com.mxgraph.view.mxGraphView
mxCell that acts as the root of the displayed cell hierarchy.
currentSegment() - Method in interface com.mxgraph.util.svg.ExtendedPathIterator
 
currentSegment(double[]) - Method in interface com.mxgraph.util.svg.ExtendedPathIterator
 
currentSegment(float[]) - Method in interface com.mxgraph.util.svg.ExtendedPathIterator
 
currentState - Variable in class com.mxgraph.swing.handler.mxRotationHandler
 
currentX - Variable in class com.mxgraph.util.svg.AWTPathProducer
The current x position.
currentXDelta - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The sum of x-displacements for the current iteration
currentXScale - Variable in class com.mxgraph.shape.mxStencilShape.svgShape
Holds the current value to which the shape is scaled in X
currentY - Variable in class com.mxgraph.util.svg.AWTPathProducer
The current y position.
currentYScale - Variable in class com.mxgraph.shape.mxStencilShape.svgShape
Holds the current value to which the shape is scaled in Y
CURSORS - Static variable in class com.mxgraph.swing.handler.mxVertexHandler
 
curve - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of the points between which drawing straight lines views as a curve
curve - Variable in class com.mxgraph.shape.mxCurveShape
Cache of the points between which drawing straight lines views as a curve
CURVE_TEXT_STRETCH_FACTOR - Static variable in class com.mxgraph.shape.mxCurveLabelShape
Factor by which text on the inside of curve is stretched
curveLengths - Variable in class com.mxgraph.util.mxCurve
The curve lengths of the curves
curveTo(double, double, double, double, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
curveTo(double, double, double, double, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Draws a bezier curve to the given point.
curveTo(float, float, float, float, float, float) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
curvetoCubicAbs(float, float, float, float, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoCubicAbs(float,float,float,float,float,float).
curvetoCubicAbs(float, float, float, float, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute cubic bezier curve command has been parsed.
curvetoCubicRel(float, float, float, float, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoCubicRel(float,float,float,float,float,float).
curvetoCubicRel(float, float, float, float, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative cubic bezier curve command has been parsed.
curvetoCubicSmoothAbs(float, float, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoCubicSmoothAbs(float,float,float,float).
curvetoCubicSmoothAbs(float, float, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute smooth cubic bezier curve command has been parsed.
curvetoCubicSmoothRel(float, float, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoCubicSmoothRel(float,float,float,float).
curvetoCubicSmoothRel(float, float, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative smooth cubic bezier curve command has been parsed.
curvetoQuadraticAbs(float, float, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoQuadraticAbs(float,float,float,float).
curvetoQuadraticAbs(float, float, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute quadratic bezier curve command has been parsed.
curvetoQuadraticRel(float, float, float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoQuadraticRel(float,float,float,float).
curvetoQuadraticRel(float, float, float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative quadratic bezier curve command has been parsed.
curvetoQuadraticSmoothAbs(float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoQuadraticSmoothAbs(float,float).
curvetoQuadraticSmoothAbs(float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute smooth quadratic bezier curve command has been parsed.
curvetoQuadraticSmoothRel(float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.curvetoQuadraticSmoothRel(float,float).
curvetoQuadraticSmoothRel(float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative smooth quadratic bezier curve command has been parsed.
cut(mxFibonacciHeap.Node, mxFibonacciHeap.Node) - Method in class com.mxgraph.analysis.mxFibonacciHeap
The reverse of the link operation: removes x from the child list of y.
cycleStage(Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Executes the cycle stage.

D

d - Variable in class com.mxgraph.util.mxSpline1D
 
dashed - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
dashPattern - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
DATA - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
dataEdgeKey(mxGraphMlEdge) - Static method in class com.mxgraph.io.graphml.mxGraphMlGraph
Returns the data element inside the edge that references to the key element with name = KEY_EDGE_NAME.
dataFlavor - Static variable in class com.mxgraph.swing.util.mxGraphTransferable
Serialized Data Flavor.
dataNodeKey(mxGraphMlNode) - Static method in class com.mxgraph.io.graphml.mxGraphMlGraph
Returns the data element inside the node that references to the key element with name = KEY_NODE_NAME.
decode(Node) - Method in class com.mxgraph.io.mxCodec
Decodes the given XML node using mxCodec.decode(Node, Object).
decode(Node, Object) - Method in class com.mxgraph.io.mxCodec
Decodes the given XML node.
decode(String, mxGraph) - Static method in class com.mxgraph.io.mxGdCodec
Parses simple GD format and populate the specified graph
decode(Document, mxGraph) - Static method in class com.mxgraph.io.mxGraphMlCodec
Receives a GraphMl document and parses it generating a new graph that is inserted in graph.
decode(mxCodec, Node) - Method in class com.mxgraph.io.mxObjectCodec
Parses the given node into the object or returns a new object representing the given node.
decode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Parses the given node into the object or returns a new object representing the given node.
decode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxStylesheetCodec
Decodes the given mxStylesheet.
decode(char[]) - Static method in class com.mxgraph.util.mxBase64
Decodes a BASE64 encoded char array.
decode(byte[]) - Static method in class com.mxgraph.util.mxBase64
Decodes a BASE64 encoded byte array.
decode(String) - Static method in class com.mxgraph.util.mxBase64
Decodes a BASE64 encoded String.
decodeAttribute(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Reads the given attribute into the specified object.
decodeAttributes(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Decodes all attributes of the given node using decodeAttribute.
decodeCell(Node, boolean) - Method in class com.mxgraph.io.mxCodec
Decodes cells that have been encoded using inversion, ie.
decodeChanges(Node) - Method in class com.mxgraph.sharing.mxSharedGraphModel
Adds removed cells to the codec object lookup for references to the removed cells after this point in time.
decodeChild(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Reads the specified child into the given object.
decodeChildren(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Decodec all children of the given node using decodeChild.
decodeCompressedText(InputStream) - Static method in class com.mxgraph.util.png.mxPngTextDecoder
Decodes the zTXt chunk of the given PNG image stream.
decodeFast(char[]) - Static method in class com.mxgraph.util.mxBase64
Decodes a BASE64 encoded char array that is known to be resonably well formatted.
decodeFast(byte[]) - Static method in class com.mxgraph.util.mxBase64
Decodes a BASE64 encoded byte array that is known to be resonably well formatted.
decodeFast(String) - Static method in class com.mxgraph.util.mxBase64
Decodes a BASE64 encoded string that is known to be resonably well formatted.
decodeGraph(mxGraph, Object, mxGraphMlGraph) - Static method in class com.mxgraph.io.mxGraphMlCodec
Returns a Gml graph with the data of the vertexes and edges in the graph.
decodeNode(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Calls decodeAttributes and decodeChildren for the given node.
decreaseKey(mxFibonacciHeap.Node, double) - Method in class com.mxgraph.analysis.mxFibonacciHeap
Decreases the key value for a heap node, given the new value to take on.
DEFAULT_BACKGROUNDCOLOR - Static variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Specifies the background color of the transfer image.
DEFAULT_COLLAPSED_ICON - Static variable in class com.mxgraph.swing.mxGraphComponent
 
DEFAULT_CURSOR - Static variable in class com.mxgraph.swing.handler.mxGraphHandler
Default is Cursor.DEFAULT_CURSOR.
DEFAULT_DASHED_PATTERN - Static variable in class com.mxgraph.util.mxConstants
Specifies the default dash pattern, 3 pixels solid, 3 pixels clear.
DEFAULT_DELAY - Static variable in class com.mxgraph.swing.util.mxAnimation
Specifies the default delay for animations in ms.
DEFAULT_DIRECTED - Static variable in class com.mxgraph.analysis.mxGraphProperties
 
DEFAULT_EXPANDED_ICON - Static variable in class com.mxgraph.swing.mxGraphComponent
 
DEFAULT_FONTFAMILIES - Static variable in class com.mxgraph.util.mxConstants
Comma separated list of default fonts for CSS properties.
DEFAULT_FONTFAMILY - Static variable in class com.mxgraph.util.mxConstants
Defines the default font family.
DEFAULT_FONTSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the default font size.
DEFAULT_HOTSPOT - Static variable in class com.mxgraph.util.mxConstants
Defines the portion of the cell which is to be used as a connectable region.
DEFAULT_IMAGEBASEPATH - Static variable in class com.mxgraph.canvas.mxBasicCanvas
Defines the default value for the imageBasePath in all GDI canvases.
DEFAULT_IMAGESIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the default image size.
DEFAULT_INVALID_COLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Specifies the default invalid color.
DEFAULT_LABEL_BUFFER - Static variable in class com.mxgraph.util.mxConstants
Specifies the default distance at 1.0 scale that the label curve is created from its base curve
DEFAULT_MARKERSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the default marker size.
DEFAULT_MAX_HANDLERS - Static variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Defines the default value for maxHandlers.
DEFAULT_MIN_HEIGHT - Static variable in class com.mxgraph.swing.view.mxCellEditor
 
DEFAULT_MIN_WIDTH - Static variable in class com.mxgraph.swing.view.mxCellEditor
 
DEFAULT_MINIMUM_EDITOR_SCALE - Static variable in class com.mxgraph.swing.view.mxCellEditor
 
DEFAULT_PAGESCALE - Static variable in class com.mxgraph.swing.mxGraphComponent
Specifies the default page scale.
DEFAULT_STARTSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the default start size for swimlanes.
DEFAULT_STROKE - Static variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies the default stroke for the marker.
DEFAULT_TIMEOUT - Static variable in class com.mxgraph.sharing.mxSession
Default timeout is 10000 ms.
DEFAULT_TRANSFER_IMAGE_ENABLED - Static variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Boolean that specifies if an image of the cells should be created for each transferable.
DEFAULT_TRAVERSE_VISIBLE - Static variable in class com.mxgraph.analysis.mxGraphProperties
 
DEFAULT_VALID_COLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Specifies the default valid color.
DEFAULT_WARNING_ICON - Static variable in class com.mxgraph.swing.mxGraphComponent
 
DEFAULT_ZOOMHANDLE_FILL - Static variable in class com.mxgraph.swing.mxGraphOutline
 
DefaultErrorHandler - Class in com.mxgraph.util.svg
This class provides a default implementation of ErrorHandler.
DefaultErrorHandler() - Constructor for class com.mxgraph.util.svg.DefaultErrorHandler
 
defaultInterGlyphSpace - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelPosition
 
defaultLoopStyle - Variable in class com.mxgraph.view.mxGraph
Specifies the default style for loops.
defaultOverlap - Variable in class com.mxgraph.swing.util.mxCellOverlay
Defines the overlapping for the overlay, that is, the proportional distance from the origin to the point defined by the alignment.
defaultOverlap - Variable in class com.mxgraph.view.mxGraph
Value returned by getOverlap if isAllowOverlapParent returns true for the given cell.
defaultParent - Variable in class com.mxgraph.view.mxGraph
Specifies the default parent to be used to insert new cells.
defs - Variable in class com.mxgraph.canvas.mxSvgCanvas
 
DEG_PER_RAD - Static variable in class com.mxgraph.util.mxConstants
Defines the number of degrees per radian.
delay - Variable in class com.mxgraph.swing.util.mxAnimation
Default is DEFAULT_DELAY.
delete(mxFibonacciHeap.Node) - Method in class com.mxgraph.analysis.mxFibonacciHeap
Deletes a node from the heap given the reference to the node.
delta - Variable in class com.mxgraph.sharing.mxSharedState
Holds the history of all changes of initial state.
deltas - Variable in class com.mxgraph.swing.view.mxCellStatePreview
 
desc - Variable in class com.mxgraph.shape.mxStencil
Holds the top-level node of the stencil definition.
destroy() - Method in class com.mxgraph.canvas.mxImageCanvas
 
destroy() - Method in class com.mxgraph.sharing.mxSession
Destroys the session and removes its listener from the shared diagram.
destroy() - Method in class com.mxgraph.swing.handler.mxCellHandler
Invoked when the handler is no longer used.
destroy() - Method in class com.mxgraph.swing.handler.mxCellTracker
 
destroy() - Method in class com.mxgraph.view.mxLayoutManager
 
destroy() - Method in class com.mxgraph.view.mxSpaceManager
 
destroy() - Method in class com.mxgraph.view.mxSwimlaneManager
 
destroy() - Method in class com.mxgraph.view.mxTemporaryCellStates
Destroys the cell states and restores the state of the graph view.
destroyTripleBuffer() - Method in class com.mxgraph.swing.mxGraphComponent
Destroys the tripleBuffer and tripleBufferGraphics objects.
destroyTripleBuffer() - Method in class com.mxgraph.swing.mxGraphOutline
Destroys the tripleBuffer and tripleBufferGraphics objects.
dfs(mxAnalysisGraph, Object, mxGraph.mxICellVisitor) - Static method in class com.mxgraph.analysis.mxTraversal
Implements a recursive depth first search starting from the specified cell.
dfs(mxGraphHierarchyNode, mxGraphHierarchyNode, mxGraphHierarchyEdge, mxGraphHierarchyModel.CellVisitor, Set<mxGraphHierarchyNode>, int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Performs a depth first search on the internal hierarchy model
dfs(mxGraphHierarchyNode, mxGraphHierarchyNode, mxGraphHierarchyEdge, mxGraphHierarchyModel.CellVisitor, Set<mxGraphHierarchyNode>, int[], int, int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Performs a depth first search on the internal hierarchy model.
dfs(Object, Object, Set<Object>) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Does a depth first search starting at the specified cell.
dfsCount - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Count of the number of times the ancestor dfs has been used
diagram - Variable in class com.mxgraph.sharing.mxSession
Reference to the shared diagram.
diagramChanged(Object, String) - Method in class com.mxgraph.sharing.mxSession
 
diagramChanged(Object, String) - Method in interface com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener
Fires when the shared diagram was changed.
diagramChangeListeners - Variable in class com.mxgraph.sharing.mxSharedState
Holds a list of diagram change listeners.
die() - Method in class com.mxgraph.util.mxUndoableEdit
Hook to free resources after the edit has been removed from the command history.
differ(Object, Object) - Method in class com.mxgraph.analysis.mxUnionFind
Returns true if element a and element b are not in the same set.
dijkstra(mxAnalysisGraph, Object, Object, mxGraph.mxICellVisitor) - Static method in class com.mxgraph.analysis.mxTraversal
Implements the Dijkstra's shortest path from startVertex to endVertex.
DIRECTED - Static variable in class com.mxgraph.analysis.mxGraphProperties
Whether or not to take into account the direction on edges.
DIRECTION_EAST - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_EAST
DIRECTION_MASK_ALL - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_MASK_EAST
DIRECTION_MASK_EAST - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_MASK_EAST
DIRECTION_MASK_NONE - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_MASK_NONE
DIRECTION_MASK_NORTH - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_MASK_NORTH
DIRECTION_MASK_SOUTH - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_MASK_SOUTH
DIRECTION_MASK_WEST - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_MASK_WEST
DIRECTION_NORTH - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_NORTH
DIRECTION_SOUTH - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_SOUTH
DIRECTION_WEST - Static variable in class com.mxgraph.util.mxConstants
DIRECTION_WEST
dirty - Variable in class com.mxgraph.swing.util.mxMorphing
 
dirVectors - Static variable in class com.mxgraph.view.mxEdgeStyle
 
disableEdgeStyle - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.
disableEdgeStyle - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.
disableEdgeStyle - Variable in class com.mxgraph.layout.mxCircleLayout
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.
disableEdgeStyle - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.
disableEdgeStyle - Variable in class com.mxgraph.layout.mxOrganicLayout
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.
disconnectGraph(Object[]) - Method in class com.mxgraph.view.mxGraph
Disconnects the given edges from the terminals which are not in the given array.
disconnectOnMove - Variable in class com.mxgraph.view.mxGraph
Specifies if edges should be disconnected from their terminals when they are moved.
dispatch() - Method in class com.mxgraph.util.mxUndoableEdit
Hook to notify any listeners of the changes after an undo or redo has been carried out.
dispX - Variable in class com.mxgraph.layout.mxFastOrganicLayout
An array of locally stored X co-ordinate displacements for the vertices.
dispY - Variable in class com.mxgraph.layout.mxFastOrganicLayout
An array of locally stored Y co-ordinate displacements for the vertices.
document - Variable in class com.mxgraph.canvas.mxHtmlCanvas
Holds the HTML document that represents the canvas.
document - Variable in class com.mxgraph.canvas.mxSvgCanvas
Holds the HTML document that represents the canvas.
document - Variable in class com.mxgraph.canvas.mxVmlCanvas
Holds the HTML document that represents the canvas.
document - Variable in class com.mxgraph.io.mxCodec
Holds the owner document of the codec.
DONE - Static variable in class com.mxgraph.util.mxEvent
 
doParse() - Method in class com.mxgraph.util.svg.AbstractParser
Method responsible for actually parsing data after AbstractParser has initialized itself.
doParse() - Method in class com.mxgraph.util.svg.PathParser
 
doParse() - Method in class com.mxgraph.util.svg.PointsParser
Parses the current stream.
DOWN - Static variable in class com.mxgraph.util.mxEvent
 
dragCells - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
dragEnabled - Variable in class com.mxgraph.swing.mxGraphComponent
 
dragEnter(DropTargetDragEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
dragExit(DropTargetEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
dragImage - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Holds the image that is being used for the preview.
dragOver(DropTargetDragEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
drawCell(mxCellState) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
drawCell(mxCellState) - Method in class com.mxgraph.canvas.mxHtmlCanvas
 
drawCell(mxCellState) - Method in interface com.mxgraph.canvas.mxICanvas
Draws the given cell.
drawCell(mxCellState) - Method in class com.mxgraph.canvas.mxImageCanvas
 
drawCell(mxCellState) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
drawCell(mxCellState) - Method in class com.mxgraph.canvas.mxVmlCanvas
 
drawCell(mxICanvas, Object) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Draws the given cell onto the specified canvas.
drawCell(mxICanvas, Object) - Method in class com.mxgraph.view.mxGraph
Draws the given cell and its descendants onto the specified canvas.
drawCells(mxGraph, Object[], double, mxRectangle, mxCellRenderer.CanvasFactory) - Static method in class com.mxgraph.util.mxCellRenderer
Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
drawChildren(Object, boolean, boolean) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Draws the child edges and/or all other children in the given cell depending on the boolean arguments.
drawElement(mxGraphicsCanvas2D, mxCellState, Element, mxRectangle) - Method in class com.mxgraph.shape.mxStencil
Drawsthe given element.
drawFromRootCell() - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Hook to draw the root cell into the canvas.
drawGlassEffect(mxGraphics2DCanvas, mxCellState) - Static method in class com.mxgraph.shape.mxLabelShape
Draws the glass effect
drawGraph(Graphics2D, boolean) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
drawGraph(mxICanvas) - Method in class com.mxgraph.view.mxGraph
Draws the graph onto the given canvas.
drawImage(Rectangle, String) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
drawImage(Rectangle, String, boolean, boolean, boolean) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
drawImage(Graphics2D, Image, int, int) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
drawImageClip(Graphics, BufferedImage, ImageObserver) - Static method in class com.mxgraph.util.mxUtils
Draws the image inside the clip bounds to the given graphics object.
drawImageImpl(Image, int, int) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
Implements the actual graphics call.
drawImageImpl(Image, int, int) - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
Overrides graphics call to use image observer.
drawingBounds - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
The un-rotated rectangle that just bounds this character
drawLabel(String, mxCellState, boolean) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
drawLabel(String, mxCellState, boolean) - Method in class com.mxgraph.canvas.mxHtmlCanvas
 
drawLabel(String, mxCellState, boolean) - Method in interface com.mxgraph.canvas.mxICanvas
Draws the given label.
drawLabel(String, mxCellState, boolean) - Method in class com.mxgraph.canvas.mxImageCanvas
 
drawLabel(String, mxCellState, boolean) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
drawLabel(String, mxCellState, boolean) - Method in class com.mxgraph.canvas.mxVmlCanvas
 
drawLabels - Variable in class com.mxgraph.canvas.mxBasicCanvas
Specifies whether labels should be painted.
drawLabels - Variable in class com.mxgraph.swing.mxGraphOutline
 
drawLine(List<mxPoint>, Map<String, Object>) - Method in class com.mxgraph.canvas.mxHtmlCanvas
Draws the given lines as segments between all points of the given list of mxPoints.
drawLine(List<mxPoint>, Map<String, Object>) - Method in class com.mxgraph.canvas.mxSvgCanvas
Draws the given lines as segments between all points of the given list of mxPoints.
drawLine(List<mxPoint>, Map<String, Object>) - Method in class com.mxgraph.canvas.mxVmlCanvas
Draws the given lines as segments between all points of the given list of mxPoints.
drawMarker(Element, Object, mxPoint, mxPoint, float, float, String) - Method in class com.mxgraph.canvas.mxSvgCanvas
Draws the specified marker as a child path in the given parent.
drawSegment(int, int, int, int, String, int) - Method in class com.mxgraph.canvas.mxHtmlCanvas
Draws the specified segment of a line.
drawShadow(mxGraphicsCanvas2D, mxCellState, double, boolean, boolean, mxRectangle, double, boolean) - Method in class com.mxgraph.shape.mxStencil
Draws the shadow.
drawShape(int, int, int, int, Map<String, Object>) - Method in class com.mxgraph.canvas.mxHtmlCanvas
Draws the shape specified with the STYLE_SHAPE key in the given style.
drawShape(int, int, int, int, Map<String, Object>) - Method in class com.mxgraph.canvas.mxSvgCanvas
Draws the shape specified with the STYLE_SHAPE key in the given style.
drawShape(int, int, int, int, Map<String, Object>) - Method in class com.mxgraph.canvas.mxVmlCanvas
Draws the shape specified with the STYLE_SHAPE key in the given style.
drawShape(mxGraphicsCanvas2D, mxCellState, mxRectangle, boolean) - Method in class com.mxgraph.shape.mxStencil
Draws this stencil inside the given bounds.
drawState(mxICanvas, mxCellState, boolean) - Method in class com.mxgraph.view.mxGraph
Draws the cell state with the given label onto the canvas.
drawText(String, int, int, int, int, Map<String, Object>) - Method in class com.mxgraph.canvas.mxHtmlCanvas
Draws the specified text either using drawHtmlString or using drawString.
drawText(String, int, int, int, int, Map<String, Object>) - Method in class com.mxgraph.canvas.mxSvgCanvas
Draws the specified text either using drawHtmlString or using drawString.
drawText(String, int, int, int, int, Map<String, Object>) - Method in class com.mxgraph.canvas.mxVmlCanvas
Draws the specified text either using drawHtmlString or using drawString.
drop(DropTargetDropEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
dropActionChanged(DropTargetDragEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
dropEnabled - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isDropEnabled.
dx - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
dx - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polyline
 
dy - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
dy - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polyline
 

E

e - Variable in class com.mxgraph.layout.mxOrganicLayout
Internal models collection of edges to be laid out
ease - Variable in class com.mxgraph.swing.util.mxMorphing
Ease-off for movement towards the given vector.
EDGE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
edge - Variable in class com.mxgraph.model.mxCell
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
EDGE_DEFAULT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
EDGE_DIRECTED - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
EDGE_SELECTION_COLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the selection color for edges.
EDGE_SELECTION_STROKE - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the stroke used for painting selected edges.
EDGE_SOURCE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
EDGE_SOURCE_PORT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
EDGE_TARGET - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
EDGE_TARGET_PORT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
EDGE_UNDIRECTED - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
edgeCrossingCostFactor - Variable in class com.mxgraph.layout.mxOrganicLayout
Cost factor applied to energy calculations involving edges that cross over one another.
edgeDistanceCostFactor - Variable in class com.mxgraph.layout.mxOrganicLayout
Cost factor applied to energy calculations involving the distance nodes and edges.
edgeLabelsMovable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for edges in isLabelMovable.
edgeLengthCostFactor - Variable in class com.mxgraph.layout.mxOrganicLayout
Cost factor applied to energy calculations for the edge lengths.
edgeMapper - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Map from graph edges to internal model edges
edgeRouting - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Whether or not to apply the internal tree edge routing
edges - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
The graph edge(s) this object represents.
edges - Variable in class com.mxgraph.model.mxCell
Holds the child cells and connected edges.
edgeStyle - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The style to apply between cell layers to edge segments
EDGESTYLE_ELBOW - Static variable in class com.mxgraph.util.mxConstants
Name of the elbow edge style.
EDGESTYLE_ENTITY_RELATION - Static variable in class com.mxgraph.util.mxConstants
Name of the entity relation edge style.
EDGESTYLE_LOOP - Static variable in class com.mxgraph.util.mxConstants
Name of the loop edge style.
EDGESTYLE_ORTHOGONAL - Static variable in class com.mxgraph.util.mxConstants
Name of the orthogonal edge style.
EDGESTYLE_SEGMENT - Static variable in class com.mxgraph.util.mxConstants
Name of the generic segment edge style.
EDGESTYLE_SIDETOSIDE - Static variable in class com.mxgraph.util.mxConstants
Name of the side to side edge style.
EDGESTYLE_TOPTOBOTTOM - Static variable in class com.mxgraph.util.mxConstants
Name of the top to bottom edge style.
editingCell - Variable in class com.mxgraph.swing.view.mxCellEditor
 
editorPane - Variable in class com.mxgraph.swing.view.mxCellEditor
Holds the editor for HTML editing.
ELBOW_HORIZONTAL - Static variable in class com.mxgraph.util.mxConstants
ELBOW_HORIZONTAL
ELBOW_VERTICAL - Static variable in class com.mxgraph.util.mxConstants
ELBOW_VERTICAL
ElbowConnector - Static variable in class com.mxgraph.view.mxEdgeStyle
Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell style.
ellipse(double, double, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
ellipse(double, double, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Next fill or stroke should draw an ellipse.
EllipsePerimeter - Static variable in class com.mxgraph.view.mxPerimeter
Describes an elliptic perimeter.
embedded - Variable in class com.mxgraph.canvas.mxSvgCanvas
Specifies if images should be embedded as base64 encoded strings.
EMPTY_IMAGE - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Contains an empty image of size 1, 1.
EMPTY_STYLE - Static variable in class com.mxgraph.view.mxStylesheet
Shared immutable empty hashtable (for undefined cell styles).
emptyConnectionMap - Static variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Shared empty connection map to return instead of null in applyMap.
enabled - Variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies if the marker is enabled.
enabled - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
enabled - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if the handler is enabled.
enabled - Variable in class com.mxgraph.swing.handler.mxInsertHandler
Specifies if this handler is enabled.
enabled - Variable in class com.mxgraph.swing.handler.mxPanningHandler
 
enabled - Variable in class com.mxgraph.swing.handler.mxRotationHandler
Specifies if this handler is enabled.
enabled - Variable in class com.mxgraph.swing.handler.mxRubberband
Specifies if the rubberband is enabled.
enabled - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Specifies if this handler is enabled.
enabled - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isEnabled.
enabled - Variable in class com.mxgraph.view.mxLayoutManager
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
enabled - Variable in class com.mxgraph.view.mxSpaceManager
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
enabled - Variable in class com.mxgraph.view.mxSwimlaneManager
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
encode(Object) - Method in class com.mxgraph.io.mxCodec
Encodes the specified object and returns the resulting XML node.
encode(mxGraph) - Static method in class com.mxgraph.io.mxGdCodec
Generates a GD text output with the cells in the graph.
encode(mxGraph) - Static method in class com.mxgraph.io.mxGraphMlCodec
Generates a Xml document with the cells in the graph.
encode(mxCodec, Object) - Method in class com.mxgraph.io.mxObjectCodec
Encodes the specified object and returns a node representing then given object.
encode(mxCodec, Object) - Method in class com.mxgraph.io.mxStylesheetCodec
Encodes the given mxStylesheet.
encode(RenderedImage) - Method in class com.mxgraph.util.png.mxPngImageEncoder
This method encodes a RenderedImage into PNG.
encodeCell(mxICell, Node, boolean) - Method in class com.mxgraph.io.mxCodec
Encoding of cell hierarchies is built-into the core, but is a higher-level function that needs to be explicitely used by the respective object encoders (eg.
encodeDefaults - Variable in class com.mxgraph.io.mxCodec
Specifies if default values should be encoded.
encodeElements(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Encodes the child objects of arrays, maps and collections.
encodeFields(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Encodes the declared fields of the given object into the given node.
encodeObject(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxModelCodec
Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec.
encodeObject(mxCodec, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Encodes the value of each member in then given obj into the given node using mxObjectCodec.encodeFields(mxCodec, Object, Node) and mxObjectCodec.encodeElements(mxCodec, Object, Node).
encodeToByte(byte[], boolean) - Static method in class com.mxgraph.util.mxBase64
Encodes a raw byte array into a BASE64 byte[] representation i accordance with RFC 2045.
encodeToChar(byte[], boolean) - Static method in class com.mxgraph.util.mxBase64
Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.
encodeToString(byte[], boolean) - Static method in class com.mxgraph.util.mxBase64
Encodes a raw byte array into a BASE64 String representation i accordance with RFC 2045.
encodeValue(mxCodec, Object, String, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Converts the given value according to the mappings and id-refs in this codec and uses mxObjectCodec.writeAttribute(mxCodec, Object, String, Object, Node) to write the attribute into the given node.
encodeXML(mxGraphMlGraph) - Static method in class com.mxgraph.io.mxGraphMlCodec
Generates a Xml document with the gmlGraph.
END_UPDATE - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the endUpdate event.
endBuffer - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelPosition
 
endingUpdate - Variable in class com.mxgraph.model.mxGraphModel
 
endPath() - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.endPath().
endPath() - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when the path ends.
ENDPOINT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
endPoint - Variable in class com.mxgraph.util.mxLine
The end point of the line
endPoints() - Method in class com.mxgraph.util.svg.AWTPolygonProducer
Implements PointsHandler.endPoints().
endPoints() - Method in class com.mxgraph.util.svg.AWTPolylineProducer
Implements PointsHandler.endPoints().
endPoints() - Method in interface com.mxgraph.util.svg.PointsHandler
Invoked when the points attribute ends.
endUpdate() - Method in class com.mxgraph.model.mxGraphModel
 
endUpdate() - Method in interface com.mxgraph.model.mxIGraphModel
Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0.
enterGroup() - Method in class com.mxgraph.view.mxGraph
 
enterGroup(Object) - Method in class com.mxgraph.view.mxGraph
Uses the given cell as the root of the displayed cell hierarchy.
enterStopsCellEditing - Variable in class com.mxgraph.swing.mxGraphComponent
If true, pressing the enter key without pressing control will stop editing and accept the new value.
ENTITY_SEGMENT - Static variable in class com.mxgraph.util.mxConstants
Defines the length of the horizontal segment of an Entity Relation.
EntityRelation - Static variable in class com.mxgraph.view.mxEdgeStyle
Provides an entity relation style for edges (as used in database schema diagrams).
enumForValue(String) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
Converts a String value in its corresponding enum value for the keyFor attribute.
enumTypeValue(String) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
Converts a String value in its corresponding enum value for the keyType attribute.
equals(Object) - Method in class com.mxgraph.util.mxPoint
Returns true if the given object equals this rectangle.
equals(Object) - Method in class com.mxgraph.util.mxRectangle
Returns true if the given object equals this rectangle.
eRead - Variable in class com.mxgraph.util.svg.PointsParser
Whether the last character was a 'e' or 'E'.
error - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
error - Variable in class com.mxgraph.swing.handler.mxEdgeHandler
 
error(ParseException) - Method in class com.mxgraph.util.svg.DefaultErrorHandler
Implements ErrorHandler.error(ParseException).
error(ParseException) - Method in interface com.mxgraph.util.svg.ErrorHandler
Called when a parse error occurs.
errorHandler - Variable in class com.mxgraph.util.svg.AbstractParser
The error handler.
ErrorHandler - Interface in com.mxgraph.util.svg
This interface must be implemented and then registred as the error handler in order to be notified of parsing errors.
escape(KeyEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Callback to process an escape keystroke.
escapeEnabled - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies should be invoked when the escape key is pressed.
eval(String) - Static method in class com.mxgraph.util.mxUtils
Evaluates a Java expression as a class member using mxCodecRegistry.
evaluateAttribute(Element, String, mxCellState) - Method in class com.mxgraph.shape.mxStencil
Gets the attribute for the given name from the given node.
eventListeners - Variable in class com.mxgraph.util.mxEventSource
Holds the event names and associated listeners in an array.
eventsEnabled - Variable in class com.mxgraph.util.mxEventSource
Specifies if events can be fired.
eventSource - Variable in class com.mxgraph.swing.handler.mxCellMarker
Holds the event source.
eventSource - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
Holds the event source.
eventSource - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
eventSource - Variable in class com.mxgraph.swing.mxGraphComponent
 
eventSource - Variable in class com.mxgraph.util.mxEventSource
Holds the source object for this event source.
exception - Variable in exception com.mxgraph.util.svg.ParseException
 
exclude - Variable in class com.mxgraph.io.mxObjectCodec
Array containing the variable names that should be ignored by the codec.
execute(Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Executes the layout for the children of the specified parent.
execute(Object, List<Object>) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Executes the layout for the children of the specified parent.
execute(Object) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
A basic horizontal coordinate assignment algorithm
execute(Object) - Method in interface com.mxgraph.layout.hierarchical.stage.mxHierarchicalLayoutStage
Takes the graph detail and configuration information within the facade and creates the resulting laid out graph within that facade for further use.
execute(Object) - Method in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
Performs a vertex ordering within ranks as described by Gansner et al 1993
execute(Object) - Method in class com.mxgraph.layout.hierarchical.stage.mxMinimumCycleRemover
Produces the layer assignmment using the graph information specified
execute(Object) - Method in class com.mxgraph.layout.mxCircleLayout
 
execute(Object) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
execute(Object, Object) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Implements .
execute(Object) - Method in class com.mxgraph.layout.mxEdgeLabelLayout
 
execute(Object) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
execute(Object) - Method in class com.mxgraph.layout.mxGraphLayout
 
execute(Object) - Method in interface com.mxgraph.layout.mxIGraphLayout
Executes the layout for the children of the specified parent.
execute(Object) - Method in class com.mxgraph.layout.mxOrganicLayout
Implements .
execute(Object) - Method in class com.mxgraph.layout.mxParallelEdgeLayout
 
execute(Object) - Method in class com.mxgraph.layout.mxPartitionLayout
 
execute(Object) - Method in class com.mxgraph.layout.mxStackLayout
 
execute(Object) - Method in class com.mxgraph.layout.orthogonal.mxOrthogonalLayout
 
execute(mxIGraphModel.mxAtomicGraphModelChange) - Method in class com.mxgraph.model.mxGraphModel
Executes the given atomic change and adds it to the current edit.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxRootChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
Changes the root of the model.
execute() - Method in class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
Executes the change on the model.
EXECUTE - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the execute event.
execute() - Method in interface com.mxgraph.util.mxUndoableEdit.mxUndoableChange
Undoes or redoes the change depending on its undo state.
execute() - Method in class com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange
 
execute() - Method in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
Changes the current root of the view.
executeLayout(mxIGraphLayout, Object) - Method in class com.mxgraph.view.mxLayoutManager
 
exitGroup() - Method in class com.mxgraph.view.mxGraph
Changes the current root to the next valid root in the displayed cell hierarchy.
expandedIcon - Variable in class com.mxgraph.swing.mxGraphComponent
 
exportDone(JComponent, Transferable, int) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
exportEnabled - Variable in class com.mxgraph.swing.mxGraphComponent
 
extendComponent(Rectangle) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Implements extension of the component in all directions.
ExtendedGeneralPath - Class in com.mxgraph.util.svg
The ExtendedGeneralPath class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc.
ExtendedGeneralPath() - Constructor for class com.mxgraph.util.svg.ExtendedGeneralPath
Constructs a new ExtendedGeneralPath.
ExtendedGeneralPath(int) - Constructor for class com.mxgraph.util.svg.ExtendedGeneralPath
Constructs a new ExtendedGeneralPath with the specified winding rule to control operations that require the interior of the path to be defined.
ExtendedGeneralPath(int, int) - Constructor for class com.mxgraph.util.svg.ExtendedGeneralPath
Constructs a new ExtendedGeneralPath object with the specified winding rule and the specified initial capacity to store path coordinates.
ExtendedGeneralPath(Shape) - Constructor for class com.mxgraph.util.svg.ExtendedGeneralPath
Constructs a new ExtendedGeneralPath object from an arbitrary Shape object.
ExtendedPathIterator - Interface in com.mxgraph.util.svg
The ExtendedPathIterator class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arcs.
extendParent(Object) - Method in class com.mxgraph.view.mxGraph
Resizes the parents recursively so that they contain the complete area of the resized child cell.
extendParents - Variable in class com.mxgraph.view.mxGraph
Specifies if a parent should contain the child bounds after a resize of the child.
extendParents - Variable in class com.mxgraph.view.mxSpaceManager
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
extendParentsOnAdd - Variable in class com.mxgraph.view.mxGraph
Specifies if parents should be extended according to the switch if cells are added.
extractHtmlBody - Variable in class com.mxgraph.swing.view.mxCellEditor
Specifies if the text content of the HTML body should be extracted before and after editing for HTML markup.

F

fgNode - Variable in class com.mxgraph.shape.mxStencil
Holds the XML node with the stencil description.
fieldname - Variable in class com.mxgraph.io.mxGenericChangeCodec
 
fields - Variable in class com.mxgraph.io.mxObjectCodec
Caches fields for faster access.
fill() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
fill() - Method in interface com.mxgraph.canvas.mxICanvas2D
Fills the current path.
FILL - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
fill - Variable in class com.mxgraph.layout.mxStackLayout
Boolean indicating if dimension should be changed to fill out the parent cell.
fillAndStroke() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
fillAndStroke() - Method in interface com.mxgraph.canvas.mxICanvas2D
Fills and paints the outline of the current path.
fillClippedRect(Graphics, int, int, int, int) - Static method in class com.mxgraph.util.mxUtils
 
fillColor - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fillColor - Variable in class com.mxgraph.swing.handler.mxRubberband
Defines the color to be used for filling the rubberband selection.
fillColorValue - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fillShape(Shape) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
fillShape(Shape, boolean) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
filter(Object) - Method in interface com.mxgraph.model.mxGraphModel.Filter
 
filterCells(Object[], mxGraphModel.Filter) - Static method in class com.mxgraph.model.mxGraphModel
 
filterDescendants(Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Creates a set of descendant cells
filterDescendants(mxIGraphModel, mxGraphModel.Filter) - Static method in class com.mxgraph.model.mxGraphModel
Creates a collection of cells using the visitor pattern.
filterDescendants(mxIGraphModel, mxGraphModel.Filter, Object) - Static method in class com.mxgraph.model.mxGraphModel
Creates a collection of cells using the visitor pattern.
filterRow(byte[], byte[], byte[][], int, int) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Performs filtering on a row of an image.
find(mxUnionFind.Node) - Method in class com.mxgraph.analysis.mxUnionFind
Returns the set that contains node.
finderBounds - Variable in class com.mxgraph.swing.mxGraphOutline
 
finderVisible - Variable in class com.mxgraph.swing.mxGraphOutline
 
findNearestSegment(mxCellState, double, double) - Static method in class com.mxgraph.util.mxUtils
Finds the index of the nearest segment on the given cell state for the specified coordinate pair.
findNode(Node, String, String) - Static method in class com.mxgraph.util.mxUtils
Returns the first node where attr equals value.
findParallels(Object) - Method in class com.mxgraph.layout.mxParallelEdgeLayout
 
findRoots(Object, Set<Object>) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Returns all visible children in the given parent which do not have incoming edges.
findTreeRoots(Object, boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Returns all visible children in the given parent which do not have incoming edges.
findTreeRoots(Object) - Method in class com.mxgraph.view.mxGraph
Returns all visible children in the given parent which do not have incoming edges.
findTreeRoots(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns all visible children in the given parent which do not have incoming edges.
findTreeRoots(Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns all visible children in the given parent which do not have incoming edges.
fineTuning - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Whether or not to perform local optimisations and iterate multiple times through the algorithm
fineTuning - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Whether or not to perform local optimisations and iterate multiple times through the algorithm
fineTuningRadius - Variable in class com.mxgraph.layout.mxOrganicLayout
The radius below which fine tuning of the layout should start This involves allowing the distance between nodes and edges to be taken into account in the total energy calculation.
FIRED - Static variable in class com.mxgraph.util.mxEvent
 
fireEvent(mxEventObject) - Method in class com.mxgraph.util.mxEventSource
Dispatches the given event name with this object as the event source.
fireEvent(mxEventObject, Object) - Method in class com.mxgraph.util.mxEventSource
Dispatches the given event name, passing all arguments after the given name to the registered listeners for the event.
firePropertyChange(String, Object, Object) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, byte, byte) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, char, char) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, short, short) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, int, int) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, long, long) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, float, float) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, double, double) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
firePropertyChange(String, boolean, boolean) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
first - Variable in class com.mxgraph.swing.handler.mxCellHandler
Holds the start location of the mouse gesture.
first - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
first - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Holds the start location of the mouse gesture.
first - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
first - Variable in class com.mxgraph.swing.handler.mxRotationHandler
 
first - Variable in class com.mxgraph.swing.handler.mxRubberband
Holds the point where the selection has started.
firstCharAt(String, int, int) - Static method in class com.mxgraph.util.mxUtils
Find the first character matching the input character in the given string where the character has no letter preceding it.
fitPage - Variable in class com.mxgraph.swing.mxGraphOutline
Specifies if the outline should be zoomed to the page if the graph component is in page layout mode.
fixRanks() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Fixes the layer assignments to the values stored in the nodes.
FLIP_EDGE - Static variable in class com.mxgraph.util.mxEvent
 
flipEdge(Object) - Method in class com.mxgraph.view.mxGraph
Called when the main control point of the edge is double-clicked.
flipH - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
flipV - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
floydRoyWarshall(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxTraversal
Implements the Floyd-Roy-Warshall (aka WFI) shortest path algorithm between all vertices.
flushImageCache() - Method in class com.mxgraph.canvas.mxBasicCanvas
 
fold(Object) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
FOLD_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
FOLD_CURSOR - Static variable in class com.mxgraph.swing.handler.mxGraphHandler
Default is Cursor.HAND_CURSOR.
foldCells(boolean) - Method in class com.mxgraph.view.mxGraph
Sets the collapsed state of the selection cells without recursion.
foldCells(boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Sets the collapsed state of the selection cells.
foldCells(boolean, boolean, Object[]) - Method in class com.mxgraph.view.mxGraph
Invokes foldCells with checkFoldable set to false.
foldCells(boolean, boolean, Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Sets the collapsed state of the specified cells and all descendants if recurse is true.
foldingEnabled - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if folding (collapse and expand via an image icon in the graph should be enabled).
FONT_BOLD - Static variable in class com.mxgraph.util.mxConstants
FONT_BOLD
FONT_FRACTIONALMETRICS - Static variable in class com.mxgraph.shape.mxCurveLabelShape
Specifies if image aspect should be preserved in drawImage.
FONT_ITALIC - Static variable in class com.mxgraph.util.mxConstants
FONT_ITALIC
FONT_SHADOW - Static variable in class com.mxgraph.util.mxConstants
FONT_SHADOW
FONT_UNDERLINE - Static variable in class com.mxgraph.util.mxConstants
FONT_UNDERLINE
fontBackgroundColor - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontBackgroundColorValue - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontBorderColor - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontBorderColorValue - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontColor - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontColorValue - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontFamily - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontGraphics - Static variable in class com.mxgraph.util.mxUtils
Static Graphics used for Font Metrics.
fontSize - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
fontStyle - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
forceConstant - Variable in class com.mxgraph.layout.mxFastOrganicLayout
The force constant by which the attractive forces are divided and the replusive forces are multiple by the square of.
forceConstantSquared - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Cache of ^2 for performance.
frc - Static variable in class com.mxgraph.shape.mxCurveLabelShape
Shared FRC for font size calculations
frequency - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The probable frequency of the color in the image.
fullRepaintHandler - Variable in class com.mxgraph.view.mxGraph
Fires repaint events for full repaints.

G

g - Variable in class com.mxgraph.canvas.mxGraphics2DCanvas
Global graphics handle to the image.
g - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
Stores the actual state.
generateEdgeElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlData
Generates an Edge Data Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
Generates a Edge Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
Generates a Key Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
Generates a Key Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlNode
Generates a Key Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlPort
Generates a Key Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
Generates a ShapeEdge Element from this class.
generateElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
Generates a Shape Node Element from this class.
generateNodeElement(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlData
Generates an Node Data Element from this class.
generator - Variable in class com.mxgraph.analysis.mxAnalysisGraph
 
GEOMETRY - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
geometry - Variable in class com.mxgraph.model.mxCell
Holds the geometry.
geometry - Variable in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
geometryForCellChanged(Object, mxGeometry) - Method in class com.mxgraph.model.mxGraphModel
Inner callback to update the mxGeometry of the given mxCell using mxCell.setGeometry and return the previous mxGeometry.
get(String) - Static method in class com.mxgraph.util.mxResources
 
get(String, String) - Static method in class com.mxgraph.util.mxResources
 
get(String, String[]) - Static method in class com.mxgraph.util.mxResources
Returns the value for the specified resource key.
get(String, String[], String) - Static method in class com.mxgraph.util.mxResources
Returns the value for the specified resource key.
getAbsoluteOffset() - Method in class com.mxgraph.view.mxCellState
Returns the absolute offset.
getAbsolutePoint(int) - Method in class com.mxgraph.view.mxCellState
Returns the absolute point at the given index.
getAbsolutePointCount() - Method in class com.mxgraph.view.mxCellState
Returns the number of absolute points.
getAbsolutePoints() - Method in class com.mxgraph.view.mxCellState
Returns the absolute points.
getAccessor(Object, Field, boolean) - Method in class com.mxgraph.io.mxObjectCodec
Returns the accessor (getter, setter) for the specified field.
getAdditionFactorsEnergy(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Hook method to adding additional energy factors into the layout.
getAlign() - Method in class com.mxgraph.swing.util.mxCellOverlay
 
getAllConnectionConstraints(mxCellState, boolean) - Method in class com.mxgraph.view.mxGraph
Returns an array of all constraints for the given terminal.
getAllEdges(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns all edges connected to the given cells or their descendants.
getAlternateBounds() - Method in class com.mxgraph.model.mxGeometry
Returns the alternate bounds.
getAlternateEdgeStyle() - Method in class com.mxgraph.view.mxGraph
Returns alternateEdgeStyle.
getArcSize(int, int) - Method in class com.mxgraph.shape.mxRectangleShape
Computes the arc size for the given dimension.
getAttribute(String) - Method in class com.mxgraph.model.mxCell
Returns the specified attribute from the user object if it is an XML node.
getAttribute(String, String) - Method in class com.mxgraph.model.mxCell
Returns the specified attribute from the user object if it is an XML node.
getAttributeName(String) - Method in class com.mxgraph.io.mxObjectCodec
Returns the XML node attribute name for the given Java field name.
getAverageNodeArea() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getBackground() - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
getBackgroundGray() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Returns the suggested gray level of the background.
getBackgroundImage() - Method in class com.mxgraph.swing.mxGraphComponent
 
getBackgroundPaletteIndex() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Returns the palette index of the suggested background color.
getBackgroundRGB() - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Returns the RGB value of the suggested background color.
getBaseLabelCurve() - Method in class com.mxgraph.util.mxCurve
Returns the curve the label curve is too be based on
getBipartiteGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getBitDepth() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the desired bit depth for a grayscale image.
getBitShift() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Returns the desired bit shift for a grayscale image.
getBodyMarkup(String, boolean) - Static method in class com.mxgraph.util.mxUtils
Returns the body part of the given HTML markup.
getBorder() - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
getBorder() - Method in class com.mxgraph.view.mxGraph
Returns the value of .
getBorderColor() - Method in class com.mxgraph.swing.handler.mxRubberband
Returns the border color.
getBorderline(int) - Method in class com.mxgraph.layout.mxOrganicLayout
This method calculates the energy of the distance of the specified node to the notional border of the graph.
getBorderLineCostFactor() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getBoundingBox() - Method in class com.mxgraph.shape.mxStencilShape
 
getBoundingBox(mxRectangle, double) - Static method in class com.mxgraph.util.mxUtils
Returns the bounding box for the rotated rectangle.
getBoundingBox() - Method in class com.mxgraph.view.mxCellState
Returns the bounding box.
getBoundingBox(Object) - Method in class com.mxgraph.view.mxGraph
Returns the bounds of the given cell.
getBoundingBox(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the bounding box of the given cell including all connected edges if includeEdge is true.
getBoundingBox(Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the bounding box of the given cell including all connected edges if includeEdge is true.
getBoundingBox(Object[]) - Method in class com.mxgraph.view.mxGraphView
Returns the bounding box for an array of cells or null, if no cells are specified.
getBoundingBoxFromGeometry(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns the bounding box for the geometries of the vertices in the given array of cells.
getBounds() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the bounding box of this handler.
getBounds(mxCellState) - Method in class com.mxgraph.swing.util.mxCellOverlay
 
getBounds() - Method in class com.mxgraph.swing.util.mxGraphTransferable
Returns the unscaled, untranslated bounding box of the cells.
getBounds(mxCellState) - Method in interface com.mxgraph.swing.util.mxICellOverlay
 
getBounds() - Method in class com.mxgraph.util.mxCurve
 
getBounds() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
getBounds(Object[]) - Method in class com.mxgraph.view.mxGraphView
Returns the bounding box for an array of cells or null, if no cells are specified.
getBounds(Object[], boolean) - Method in class com.mxgraph.view.mxGraphView
Returns the bounding box for an array of cells or null, if no cells are specified.
getBounds2D() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
getBoundsForCells(Object[], boolean, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the bounds for the given cells.
getBoundsForGroup(Object, Object[], double) - Method in class com.mxgraph.view.mxGraph
Returns the bounds to be used for the given group and children.
getBundleClassName() - Method in class com.mxgraph.util.svg.AbstractParser
Returns the resource bundle base name.
getBundles() - Static method in class com.mxgraph.util.mxResources
Returns the bundles.
getCanvas() - Method in class com.mxgraph.reader.mxGraphViewReader
Returns the canvas that is used for rendering the graph.
getCanvas() - Method in class com.mxgraph.reader.mxSaxOutputHandler
Returns the canvas for rendering.
getCanvas() - Method in class com.mxgraph.swing.mxGraphComponent
 
getCell() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getCell(String) - Method in class com.mxgraph.model.mxGraphModel
Returns the cell for the specified Id or null if no cell can be found for the given Id.
getCell() - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
getCell() - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
getCell() - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
getCell() - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
getCell() - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
 
getCell() - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
getCell(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the state at the given location.
getCell() - Method in class com.mxgraph.view.mxCellState
Returns the cell that is represented by this state.
getCell() - Method in class com.mxgraph.view.mxGraphSelectionModel
Returns the first selected cell.
getCellAt(int, int) - Method in class com.mxgraph.swing.mxGraphComponent
 
getCellAt(int, int, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
getCellAt(int, int, boolean, Object) - Method in class com.mxgraph.swing.mxGraphComponent
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy starting at the given parent.
getCellBounds(Object) - Method in class com.mxgraph.view.mxGraph
Returns the bounds of the given cell.
getCellBounds(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the bounds of the given cell including all connected edges if includeEdge is true.
getCellBounds(Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the bounds of the given cell including all connected edges if includeEdge is true.
getCellBounds(Object, boolean, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the bounds of the given cell including all connected edges if includeEdge is true.
getCellContainmentArea(Object) - Method in class com.mxgraph.view.mxGraph
Returns the mxRectangle inside which a cell is to be kept.
getCellEditor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getCellGeometry(Object) - Method in class com.mxgraph.view.mxGraph
Returns the geometry for the given cell.
getCellOverlays(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Returns the array of overlays for the given cell or null, if no overlays are defined.
getCells() - Method in class com.mxgraph.model.mxGraphModel
Returns the internal lookup table that is used to map from Ids to cells.
getCells(Object) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
getCells(mxCellState) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
getCells(Rectangle) - Method in class com.mxgraph.swing.mxGraphComponent
Returns the cells inside the given rectangle.
getCells(Rectangle, Object) - Method in class com.mxgraph.swing.mxGraphComponent
Returns the children of the given parent that are contained in the given rectangle (x, y, width, height).
getCells() - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
getCells() - Method in class com.mxgraph.view.mxGraphSelectionModel
Returns the selection cells.
getCellsBeyond(double, double, Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the children of the given parent that are contained in the halfpane from the given point (x0, y0) rightwards and downwards depending on rightHalfpane and bottomHalfpane.
getCellsForChange(mxUndoableEdit.mxUndoableChange) - Method in class com.mxgraph.view.mxLayoutManager
 
getCellsForChanges(List<mxUndoableEdit.mxUndoableChange>) - Method in class com.mxgraph.view.mxLayoutManager
 
getCellsForGroup(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns the cells with the same parent as the first cell in the given array.
getCellStates(Object[]) - Method in class com.mxgraph.view.mxGraphView
Returns the states for the given array of cells.
getCellsToShift(mxCellState) - Method in class com.mxgraph.view.mxSpaceManager
 
getCellStyle(Object) - Method in class com.mxgraph.view.mxGraph
Returns an array of key, value pairs representing the cell style for the given cell.
getCellStyle(String, Map<String, Object>) - Method in class com.mxgraph.view.mxStylesheet
Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename.
getCellValidationError(Object) - Method in class com.mxgraph.view.mxGraph
Checks all multiplicities that cannot be enforced while the graph is being modified, namely, all multiplicities that require a minimum of 1 edge.
getCenterVisiblePosition() - Method in class com.mxgraph.shape.mxCurveLabelShape
Returns the drawing bounds of the central indexed visible glyph
getCenterX() - Method in class com.mxgraph.util.mxRectangle
Returns the x-coordinate of the center.
getCenterY() - Method in class com.mxgraph.util.mxRectangle
Returns the y-coordinate of the center.
getChanges() - Method in class com.mxgraph.util.mxUndoableEdit
 
getChangesRepaintThreshold() - Method in class com.mxgraph.view.mxGraph
 
getChild() - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
getChildAt(int) - Method in class com.mxgraph.model.mxCell
 
getChildAt(Object, int) - Method in class com.mxgraph.model.mxGraphModel
 
getChildAt(int) - Method in interface com.mxgraph.model.mxICell
Returns the child at the specified index.
getChildAt(Object, int) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the child of the given parent at the given index.
getChildCells(Object, boolean, boolean) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getChildCells(mxIGraphModel, Object, boolean, boolean) - Static method in class com.mxgraph.model.mxGraphModel
Returns the children of the given cell that are vertices and/or edges depending on the arguments.
getChildCells(Object) - Method in class com.mxgraph.view.mxGraph
Returns the visible children of the given parent.
getChildCells(Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the visible child vertices or edges in the given parent.
getChildCount() - Method in class com.mxgraph.model.mxCell
 
getChildCount(Object) - Method in class com.mxgraph.model.mxGraphModel
 
getChildCount() - Method in interface com.mxgraph.model.mxICell
Returns the number of child cells.
getChildCount(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the number of children in the given cell.
getChildEdges(Object) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getChildEdges(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns the child edges of the given parent.
getChildEdges(Object) - Method in class com.mxgraph.view.mxGraph
Returns the visible child edges of the given parent.
getChildIndex(Object, Object) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
Returns the index of the given child inside the given parent.
getChildOffsetForCell(Object) - Method in class com.mxgraph.view.mxGraph
Returns the offset to be used for the cells inside the given cell.
getChildren(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns all children of the given cell regardless of their type.
getChildVertices(Object) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getChildVertices(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns the child vertices of the given parent.
getChildVertices(Object) - Method in class com.mxgraph.view.mxGraph
Returns the visible child vertices of the given parent.
getChromaticity() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the white point and primary chromaticities in CIE (x, y) space.
getClassForName(String) - Static method in class com.mxgraph.io.mxCodecRegistry
Returns a class that corresponds to the given name.
getClip() - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
getCloneableCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns the cells which are movable in the given array of cells.
getCodec(String) - Static method in class com.mxgraph.io.mxCodecRegistry
Returns a codec that handles the given object, which can be an object instance or an XML node.
getCollapseAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getColor(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a color or null if no value is defined for the key.
getColor(Map<String, Object>, String, Color) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a color or the given default value if no value is defined for the key.
getColumn() - Method in class com.mxgraph.util.svg.NormalizingReader
Returns the current column in the stream.
getColumn() - Method in class com.mxgraph.util.svg.StringNormalizingReader
Returns the current column in the stream.
getColumnNumber() - Method in exception com.mxgraph.util.svg.ParseException
Returns the column of the last parsed character.
getCompleteBipartiteGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getCompleteGraph(mxAnalysisGraph, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getCompressedText() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the text strings to be stored in compressed form with this image as an array of Strings.
getConnecIcon() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
getConnectedEdges() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getConnectedEdges(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Returns all Edges that are connected with the specified cell
getConnectingEdge(mxAnalysisGraph, Object, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getConnectionComponents(mxGraph, Object[], Object[]) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Returns a union find structure representing the connection components of G=(E,V).
getConnectionConstraint(mxCellState, mxCellState, boolean) - Method in class com.mxgraph.view.mxGraph
Returns an connection constraint that describes the given connection point.
getConnectionHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
getConnectionPoint(mxCellState, mxConnectionConstraint) - Method in class com.mxgraph.view.mxGraph
Sets the connection constraint that describes the given connection point.
getConnections(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns all edges connected to this cell without loops.
getConnections(Object) - Method in class com.mxgraph.view.mxGraph
Returns all visible edges connected to the given cell without loops.
getConnections(Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns all visible edges connected to the given cell without loops.
getConnections(Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns all visible edges connected to the given cell without loops.
getConnectPreview() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
getConstraint(Object, Object) - Method in class com.mxgraph.layout.mxGraphLayout
Returns the constraint for the given key and cell.
getConstraint(Object, Object, Object, boolean) - Method in class com.mxgraph.layout.mxGraphLayout
Returns the constraint for the given key and cell.
getContainerSize() - Method in class com.mxgraph.layout.mxPartitionLayout
Hook for subclassers to return the container size.
getContainerSize() - Method in class com.mxgraph.layout.mxStackLayout
Hook for subclassers to return the container size.
getCost(mxCellState) - Method in class com.mxgraph.analysis.mxConstantCostFunction
 
getCost(mxCellState) - Method in class com.mxgraph.analysis.mxDistanceCostFunction
Returns the Euclidean length of the edge defined by the absolute points in the given state or 0 if no points are defined.
getCost(mxCellState) - Method in interface com.mxgraph.analysis.mxICostFunction
Evaluates the cost of the given cell state.
getCost(mxCellState) - Method in class com.mxgraph.costfunction.mxConstCostFunction
 
getCost(mxCellState) - Method in class com.mxgraph.costfunction.mxDoubleValCostFunction
 
getCost(mxCellState) - Method in class com.mxgraph.generatorfunction.mxGeneratorConstFunction
 
getCost(mxCellState) - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
getCost(mxCellState) - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction
 
getCostFunction() - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getCount() - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
getCurrent() - Method in class com.mxgraph.util.svg.AbstractParser
Returns the current character value.
getCurrentColor() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the current color.
getCurrentPoint() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
get the current position or null.
getCurrentRoot() - Method in class com.mxgraph.view.mxGraph
Returns the current root of the displayed cell hierarchy.
getCurrentRoot() - Method in class com.mxgraph.view.mxGraphView
Returns the current root.
getCurrentValue() - Method in class com.mxgraph.swing.view.mxCellEditor
Returns the current editing value.
getCurrentXScale() - Method in class com.mxgraph.shape.mxStencilShape.svgShape
 
getCurrentYScale() - Method in class com.mxgraph.shape.mxStencilShape.svgShape
 
getCursor(MouseEvent, int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the cursor for the given event and handle.
getCursor(MouseEvent, int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
getCursor(MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
getCursor(MouseEvent, int) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
getCurve() - Method in class com.mxgraph.shape.mxCurveLabelShape
 
getCurve() - Method in class com.mxgraph.shape.mxCurveShape
 
getCurveLength(String) - Method in class com.mxgraph.util.mxCurve
 
getCurveParallel(String, double) - Method in class com.mxgraph.util.mxCurve
Returns a unit vector parallel to the curve at the specified distance along the curve.
getCurvePoints(String) - Method in class com.mxgraph.util.mxCurve
Obtains the points that make up the curve for the specified curve index.
getCurveSection(String, double, double) - Method in class com.mxgraph.util.mxCurve
Returns a section of the curve as an array of points
getCutEdges(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getCutVertices(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getDataHeight() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
getDataId() - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
getDataKey() - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
getDataLabel() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
getDataShapeEdge() - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
getDataShapeNode() - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
getDataStyle() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
getDataValue() - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
getDataWidth() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
getDataX() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
getDataY() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
getDefaultEdgeStyle() - Method in class com.mxgraph.view.mxStylesheet
Returns the default style for edges.
getDefaultEncodeParam(RenderedImage) - Static method in class com.mxgraph.util.png.mxPngEncodeParam
Returns an instance of PNGEncodeParam.Palette, PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate for encoding the given image.
getDefaultLoopStyle() - Method in class com.mxgraph.view.mxGraph
Returns the default edge style used for loops.
getDefaultOverlap() - Method in class com.mxgraph.view.mxGraph
Gets defaultOverlap.
getDefaultParent() - Method in class com.mxgraph.view.mxGraph
Returns the first child of the root in the model, that is, the first or default layer of the diagram.
getDefaultVertexStyle() - Method in class com.mxgraph.view.mxStylesheet
Returns the default style for vertices.
getDefsElement() - Method in class com.mxgraph.canvas.mxSvgCanvas
 
getDelay() - Method in class com.mxgraph.swing.util.mxAnimation
Returns the delay for the animation.
getDeletableCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns the cells which are movable in the given array of cells.
getDeleteAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getDelta() - Method in class com.mxgraph.sharing.mxSharedState
Returns the history of all changes as a string.
getDelta(mxCellState) - Method in class com.mxgraph.swing.util.mxMorphing
Returns the vector between the current rendered state and the future location of the state after the display will be updated.
getDeltas() - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
getDescendants(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns a all descendants of the given cell and the cell itself as a collection.
getDescription() - Method in class com.mxgraph.shape.mxStencil
Returns the description.
getDfsCount() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
 
getDirectedEdgeCount(mxIGraphModel, Object, boolean) - Static method in class com.mxgraph.model.mxGraphModel
Returns the number of incoming or outgoing edges.
getDirectedEdgeCount(mxIGraphModel, Object, boolean, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns the number of incoming or outgoing edges, ignoring the given edge.
getDirectedLeaf(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getDirtyRect() - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
getDirtyRect(mxRectangle) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
getDocument() - Method in class com.mxgraph.canvas.mxHtmlCanvas
Returns a reference to the document that represents the canvas.
getDocument() - Method in class com.mxgraph.canvas.mxSvgCanvas
Returns a reference to the document that represents the canvas.
getDocument() - Method in class com.mxgraph.canvas.mxVmlCanvas
Returns a reference to the document that represents the canvas.
getDocument() - Method in class com.mxgraph.io.mxCodec
Returns the owner document of the codec.
getDouble(Element, String) - Method in class com.mxgraph.shape.mxStencil
Returns the given attribute or 0.
getDouble(Element, String, double) - Method in class com.mxgraph.shape.mxStencil
Returns the given attribute or the default value.
getDouble(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a double or 0 if no value is defined for the key.
getDouble(Map<String, Object>, String, double) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a double or the given default value if no value is defined for the key.
getDropTarget(DropTargetEvent) - Static method in class com.mxgraph.swing.handler.mxGraphHandler
Helper method to return the component for a drop target event.
getDropTarget(mxGraphComponent, mxGraphTransferable) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
Returns the drop target for the given transferable and location.
getDropTarget(Object[], Point, Object) - Method in class com.mxgraph.view.mxGraph
Returns the given cell if it is a drop target for the given cells or the nearest ancestor that may be used as a drop target for the given cells.
getDx(double) - Method in class com.mxgraph.util.mxSpline
 
getDx(double) - Method in class com.mxgraph.util.mxSpline1D
Returns the first derivation at x.
getDy(double) - Method in class com.mxgraph.util.mxSpline
 
getEase() - Method in class com.mxgraph.swing.util.mxMorphing
Returns the easing for the movements.
getEdgeAt(int) - Method in class com.mxgraph.model.mxCell
 
getEdgeAt(Object, int) - Method in class com.mxgraph.model.mxGraphModel
 
getEdgeAt(int) - Method in interface com.mxgraph.model.mxICell
Returns the edge at the specified index in the edge array.
getEdgeAt(Object, int) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the edge of cell at the given index.
getEdgeCount() - Method in class com.mxgraph.model.mxCell
 
getEdgeCount(Object) - Method in class com.mxgraph.model.mxGraphModel
 
getEdgeCount() - Method in interface com.mxgraph.model.mxICell
Returns the number of edges in the edge array.
getEdgeCount(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the number of distinct edges connected to the given cell.
getEdgeCrossing(int) - Method in class com.mxgraph.layout.mxOrganicLayout
This method calculates the energy of the distance from the specified edge crossing any other edges.
getEdgeCrossingAffectedEdges(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Obtains the energy cost function for the specified node being moved.
getEdgeCrossingCostFactor() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getEdgeData() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeDataMap() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgedefault() - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
getEdgeDirected() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeDistanceAffectedNodes(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Obtains the energy cost function for the specified node being moved.
getEdgeDistanceCostFactor() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getEdgeDistanceFromEdge(int) - Method in class com.mxgraph.layout.mxOrganicLayout
This method calculates the energy of the distance between Cells and Edges.
getEdgeDistanceFromNode(int) - Method in class com.mxgraph.layout.mxOrganicLayout
This method calculates the energy of the distance between Cells and Edges.
getEdgeId() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeId(Object) - Method in class com.mxgraph.layout.mxParallelEdgeLayout
 
getEdgeIndex(mxICell) - Method in class com.mxgraph.model.mxCell
 
getEdgeIndex(mxICell) - Method in interface com.mxgraph.model.mxICell
Returns the index of the specified edge in the edge array.
getEdgeLength(int) - Method in class com.mxgraph.layout.mxOrganicLayout
This method calculates the energy due to the length of the specified edge.
getEdgeLengthAffectedEdges(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Obtains the energy cost function for the specified node being moved.
getEdgeLengthCostFactor() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getEdgeMapper() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
 
getEdges(Object, Object, boolean, boolean, boolean, boolean) - Method in class com.mxgraph.analysis.mxAnalysisGraph
Returns the incoming and/or outgoing edges for the given cell.
getEdges(Object, Object, boolean, boolean) - Method in class com.mxgraph.analysis.mxAnalysisGraph
Returns the incoming and/or outgoing edges for the given cell.
getEdges() - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
getEdges(Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
getEdges(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns all edges connected to this cell including loops.
getEdges(mxIGraphModel, Object, boolean, boolean, boolean) - Static method in class com.mxgraph.model.mxGraphModel
Returns all distinct edges connected to this cell.
getEdges(Object) - Method in class com.mxgraph.view.mxGraph
Returns all visible edges connected to the given cell including loops.
getEdges(Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns all visible edges connected to the given cell including loops.
getEdges(Object, Object, boolean, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the incoming and/or outgoing edges for the given cell.
getEdges(Object, Object, boolean, boolean, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the incoming and/or outgoing edges for the given cell.
getEdgesBetween(mxIGraphModel, Object, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns all edges from the given source to the given target.
getEdgesBetween(mxIGraphModel, Object, Object, boolean) - Static method in class com.mxgraph.model.mxGraphModel
Returns all edges between the given source and target pair.
getEdgesBetween(Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns the edges between the given source and target.
getEdgesBetween(Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the edges between the given source and target.
getEdgeSource() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeSource() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
getEdgeSourcePort() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeStyle() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
Returns if the edge has end arrow.
getEdgeStyle(mxCellState, List<mxPoint>, Object, Object) - Method in class com.mxgraph.view.mxGraphView
Returns the edge style function to be used to compute the absolute points for the given state, control points and terminals.
getEdgeTarget() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeTarget() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
getEdgeTargetPort() - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
getEdgeValidationError(Object, Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns the validation error message to be displayed when inserting or changing an edges' connectivity.
getEditAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getEditingCell() - Method in class com.mxgraph.swing.view.mxCellEditor
 
getEditingCell() - Method in interface com.mxgraph.swing.view.mxICellEditor
Returns the cell that is currently being edited.
getEditingValue(Object, EventObject) - Method in class com.mxgraph.swing.mxGraphComponent
 
getEditor() - Method in class com.mxgraph.swing.view.mxCellEditor
Returns the current editor or null if no editing is in progress.
getEditorBounds(mxCellState, double) - Method in class com.mxgraph.swing.view.mxCellEditor
Returns the bounds to be used for the editor.
getElementById(String) - Method in class com.mxgraph.io.mxCodec
Returns the element with the given ID from the document.
getElementById(String, String) - Method in class com.mxgraph.io.mxCodec
Returns the element with the given ID from document.
getEmbeddedImageElement(String) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
getEndPoint() - Method in class com.mxgraph.util.mxLine
Returns the end point of the line.
getEnterGroupAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getEventSource() - Method in class com.mxgraph.util.mxEventSource
 
getException() - Method in exception com.mxgraph.util.svg.ParseException
Return the embedded exception, if any.
getExitGroupAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getExpandAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getExportableCells(Object[]) - Method in class com.mxgraph.swing.mxGraphComponent
Returns all cells which may be exported via datatransfer.
getExtendedCellBounds(mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
getExtendedPathIterator() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
getFastValue(double) - Method in class com.mxgraph.util.mxSpline1D
Returns an interpolated value.
getField(Object, String) - Method in class com.mxgraph.io.mxObjectCodec
Returns the field with the specified name.
getFieldName(String) - Method in class com.mxgraph.io.mxObjectCodec
Returns the Java field name for the given XML attribute name.
getFieldTemplate(Object, String, Node) - Method in class com.mxgraph.io.mxObjectCodec
Returns the template instance for the given field.
getFieldValue(Object, String) - Method in class com.mxgraph.io.mxObjectCodec
Returns the value of the field with the specified name in the specified object instance.
getFieldValueWithAccessor(Object, Field) - Method in class com.mxgraph.io.mxObjectCodec
Returns the value of the field using the accessor for the field if one exists.
getFillColor(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
getFillColor(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxImageShape
 
getFillColor(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLabelShape
 
getFillColor() - Method in class com.mxgraph.swing.handler.mxRubberband
Returns the fill color.
getFineTuningRadius() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getFirstSelectableCell(Object[]) - Method in class com.mxgraph.view.mxGraphSelectionModel
Returns the first selectable cell in the given array of cells.
getFloat(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a float or 0 if no value is defined for the key.
getFloat(Map<String, Object>, String, float) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a float or the given default value if no value is defined for the key.
getFloatArray(Map<String, Object>, String, float[]) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a float array or the given default value if no value is defined for the key.
getFloatArray(Map<String, Object>, String, float[], String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a float array or the given default value if no value is defined for the key.
getFoldableCells(Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Returns the cells which are movable in the given array of cells.
getFoldingIcon(mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent
Returns the icon used to display the collapsed state of the specified cell state.
getFoldingIconBounds(mxCellState, ImageIcon) - Method in class com.mxgraph.swing.mxGraphComponent
 
getFont(Map<String, Object>) - Static method in class com.mxgraph.util.mxUtils
 
getFont(Map<String, Object>, double) - Static method in class com.mxgraph.util.mxUtils
 
getFontMetrics(Font) - Static method in class com.mxgraph.util.mxUtils
Returns the font metrics of the static font graphics instance
getFontName(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Returns a font name for the given CSS values for font-family.
getForceConstant() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
getFriendshipWindmillGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getGamma() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the file gamma value for the image.
getGeneralPurposeVariable(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Gets the value of temp for the specified layer
getGeneralPurposeVariable(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Gets the value of temp for the specified layer
getGeneralPurposeVariable(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Gets the value of temp for the specified layer
getGenerator() - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getGeneratorFunction(mxGraph, boolean, double, double) - Static method in class com.mxgraph.analysis.mxGraphGenerator
 
getGeneratorFunction() - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getGeometry() - Method in class com.mxgraph.model.mxCell
 
getGeometry(Object) - Method in class com.mxgraph.model.mxGraphModel
 
getGeometry() - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
getGeometry() - Method in interface com.mxgraph.model.mxICell
Returns the object that describes the geometry.
getGeometry(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the geometry of the given cell.
getGlassGradientElement() - Method in class com.mxgraph.canvas.mxSvgCanvas
 
getGradientBounds(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
getGradientBounds(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxSwimlaneShape
 
getGradientElement(String, String, String) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
getGradientId(String, String, String) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
getGraph() - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getGraph() - Method in class com.mxgraph.layout.mxGraphLayout
Returns the associated graph.
getGraph() - Method in class com.mxgraph.swing.mxGraphComponent
 
getGraph(ActionEvent) - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getGraph() - Method in class com.mxgraph.view.mxGraphView
Returns the enclosing graph.
getGraph() - Method in class com.mxgraph.view.mxLayoutManager
 
getGraph() - Method in class com.mxgraph.view.mxSpaceManager
 
getGraph() - Method in class com.mxgraph.view.mxSwimlaneManager
 
getGraphBounds() - Method in class com.mxgraph.view.mxGraph
Returns the bounds of the visible graph.
getGraphBounds() - Method in class com.mxgraph.view.mxGraphView
Returns the cached diagram bounds.
getGraphComponent() - Method in class com.mxgraph.swing.handler.mxCellHandler
 
getGraphComponent() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
getGraphComponent() - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
getGraphComponent() - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
getGraphComponent() - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
getGraphComponent() - Method in class com.mxgraph.swing.mxGraphOutline
 
getGraphComponents(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getGraphContainer() - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
getGraphControl() - Method in class com.mxgraph.swing.mxGraphComponent
 
getGraphHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
getGraphics() - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
Returns the graphics object for this canvas.
getGraphics() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Returns the graphics instance.
getGraphicsCanvas() - Method in class com.mxgraph.canvas.mxImageCanvas
 
getGraphTransferHandler(DropTargetEvent) - Static method in class com.mxgraph.swing.handler.mxGraphHandler
Helper method to return the component for a drop target event.
getGridColor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getGridGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getGridSize() - Method in class com.mxgraph.view.mxGraph
Returns the grid size.
getGridStyle() - Method in class com.mxgraph.swing.mxGraphComponent
 
getGroupAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getGroupBorder(mxGraph) - Method in class com.mxgraph.swing.util.mxGraphActions.GroupAction
 
getGroupBorder(mxGraph) - Method in class com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction
 
getGroupPadding() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
getGuidePoints() - Method in class com.mxgraph.util.mxCurve
 
getHandleBorderColor(int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the border color of the handle at the specified index.
getHandleCount() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the number of handles in this handler.
getHandleFillColor(int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the color to be used to fill the handle at the specified index.
getHandleFillColor(int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
getHandler(Object) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
getHandleSize() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
getHeight() - Method in class com.mxgraph.util.mxImage
 
getHeight() - Method in class com.mxgraph.util.mxRectangle
Returns the height of the rectangle.
getHeightSquared() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getHexColorString(Color) - Static method in class com.mxgraph.util.mxHtmlColor
Returns a hex representation for the given color.
getHexColorString(Color) - Static method in class com.mxgraph.util.mxUtils
Returns a hex representation for the given color.
getHomeAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getHorizontalPageBorder() - Method in class com.mxgraph.swing.mxGraphComponent
Returns the horizontal border between the page and the control.
getHorizontalPageCount() - Method in class com.mxgraph.swing.mxGraphComponent
 
getHotspot() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the hotspot.
getHtmlData() - Method in class com.mxgraph.swing.util.mxGraphTransferable
Fetch the data in a text/html format
getICCProfileData() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the ICC profile data to be stored with this image.
getIconPath() - Method in class com.mxgraph.shape.mxStencilShape
 
getId() - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
getId(Object) - Method in class com.mxgraph.io.mxCodec
Returns the ID of the specified object.
getId() - Method in class com.mxgraph.model.mxCell
 
getId() - Method in interface com.mxgraph.model.mxICell
Returns the Id of the cell as a string.
getId() - Method in class com.mxgraph.sharing.mxSession
Returns the session ID.
getImage() - Method in class com.mxgraph.canvas.mxImageCanvas
 
getImage() - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
getImage(String) - Method in class com.mxgraph.util.mxImageBundle
Returns the value for the given key.
getImage(mxCellState) - Method in class com.mxgraph.view.mxGraph
Returns the image URL for the given cell state.
getImageBasePath() - Method in class com.mxgraph.canvas.mxBasicCanvas
 
getImageBounds(Image, double, double, double, double, boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
getImageBounds(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxImageShape
 
getImageBounds(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLabelShape
 
getImageBundles() - Method in class com.mxgraph.view.mxGraph
Returns the image bundles
getImageBundles(List<mxImageBundle>) - Method in class com.mxgraph.view.mxGraph
Returns the image bundles
getImageForStyle(Map<String, Object>) - Method in class com.mxgraph.canvas.mxBasicCanvas
Gets the image path from the given style.
getImageForStyle(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxImageShape
 
getImageFromBundles(String) - Method in class com.mxgraph.view.mxGraph
Searches all bundles for the specified key and returns the value for the first match or null if the key is not found.
getImageObserver() - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
 
getImages() - Method in class com.mxgraph.util.mxImageBundle
Returns the images.
getImageSize(Image) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
Returns the size for the given image.
getImageSize(Image) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Returns the size for the given image.
getImageSize(Image) - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
Returns the size for the given image.
getImportableCells(Object[]) - Method in class com.mxgraph.swing.mxGraphComponent
Returns all cells which may be imported via datatransfer.
getImportCount() - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
getIncomingEdges(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns the incoming edges of the given cell without loops.
getIncomingEdges(Object) - Method in class com.mxgraph.view.mxGraph
Returns all incoming visible edges connected to the given cell without loops.
getIncomingEdges(Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns the visible incoming edges for the given cell.
getIndex(mxICell) - Method in class com.mxgraph.model.mxCell
 
getIndex() - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
getIndex(mxICell) - Method in interface com.mxgraph.model.mxICell
Returns the index of the specified child in the child array.
getIndex() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the index of the current handle.
getIndexAt(int, int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the index of the handle at the given location.
getIndexAt(int, int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
getInitialMessage() - Method in class com.mxgraph.sharing.mxSession
Returns an XML string that represents the current state of the session and the shared diagram.
getInitialMoveRadius() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getInitialTemp() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
getInitialValue(mxCellState, EventObject) - Method in class com.mxgraph.swing.view.mxCellEditor
Gets the initial editing value for the given cell.
getInputMap(int) - Method in class com.mxgraph.swing.handler.mxKeyboardHandler
Return JTree's input map.
getInstance() - Static method in class com.mxgraph.analysis.mxGraphAnalysis
 
getInstance() - Static method in class com.mxgraph.io.graphml.mxGraphMlKeyManager
Returns the instance of mxGmlKeyManager.
getInstanceForName(String) - Static method in class com.mxgraph.io.mxCodecRegistry
Creates and returns a new instance for the given class name.
getInt(Element, String, int) - Method in class com.mxgraph.shape.mxStencil
Returns the given attribute or the default value.
getInt(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as an int or 0 if no value is defined for the key.
getInt(Map<String, Object>, String, int) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as an int or the given default value if no value is defined for the key.
getInterHierarchySpacing() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
getInterlacing() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if Adam7 interlacing will be used.
getInterRankCellSpacing() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
getInterRankCellSpacing() - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
getIntervals(String) - Method in class com.mxgraph.util.mxCurve
 
getIntraCellSpacing() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
getIntraCellSpacing() - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
getInvalidColor() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the color used for invalid highlights.
getKey() - Method in class com.mxgraph.analysis.mxFibonacciHeap.Node
Obtain the key for this node.
getKeyDefault() - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
getKeyFor() - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
getKeyId() - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
getKeyMap() - Method in class com.mxgraph.io.graphml.mxGraphMlKeyManager
 
getKeyName() - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
getKeyType() - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
getKingGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getKingMoveVertexes(mxAnalysisGraph, int, int, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getKnightGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getKnightMoveVertexes(mxAnalysisGraph, int, int, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getKnightTour(mxAnalysisGraph, int, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getLabel() - Method in class com.mxgraph.view.mxCellState
Returns the current label.
getLabel(Object) - Method in class com.mxgraph.view.mxGraph
Returns a string or DOM node that represents the label for the given cell.
getLabelBounds() - Method in class com.mxgraph.shape.mxCurveLabelShape
 
getLabelBounds() - Method in class com.mxgraph.view.mxCellState
Returns the label bounds.
getLabelPaintBounds(String, Map<String, Object>, boolean, mxPoint, mxRectangle, double) - Static method in class com.mxgraph.util.mxUtils
Returns the paint bounds for the given label.
getLabelSize(String, Map<String, Object>, boolean, double) - Static method in class com.mxgraph.util.mxUtils
Returns the size for the given label.
getLabelSize(String, Map<String, Object>, boolean, double, double) - Static method in class com.mxgraph.util.mxUtils
Returns the size for the given label.
getLayout(Object) - Method in class com.mxgraph.view.mxLayoutManager
 
getLayoutAreaSize() - Method in class com.mxgraph.swing.mxGraphComponent
Returns the size of the area that layouts can operate in.
getLength() - Method in class com.mxgraph.util.mxSpline
 
getLength() - Method in class com.mxgraph.view.mxCellState
Returns the length.
getLevelDistance() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
getLimitX() - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
getLine() - Method in class com.mxgraph.util.svg.NormalizingReader
Returns the current line in the stream.
getLine() - Method in class com.mxgraph.util.svg.StringNormalizingReader
Returns the current line in the stream.
getLineNumber() - Method in exception com.mxgraph.util.svg.ParseException
Returns the line of the last parsed character.
getLinkForCell(Object) - Method in class com.mxgraph.view.mxGraph
Returns the hyperlink to be used for the given cell.
getLowerIndexOfSegment(String, double) - Method in class com.mxgraph.util.mxCurve
Calculates the index of the lower point on the segment that contains the point distance along the
getLowestDegreeVertex(mxAnalysisGraph, Object[]) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getMargin(String, String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
getMarkedState() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the marked state.
getMarker(String) - Static method in class com.mxgraph.shape.mxMarkerRegistry
 
getMarker() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
getMarker() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
getMarkerColor(MouseEvent, mxCellState, boolean) - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the valid- or invalidColor depending on the value of isValid.
getMarkerVector(List<mxPoint>, boolean, double) - Method in class com.mxgraph.shape.mxConnectorShape
Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
getMarkerVector(List<mxPoint>, boolean, double) - Method in class com.mxgraph.shape.mxCurveShape
Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
getMaxDistanceLimit() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
getMaxDistanceLimit() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getMaxHandlers() - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
getMaximumGraphBounds() - Method in class com.mxgraph.view.mxGraph
 
getMaxIterations() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
getMaxIterations() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getMaxValue() - Method in class com.mxgraph.view.mxMultiplicity
Returns the numeric value of max.
getMaxWeight() - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
getMaxWeight() - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction
 
getMd5Hash(String) - Static method in class com.mxgraph.util.mxUtils
Returns the Md5 hash for the given text.
getMessage() - Method in exception com.mxgraph.util.svg.ParseException
Return a detail message for this exception.
getMethod(Object, String, Class[]) - Method in class com.mxgraph.io.mxObjectCodec
Returns the method with the specified signature.
getMinDistanceLimit() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
getMinDistanceLimit() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getMinimumEditorScale() - Method in class com.mxgraph.swing.view.mxCellEditor
 
getMinimumGraphSize() - Method in class com.mxgraph.view.mxGraph
Returns the minimum size of the diagram.
getMinimumHeight() - Method in class com.mxgraph.swing.view.mxCellEditor
 
getMinimumSpanningTree(mxGraph, Object[], mxICostFunction, boolean) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
getMinimumSpanningTree(mxGraph, Object[], Object[], mxICostFunction) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
getMinimumWidth() - Method in class com.mxgraph.swing.view.mxCellEditor
 
getMinMoveRadius() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getMinWeight() - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
getMinWeight() - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction
 
getModel() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Returns the model for this layout algorithm.
getModel() - Method in class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
Returns the model where the change happened.
getModel() - Method in class com.mxgraph.sharing.mxSharedGraphModel
 
getModel() - Method in class com.mxgraph.view.mxGraph
Returns the graph model that contains the graph data.
getModificationTime() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the modification time to be stored with this image.
getMovableCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns the cells which are movable in the given array of cells.
getMovePreview() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
getMovingCells() - Method in class com.mxgraph.swing.handler.mxMovePreview
FIXME: Cells should be assigned outside of getPreviewStates
getMultiplicities() - Method in class com.mxgraph.view.mxGraph
 
getName() - Method in class com.mxgraph.io.graphml.mxGraphMlPort
 
getName(Object) - Static method in class com.mxgraph.io.mxCodecRegistry
Returns the name that identifies the codec associated with the given instance..
getName() - Method in class com.mxgraph.io.mxObjectCodec
Returns the name used for the nodenames and lookup of the codec when classes are encoded and nodes are decoded.
getName() - Method in class com.mxgraph.shape.mxStencilShape
 
getName() - Method in class com.mxgraph.util.mxEventObject
Returns the name of the event.
getName(Object) - Static method in class com.mxgraph.view.mxStyleRegistry
Returns the name for the given value.
getNearestCommonAncestor(Object, Object) - Method in class com.mxgraph.model.mxGraphModel
Returns the nearest common ancestor for the specified cells.
getNewEdgeValue(mxAnalysisGraph) - Method in class com.mxgraph.analysis.mxGraphGenerator
Creates a new edge value based on graph properties in mxAnalysisGraph.
getNextLayerConnectedCells(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Returns the cells this cell connects to on the next layer up
getNextLayerConnectedCells(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Returns the cells this cell connects to on the next layer up
getNextLayerConnectedCells(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Returns the cells this cell connects to on the next layer up
getNextPoint(mxCellState, mxCellState, boolean) - Method in class com.mxgraph.view.mxGraphView
Returns the nearest point in the list of absolute points or the center of the opposite terminal.
getNode(Object, boolean) - Method in class com.mxgraph.analysis.mxFibonacciHeap
Returns the node that represents element.
getNode(Object) - Method in class com.mxgraph.analysis.mxUnionFind
Returns the node that represents element.
getNodeData() - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
getNodeDataMap() - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
getNodeDistance() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
getNodeDistribution(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Calculates the energy cost of the specified node relative to all other nodes.
getNodeDistributionCostFactor() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getNodeGraph() - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
getNodeId() - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
getNodePort() - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
getNodes() - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
getNullGraph(mxAnalysisGraph, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getNumPrivateChunks() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the number of private chunks to be written to the output file.
getObject(String) - Method in class com.mxgraph.io.mxCodec
Returns the decoded object for the element with the specified ID in mxCodec.document.
getObjects() - Method in class com.mxgraph.io.mxCodec
Returns the object lookup table.
getOffset() - Method in class com.mxgraph.model.mxGeometry
Returns the offset.
getOpacity() - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
getOpacityForCell(Object) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
getOpposites(Object[], Object, boolean, boolean) - Method in class com.mxgraph.analysis.mxAnalysisGraph
Returns all distinct opposite cells for the specified terminal on the given edges.
getOpposites(Object[], Object) - Method in class com.mxgraph.analysis.mxAnalysisGraph
Returns all distinct opposite cells for the specified terminal on the given edges.
getOpposites(mxIGraphModel, Object[], Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns all opposite cells of terminal for the given edges.
getOpposites(mxIGraphModel, Object[], Object, boolean, boolean) - Static method in class com.mxgraph.model.mxGraphModel
Returns all opposite vertices wrt terminal for the given edges, only returning sources and/or targets as specified.
getOpposites(Object[], Object) - Method in class com.mxgraph.view.mxGraph
Returns all distinct visible opposite cells of the terminal on the given edges.
getOpposites(Object[], Object, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Returns all distincts visible opposite cells for the specified terminal on the given edges.
getOrientation() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
getOrientation() - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
getOrigin(Object) - Method in class com.mxgraph.model.mxGraphModel
Returns the absolute, accumulated origin for the children inside the given parent.
getOrigin() - Method in class com.mxgraph.view.mxCellState
Returns the origin for the children.
getOrigin() - Method in class com.mxgraph.view.mxGraph
Returns origin.
getOriginForCell(Object) - Method in class com.mxgraph.swing.util.mxMorphing
Returns the top, left corner of the given cell.
getOutgoingEdges(mxIGraphModel, Object) - Static method in class com.mxgraph.model.mxGraphModel
Returns the outgoing edges of the given cell without loops.
getOutgoingEdges(Object) - Method in class com.mxgraph.view.mxGraph
Returns all outgoing visible edges connected to the given cell without loops.
getOutgoingEdges(Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns the visible outgoing edges for the given cell.
getOutputStream() - Method in class com.mxgraph.util.png.mxPngImageEncoder
Returns the OutputStream associated with this ImageEncoder.
getOverlap(Object) - Method in class com.mxgraph.view.mxGraph
Returns a decimal number representing the amount of the width and height of the given cell that is allowed to overlap its parent.
getPageBackgroundColor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPageBorderColor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPageBreakColor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPageFormat() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPageScale() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPageShadowColor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPageTranslate(double) - Method in class com.mxgraph.swing.mxGraphComponent
Should be called by a hook inside mxGraphView/mxGraph
getPaintBounds(Object[]) - Method in class com.mxgraph.view.mxGraph
Returns the bounding box of the given cells and their descendants.
getPalette() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Returns the current RGB palette.
getPaletteHistogram() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the palette histogram to be stored with this image.
getPaletteTransparency() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Returns the alpha values associated with each palette entry.
getPanningHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
getParallelEdgeSpacing() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
getParam() - Method in class com.mxgraph.util.png.mxPngImageEncoder
 
getParent() - Method in class com.mxgraph.analysis.mxUnionFind.Node
 
getParent() - Method in class com.mxgraph.model.mxCell
 
getParent(Object) - Method in class com.mxgraph.model.mxGraphModel
 
getParent() - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
getParent() - Method in interface com.mxgraph.model.mxICell
Returns the cell's parent.
getParent(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the parent of the given cell.
getParentBorder() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Returns parentBorder.
getParentOffset(Object) - Method in class com.mxgraph.layout.mxGraphLayout
 
getParentPath(String) - Static method in class com.mxgraph.model.mxCellPath
Returns the path for the parent of the cell represented by the given path.
getParents(mxIGraphModel, Object[]) - Static method in class com.mxgraph.model.mxGraphModel
 
getPathGraph(mxAnalysisGraph, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getPathHandler() - Method in class com.mxgraph.util.svg.PathParser
Returns the path handler in use.
getPathIterator(AffineTransform) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
getPathIterator(AffineTransform, double) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
getPerimeterBounds() - Method in class com.mxgraph.view.mxCellState
Returns the rectangle that should be used as the perimeter of the cell.
getPerimeterBounds(double) - Method in class com.mxgraph.view.mxCellState
Returns the rectangle that should be used as the perimeter of the cell.
getPerimeterBounds(mxCellState, double) - Method in class com.mxgraph.view.mxGraphView
Returns the perimeter bounds for the given terminal, edge pair.
getPerimeterFunction(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Returns the perimeter function for the given state.
getPerimeterPoint(mxCellState, mxPoint, boolean) - Method in class com.mxgraph.view.mxGraphView
Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
getPerimeterPoint(mxCellState, mxPoint, boolean, double) - Method in class com.mxgraph.view.mxGraphView
Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
getPetersenGraph(mxAnalysisGraph) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getPhysicalDimension() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the physical dimension information to be stored with this image.
getPlaceholderBounds(mxCellState) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
getPlainData() - Method in class com.mxgraph.swing.util.mxGraphTransferable
Fetch the data in a text/plain format.
getPoint() - Method in class com.mxgraph.util.mxPoint
Returns the coordinates as a new point.
getPoint(double) - Method in class com.mxgraph.util.mxSpline
 
getPoint() - Method in class com.mxgraph.view.mxConnectionConstraint
Returns the point.
getPoint(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Returns the absolute center point along the given edge.
getPoint(mxCellState, mxGeometry) - Method in class com.mxgraph.view.mxGraphView
Returns the absolute point on the edge for the given relative geometry as a point.
getPointForEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.
getPointForEvent(MouseEvent, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.
getPoints() - Method in class com.mxgraph.model.mxGeometry
Returns the list of control points.
getPointsHandler() - Method in class com.mxgraph.util.svg.PointsParser
Returns the points handler in use.
getPortConstraints(mxCellState, mxCellState, boolean) - Static method in class com.mxgraph.util.mxUtils
Returns an integer mask of the port constraints of the given map
getPortConstraints(mxCellState, mxCellState, boolean, int) - Static method in class com.mxgraph.util.mxUtils
Returns an integer mask of the port constraints of the given map
getPortDataMap() - Method in class com.mxgraph.io.graphml.mxGraphMlPort
 
getPreferredSizeForCell(Object) - Method in class com.mxgraph.view.mxGraph
Returns the preferred width and height of the given as an .
getPreferredSizeForPage() - Method in class com.mxgraph.swing.mxGraphComponent
Returns the (unscaled) preferred size for the current page format (scaled by pageScale).
getPrettyXml(Node) - Static method in class com.mxgraph.util.mxUtils
Returns a pretty-printed XML string for the given node.
getPrettyXml(Node, String, String) - Static method in class com.mxgraph.util.mxUtils
Returns a pretty-printed XML string for the given node.
getPreviewAlpha() - Method in class com.mxgraph.swing.mxGraphComponent
 
getPreviewBounds() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
getPreviewLocation(MouseEvent, boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
getPreviewState() - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
getPreviewStates() - Method in class com.mxgraph.swing.handler.mxMovePreview
Returns the states that are affected by the move operation.
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxRootChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
 
getPrevious() - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
getPrevious() - Method in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
Returns the previous root.
getPreviousIndex() - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
getPreviousLayerConnectedCells(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Returns the cells this cell connects to on the next layer down
getPreviousLayerConnectedCells(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Returns the cells this cell connects to on the next layer down
getPreviousLayerConnectedCells(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Returns the cells this cell connects to on the next layer down
getPrivateChunkData(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the data associated of the private chunk at a given index, as an array of bytes.
getPrivateChunkType(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the type of the private chunk at a given index, as a 4-character String.
getProperties() - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getProperties() - Method in class com.mxgraph.util.mxEventObject
 
getProperty(String) - Method in class com.mxgraph.util.mxEventObject
 
getRadius() - Method in class com.mxgraph.layout.mxCircleLayout
 
getRadiusScaleFactor() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getRadiusSquared() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getRandomInt(int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getRankValue() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Returns the integer value of the layer that this node resides in
getRectangle() - Method in class com.mxgraph.util.mxRectangle
Returns the bounds as a new rectangle.
getRelativeFromAbsPoint(mxPoint, String) - Method in class com.mxgraph.util.mxCurve
Calculates the position of an absolute in terms relative to this curve.
getRelativePoint(mxCellState, double, double) - Method in class com.mxgraph.view.mxGraphView
Gets the relative point that describes the given, absolute label position for the given edge state.
getRelevantEdges() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getRelevantEdges(int) - Method in class com.mxgraph.layout.mxOrganicLayout
Returns all Edges that are not connected to the specified cell
getRemovedCellsForChanges(List<mxUndoableEdit.mxUndoableChange>) - Method in class com.mxgraph.view.mxGraph
Returns the cells that have been removed from the model.
getRemoveFromParentAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getRendererPane() - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
getResource(String) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
getResource(String) - Static method in class com.mxgraph.util.mxResources
Returns the value for key by searching the resource bundles in inverse order or null if no value can be found for key.
getRicherData(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
getRicherFlavors() - Method in class com.mxgraph.swing.util.mxGraphTransferable
Some subclasses will have flavors that are more descriptive than HTML or plain text.
getRoot() - Method in class com.mxgraph.model.mxGraphModel
 
getRoot() - Method in class com.mxgraph.model.mxGraphModel.mxRootChange
 
getRoot() - Method in interface com.mxgraph.model.mxIGraphModel
Returns the root of the model or the topmost parent of the given cell.
getRoot() - Method in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
Returns the root.
getRotatedPoint(mxPoint, double, double) - Static method in class com.mxgraph.util.mxUtils
Rotates the given point by the given cos and sin.
getRotatedPoint(mxPoint, double, double, mxPoint) - Static method in class com.mxgraph.util.mxUtils
Rotates the given point by the given cos and sin.
getRotationEnabled() - Method in class com.mxgraph.shape.mxCurveLabelShape
 
getRoundToDecimals() - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
getRoutingCenterX(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Returns the x-coordinate of the center point for automatic routing.
getRoutingCenterY(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Returns the y-coordinate of the center point for automatic routing.
getScale() - Method in class com.mxgraph.canvas.mxBasicCanvas
 
getScale() - Method in interface com.mxgraph.canvas.mxICanvas
Returns the scale.
getScale() - Method in class com.mxgraph.canvas.mxImageCanvas
 
getScale() - Method in class com.mxgraph.view.mxGraphView
Returns the current scale.
getScaledLabelBounds(double, double, mxRectangle, double, double, Map<String, Object>, double) - Static method in class com.mxgraph.util.mxUtils
Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label.
getScaledPreferredSizeForGraph() - Method in class com.mxgraph.swing.mxGraphComponent
Returns the scaled preferred size for the current graph.
getSegments() - Method in class com.mxgraph.view.mxCellState
Returns the length of the segments.
getSelectAllAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectChildAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectEdgesAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectionCell() - Method in class com.mxgraph.view.mxGraph
 
getSelectionCells() - Method in class com.mxgraph.view.mxGraph
 
getSelectionCellsForChanges(List<mxUndoableEdit.mxUndoableChange>) - Method in class com.mxgraph.view.mxGraph
Returns the cells to be selected for the given list of changes.
getSelectionCellsHandler() - Method in class com.mxgraph.swing.mxGraphComponent
 
getSelectionColor() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the color used to draw the selection border.
getSelectionColor() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
getSelectionColor() - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
getSelectionCount() - Method in class com.mxgraph.view.mxGraph
 
getSelectionModel() - Method in class com.mxgraph.view.mxGraph
 
getSelectionStroke() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the stroke used to draw the selection border.
getSelectionStroke() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
getSelectionStroke() - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
getSelectNextAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectNoneAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectParentAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectPreviousAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getSelectVerticesAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getShape(Map<String, Object>) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
getShape() - Method in class com.mxgraph.util.svg.AWTPathProducer
Returns the Shape object initialized during the last parsing.
getShape() - Method in class com.mxgraph.util.svg.AWTPolylineProducer
Returns the Shape object initialized during the last parsing.
getShape() - Method in interface com.mxgraph.util.svg.ShapeProducer
Returns the Shape object initialized during the last parsing.
getSharedInstance() - Static method in class com.mxgraph.util.mxLightweightLabel
 
getShortestPath(mxGraph, Object, Object, mxICostFunction, int, boolean) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Returns the shortest path between two cells or their descendants represented as an array of edges in order of traversal.
getSignificantBits() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the number of significant bits for each band of the image.
getSimpleRandomGraph(mxAnalysisGraph, int, int, boolean, boolean, boolean) - Method in class com.mxgraph.analysis.mxGraphGenerator
Generates a random graph
getSimpleRandomTree(mxAnalysisGraph, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
Generates a random tree graph
getSinkVertices(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getSize() - Method in class com.mxgraph.analysis.mxUnionFind.Node
 
getSizeForHtml(String, Map<String, Object>, double, double) - Static method in class com.mxgraph.util.mxUtils
Returns an mxRectangle with the size (width and height in pixels) of the given HTML markup.
getSizeForString(String, Font, double) - Static method in class com.mxgraph.util.mxUtils
Returns an with the size (width and height in pixels) of the given string.
getSource() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getSource() - Method in class com.mxgraph.model.mxCell
Returns the source terminal.
getSource() - Method in class com.mxgraph.util.mxUndoableEdit
 
getSourceActions(JComponent) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
getSourcePoint() - Method in class com.mxgraph.model.mxGeometry
Returns the source point.
getSourceState() - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
getSourceVertices(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getSplineX() - Method in class com.mxgraph.util.mxSpline
 
getSplineY() - Method in class com.mxgraph.util.mxSpline
 
getSrc() - Method in class com.mxgraph.util.mxImage
 
getSRGBIntent() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the sRGB rendering intent to be stored with this image.
getStarGraph(mxAnalysisGraph, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getStartPoint() - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
getStartSize(Object) - Method in class com.mxgraph.view.mxGraph
Returns the start size of the given swimlane, that is, the width or height of the part that contains the title, depending on the horizontal style.
getState() - Method in class com.mxgraph.sharing.mxSharedGraphModel
Returns the initial state of the diagram.
getState() - Method in class com.mxgraph.sharing.mxSharedState
Returns the initial state of the diagram.
getState() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns the cell state that is associated with this handler.
getState(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellMarker
Uses getCell, getMarkedState and intersects to return the state for the given event.
getState(Object) - Method in class com.mxgraph.view.mxGraphView
Returns the state for the given cell or null if no state is defined for the cell.
getState(Object, boolean) - Method in class com.mxgraph.view.mxGraphView
Returns the cell state for the given cell.
getStates() - Method in class com.mxgraph.view.mxGraphView
Returns the dictionary that maps from cells to states.
getStateToMark(mxCellState) - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the state to be marked for the given state under the mouse.
getStencil(String) - Static method in class com.mxgraph.shape.mxStencilRegistry
Returns the stencil for the given name.
getSteps() - Method in class com.mxgraph.swing.util.mxMorphing
Returns the number of steps for the animation.
getString(Element, String, String) - Method in class com.mxgraph.shape.mxStencil
Returns the given attribute or the default value.
getString(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a string or null if no value is defined for the key.
getString(Map<String, Object>, String, String) - Static method in class com.mxgraph.util.mxUtils
Returns the value for key in dictionary as a string or the given default value if no value is defined for the key.
getStringValue(Map.Entry<String, Object>) - Method in class com.mxgraph.io.mxStylesheetCodec
Returns the string for encoding the given value.
getStrokeColor(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
getStrokeColor(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxImageShape
 
getStrokeColor(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLabelShape
 
getStyle() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
getStyle() - Method in class com.mxgraph.model.mxCell
 
getStyle(Object) - Method in class com.mxgraph.model.mxGraphModel
 
getStyle() - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
getStyle() - Method in interface com.mxgraph.model.mxICell
Returns the string that describes the style.
getStyle(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the style of the given cell.
getStyle() - Method in class com.mxgraph.view.mxCellState
Returns the cell style as a map of key, value pairs.
getStyleMap(String, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Create a style map from a String with style definitions.
getStylename(String) - Static method in class com.mxgraph.util.mxStyleUtils
Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename.
getStylename(String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.getStylename(String) (Jan 2012)
getStylenames(String) - Static method in class com.mxgraph.shape.mxStencilShape
Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.
getStylenames(String) - Static method in class com.mxgraph.util.mxStyleUtils
Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.
getStylenames(String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.getStylenames(String) (Jan 2012)
getStyles() - Method in class com.mxgraph.view.mxStylesheet
Returns all styles as map of name, hashtable pairs.
getStylesheet() - Method in class com.mxgraph.view.mxGraph
Returns the stylesheet that provides the style.
getStyleString(Map<String, Object>, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Returns the string that represents the content of a given style map.
getTarget() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getTarget() - Method in class com.mxgraph.model.mxCell
Returns the target terminal.
getTargetForCell(Object) - Method in class com.mxgraph.view.mxGraph
Returns the hyperlink to be used for the given cell.
getTargetPoint() - Method in class com.mxgraph.model.mxGeometry
Returns the target point.
getTemplate() - Method in class com.mxgraph.io.mxObjectCodec
Returns the template object associated with this codec.
getTerminal(Object, boolean) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
getTerminal(boolean) - Method in class com.mxgraph.model.mxCell
 
getTerminal(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
 
getTerminal(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
Gets the source or target terminal field for the given edge even if the edge is not stored as an incoming or outgoing edge in the respective terminal.
getTerminal() - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
getTerminal(boolean) - Method in interface com.mxgraph.model.mxICell
Returns the source or target terminal.
getTerminal(Object, boolean) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the source or target terminal of the given edge depending on the value of the boolean parameter.
getTerminalDistance() - Method in class com.mxgraph.view.mxCellState
Returns the terminal distance.
getTerminalForPort(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns the terminal to be used for a given port.
getTerminalPoint(boolean) - Method in class com.mxgraph.model.mxGeometry
Returns the point representing the source or target point of this edge.
getTerminalPort(mxCellState, mxCellState, boolean) - Method in class com.mxgraph.view.mxGraphView
Returns a cell state that represents the source or target terminal or port for the given edge.
getText() - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
getText() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns the text strings to be stored in uncompressed form with this image as an array of Strings.
getTextRenderer() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Hook to return the renderer for HTML formatted text.
getTextShape(Map<String, Object>, boolean) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
getThreshold() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
getToBackAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getToFrontAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getTolerance() - Method in class com.mxgraph.swing.mxGraphComponent
 
getToolTipForCell(Object) - Method in class com.mxgraph.view.mxGraph
Returns the tooltip to be used for the given cell.
getToolTipText(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellHandler
Hook for subclassers to return tooltip texts for certain points on the handle.
getToolTipText(MouseEvent) - Method in class com.mxgraph.swing.handler.mxElbowEdgeHandler
Hook for subclassers to return tooltip texts for certain points on the handle.
getToolTipText(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Redirects the tooltip handling of the JComponent to the graph component, which in turn may use getHandleToolTipText in this class to find a tooltip associated with a handle.
getToolTipText(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
getTopmostCells(mxIGraphModel, Object[]) - Static method in class com.mxgraph.model.mxGraphModel
Function: getTopmostCells Returns the topmost cells of the hierarchy in an array that contains no desceandants for each that it contains.
getTransferData(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
Returns an object which represents the data to be transferred.
getTransferDataFlavors() - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
getTransferImageBackground() - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
getTranslate() - Method in class com.mxgraph.canvas.mxBasicCanvas
Returns the current translate.
getTranslate() - Method in interface com.mxgraph.canvas.mxICanvas
Returns the current translation.
getTranslate() - Method in class com.mxgraph.canvas.mxImageCanvas
 
getTranslate() - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Returns the translate.
getTranslate() - Method in class com.mxgraph.view.mxGraphView
Returns the current translation.
getTranslateForRoot(Object) - Method in class com.mxgraph.view.mxGraph
Returns the translation to be used if the given cell is the root cell as an .
getTransparentGray() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Returns the gray value to be used to denote transparency.
getTransparentRGB() - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Returns the RGB value to be used to denote transparency.
getTriesPerCell() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getTripleBuffer() - Method in class com.mxgraph.swing.mxGraphComponent
 
getUnchangedEnergyRoundTermination() - Method in class com.mxgraph.layout.mxOrganicLayout
 
getUngroupAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getUpdateGroupBoundsAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getUpdateLevel() - Method in class com.mxgraph.model.mxGraphModel
 
getUserObject() - Method in class com.mxgraph.analysis.mxFibonacciHeap.Node
 
getValidColor() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the color used for valid highlights.
getValidState() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns the valid state.
getValue() - Method in class com.mxgraph.model.mxCell
 
getValue(Object) - Method in class com.mxgraph.model.mxGraphModel
 
getValue() - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
 
getValue() - Method in interface com.mxgraph.model.mxICell
Returns the user object of the cell.
getValue(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns the user object of the given cell.
getValue(Element, String, String) - Method in class com.mxgraph.reader.mxDomOutputParser
Returns the given attribute value or an empty string.
getValue(Attributes, String, String) - Method in class com.mxgraph.reader.mxSaxOutputHandler
Returns the given attribute value or an empty string.
getValue(double) - Method in class com.mxgraph.util.mxSpline1D
Returns an interpolated value.
getValue(String) - Static method in class com.mxgraph.view.mxStyleRegistry
Returns the value associated with the given name.
getVertexBounds(Object) - Method in class com.mxgraph.layout.mxGraphLayout
Returns an that defines the bounds of the given cell or the bounding box if is true.
getVertexGridCoords(int, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
use this only with the grid graph, and various chess-board graphs, because of vertex ordering
getVertexMapper() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
 
getVertexWithValue(mxAnalysisGraph, int) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
getVerticalAlign() - Method in class com.mxgraph.swing.util.mxCellOverlay
 
getVerticalPageBorder() - Method in class com.mxgraph.swing.mxGraphComponent
Returns the vertical border between the page and the control.
getVerticalPageCount() - Method in class com.mxgraph.swing.mxGraphComponent
 
getView() - Method in class com.mxgraph.view.mxCellState
Returns the enclosing graph view.
getView() - Method in class com.mxgraph.view.mxGraph
Returns the view that contains the cell states.
getView() - Method in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
Returns the graph view where the change happened.
getVisibleTerminal(boolean) - Method in class com.mxgraph.view.mxCellState
Returns the visible source or target terminal cell.
getVisibleTerminal(Object, boolean) - Method in class com.mxgraph.view.mxGraphView
Returns the nearest ancestor terminal that is visible.
getVisibleTerminalState(boolean) - Method in class com.mxgraph.view.mxCellState
Returns the visible source or target terminal state.
getWFIPath(mxAnalysisGraph, ArrayList<Object[][]>, Object, Object) - Static method in class com.mxgraph.analysis.mxTraversal
This method helps the user to get the desired data from the result of the Floyd-Roy-Warshall algorithm.
getWheelGraph(mxAnalysisGraph, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getWidth() - Method in class com.mxgraph.util.mxImage
 
getWidth() - Method in class com.mxgraph.util.mxRectangle
Returns the width of the rectangle.
getWindingRule() - Method in class com.mxgraph.util.svg.AWTPathProducer
Returns the current winding rule.
getWindingRule() - Method in class com.mxgraph.util.svg.AWTPolylineProducer
Returns the current winding rule.
getWindingRule() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
getWindingRule() - Method in interface com.mxgraph.util.svg.ExtendedPathIterator
 
getWindingRule() - Method in interface com.mxgraph.util.svg.ShapeProducer
Returns the current winding rule.
getWindmillGraph(mxAnalysisGraph, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
getWordWrapWidth(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Returns the width for wrapping the label of the given state at scale 1.
getX(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Gets the value of x on the specified layer
getX() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getX() - Method in class com.mxgraph.util.mxPoint
Returns the x-coordinate of the point.
getX0() - Method in class com.mxgraph.layout.mxCircleLayout
 
getXml(Node) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxXmlUtils.getXml(Node) (Jan 2012)
getXml(Node) - Static method in class com.mxgraph.util.mxXmlUtils
Returns a string that represents the given node.
getY() - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
getY() - Method in class com.mxgraph.util.mxPoint
Returns the x-coordinate of the point.
getY0() - Method in class com.mxgraph.layout.mxCircleLayout
 
getZoomActualAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getZoomFactor() - Method in class com.mxgraph.swing.mxGraphComponent
 
getZoomInAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getZoomOutAction() - Static method in class com.mxgraph.swing.util.mxGraphActions
 
getZoomPolicy() - Method in class com.mxgraph.swing.mxGraphComponent
 
glyph - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
The glyph being drawn
glyphGeometry - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
A line parallel to the curve segment at which the element is to be drawn
glyphShape - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
The cached shape of the glyph
gradientPaint - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
graph - Variable in class com.mxgraph.analysis.mxAnalysisGraph
 
GRAPH - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
graph - Variable in class com.mxgraph.layout.mxGraphLayout
Holds the enclosing graph.
graph - Variable in class com.mxgraph.swing.mxGraphComponent
 
graph - Variable in class com.mxgraph.view.mxGraphSelectionModel
Reference to the enclosing graph.
graph - Variable in class com.mxgraph.view.mxGraphView
Reference to the enclosing graph.
graph - Variable in class com.mxgraph.view.mxLayoutManager
Defines the type of the source or target terminal.
graph - Variable in class com.mxgraph.view.mxSpaceManager
Defines the type of the source or target terminal.
graph - Variable in class com.mxgraph.view.mxSwimlaneManager
Defines the type of the source or target terminal.
graphBounds - Variable in class com.mxgraph.view.mxGraphView
Caches the current bounds of the graph.
graphComponent - Variable in class com.mxgraph.swing.handler.mxCellHandler
Reference to the enclosing graph component.
graphComponent - Variable in class com.mxgraph.swing.handler.mxCellMarker
Holds the enclosing graph component.
graphComponent - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
graphComponent - Variable in class com.mxgraph.swing.handler.mxConnectPreview
 
graphComponent - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Reference to the enclosing graph component.
graphComponent - Variable in class com.mxgraph.swing.handler.mxInsertHandler
Reference to the enclosing graph component.
graphComponent - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
graphComponent - Variable in class com.mxgraph.swing.handler.mxPanningHandler
 
graphComponent - Variable in class com.mxgraph.swing.handler.mxRotationHandler
Reference to the enclosing graph component.
graphComponent - Variable in class com.mxgraph.swing.handler.mxRubberband
Reference to the enclosing graph container.
graphComponent - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Reference to the enclosing graph component.
graphComponent - Variable in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
graphComponent - Variable in class com.mxgraph.swing.mxGraphOutline
 
graphComponent - Variable in class com.mxgraph.swing.util.mxMorphing
Reference to the enclosing graph instance.
graphComponent - Variable in class com.mxgraph.swing.view.mxCellEditor
 
graphComponent - Variable in class com.mxgraph.swing.view.mxCellStatePreview
 
graphControl - Variable in class com.mxgraph.swing.mxGraphComponent
 
graphHandler - Variable in class com.mxgraph.swing.mxGraphComponent
 
graphics - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Reference to the graphics instance for painting.
GRAPHML - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
graphModelChanged(mxIGraphModel, List<mxUndoableEdit.mxUndoableChange>) - Method in class com.mxgraph.view.mxGraph
Called when the graph model changes.
graphModelChangeHandler - Variable in class com.mxgraph.view.mxGraph
Fires repaint events for model changes.
green - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The green color value of the entry.
GRID_STYLE_CROSS - Static variable in class com.mxgraph.swing.mxGraphComponent
 
GRID_STYLE_DASHED - Static variable in class com.mxgraph.swing.mxGraphComponent
 
GRID_STYLE_DOT - Static variable in class com.mxgraph.swing.mxGraphComponent
 
GRID_STYLE_LINE - Static variable in class com.mxgraph.swing.mxGraphComponent
 
gridColor - Variable in class com.mxgraph.swing.mxGraphComponent
 
gridEnabled - Variable in class com.mxgraph.view.mxGraph
Specifies if the grid is enabled.
gridEnabledEvent - Variable in class com.mxgraph.swing.handler.mxEdgeHandler
Workaround for alt-key-state not correct in mouseReleased.
gridEnabledEvent - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Workaround for alt-key-state not correct in mouseReleased.
gridEnabledEvent - Variable in class com.mxgraph.swing.handler.mxVertexHandler
Workaround for alt-key-state not correct in mouseReleased.
gridSize - Variable in class com.mxgraph.view.mxGraph
Specifies the grid size.
gridStyle - Variable in class com.mxgraph.swing.mxGraphComponent
 
gridVisible - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if the grid is visible.
GROUP_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
groupCells() - Method in class com.mxgraph.view.mxGraph
Groups the selection cells.
groupCells(Object) - Method in class com.mxgraph.view.mxGraph
Groups the selection cells and adds them to the given group.
groupCells(Object, double) - Method in class com.mxgraph.view.mxGraph
Groups the selection cells and adds them to the given group.
groupCells(Object, double, Object[]) - Method in class com.mxgraph.view.mxGraph
Adds the cells into the given group.
groupPadding - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Padding added to resized parents
groupPadding - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Padding added to resized parents
grow(double) - Method in class com.mxgraph.util.mxRectangle
Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.
guidePoints - Variable in class com.mxgraph.util.mxCurve
The points this curve is drawn through.

H

h0 - Variable in class com.mxgraph.shape.mxStencil
Holds the height of the shape.
handle - Variable in class com.mxgraph.swing.handler.mxRotationHandler
 
HANDLE_BORDERCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the handle border color.
HANDLE_FILLCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the handle fill color.
HANDLE_SIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the handle size.
handleEnabled - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
Specifies if a handle should be used for creating new connections.
handlers - Variable in class com.mxgraph.reader.mxDomOutputParser
 
handlers - Variable in class com.mxgraph.reader.mxSaxOutputHandler
 
handlers - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Maps from cells to handlers in the order of the selection cells.
handles - Variable in class com.mxgraph.swing.handler.mxCellHandler
Holds the rectangles that define the handles.
handleSize - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
Specifies the size of the handle to be used for creating new connections.
handlesVisible - Variable in class com.mxgraph.swing.handler.mxCellHandler
Specifies if the handles should be painted.
hasData(mxGraphMlNode) - Static method in class com.mxgraph.io.graphml.mxGraphMlGraph
Checks if the node has data elements inside.
hasGradient(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
hasGradient(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxImageShape
 
hasGradient(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLabelShape
 
hashCode - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Assigns a unique hashcode for each node.
hasShadow(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
hasValidState() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns true if validState is not null.
HEIGHT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
height - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
The height of this cell
height - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
height - Variable in class com.mxgraph.util.mxImage
Holds the image width and height.
height - Variable in class com.mxgraph.util.mxRectangle
Holds the width and the height.
heightSquared - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The height of the node squared, only used if approxNodeDimensions is set to true.
HexagonPerimeter - Static variable in class com.mxgraph.view.mxPerimeter
Describes a hexagon perimeter.
hexString(Color) - Static method in class com.mxgraph.util.mxHtmlColor
 
hexString(Color) - Static method in class com.mxgraph.util.mxUtils
 
hideSelectionHandler - Variable in class com.mxgraph.swing.handler.mxMovePreview
Specifies if the selection cells handler should be hidden while the preview is visible.
highlight(mxCellState, Color) - Method in class com.mxgraph.swing.handler.mxCellMarker
 
highlight(mxCellState, Color, boolean) - Method in class com.mxgraph.swing.handler.mxCellMarker
 
history - Variable in class com.mxgraph.util.mxUndoManager
List that contains the steps of the command history.
hitClip(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
hitFoldingIcon(Object, int, int) - Method in class com.mxgraph.swing.mxGraphComponent
 
hitSwimlaneContent(mxGraphComponent, mxCellState, int, int) - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
Returns true if the given point is inside the content area of the given swimlane.
hitZoomHandle(int, int) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
home() - Method in class com.mxgraph.view.mxGraph
Uses the root of the model as the root of the displayed cell hierarchy and selects the previous root.
horizontal - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Specifies the orientation of the layout.
horizontal - Variable in class com.mxgraph.layout.mxPartitionLayout
Boolean indicating the direction in which the space is partitioned.
horizontal - Variable in class com.mxgraph.layout.mxStackLayout
Specifies the orientation of the layout.
horizontal - Variable in class com.mxgraph.view.mxSwimlaneManager
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
horizontalLayout(mxCompactTreeLayout.TreeNode, double, double, mxRectangle) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
horizontalPageCount - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the number of pages in the horizontal direction.
hotspot - Variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies the portion of the width and height that should trigger a highlight.
hotspotEnabled - Variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies if the hotspot is enabled.
hozBendProportion - Static variable in class com.mxgraph.view.mxEdgeStyle
 
htmlColors - Static variable in class com.mxgraph.util.mxHtmlColor
HTML color lookup table.
htmlEntities(String) - Static method in class com.mxgraph.util.mxUtils
Converts the ampersand, quote, prime, less-than and greater-than characters to their corresponding HTML entities in the given string.
htmlLabels - Variable in class com.mxgraph.reader.mxGraphViewReader
Specifies if labels should be rendered as HTML markup.
htmlLabels - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isHtmlLabel.
htmlText(double, double, double, double, String, String, String, boolean, String, String, boolean, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Draws the given HTML text.
HYPEREDGE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 

I

iconPath - Variable in class com.mxgraph.shape.mxStencilShape
 
ID - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
id - Variable in class com.mxgraph.model.mxCell
Holds the Id.
id - Variable in class com.mxgraph.sharing.mxSession
Holds the session ID.
idrefs - Variable in class com.mxgraph.io.mxObjectCodec
Array containing the variable names that should be turned into or converted from references.
image(double, double, double, double, String, boolean, boolean, boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
image(double, double, double, double, String, boolean, boolean, boolean) - Method in interface com.mxgraph.canvas.mxICanvas2D
Draws the given image.
image - Variable in class com.mxgraph.canvas.mxImageCanvas
 
image - Variable in class com.mxgraph.swing.util.mxGraphTransferable
 
IMAGE_SCALING - Static variable in class com.mxgraph.canvas.mxGraphics2DCanvas
Specifies the image scaling quality.
IMAGE_SCALING - Static variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Specifies the image scaling quality.
imageBasePath - Variable in class com.mxgraph.canvas.mxBasicCanvas
Defines the base path for images with relative paths.
imageBundles - Static variable in class com.mxgraph.view.mxGraph
Holds the list of bundles.
imageCache - Variable in class com.mxgraph.canvas.mxBasicCanvas
Cache for images.
imageIcon - Variable in class com.mxgraph.swing.util.mxCellOverlay
 
imageObserver - Variable in class com.mxgraph.swing.view.mxInteractiveCanvas
 
imagePreview - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if an image should be used for preview.
images - Variable in class com.mxgraph.util.mxImageBundle
Maps from keys to images.
importCells(mxGraphComponent, mxGraphTransferable, double, double) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
Gets a drop target using getDropTarget and imports the cells using mxGraph.splitEdge or mxGraphComponent.importCells depending on the drop target and the return values of mxGraph.isSplitEnabled and mxGraph.isSplitTarget.
importCells(Object[], double, double, Object, Point) - Method in class com.mxgraph.swing.mxGraphComponent
Clones and inserts the given cells into the graph using the move method and returns the inserted cells.
importCount - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Counter for the last imported cell array.
importData(JComponent, Transferable) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
Checks if the mxGraphTransferable data flavour is supported and calls importGraphTransferable if possible.
importEnabled - Variable in class com.mxgraph.swing.mxGraphComponent
 
importGraphTransferable(mxGraphComponent, mxGraphTransferable) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
Returns true if the cells have been imported using importCells.
inactiveTimeMillis() - Method in class com.mxgraph.sharing.mxSession
Returns the number of milliseconds this session has been inactive.
indegree(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
index - Variable in class com.mxgraph.model.mxGraphModel.mxChildChange
 
index - Variable in class com.mxgraph.swing.handler.mxCellHandler
Holds the index of the handle that was clicked.
indexOf(Object[], Object) - Static method in class com.mxgraph.util.mxUtils
Returns the index of the given object in the given array of -1 if the object is not contained in the array.
indexOfNextAdd - Variable in class com.mxgraph.util.mxUndoManager
Index of the element to be added next.
indexOfStylename(String, String) - Static method in class com.mxgraph.util.mxStyleUtils
Returns the index of the given stylename in the given style.
indexOfStylename(String, String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.indexOfStylename(String, String) (Jan 2012)
indices - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Maps from vertices to indices.
init() - Method in class com.mxgraph.sharing.mxSession
Initializes the session buffer and returns a string that represents the state of the session.
init(double[], double[]) - Method in class com.mxgraph.util.mxSpline
 
initHandlers() - Method in class com.mxgraph.reader.mxDomOutputParser
 
initHandlers() - Method in class com.mxgraph.reader.mxSaxOutputHandler
 
initialAngle - Variable in class com.mxgraph.swing.handler.mxRotationHandler
 
initialCell - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
initialImportCount - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Sets the value for the initialImportCount.
initialise(Document) - Method in class com.mxgraph.io.graphml.mxGraphMlKeyManager
Load the map with the key elements in the document.
The keys are wrapped for instances of mxGmlKey.
initialMoveRadius - Variable in class com.mxgraph.layout.mxOrganicLayout
The initial value of moveRadius.
initialPlaceholder - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
initialRank() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Basic determination of minimum layer ranking by working from from sources or sinks and working through each node in the relevant edge direction.
initialTemp - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Start value of temperature.
initialX - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The minimum x position node placement starts at
inlineRoutePatterns - Static variable in class com.mxgraph.view.mxEdgeStyle
Overriden routing patterns for orthogonal connections where the vertices have
insert(mxFibonacciHeap.Node, double) - Method in class com.mxgraph.analysis.mxFibonacciHeap
Inserts a new data element into the heap.
insert(mxICell) - Method in class com.mxgraph.model.mxCell
 
insert(mxICell, int) - Method in class com.mxgraph.model.mxCell
 
insert(mxICell) - Method in interface com.mxgraph.model.mxICell
Appends the specified child into the child array and updates the parent reference of the child.
insert(mxICell, int) - Method in interface com.mxgraph.model.mxICell
Inserts the specified child into the child array at the specified index and updates the parent reference of the child.
INSERT - Static variable in class com.mxgraph.util.mxEvent
 
insertCell(mxRectangle) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
insertComponent(mxCellState, Component) - Method in class com.mxgraph.swing.mxGraphComponent
 
insertEdge(mxICell, boolean) - Method in class com.mxgraph.model.mxCell
 
insertEdge(mxICell, boolean) - Method in interface com.mxgraph.model.mxICell
Inserts the specified edge into the edge array and returns the edge.
insertEdge(Object, String, Object, Object, Object) - Method in class com.mxgraph.view.mxGraph
Creates and adds a new edge with an empty style.
insertEdge(Object, String, Object, Object, Object, String) - Method in class com.mxgraph.view.mxGraph
Adds a new edge into the given parent using value as the user object and the given source and target as the terminals of the new edge.
insertIntoGraph(mxICell) - Method in class com.mxgraph.io.mxCodec
Inserts the given cell into its parent and terminal cells.
insertVertex(Object, String, Object, double, double, double, double) - Method in class com.mxgraph.view.mxGraph
Creates and adds a new vertex with an empty style.
insertVertex(Object, String, Object, double, double, double, double, String) - Method in class com.mxgraph.view.mxGraph
Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex.
insertVertex(Object, String, Object, double, double, double, double, String, boolean) - Method in class com.mxgraph.view.mxGraph
Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex.
installDoubleClickHandler() - Method in class com.mxgraph.swing.mxGraphComponent
Adds handling of edit and stop-edit events after all other handlers have been installed.
installDragGestureHandler() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
installDropTargetHandler() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
installFocusHandler() - Method in class com.mxgraph.swing.mxGraphComponent
installs a handler to set the focus to the container.
installKeyboardActions(mxGraphComponent) - Method in class com.mxgraph.swing.handler.mxKeyboardHandler
Invoked as part from the boilerplate install block.
installKeyHandler() - Method in class com.mxgraph.swing.mxGraphComponent
Handles escape keystrokes.
installResizeHandler() - Method in class com.mxgraph.swing.mxGraphComponent
Applies the zoom policy if the size of the component changes.
instance - Static variable in class com.mxgraph.analysis.mxGraphAnalysis
Holds the shared instance of this class.
INTENT_ABSOLUTE - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use with the sRGB chunk.
INTENT_PERCEPTUAL - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use with the sRGB chunk.
INTENT_RELATIVE - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use with the sRGB chunk.
INTENT_SATURATION - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use with the sRGB chunk.
interHierarchySpacing - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The spacing buffer between unconnected hierarchies
interRankCellSpacing - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The spacing buffer added between cell on adjacent layers
interRankCellSpacing - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The minimum distance between cells on adjacent ranks
intersection(double, double, double, double, double, double, double, double) - Static method in class com.mxgraph.util.mxUtils
Returns the intersection of two lines as an mxPoint.
intersectLine(double, double, double, double) - Method in class com.mxgraph.util.mxRectangle
Returns the point at which the specified point intersects the perimeter of this rectangle or null if there is no intersection.
intersectRectPerimeterPoint(String, mxRectangle, int) - Method in class com.mxgraph.util.mxCurve
Returns the point at which this curve segment intersects the boundary of the given rectangle, if it does so.
intersectRectPerimeterSeg(String, mxRectangle) - Method in class com.mxgraph.util.mxCurve
Utility method to determine within which segment the specified rectangle intersects the specified curve
intersectRectPerimeterSeg(String, mxRectangle, int) - Method in class com.mxgraph.util.mxCurve
Utility method to determine within which segment the specified rectangle intersects the specified curve.
intersects(mxCellState, MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns true if the given mouse event intersects the given state.
intersects(mxGraphComponent, Rectangle, mxCellState) - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
 
intersects(double, double, double, double) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
intersects(Rectangle2D) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
intersectsHotspot(mxCellState, int, int, double) - Static method in class com.mxgraph.util.mxUtils
 
intersectsHotspot(mxCellState, int, int, double, int, int) - Static method in class com.mxgraph.util.mxUtils
Returns true if the given coordinate pair intersects the hotspot of the given state.
intersectsRect(Rectangle) - Method in class com.mxgraph.shape.mxCurveLabelShape
Returns whether or not the rectangle passed in hits any part of this curve.
intersectsRect(Rectangle) - Method in class com.mxgraph.util.mxCurve
Returns whether or not the rectangle passed in hits any part of this curve.
intersectsRectPerimeter(String, mxRectangle) - Method in class com.mxgraph.util.mxCurve
Returns the point at which this curve intersects the boundary of the given rectangle, if it does so.
intersectsRectPerimeterDist(String, mxRectangle) - Method in class com.mxgraph.util.mxCurve
Returns the distance from the start of the curve at which this curve intersects the boundary of the given rectangle, if it does so.
intervals - Variable in class com.mxgraph.util.mxCurve
An array of arrays of intervals.
intraCellSpacing - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The spacing buffer added between cells on the same layer
intraCellSpacing - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The minimum buffer between cells on the same rank
invalid - Variable in class com.mxgraph.view.mxCellState
Specifies if the state is invalid.
INVALID_GLYPH_BOUNDS - Static variable in class com.mxgraph.shape.mxCurveLabelShape
Indicates that a glyph does not have valid drawing bounds, usually because it is not visible
INVALID_POSITION - Static variable in class com.mxgraph.util.mxCurve
Indicates that an invalid position on a curve was requested
invalidate() - Method in class com.mxgraph.view.mxGraphView
Invalidates all cell states.
invalidate(Object) - Method in class com.mxgraph.view.mxGraphView
Invalidates the state of the given cell, all its descendants and connected edges.
invalidColor - Variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies the valid- and invalidColor for the marker.
invert() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Inverts the direction of this internal edge(s)
invert - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Specifies if edge directions should be inverted.
invoke(Object, mxEventObject) - Method in interface com.mxgraph.util.mxEventSource.mxIEventListener
Called when the graph model has changed.
invokesStopCellEditing - Variable in class com.mxgraph.swing.mxGraphComponent
If true, when editing is to be stopped by way of selection changing, data in diagram changing or other means stopCellEditing is invoked, and changes are saved.
IS_LINUX - Static variable in class com.mxgraph.util.mxUtils
True if the machine is running a linux kernel.
IS_MAC - Static variable in class com.mxgraph.util.mxUtils
True if the machine is a Mac.
isActive() - Method in class com.mxgraph.swing.handler.mxCellHandler
 
isActive() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isActive() - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
isActive() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
isActive() - Method in class com.mxgraph.swing.handler.mxPanningHandler
Whether or not panning is currently active
isAddEnabled() - Method in class com.mxgraph.view.mxSwimlaneManager
 
isAllowDanglingEdges() - Method in class com.mxgraph.view.mxGraph
Returns allowDanglingEdges
isAllowLoops() - Method in class com.mxgraph.view.mxGraph
Returns allowLoops.
isAllowNegativeCoordinates() - Method in class com.mxgraph.view.mxGraph
Returns isAllowNegativeCoordinates.
isAllowOverlapParent(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is allowed to be placed outside of the parents area.
isAncestor(mxGraphHierarchyNode) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
 
isAncestor(Object, Object) - Method in class com.mxgraph.model.mxGraphModel
 
isAncestor(Object, Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the given parent is an ancestor of the given child.
isAntiAlias() - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
isAntiAlias() - Method in class com.mxgraph.swing.mxGraphComponent
 
isAntiAlias() - Method in class com.mxgraph.swing.mxGraphOutline
 
isApproxNodeDimensions() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isAutoExtend() - Method in class com.mxgraph.swing.mxGraphComponent
 
isAutoOrigin() - Method in class com.mxgraph.view.mxGraph
Returns autoOrigin.
isAutoScroll() - Method in class com.mxgraph.swing.mxGraphComponent
 
isAutoSizeCell(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the size of the given cell should automatically be updated after a change of the label.
isAutoSizeCells() - Method in class com.mxgraph.view.mxGraph
Returns true if the size of the given cell should automatically be updated after a change of the label.
isBackgroundSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Returns true if a 'bKGD' chunk will be output.
isBackgroundSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'bKGD' chunk will be output.
isBackgroundSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Returns true if a 'bKGD' chunk will be output.
isBackgroundSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Returns true if a 'bKGD' chunk will be output.
isBiconnected(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isBitDepthSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Returns true if the bit depth has been set.
isBitShiftSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Returns true if the bit shift has been set.
isBubbling() - Method in class com.mxgraph.view.mxLayoutManager
 
isCellBendable() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
isCellBendable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is bendable.
isCellCloneable(Object) - Method in class com.mxgraph.view.mxGraph
Returns the constant true.
isCellCollapsed(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is collapsed in this graph.
isCellConnectable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is connectable in this graph.
isCellDeletable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is movable.
isCellDisconnectable(Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is disconnectable from the source or target terminal.
isCellDisplayable(Object) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Returns true if the given cell is not the current root or the root in the model.
isCellEditable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is movable.
isCellFoldable(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is expandable.
isCellHorizontal(Object) - Method in class com.mxgraph.view.mxSwimlaneManager
Returns true if the given cell is horizontal.
isCellIgnored(Object) - Method in class com.mxgraph.view.mxSpaceManager
 
isCellLocked(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell may not be moved, sized, bended, disconnected, edited or selected.
isCellMovable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is movable.
isCellOpaque(Object) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
isCellResizable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is resizable.
isCellsBendable() - Method in class com.mxgraph.view.mxGraph
Returns cellsBendable.
isCellsCloneable() - Method in class com.mxgraph.view.mxGraph
Returns cellsCloneable.
isCellsDeletable() - Method in class com.mxgraph.view.mxGraph
Returns cellsDeletable.
isCellsDisconnectable() - Method in class com.mxgraph.view.mxGraph
Returns cellsDisconnectable.
isCellsEditable() - Method in class com.mxgraph.view.mxGraph
Returns true if editing is allowed in this graph.
isCellSelectable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is selectable.
isCellSelected(Object) - Method in class com.mxgraph.view.mxGraph
 
isCellShiftable(Object) - Method in class com.mxgraph.view.mxSpaceManager
 
isCellsLocked() - Method in class com.mxgraph.view.mxGraph
Returns cellsLocked, the default return value for isCellLocked.
isCellsMovable() - Method in class com.mxgraph.view.mxGraph
Returns cellsMovable.
isCellsResizable() - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is resizable.
isCellsSelectable() - Method in class com.mxgraph.view.mxGraph
Returns cellsSelectable.
isCellVisible(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is visible in this graph.
isCenterPage() - Method in class com.mxgraph.swing.mxGraphComponent
 
isCenterPreview() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isCenterZoom() - Method in class com.mxgraph.swing.mxGraphComponent
 
isChromaticitySet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'cHRM' chunk will be output.
isCloned() - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
isCloneEnabled() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
isCloneEnabled() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isCloneEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
 
isCloneInvalidEdges() - Method in class com.mxgraph.view.mxGraph
Returns cloneInvalidEdges.
isClonePreview() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
isCollapsed() - Method in class com.mxgraph.model.mxCell
 
isCollapsed(Object) - Method in class com.mxgraph.model.mxGraphModel
 
isCollapsed() - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
isCollapsed() - Method in interface com.mxgraph.model.mxICell
Returns true if the cell is collapsed.
isCollapsed(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the given cell is collapsed.
isCollapseToPreferredSize() - Method in class com.mxgraph.view.mxGraph
Returns collapseToPreferredSize.
isCompressedTextSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'zTXT' chunk will be output.
isConnectable() - Method in class com.mxgraph.model.mxCell
 
isConnectable(Object) - Method in class com.mxgraph.model.mxGraphModel
 
isConnectable() - Method in interface com.mxgraph.model.mxICell
Returns true if the cell is connectable.
isConnectable(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the given cell is connectable.
isConnectable() - Method in class com.mxgraph.swing.mxGraphComponent
 
isConnectableEdges() - Method in class com.mxgraph.view.mxGraph
Returns connectableEdges.
isConnected(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isConnecting() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Returns true if the source terminal has been clicked and a new connection is currently being previewed.
isConstrainChild(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell should be kept inside the bounds of its parent according to the rules defined by getOverlap and isAllowOverlapParent.
isConstrainChildren() - Method in class com.mxgraph.view.mxGraph
Returns constrainChildren.
isConstrainedEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Note: This is not used during drag and drop operations due to limitations of the underlying API.
isConsumed() - Method in class com.mxgraph.util.mxEventObject
Returns true if the event has been consumed.
isContextPreview() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
isCreateIds() - Method in class com.mxgraph.model.mxGraphModel
Returns true if the model automatically creates Ids and resolves Id collisions.
isCreateTarget() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isCropping() - Method in class com.mxgraph.reader.mxGraphViewImageReader
Specifies the optional clipping rectangle.
isCutEdge(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isCutVertex(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isCyclicDirected(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isCyclicUndirected(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isDataFlavorSupported(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
Returns whether or not the specified data flavor is supported for this object.
isDirected(Map<String, Object>, boolean) - Static method in class com.mxgraph.analysis.mxGraphProperties
 
isDisableEdgeStyle() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
isDisableEdgeStyle() - Method in class com.mxgraph.layout.mxCircleLayout
 
isDisableEdgeStyle() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
isDisableEdgeStyle() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isDisconnectOnMove() - Method in class com.mxgraph.view.mxGraph
Returns disconnectOnMove
isDone() - Method in interface com.mxgraph.util.svg.ExtendedPathIterator
 
isDragEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
 
isDrawLabels() - Method in class com.mxgraph.canvas.mxBasicCanvas
 
isDrawLabels() - Method in class com.mxgraph.swing.mxGraphOutline
 
isDropEnabled() - Method in class com.mxgraph.view.mxGraph
Returns true if the graph allows drop into other cells.
isEdge() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
 
isEdge() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
 
isEdge() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
 
isEdge() - Method in class com.mxgraph.model.mxCell
 
isEdge(Object) - Method in class com.mxgraph.model.mxGraphModel
 
isEdge() - Method in interface com.mxgraph.model.mxICell
Returns true if the cell is an edge.
isEdge(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the given cell is an edge.
isEdgeIgnored(Object) - Method in class com.mxgraph.layout.mxGraphLayout
Returns true if the given edge has no source or target terminal.
isEdgeLabelsMovable() - Method in class com.mxgraph.view.mxGraph
Returns edgeLabelsMovable.
isEdgeRouting() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
isEdgeValid(Object, Object, Object) - Method in class com.mxgraph.view.mxGraph
Checks if the return value of getEdgeValidationError for the given arguments is null.
isEditEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
 
isEditing() - Method in class com.mxgraph.swing.mxGraphComponent
 
isEmbedded() - Method in class com.mxgraph.canvas.mxSvgCanvas
 
isEmpty() - Method in class com.mxgraph.analysis.mxFibonacciHeap
Returns true if the queue is empty.
isEmpty() - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
Checks if the graph has child nodes or edges.
isEmpty() - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
isEmpty() - Method in class com.mxgraph.util.mxUndoableEdit
Returns true if the this edit contains no changes.
isEmpty() - Method in class com.mxgraph.util.mxUndoManager
 
isEmpty() - Method in class com.mxgraph.view.mxGraphSelectionModel
Returns true if no cells are selected.
isEnabled() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns true if the marker is enabled, that is, if it processes events in process.
isEnabled() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isEnabled() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isEnabled() - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
isEnabled() - Method in class com.mxgraph.swing.handler.mxPanningHandler
 
isEnabled() - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
isEnabled() - Method in class com.mxgraph.swing.handler.mxRubberband
Returns the enabled state.
isEnabled() - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
isEnabled() - Method in class com.mxgraph.view.mxGraph
Returns true if the graph is .
isEnabled() - Method in class com.mxgraph.view.mxLayoutManager
 
isEnabled() - Method in class com.mxgraph.view.mxSpaceManager
 
isEnabled() - Method in class com.mxgraph.view.mxSwimlaneManager
 
isEncodeDefaults() - Method in class com.mxgraph.io.mxCodec
Returns if default values of member variables should be encoded.
isEnterStopsCellEditing() - Method in class com.mxgraph.swing.mxGraphComponent
 
isEscapeEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
 
isEventsEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
 
isEventsEnabled() - Method in class com.mxgraph.util.mxEventSource
 
isExcluded(Object, String, Object, boolean) - Method in class com.mxgraph.io.mxCellCodec
Excludes user objects that are XML nodes.
isExcluded(Object, String, Object, boolean) - Method in class com.mxgraph.io.mxObjectCodec
Returns true if the given attribute is to be ignored by the codec.
isExportEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
 
isExtendParent(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the parent of the given cell should be extended if the child has been resized so that it overlaps the parent.
isExtendParents() - Method in class com.mxgraph.view.mxGraph
Returns extendParents.
isExtendParents() - Method in class com.mxgraph.view.mxSpaceManager
 
isExtendParentsOnAdd() - Method in class com.mxgraph.view.mxGraph
Returns extendParentsOnAdd.
isExtractHtmlBody() - Method in class com.mxgraph.swing.view.mxCellEditor
Returns replaceHtmlLinefeeds
isFineTuning() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
isFineTuning() - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
isFineTuning - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not fine tuning is on.
isFineTuning() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isFitPage() - Method in class com.mxgraph.swing.mxGraphOutline
 
isFlipEvent(MouseEvent) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
isFlipEvent(MouseEvent) - Method in class com.mxgraph.swing.handler.mxElbowEdgeHandler
 
isFoldingEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
 
isForceMarqueeEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Note: This is not used during drag and drop operations due to limitations of the underlying API.
isForceTripleBuffered() - Method in class com.mxgraph.swing.mxGraphComponent
Hook for dynamic triple buffering condition.
isGammaSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'gAMA' chunk will be output.
isGridEnabled() - Method in class com.mxgraph.view.mxGraph
Returns true if the grid is enabled.
isGridEnabledEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
 
isGridVisible() - Method in class com.mxgraph.swing.mxGraphComponent
 
isHandleEnabled(int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns true if the handle at the specified index is enabled.
isHandleEnabled() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isHandlesVisible() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns true if the handles should be painted.
isHandleVisible(int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns true if the handle at the specified index is visible.
isHandleVisible(int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Hides the middle handle if the edge is not bendable.
isHideLabel(mxCellState) - Method in class com.mxgraph.swing.view.mxCellEditor
 
isHideSelectionHandler() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
isHighlighting() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Returns true if no connectIcon is specified and handleEnabled is false.
isHorizontal() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
isHorizontal() - Method in class com.mxgraph.layout.mxStackLayout
 
isHorizontal() - Method in class com.mxgraph.view.mxSwimlaneManager
 
isHotspotEnabled() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns true if hotspot is used in intersects.
isHtmlFlavor(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
Returns whether or not the specified data flavor is an HTML flavor that is supported.
isHtmlLabel(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the label must be rendered as HTML markup.
isHtmlLabels() - Method in class com.mxgraph.reader.mxGraphViewReader
Returns the htmlLabels switch.
isHtmlLabels() - Method in class com.mxgraph.view.mxGraph
 
isHtmlSupported() - Method in class com.mxgraph.swing.util.mxGraphTransferable
Whether the HTML flavors are offered.
isICCProfileDataSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'iCCP' chunk will be output.
isIgnoredEvent(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns true if the given event should be ignored.
isIgnoredEvent(MouseEvent) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
No flip event is ignored.
isImageFlavor(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
isImagePreview() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isImageResource(String) - Method in class com.mxgraph.canvas.mxSvgCanvas
Returns true if the given string ends with .png, .jpg or .gif.
isImageSupported() - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
isImportEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
Returns importEnabled.
isInvalid() - Method in class com.mxgraph.view.mxCellState
Returns true if the state is invalid.
isInvert() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
isInvokesStopCellEditing() - Method in class com.mxgraph.swing.mxGraphComponent
 
isKeepEdgesInBackground() - Method in class com.mxgraph.view.mxGraph
 
isKeepEdgesInForeground() - Method in class com.mxgraph.view.mxGraph
 
isKeepOnTop() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isKeepSelectionVisibleOnZoom() - Method in class com.mxgraph.swing.mxGraphComponent
 
isLabel(int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns true if the given index is the index of the last handle.
isLabel(int) - Method in class com.mxgraph.swing.handler.mxElbowEdgeHandler
Returns true if the given index is the index of the last handle.
isLabelClipped(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the overflow portion of labels should be hidden.
isLabelMovable() - Method in class com.mxgraph.swing.handler.mxCellHandler
Returns true if the label is movable.
isLabelMovable(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given edges's label is moveable.
isLabelReversed() - Method in class com.mxgraph.util.mxCurve
Whether or not the label curve starts from the end target and traces to the start of the branch
isLabelsClipped() - Method in class com.mxgraph.view.mxGraph
Returns labelsClipped.
isLabelsVisible() - Method in class com.mxgraph.view.mxGraph
 
isLivePreview() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isLocalDrag() - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
Returns true if the DnD operation started from this handler.
isLoop(mxCellState) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell state is a loop.
isMaintainEdgeParent() - Method in class com.mxgraph.model.mxGraphModel
Returns true if the model automatically update parents of edges so that the edge is contained in the nearest-common-ancestor of its terminals.
isMarkerEnabled() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isModificationTimeSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'tIME' chunk will be output.
isMoveable - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Array of booleans representing the movable states of the vertices.
isMoveCircle() - Method in class com.mxgraph.layout.mxCircleLayout
 
isMoveEnabled() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isMoveParent() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Returns the moveParent flag.
isMoveTree() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
isMultigraph() - Method in class com.mxgraph.view.mxGraph
Returns multigraph.
isNode(Object, String) - Static method in class com.mxgraph.util.mxUtils
Returns true if the user object is an XML node with the specified type and and the optional attribute has the specified value or is not specified.
isNode(Object, String, String, String) - Static method in class com.mxgraph.util.mxUtils
Returns true if the given value is an XML node with the node name and if the optional attribute has the specified value.
isOptimizeBorderLine - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not nodes will contribute an energy cost as they approach the bound of the graph.
isOptimizeBorderLine() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isOptimizeEdgeCrossing - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not edges crosses will be calculated as an energy cost function.
isOptimizeEdgeCrossing() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isOptimizeEdgeDistance - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not the distance between edge and nodes will be calculated as an energy cost function.
isOptimizeEdgeDistance() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isOptimizeEdgeLength - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not edge lengths will be calculated as an energy cost function.
isOptimizeEdgeLength() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isOptimizeNodeDistribution - Variable in class com.mxgraph.layout.mxOrganicLayout
Whether or not node distribute will contribute an energy cost where nodes are close together.
isOptimizeNodeDistribution() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isOrthogonal(mxCellState) - Method in class com.mxgraph.view.mxGraph
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.
isPageBreaksVisible() - Method in class com.mxgraph.swing.mxGraphComponent
 
isPageVisible() - Method in class com.mxgraph.swing.mxGraphComponent
 
isPaletteHistogramSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'hIST' chunk will be output.
isPaletteSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Returns true if a 'PLTE' chunk will be output.
isPanning() - Method in class com.mxgraph.swing.mxGraphComponent
 
isPanningEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Note: This is not used during drag and drop operations due to limitations of the underlying API.
isPerimeter() - Method in class com.mxgraph.view.mxConnectionConstraint
Returns perimeter.
isPhysicalDimensionSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'pHYS' chunk will be output.
isPlaceholderPreview() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
isPlainFlavor(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
Returns whether or not the specified data flavor is an plain flavor that is supported.
isPlainSupported() - Method in class com.mxgraph.swing.util.mxGraphTransferable
Whether the plain text flavors are offered.
isPort(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is a "port", that is, when connecting to it, the cell returned by getTerminalForPort should be used as the terminal and the port should be referenced by the ID in either the mxConstants.STYLE_SOURCE_PORT or the or the mxConstants.STYLE_TARGET_PORT.
isPreferPageSize() - Method in class com.mxgraph.swing.mxGraphComponent
 
isPrimitiveValue(Object) - Method in class com.mxgraph.io.mxObjectCodec
Returns true if the given object is a primitive value.
isRedone() - Method in class com.mxgraph.util.mxUndoableEdit
 
isReference(Object, String, Object, boolean) - Method in class com.mxgraph.io.mxChildChangeCodec
 
isReference(Object, String, Object, boolean) - Method in class com.mxgraph.io.mxObjectCodec
Returns true if the given fieldname is to be treated as a textual reference (ID).
isRelative() - Method in class com.mxgraph.model.mxGeometry
Returns true of the geometry is relative.
isRemoveCellsFromParent() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isReplaceHtmlLinefeeds() - Method in class com.mxgraph.shape.mxHtmlTextShape
Returns replaceHtmlLinefeeds
isReplaceHtmlLinefeeds() - Method in class com.mxgraph.swing.view.mxCellEditor
Returns replaceHtmlLinefeeds
isResetEdges() - Method in class com.mxgraph.layout.mxCircleLayout
 
isResetEdges() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
isResetEdges() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
isResetEdges() - Method in class com.mxgraph.layout.mxOrganicLayout
 
isResetEdgesOnConnect() - Method in class com.mxgraph.view.mxGraph
Returns resetEdgesOnConnect.
isResetEdgesOnMove() - Method in class com.mxgraph.view.mxGraph
Returns resetEdgesOnMove.
isResetEdgesOnResize() - Method in class com.mxgraph.view.mxGraph
Returns resetEdgesOnResize.
isResetViewOnRootChange() - Method in class com.mxgraph.view.mxGraph
Returns resetViewOnRootChange.
isResizeEnabled() - Method in class com.mxgraph.view.mxSwimlaneManager
 
isResizeParent() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Returns the resizeParent flag.
isResizeParent() - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
isReversed - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Whether or not the direction of this edge has been reversed internally to create a DAG for the hierarchical layout
isReversed() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
 
isRicherFlavor(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
 
isRounded(Map<String, Object>) - Method in class com.mxgraph.shape.mxConnectorShape
 
isRubberbandTrigger(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
Returns true if the given event should start the rubberband selection.
isSelect() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isSelected(Object) - Method in class com.mxgraph.view.mxGraphSelectionModel
Returns true if the given cell is selected.
isSelectEnabled() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isSelectionEmpty() - Method in class com.mxgraph.view.mxGraph
 
isShiftDownwards() - Method in class com.mxgraph.view.mxSpaceManager
 
isShiftEnterSubmitsText() - Method in class com.mxgraph.swing.view.mxCellEditor
Returns shiftEnterSubmitsText
isShiftRightwards() - Method in class com.mxgraph.view.mxSpaceManager
 
isSignificant(double, double) - Method in class com.mxgraph.swing.mxGraphComponent
Returns true if the absolute value of one of the given parameters is greater than the tolerance.
isSignificant() - Method in class com.mxgraph.util.mxUndoableEdit
 
isSignificantBitsSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if an 'sBIT' chunk will be output.
isSignificantRemoteChanges() - Method in class com.mxgraph.sharing.mxSharedGraphModel
 
isSimple(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isSingleSelection() - Method in class com.mxgraph.view.mxGraphSelectionModel
 
isSource() - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
isSource(int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Returns true if the current index is 0.
isSplitEnabled() - Method in class com.mxgraph.view.mxGraph
Affects the return values of isValidDropTarget to allow for edges as drop targets.
isSplitTarget(Object, Object[]) - Method in class com.mxgraph.view.mxGraph
Returns true if split is enabled and the given edge may be splitted into two edges with the given cell as a new terminal between the two.
isSRGBIntentSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if an 'sRGB' chunk will be output.
isStartEvent(MouseEvent) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
isStateHandled(mxCellState) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
isStringFlavor(DataFlavor) - Method in class com.mxgraph.swing.util.mxGraphTransferable
Returns whether or not the specified data flavor is a String flavor that is supported.
isSuggestedPaletteSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'sPLT' chunk will be output.
isSwimlane(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is a swimlane.
isSwimlaneContentEnabled() - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns true if the content area of swimlanes is non-transparent to events.
isSwimlaneIgnored(Object) - Method in class com.mxgraph.view.mxSwimlaneManager
Returns true if the given swimlane should be ignored.
isSwimlaneNesting() - Method in class com.mxgraph.view.mxGraph
Returns swimlaneNesting.
isSwimlaneSelectionEnabled() - Method in class com.mxgraph.swing.mxGraphComponent
 
isTarget(int) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Returns true if the current index is the last index.
isTerminalPointMovable(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Function: isTerminalPointMovable Returns true if the given terminal point is movable.
isTextAntiAlias() - Method in class com.mxgraph.swing.mxGraphComponent
 
isTextEnabled() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Returns true if text should be rendered.
isTextSet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'tEXt' chunk will be output.
isToggleEvent(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
 
isTransferImageEnabled() - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
isTransparencySet() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Returns true if a 'tRNS' chunk will be output.
isTraverseVisible(Map<String, Object>, boolean) - Static method in class com.mxgraph.analysis.mxGraphProperties
 
isTree(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
isTripleBuffered() - Method in class com.mxgraph.swing.mxGraphComponent
 
isTripleBuffered() - Method in class com.mxgraph.swing.mxGraphOutline
 
isTrue(Map<String, Object>, String) - Static method in class com.mxgraph.util.mxUtils
Returns true if the dictionary contains true for the given key or false if no value is defined for the key.
isTrue(Map<String, Object>, String, boolean) - Static method in class com.mxgraph.util.mxUtils
Returns true if the dictionary contains true for the given key or the given default value if no value is defined for the key.
isUndone() - Method in class com.mxgraph.util.mxUndoableEdit
 
isUnlimited() - Method in class com.mxgraph.view.mxMultiplicity
Returns true if max is "n" (unlimited).
isUp() - Method in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
Returns true if the drilling went upwards.
isUseBoundingBox() - Method in class com.mxgraph.layout.mxGraphLayout
 
isUseInputOrigin() - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
isValidAncestor(Object, Object, boolean) - Method in class com.mxgraph.view.mxGraph
Returns whether or not the specified parent is a valid ancestor of the specified cell, either direct or indirectly based on whether ancestor recursion is enabled.
isValidConnection(Object, Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given target cell is a valid target for source.
isValidDropTarget(Object, Object[]) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is a valid drop target for the specified cells.
isValidRoot(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is a valid root for the cell display hierarchy.
isValidSource(Object) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
isValidSource(Object) - Method in class com.mxgraph.view.mxGraph
Returns true if the given cell is a valid source for new connections.
isValidState(mxCellState) - Method in class com.mxgraph.swing.handler.mxCellMarker
Returns true if the given state is a valid state.
isValidTarget(Object) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Returns true.
isValidTarget(Object) - Method in class com.mxgraph.view.mxGraph
Returns isValidSource for the given cell.
isVertex() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
 
isVertex() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
 
isVertex() - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
 
isVertex() - Method in class com.mxgraph.model.mxCell
 
isVertex(Object) - Method in class com.mxgraph.model.mxGraphModel
 
isVertex() - Method in interface com.mxgraph.model.mxICell
Returns true if the cell is a vertex.
isVertex(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the given cell is a vertex.
isVertexIgnored(Object) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Returns a boolean indicating if the given should be ignored as a vertex.
isVertexIgnored(Object) - Method in class com.mxgraph.layout.mxFastOrganicLayout
Returns a boolean indicating if the given should be ignored as a vertex.
isVertexIgnored(Object) - Method in class com.mxgraph.layout.mxGraphLayout
Returns true if the given vertex has no connected edges.
isVertexIgnored(Object) - Method in class com.mxgraph.layout.mxOrganicLayout
Returns true if the given vertex has no connected edges.
isVertexLabelsMovable() - Method in class com.mxgraph.view.mxGraph
Returns vertexLabelsMovable.
isVertexMovable(Object) - Method in class com.mxgraph.layout.mxGraphLayout
Returns true if the given vertex may be moved by the layout.
isVisible() - Method in class com.mxgraph.model.mxCell
 
isVisible(Object) - Method in class com.mxgraph.model.mxGraphModel
 
isVisible() - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
isVisible() - Method in interface com.mxgraph.model.mxICell
Returns true if the cell is visibile.
isVisible(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Returns true if the given cell is visible.
isVisible() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
isVisible() - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
iteration - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Current iteration count.
iteration - Variable in class com.mxgraph.layout.mxOrganicLayout
current iteration number of the layout
iterationsWithoutImprovement - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
 

J

jettyPositions - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Map of internal edges and (x,y) pair of positions of the start and end jetty for that edge where it connects to the source and target vertices.
JGRAPH - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
JGRAPH_URL - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
join(mxCompactTreeLayout.TreeNode) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 

K

KEEP_ON_TOP - Static variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies if the highlights should appear on top of everything else in the overlay pane.
keepEdgesInBackground - Variable in class com.mxgraph.view.mxGraph
Specifies if edges should appear in the background regardless of their order in the model.
keepEdgesInForeground - Variable in class com.mxgraph.view.mxGraph
Specifies if edges should appear in the foreground regardless of their order in the model.
keepOnTop - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
Appearance and event handling order wrt subhandles.
keepOnTop - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if this handler should be painted on top of all other components.
keepSelectionVisibleOnZoom - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if the viewport should automatically contain the selection cells after a zoom operation.
KEY - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_EDGE_ID - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_EDGE_NAME - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_FOR - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_NAME - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_NODE_ID - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_NODE_NAME - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
KEY_TYPE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 

L

LABEL - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
label - Variable in class com.mxgraph.view.mxCellState
Holds the current label value, including newlines which result from word wrapping.
LABEL_BUFFER - Static variable in class com.mxgraph.shape.mxCurveLabelShape
Buffer at both ends of the label
LABEL_CHANGED - Static variable in class com.mxgraph.util.mxEvent
 
LABEL_CURVE - Static variable in class com.mxgraph.util.mxCurve
Defines the key for the label curve index
LABEL_HANDLE_FILLCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the label handle fill color.
LABEL_HANDLE_SIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the handle size.
LABEL_INSET - Static variable in class com.mxgraph.util.mxConstants
Defines the inset in absolute pixels between the label bounding box and the label text.
LABEL_SCALE_BUFFER - Static variable in class com.mxgraph.util.mxConstants
Multiplier to the width that is passed into the word wrapping calculation See mxUtils.wordWrap for details
labelBounds - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of the bounds of the label
labelBounds - Variable in class com.mxgraph.view.mxCellState
Holds the rectangle which contains the label.
labelBuffer - Variable in class com.mxgraph.util.mxCurve
Offset of the label curve from the curve the label curve is based on.
labelChanged(Object, Object, EventObject) - Method in class com.mxgraph.swing.mxGraphComponent
Sets the label of the specified cell to the given value using mxGraph.cellLabelChanged and fires mxEvent.LABEL_CHANGED while the transaction is in progress.
labelGlyphBounds - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
Cache of the bounds of the individual element of the label of this edge.
labelGlyphs - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of information describing characteristics relating to drawing each glyph of this label
labelMoveHandler - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
labelPosition - Variable in class com.mxgraph.shape.mxCurveLabelShape
ADT to encapsulate label positioning information
labelsClipped - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for isLabel(s)Clipped.
labelSize - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of the total length of the branch label
labelsVisible - Variable in class com.mxgraph.view.mxGraph
Specifies if labels should be visible.
lastCap - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastDashed - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastDashPattern - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastDirty - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
lastFont - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Font caching.
lastFont - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of the label font
lastFontFamily - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Font caching.
lastFontSize - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Font caching.
lastFontStyle - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Font caching.
lastImported - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Reference to the last imported cell array.
lastJoin - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastMiterLimit - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastMoveX - Variable in class com.mxgraph.shape.mxStencil
Holds the last x-position of the cursor.
lastMoveY - Variable in class com.mxgraph.shape.mxStencil
Holds the last y-position of the cursor.
lastPoints - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of the last set of guide points that this label was calculated for
lastStroke - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastStrokeWidth - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stroke caching.
lastTimeMillis - Variable in class com.mxgraph.sharing.mxSession
Holds the last active time millis.
lastValue - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of the label text
layeringStage() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Implements first stage of a Sugiyama layout.
layout - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Reference to the enclosing layout algorithm
layout - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
Reference to the enclosing layout algorithm
layout - Variable in class com.mxgraph.layout.hierarchical.stage.mxMinimumCycleRemover
Reference to the enclosing layout algorithm
layout(mxCompactTreeLayout.TreeNode) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Starts the actual compact tree layout algorithm at the given node.
layout(List<Object>) - Method in class com.mxgraph.layout.mxParallelEdgeLayout
 
LAYOUT_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
layoutCells(Object[]) - Method in class com.mxgraph.view.mxLayoutManager
 
layoutLeaf(mxCompactTreeLayout.TreeNode) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
LEFT - Static variable in class com.mxgraph.view.mxEdgeStyle
 
LEFT_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
len - Variable in class com.mxgraph.util.mxSpline1D
 
length - Variable in class com.mxgraph.util.svg.StringNormalizingReader
The length of the string.
length - Variable in class com.mxgraph.view.mxCellState
Caches the distance between the end points and the length of an edge.
levelDistance - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Holds the levelDistance.
limits - Static variable in class com.mxgraph.view.mxEdgeStyle
 
limitX - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The maximum x value this positioning lays up to
line - Variable in class com.mxgraph.util.svg.StringNormalizingReader
The current line in the stream.
LINE_ARCSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the size of the arcs for rounded edges.
LINE_HEIGHT - Static variable in class com.mxgraph.util.mxConstants
Default line height for text output.
lineCap - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
lineColor - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
lineJoin - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
lineNumber - Variable in exception com.mxgraph.util.svg.ParseException
 
LINESPACING - Static variable in class com.mxgraph.util.mxConstants
Specifies the line spacing.
lineTo(double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
lineTo(double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Draws a line to the given path.
lineTo(float, float) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
linetoAbs(float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.linetoAbs(float,float).
linetoAbs(float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute line command has been parsed.
linetoHorizontalAbs(float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.linetoHorizontalAbs(float).
linetoHorizontalAbs(float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an horizontal absolute line command has been parsed.
linetoHorizontalRel(float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.linetoHorizontalRel(float).
linetoHorizontalRel(float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an horizontal relative line command has been parsed.
linetoRel(float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.linetoRel(float,float).
linetoRel(float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative line command has been parsed.
linetoVerticalAbs(float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.linetoVerticalAbs(float).
linetoVerticalAbs(float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a vertical absolute line command has been parsed.
linetoVerticalRel(float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.linetoVerticalRel(float).
linetoVerticalRel(float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a vertical relative line command has been parsed.
lineWidth - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
link(mxFibonacciHeap.Node, mxFibonacciHeap.Node) - Method in class com.mxgraph.analysis.mxFibonacciHeap
Make node y a child of node x.
livePreview - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if live preview should be used if possible.
loadDocument(String) - Static method in class com.mxgraph.util.mxUtils
Returns a new DOM document for the given URI.
loadImage(String) - Method in class com.mxgraph.canvas.mxBasicCanvas
Returns an image instance for the given URL.
loadImage(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Hook for image caching.
loadImage(String) - Static method in class com.mxgraph.util.mxUtils
Loads an image from the local filesystem, a data URI or any other URL.
localEdgeProcessing(mxGraphHierarchyModel) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Separates the x position of edges as they connect to vertices
localEdgeProcessing(mxCompactTreeLayout.TreeNode) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Moves the specified node and all of its children by the given amount.
location - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
LOCKED_HANDLE_FILLCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the handle fill color for locked handles.
lookup(String) - Method in class com.mxgraph.io.mxCodec
Hook for subclassers to implement a custom lookup mechanism for cell IDs.
Loop - Static variable in class com.mxgraph.view.mxEdgeStyle
Provides a self-reference, aka.
lowerHead - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polygon
 
lowerTail - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polygon
 

M

main(String[]) - Static method in class com.mxgraph.view.mxGraph
Prints the version number on the console.
maintainEdgeParent - Variable in class com.mxgraph.model.mxGraphModel
Specifies if edges should automatically be moved into the nearest common ancestor of their terminals.
maintainScrollBar(boolean, double, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
makeConnected(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
Makes the graph connected
makeSimple(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
makeTreeDirected(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
Makes a tree graph directed from the source to the leaves
mapping - Variable in class com.mxgraph.io.mxObjectCodec
Maps from from fieldnames to XML attribute names.
mark() - Method in class com.mxgraph.swing.handler.mxCellMarker
Marks the markedState and fires a mxEvent.MARK event.
MARK - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the mark event, which fires after a cell has been marked.
markedState - Variable in class com.mxgraph.swing.handler.mxCellMarker
Holds the marked state.
marker - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
marker - Variable in class com.mxgraph.swing.handler.mxEdgeHandler
 
marker - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
markerEnabled - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if the cell marker should be called (for splitting edges and dropping cells into groups).
markers - Static variable in class com.mxgraph.shape.mxMarkerRegistry
 
max - Variable in class com.mxgraph.view.mxMultiplicity
Defines the maximum number of connections for which this rule applies.
MAX_HOTSPOT_SIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the maximum size in pixels of the portion of the cell which is to be used as a connectable region.
maxDistanceLimit - Variable in class com.mxgraph.layout.mxFastOrganicLayout
The maximum distance between vertices, beyond which their repulsion no longer has an effect
maxDistanceLimit - Variable in class com.mxgraph.layout.mxOrganicLayout
distance limit beyond which energy costs due to object repulsive is not calculated as it would be too insignificant
maxDistanceLimitSquared - Variable in class com.mxgraph.layout.mxOrganicLayout
cached version of maxDistanceLimit squared
maxHandlers - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Defines the maximum number of handlers to paint individually.
maximumGraphBounds - Variable in class com.mxgraph.view.mxGraph
that specifies the area in which all cells in the diagram should be placed.
maxIterations - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The number of heuristic iterations to run
maxIterations - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
The maximum number of iterations to perform whilst reducing edge crossings
maxIterations - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Total number of iterations to run the layout though.
maxIterations - Variable in class com.mxgraph.layout.mxOrganicLayout
Limit to the number of iterations that may take place.
maxNoImprovementIterations - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
 
maxRank - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
The maximum rank this cell occupies
maxRank - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Stores the largest rank number allocated
maxXBounds - Variable in class com.mxgraph.util.mxCurve
 
maxYBounds - Variable in class com.mxgraph.util.mxCurve
 
medianValue - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction.MedianCellSorter
The median value of the cell stored
merge(mxCompactTreeLayout.Polygon, mxCompactTreeLayout.Polygon) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
mergeChildren(mxICell, mxICell, boolean) - Method in class com.mxgraph.model.mxGraphModel
Merges the children of the given cell into the given target cell inside this model.
mergeChildrenImpl(mxICell, mxICell, boolean, Hashtable<Object, Object>) - Method in class com.mxgraph.model.mxGraphModel
Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.
min - Variable in class com.mxgraph.analysis.mxFibonacciHeap
 
min() - Method in class com.mxgraph.analysis.mxFibonacciHeap
Returns the smallest element in the heap.
min - Variable in class com.mxgraph.view.mxMultiplicity
Defines the minimum number of connections for which this rule applies.
MIN_HOTSPOT_SIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the minimum size in pixels of the portion of the cell which is to be used as a connectable region.
MIN_SCALE_FOR_ROUNDED_LINES - Static variable in class com.mxgraph.util.mxConstants
Defines the minimum scale at which rounded polylines should be painted.
minDistanceLimit - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Minimal distance limit.
minDistanceLimit - Variable in class com.mxgraph.layout.mxOrganicLayout
prevents from dividing with zero and from creating excessive energy values
minDistanceLimitSquared - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Cached version of squared.
minDistanceLimitSquared - Variable in class com.mxgraph.layout.mxOrganicLayout
cached version of minDistanceLimit squared
minEdgeJetty - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The minimum distance for an edge jetty from a vertex
minEdgeJetty - Variable in class com.mxgraph.layout.mxCompactTreeLayout
The minimum distance for an edge jetty from a vertex
minimumEditorScale - Variable in class com.mxgraph.swing.view.mxCellEditor
Defines the minimum scale to be used for the editor.
minimumGraphSize - Variable in class com.mxgraph.view.mxGraph
mxRectangle that specifies the minimum size of the graph canvas inside the scrollpane.
minimumHeight - Variable in class com.mxgraph.swing.view.mxCellEditor
 
minimumWidth - Variable in class com.mxgraph.swing.view.mxCellEditor
 
minMoveRadius - Variable in class com.mxgraph.layout.mxOrganicLayout
when mxOrganicLayout.moveRadiusreaches this value, the algorithm is terminated
minPath(mxGraphHierarchyModel) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Straightens out chains of virtual nodes where possible
minRank - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
The minimum rank this cell occupies
minXBounds - Variable in class com.mxgraph.util.mxCurve
 
minYBounds - Variable in class com.mxgraph.util.mxCurve
 
miterLimit - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
model - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The internal model formed of the layout
model - Variable in class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
Holds the model where the change happened.
model - Variable in class com.mxgraph.sharing.mxSharedGraphModel
 
model - Variable in class com.mxgraph.view.mxGraph
Holds the model that contains the cells to be displayed.
model - Variable in class com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange
 
mouseClicked(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mouseClicked(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mouseClicked(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mouseClicked(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mouseClicked(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mouseClicked(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellHandler
Processes the given event.
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxPanningHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mouseDragged(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
mouseEntered(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mouseEntered(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mouseEntered(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mouseEntered(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mouseEntered(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mouseEntered(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
mouseExited(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mouseExited(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mouseExited(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mouseExited(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mouseExited(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mouseExited(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellHandler
Processes the given event.
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mouseMoved(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellHandler
Processes the given event.
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxPanningHandler
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Dispatches the mousepressed event to the subhandles.
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mousePressed(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellHandler
Processes the given event.
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellTracker
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxPanningHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mouseReleased(MouseEvent) - Method in class com.mxgraph.swing.util.mxMouseAdapter
 
MOVE_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
MOVE_CURSOR - Static variable in class com.mxgraph.swing.handler.mxGraphHandler
Default is Cursor.MOVE_CURSOR.
moveCell(Object, double, double) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
moveCell(Object, double, double) - Method in class com.mxgraph.layout.mxGraphLayout
 
moveCell(Object, double, double) - Method in interface com.mxgraph.layout.mxIGraphLayout
Notified when a cell is being moved in a parent that has automatic layout to update the cell state (eg.
moveCell(Object, double, double) - Method in class com.mxgraph.layout.mxPartitionLayout
 
moveCell(Object, double, double) - Method in class com.mxgraph.layout.mxStackLayout
 
moveCells(Object[], double, double, Object, MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
moveCells(Object[], double, double) - Method in class com.mxgraph.view.mxGraph
Moves the cells by the given amount.
moveCells(Object[], double, double, boolean) - Method in class com.mxgraph.view.mxGraph
Moves or clones the cells and moves the cells or clones by the given amount.
moveCells(Object[], double, double, boolean, Object, Point) - Method in class com.mxgraph.view.mxGraph
Moves or clones the specified cells and moves the cells or clones by the given amount, adding them to the optional target cell.
moveCircle - Variable in class com.mxgraph.layout.mxCircleLayout
Boolean specifying if the circle should be moved to the top, left corner specified by x0 and y0.
moveEnabled - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if moving is enabled.
moveHandler - Variable in class com.mxgraph.view.mxLayoutManager
 
moveLabel(MouseEvent) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
moveLabelTo(mxCellState, double, double) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Moves the label to the given position.
moveNode(mxCompactTreeLayout.TreeNode, double, double) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Moves the specified node and all of its children by the given amount.
moveParent - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Specifies if the parnent should be moved if resizeParent is enabled.
movePoint(Object, int, mxPoint) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Moves the edges control point with the given index to the given point.
movePreview - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
moveRadius - Variable in class com.mxgraph.layout.mxOrganicLayout
The current radius around each node where the next position energy values will be calculated for a possible move
moveState(mxCellState, double, double) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
moveState(mxCellState, double, double, boolean, boolean) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
moveTo(double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
moveTo(double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Moves to the given path.
moveTo(float, float) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
movetoAbs(float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.movetoAbs(float,float).
movetoAbs(float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when an absolute moveto command has been parsed.
movetoRel(float, float) - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.movetoRel(float,float).
movetoRel(float, float) - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when a relative moveto command has been parsed.
moveTree - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Specifies if the tree should be moved to the top, left corner if it is inside a top-level layer.
movingCells - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
multigraph - Variable in class com.mxgraph.view.mxGraph
Specifies if multiple edges in the same direction between the same pair of vertices are allowed.
multiplicities - Variable in class com.mxgraph.view.mxGraph
Specifies the multiplicities to be used for validation of the graph.
mxActorShape - Class in com.mxgraph.shape
 
mxActorShape() - Constructor for class com.mxgraph.shape.mxActorShape
 
mxAnalysisGraph - Class in com.mxgraph.analysis
Implements a collection of utility methods abstracting the graph structure taking into account graph properties such as visible/non-visible traversal
mxAnalysisGraph() - Constructor for class com.mxgraph.analysis.mxAnalysisGraph
 
mxAnimation - Class in com.mxgraph.swing.util
Baseclass for all timer-based animations.
mxAnimation() - Constructor for class com.mxgraph.swing.util.mxAnimation
Constructs a new animation instance with the given repaint delay.
mxAnimation(int) - Constructor for class com.mxgraph.swing.util.mxAnimation
Constructs a new animation instance with the given repaint delay.
mxArrowShape - Class in com.mxgraph.shape
 
mxArrowShape() - Constructor for class com.mxgraph.shape.mxArrowShape
 
mxBase64 - Class in com.mxgraph.util
A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.

On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared to sun.misc.Encoder()/Decoder().

On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays.
mxBase64() - Constructor for class com.mxgraph.util.mxBase64
 
mxBasicCanvas - Class in com.mxgraph.canvas
 
mxBasicCanvas() - Constructor for class com.mxgraph.canvas.mxBasicCanvas
 
mxBasicShape - Class in com.mxgraph.shape
 
mxBasicShape() - Constructor for class com.mxgraph.shape.mxBasicShape
 
mxCell - Class in com.mxgraph.model
Cells are the elements of the graph model.
mxCell() - Constructor for class com.mxgraph.model.mxCell
Constructs a new cell with an empty user object.
mxCell(Object) - Constructor for class com.mxgraph.model.mxCell
Constructs a new cell for the given user object.
mxCell(Object, mxGeometry, String) - Constructor for class com.mxgraph.model.mxCell
Constructs a new cell for the given parameters.
mxCellCodec - Class in com.mxgraph.io
Codec for mxCells.
mxCellCodec() - Constructor for class com.mxgraph.io.mxCellCodec
Constructs a new cell codec.
mxCellCodec(Object) - Constructor for class com.mxgraph.io.mxCellCodec
Constructs a new cell codec for the given template.
mxCellCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxCellCodec
Constructs a new cell codec for the given arguments.
mxCellEditor - Class in com.mxgraph.swing.view
To control this editor, use mxGraph.invokesStopCellEditing, mxGraph.
mxCellEditor(mxGraphComponent) - Constructor for class com.mxgraph.swing.view.mxCellEditor
 
mxCellHandler - Class in com.mxgraph.swing.handler
 
mxCellHandler(mxGraphComponent, mxCellState) - Constructor for class com.mxgraph.swing.handler.mxCellHandler
Constructs a new cell handler for the given cell state.
mxCellMarker - Class in com.mxgraph.swing.handler
Implements a mouse tracker that marks cells under the mouse.
mxCellMarker(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxCellMarker
Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent, Color) - Constructor for class com.mxgraph.swing.handler.mxCellMarker
Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent, Color, Color) - Constructor for class com.mxgraph.swing.handler.mxCellMarker
Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent, Color, Color, double) - Constructor for class com.mxgraph.swing.handler.mxCellMarker
Constructs a new marker for the given graph component.
mxCellOverlay - Class in com.mxgraph.swing.util
 
mxCellOverlay(ImageIcon, String) - Constructor for class com.mxgraph.swing.util.mxCellOverlay
 
mxCellPath - Class in com.mxgraph.model
Implements a mechanism for temporary cell Ids.
mxCellPath() - Constructor for class com.mxgraph.model.mxCellPath
 
mxCellRenderer - Class in com.mxgraph.util
 
mxCellRenderer.CanvasFactory - Class in com.mxgraph.util
 
mxCellRenderer.CanvasFactory() - Constructor for class com.mxgraph.util.mxCellRenderer.CanvasFactory
 
mxCellState - Class in com.mxgraph.view
Represents the current state of a cell in a given graph view.
mxCellState() - Constructor for class com.mxgraph.view.mxCellState
Constructs an empty cell state.
mxCellState(mxGraphView, Object, Map<String, Object>) - Constructor for class com.mxgraph.view.mxCellState
Constructs a new object that represents the current state of the given cell in the specified view.
mxCellStatePreview - Class in com.mxgraph.swing.view
Represents the current state of a cell in a given graph view.
mxCellStatePreview(mxGraphComponent, boolean) - Constructor for class com.mxgraph.swing.view.mxCellStatePreview
Constructs a new state preview.
mxCellTracker - Class in com.mxgraph.swing.handler
Event handler that highlights cells.
mxCellTracker(mxGraphComponent, Color) - Constructor for class com.mxgraph.swing.handler.mxCellTracker
Constructs an event handler that highlights cells.
mxChildChangeCodec - Class in com.mxgraph.io
Codec for mxChildChanges.
mxChildChangeCodec() - Constructor for class com.mxgraph.io.mxChildChangeCodec
Constructs a new model codec.
mxChildChangeCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxChildChangeCodec
Constructs a new model codec for the given arguments.
mxCircleLayout - Class in com.mxgraph.layout
 
mxCircleLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxCircleLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxCircleLayout(mxGraph, double) - Constructor for class com.mxgraph.layout.mxCircleLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxCloudShape - Class in com.mxgraph.shape
 
mxCloudShape() - Constructor for class com.mxgraph.shape.mxCloudShape
 
mxCodec - Class in com.mxgraph.io
XML codec for Java object graphs.
mxCodec() - Constructor for class com.mxgraph.io.mxCodec
Constructs an XML encoder/decoder with a new owner document.
mxCodec(Document) - Constructor for class com.mxgraph.io.mxCodec
Constructs an XML encoder/decoder for the specified owner document.
mxCodecRegistry - Class in com.mxgraph.io
Singleton class that acts as a global registry for codecs.
mxCodecRegistry() - Constructor for class com.mxgraph.io.mxCodecRegistry
 
mxCompactTreeLayout - Class in com.mxgraph.layout
 
mxCompactTreeLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxCompactTreeLayout
 
mxCompactTreeLayout(mxGraph, boolean) - Constructor for class com.mxgraph.layout.mxCompactTreeLayout
 
mxCompactTreeLayout(mxGraph, boolean, boolean) - Constructor for class com.mxgraph.layout.mxCompactTreeLayout
 
mxCompactTreeLayout.Polygon - Class in com.mxgraph.layout
 
mxCompactTreeLayout.Polygon() - Constructor for class com.mxgraph.layout.mxCompactTreeLayout.Polygon
 
mxCompactTreeLayout.Polyline - Class in com.mxgraph.layout
 
mxCompactTreeLayout.Polyline(double, double, mxCompactTreeLayout.Polyline) - Constructor for class com.mxgraph.layout.mxCompactTreeLayout.Polyline
 
mxCompactTreeLayout.TreeNode - Class in com.mxgraph.layout
 
mxCompactTreeLayout.TreeNode(Object) - Constructor for class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
mxCompactTreeLayout.WeightedCellSorter - Class in com.mxgraph.layout
A utility class used to track cells whilst sorting occurs on the weighted sum of their connected edges.
mxCompactTreeLayout.WeightedCellSorter() - Constructor for class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
 
mxCompactTreeLayout.WeightedCellSorter(mxCompactTreeLayout.TreeNode, int) - Constructor for class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
 
mxConnectionConstraint - Class in com.mxgraph.view
Defines an object that contains the constraints about how to connect one side of an edge to its terminal.
mxConnectionConstraint() - Constructor for class com.mxgraph.view.mxConnectionConstraint
Constructs an empty connection constraint.
mxConnectionConstraint(mxPoint) - Constructor for class com.mxgraph.view.mxConnectionConstraint
Constructs a connection constraint for the given point.
mxConnectionConstraint(mxPoint, boolean) - Constructor for class com.mxgraph.view.mxConnectionConstraint
Constructs a new connection constraint for the given point and boolean arguments.
mxConnectionHandler - Class in com.mxgraph.swing.handler
Connection handler creates new connections between cells.
mxConnectionHandler(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxConnectionHandler
 
mxConnectorShape - Class in com.mxgraph.shape
 
mxConnectorShape() - Constructor for class com.mxgraph.shape.mxConnectorShape
 
mxConnectPreview - Class in com.mxgraph.swing.handler
Connection handler creates new connections between cells.
mxConnectPreview(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxConnectPreview
 
mxConstantCostFunction - Class in com.mxgraph.analysis
Implements a cost function for a constant cost per traversed cell.
mxConstantCostFunction(double) - Constructor for class com.mxgraph.analysis.mxConstantCostFunction
 
mxConstants - Class in com.mxgraph.util
Contains all global constants.
mxConstants() - Constructor for class com.mxgraph.util.mxConstants
 
mxConstCostFunction - Class in com.mxgraph.costfunction
 
mxConstCostFunction(double) - Constructor for class com.mxgraph.costfunction.mxConstCostFunction
 
mxCoordinateAssignment - Class in com.mxgraph.layout.hierarchical.stage
Sets the horizontal locations of node and edge dummy nodes on each layer.
mxCoordinateAssignment(mxHierarchicalLayout, double, double, int, double, double) - Constructor for class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Creates a coordinate assignment.
mxCoordinateAssignment.AreaSpatialCache - Class in com.mxgraph.layout.hierarchical.stage
Utility class that stores a collection of vertices and edge points within a certain area.
mxCoordinateAssignment.AreaSpatialCache() - Constructor for class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.AreaSpatialCache
 
mxCoordinateAssignment.WeightedCellSorter - Class in com.mxgraph.layout.hierarchical.stage
A utility class used to track cells whilst sorting occurs on the weighted sum of their connected edges.
mxCoordinateAssignment.WeightedCellSorter() - Constructor for class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
 
mxCoordinateAssignment.WeightedCellSorter(mxGraphAbstractHierarchyCell, int) - Constructor for class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
 
mxCostFunction - Class in com.mxgraph.costfunction
 
mxCostFunction() - Constructor for class com.mxgraph.costfunction.mxCostFunction
 
mxCurve - Class in com.mxgraph.util
 
mxCurve() - Constructor for class com.mxgraph.util.mxCurve
 
mxCurve(List<mxPoint>) - Constructor for class com.mxgraph.util.mxCurve
 
mxCurveLabelShape - Class in com.mxgraph.shape
Draws the edge label along a curve derived from the curve describing the edge's path
mxCurveLabelShape(mxCellState, mxCurve) - Constructor for class com.mxgraph.shape.mxCurveLabelShape
 
mxCurveLabelShape.LabelGlyphCache - Class in com.mxgraph.shape
Utility class to describe the characteristics of each glyph of a branch branch label.
mxCurveLabelShape.LabelGlyphCache() - Constructor for class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
 
mxCurveLabelShape.LabelPosition - Class in com.mxgraph.shape
Utility class that stores details of how the label is positioned on the curve
mxCurveLabelShape.LabelPosition() - Constructor for class com.mxgraph.shape.mxCurveLabelShape.LabelPosition
 
mxCurveShape - Class in com.mxgraph.shape
 
mxCurveShape() - Constructor for class com.mxgraph.shape.mxCurveShape
 
mxCurveShape(mxCurve) - Constructor for class com.mxgraph.shape.mxCurveShape
 
mxCylinderShape - Class in com.mxgraph.shape
 
mxCylinderShape() - Constructor for class com.mxgraph.shape.mxCylinderShape
 
mxDefaultTextShape - Class in com.mxgraph.shape
 
mxDefaultTextShape() - Constructor for class com.mxgraph.shape.mxDefaultTextShape
 
mxDistanceCostFunction - Class in com.mxgraph.analysis
Implements a cost function for the Euclidean length of an edge.
mxDistanceCostFunction() - Constructor for class com.mxgraph.analysis.mxDistanceCostFunction
 
mxDomOutputParser - Class in com.mxgraph.reader
public static void main(String[] args) { try { String filename = Test.class.getResource( "/com/mxgraph/online/exported.xml").getPath(); String xml = mxUtils.readFile(filename); System.out.println("xml=" + xml); Document doc = mxUtils.parseXml(xml); Element root = doc.getDocumentElement(); int width = Integer.parseInt(root.getAttribute("width")); int height = Integer.parseInt(root.getAttribute("height")); System.out.println("width=" + width + " height=" + height); BufferedImage img = mxUtils.createBufferedImage(width, height, Color.WHITE); Graphics2D g2 = img.createGraphics(); mxUtils.setAntiAlias(g2, true, true); mxDomOutputParser reader = new mxDomOutputParser( new mxGraphicsExportCanvas(g2)); reader.read((Element) root.getFirstChild().getNextSibling()); ImageIO.write(img, "PNG", new File( "C:\\Users\\Gaudenz\\Desktop\\test.png")); } catch (Exception e) { e.printStackTrace(); } } // ------------- Document doc = mxUtils.parseXml(xml); Element root = doc.getDocumentElement(); mxDomOutputParser reader = new mxDomOutputParser(canvas); reader.read(root.getFirstChild());
mxDomOutputParser(mxICanvas2D) - Constructor for class com.mxgraph.reader.mxDomOutputParser
 
mxDomOutputParser.IElementHandler - Interface in com.mxgraph.reader
 
mxDomUtils - Class in com.mxgraph.util
Contains various DOM API helper methods for use with mxGraph.
mxDomUtils() - Constructor for class com.mxgraph.util.mxDomUtils
 
mxDoubleEllipseShape - Class in com.mxgraph.shape
 
mxDoubleEllipseShape() - Constructor for class com.mxgraph.shape.mxDoubleEllipseShape
 
mxDoubleValCostFunction - Class in com.mxgraph.costfunction
A cost function that assumes that edge value is of type "double" or "String" and returns that value.
mxDoubleValCostFunction() - Constructor for class com.mxgraph.costfunction.mxDoubleValCostFunction
 
mxEdgeHandler - Class in com.mxgraph.swing.handler
 
mxEdgeHandler(mxGraphComponent, mxCellState) - Constructor for class com.mxgraph.swing.handler.mxEdgeHandler
 
mxEdgeLabelLayout - Class in com.mxgraph.layout
 
mxEdgeLabelLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxEdgeLabelLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxEdgeStyle - Class in com.mxgraph.view
Provides various edge styles to be used as the values for mxConstants.STYLE_EDGE in a cell style.
mxEdgeStyle() - Constructor for class com.mxgraph.view.mxEdgeStyle
 
mxEdgeStyle.mxEdgeStyleFunction - Interface in com.mxgraph.view
Defines the requirements for an edge style function.
mxElbowEdgeHandler - Class in com.mxgraph.swing.handler
 
mxElbowEdgeHandler(mxGraphComponent, mxCellState) - Constructor for class com.mxgraph.swing.handler.mxElbowEdgeHandler
 
mxEllipseShape - Class in com.mxgraph.shape
 
mxEllipseShape() - Constructor for class com.mxgraph.shape.mxEllipseShape
 
mxEvent - Class in com.mxgraph.util
Contains all global constants.
mxEvent() - Constructor for class com.mxgraph.util.mxEvent
 
mxEventObject - Class in com.mxgraph.util
Base class for objects that dispatch named events.
mxEventObject(String) - Constructor for class com.mxgraph.util.mxEventObject
Constructs a new event for the given name.
mxEventObject(String, Object...) - Constructor for class com.mxgraph.util.mxEventObject
Constructs a new event for the given name and properties.
mxEventSource - Class in com.mxgraph.util
Base class for objects that dispatch named events.
mxEventSource() - Constructor for class com.mxgraph.util.mxEventSource
Constructs a new event source using this as the source object.
mxEventSource(Object) - Constructor for class com.mxgraph.util.mxEventSource
Constructs a new event source for the given source object.
mxEventSource.mxIEventListener - Interface in com.mxgraph.util
Defines the requirements for an object that listens to an event source.
mxFastOrganicLayout - Class in com.mxgraph.layout
Fast organic layout algorithm.
mxFastOrganicLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxFastOrganicLayout
Constructs a new fast organic layout for the specified graph.
mxFibonacciHeap - Class in com.mxgraph.analysis
This class implements a priority queue.
mxFibonacciHeap() - Constructor for class com.mxgraph.analysis.mxFibonacciHeap
 
mxFibonacciHeap.Node - Class in com.mxgraph.analysis
Implements a node of the Fibonacci heap.
mxFibonacciHeap.Node(Object, double) - Constructor for class com.mxgraph.analysis.mxFibonacciHeap.Node
Default constructor.
mxGdCodec - Class in com.mxgraph.io
Parses a GD .txt file and imports it in the given graph.
This class depends from the classes contained in com.mxgraph.io.gd.
mxGdCodec() - Constructor for class com.mxgraph.io.mxGdCodec
 
mxGdCodec.mxGDParseState - Enum in com.mxgraph.io
Represents the different states in the parse of a file.
mxGeneratorConstFunction - Class in com.mxgraph.generatorfunction
 
mxGeneratorConstFunction(double) - Constructor for class com.mxgraph.generatorfunction.mxGeneratorConstFunction
 
mxGeneratorFunction - Class in com.mxgraph.generatorfunction
 
mxGeneratorFunction() - Constructor for class com.mxgraph.generatorfunction.mxGeneratorFunction
 
mxGeneratorRandomFunction - Class in com.mxgraph.generatorfunction
 
mxGeneratorRandomFunction(double, double, int) - Constructor for class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
mxGeneratorRandomIntFunction - Class in com.mxgraph.generatorfunction
 
mxGeneratorRandomIntFunction(double, double) - Constructor for class com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction
 
mxGenericChangeCodec - Class in com.mxgraph.io
Codec for mxChildChanges.
mxGenericChangeCodec(Object, String) - Constructor for class com.mxgraph.io.mxGenericChangeCodec
Constructs a new model codec.
mxGenericChangeCodec(Object, String[], String[], Map<String, String>, String) - Constructor for class com.mxgraph.io.mxGenericChangeCodec
Constructs a new model codec for the given arguments.
mxGeometry - Class in com.mxgraph.model
Represents the geometry of a cell.
mxGeometry() - Constructor for class com.mxgraph.model.mxGeometry
Constructs a new geometry at (0, 0) with the width and height set to 0.
mxGeometry(double, double, double, double) - Constructor for class com.mxgraph.model.mxGeometry
Constructs a geometry using the given parameters.
mxGraph - Class in com.mxgraph.view
Implements a graph object that allows to create diagrams from a graph model and stylesheet.
mxGraph() - Constructor for class com.mxgraph.view.mxGraph
Constructs a new graph with an empty mxGraphModel.
mxGraph(mxIGraphModel) - Constructor for class com.mxgraph.view.mxGraph
Constructs a new graph for the specified model.
mxGraph(mxStylesheet) - Constructor for class com.mxgraph.view.mxGraph
Constructs a new graph for the specified model.
mxGraph(mxIGraphModel, mxStylesheet) - Constructor for class com.mxgraph.view.mxGraph
Constructs a new graph for the specified model.
mxGraph.mxICellVisitor - Interface in com.mxgraph.view
 
mxGraphAbstractHierarchyCell - Class in com.mxgraph.layout.hierarchical.model
An abstraction of an internal hierarchy node or edge
mxGraphAbstractHierarchyCell() - Constructor for class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
 
mxGraphActions - Class in com.mxgraph.swing.util
 
mxGraphActions() - Constructor for class com.mxgraph.swing.util.mxGraphActions
 
mxGraphActions.DeleteAction - Class in com.mxgraph.swing.util
 
mxGraphActions.DeleteAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.DeleteAction
 
mxGraphActions.DrillAction - Class in com.mxgraph.swing.util
 
mxGraphActions.DrillAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.DrillAction
 
mxGraphActions.EditAction - Class in com.mxgraph.swing.util
 
mxGraphActions.EditAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.EditAction
 
mxGraphActions.FoldAction - Class in com.mxgraph.swing.util
 
mxGraphActions.FoldAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.FoldAction
 
mxGraphActions.GroupAction - Class in com.mxgraph.swing.util
 
mxGraphActions.GroupAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.GroupAction
 
mxGraphActions.LayerAction - Class in com.mxgraph.swing.util
 
mxGraphActions.LayerAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.LayerAction
 
mxGraphActions.RemoveFromParentAction - Class in com.mxgraph.swing.util
 
mxGraphActions.RemoveFromParentAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction
 
mxGraphActions.SelectAction - Class in com.mxgraph.swing.util
 
mxGraphActions.SelectAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.SelectAction
 
mxGraphActions.UngroupAction - Class in com.mxgraph.swing.util
 
mxGraphActions.UngroupAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.UngroupAction
 
mxGraphActions.UpdateGroupBoundsAction - Class in com.mxgraph.swing.util
 
mxGraphActions.UpdateGroupBoundsAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction
 
mxGraphActions.ZoomAction - Class in com.mxgraph.swing.util
 
mxGraphActions.ZoomAction(String) - Constructor for class com.mxgraph.swing.util.mxGraphActions.ZoomAction
 
mxGraphAnalysis - Class in com.mxgraph.analysis
A singleton class that provides algorithms for graphs.
mxGraphAnalysis() - Constructor for class com.mxgraph.analysis.mxGraphAnalysis
 
mxGraphComponent - Class in com.mxgraph.swing
For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize.
mxGraphComponent(mxGraph) - Constructor for class com.mxgraph.swing.mxGraphComponent
 
mxGraphComponent.mxGraphControl - Class in com.mxgraph.swing
 
mxGraphComponent.mxGraphControl() - Constructor for class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
mxGraphComponent.mxMouseRedirector - Class in com.mxgraph.swing
 
mxGraphComponent.mxMouseRedirector(mxGraphComponent) - Constructor for class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
 
mxGraphGenerator - Class in com.mxgraph.analysis
 
mxGraphGenerator(mxGeneratorFunction, mxCostFunction) - Constructor for class com.mxgraph.analysis.mxGraphGenerator
 
mxGraphHandler - Class in com.mxgraph.swing.handler
 
mxGraphHandler(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxGraphHandler
 
mxGraphHierarchyEdge - Class in com.mxgraph.layout.hierarchical.model
An abstraction of a hierarchical edge for the hierarchy layout
mxGraphHierarchyEdge(List<Object>) - Constructor for class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Constructs a hierarchy edge
mxGraphHierarchyModel - Class in com.mxgraph.layout.hierarchical.model
Internal model of a hierarchical graph.
mxGraphHierarchyModel(mxHierarchicalLayout, Object[], List<Object>, Object) - Constructor for class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Creates an internal ordered graph model using the vertices passed in.
mxGraphHierarchyModel.CellVisitor - Interface in com.mxgraph.layout.hierarchical.model
Defines the interface that visitors use to perform operations upon the graph information during depth first search (dfs) or other tree-traversal strategies implemented by subclassers.
mxGraphHierarchyNode - Class in com.mxgraph.layout.hierarchical.model
An abstraction of an internal node in the hierarchy layout
mxGraphHierarchyNode(Object) - Constructor for class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Constructs an internal node to represent the specified real graph cell
mxGraphHierarchyRank - Class in com.mxgraph.layout.hierarchical.model
An abstraction of a rank in the hierarchy layout.
mxGraphHierarchyRank() - Constructor for class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyRank
 
mxGraphics2DCanvas - Class in com.mxgraph.canvas
An implementation of a canvas that uses Graphics2D for painting.
mxGraphics2DCanvas() - Constructor for class com.mxgraph.canvas.mxGraphics2DCanvas
Constructs a new graphics canvas with an empty graphics object.
mxGraphics2DCanvas(Graphics2D) - Constructor for class com.mxgraph.canvas.mxGraphics2DCanvas
Constructs a new graphics canvas for the given graphics object.
mxGraphicsCanvas2D - Class in com.mxgraph.canvas
Used for exporting images.
mxGraphicsCanvas2D(Graphics2D) - Constructor for class com.mxgraph.canvas.mxGraphicsCanvas2D
Constructs a new graphics export canvas.
mxGraphicsCanvas2D.CanvasState - Class in com.mxgraph.canvas
 
mxGraphicsCanvas2D.CanvasState() - Constructor for class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
mxGraphLayout - Class in com.mxgraph.layout
Abstract bass class for layouts
mxGraphLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxGraphLayout
Constructs a new fast organic layout for the specified graph.
mxGraphMlCodec - Class in com.mxgraph.io
Parses a GraphML .graphml file and imports it in the given graph.
See wikipedia.org/wiki/GraphML for more on GraphML.
mxGraphMlCodec() - Constructor for class com.mxgraph.io.mxGraphMlCodec
 
mxGraphMlConstants - Class in com.mxgraph.io.graphml
This class contains constants used in the Import of gml documents.
mxGraphMlConstants() - Constructor for class com.mxgraph.io.graphml.mxGraphMlConstants
 
mxGraphMlData - Class in com.mxgraph.io.graphml
Represents a Data element in the GML Structure.
mxGraphMlData(String, String, String, mxGraphMlShapeEdge, mxGraphMlShapeNode) - Constructor for class com.mxgraph.io.graphml.mxGraphMlData
Construct a data with the params values.
mxGraphMlData(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlData
Construct a data from one xml data element.
mxGraphMlData() - Constructor for class com.mxgraph.io.graphml.mxGraphMlData
Construct an empty data.
mxGraphMlEdge - Class in com.mxgraph.io.graphml
Represents a Data element in the GML Structure.
mxGraphMlEdge(String, String, String, String) - Constructor for class com.mxgraph.io.graphml.mxGraphMlEdge
Construct an edge with source and target.
mxGraphMlEdge(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlEdge
Construct an edge from a xml edge element.
mxGraphMlGraph - Class in com.mxgraph.io.graphml
Represents a Graph element in the GML Structure.
mxGraphMlGraph(String, String) - Constructor for class com.mxgraph.io.graphml.mxGraphMlGraph
Constructs a graph with id and edge default direction.
mxGraphMlGraph() - Constructor for class com.mxgraph.io.graphml.mxGraphMlGraph
Constructs an empty graph.
mxGraphMlGraph(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlGraph
Constructs a graph from a xml graph element.
mxGraphMlKey - Class in com.mxgraph.io.graphml
Represents a Key element in the GML Structure.
mxGraphMlKey(String, mxGraphMlKey.keyForValues, String, mxGraphMlKey.keyTypeValues) - Constructor for class com.mxgraph.io.graphml.mxGraphMlKey
Construct a key with the given parameters.
mxGraphMlKey(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlKey
Construct a key from a xml key element.
mxGraphMlKey.keyForValues - Enum in com.mxgraph.io.graphml
Possibles values for the keyFor Attribute
mxGraphMlKey.keyTypeValues - Enum in com.mxgraph.io.graphml
Possibles values for the keyType Attribute.
mxGraphMlKeyManager - Class in com.mxgraph.io.graphml
This is a singleton class that contains a map with the key elements of the document.
mxGraphMlNode - Class in com.mxgraph.io.graphml
Represents a Data element in the GML Structure.
mxGraphMlNode(String, mxGraphMlData) - Constructor for class com.mxgraph.io.graphml.mxGraphMlNode
Construct a node with Id and one data element
mxGraphMlNode(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlNode
Construct a Node from a xml Node Element.
mxGraphMlPort - Class in com.mxgraph.io.graphml
Represents a Port element in the GML Structure.
mxGraphMlPort(String) - Constructor for class com.mxgraph.io.graphml.mxGraphMlPort
Construct a Port with name.
mxGraphMlPort(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlPort
Construct a Port from a xml port Element.
mxGraphMlShapeEdge - Class in com.mxgraph.io.graphml
This class represents the properties of a JGraph edge.
mxGraphMlShapeEdge(String, String) - Constructor for class com.mxgraph.io.graphml.mxGraphMlShapeEdge
Construct a Shape Edge with text and style.
mxGraphMlShapeEdge(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlShapeEdge
Constructs a ShapeEdge from a xml shapeEdgeElement.
mxGraphMlShapeEdge() - Constructor for class com.mxgraph.io.graphml.mxGraphMlShapeEdge
Construct an empty Shape Edge Element.
mxGraphMlShapeNode - Class in com.mxgraph.io.graphml
 
mxGraphMlShapeNode(String, String, String, String, String) - Constructor for class com.mxgraph.io.graphml.mxGraphMlShapeNode
Construct a shape Node with the given parameters
mxGraphMlShapeNode() - Constructor for class com.mxgraph.io.graphml.mxGraphMlShapeNode
Construct an empty shape Node
mxGraphMlShapeNode(Element) - Constructor for class com.mxgraph.io.graphml.mxGraphMlShapeNode
Construct a Shape Node from a xml Shape Node Element.
mxGraphMlUtils - Class in com.mxgraph.io.graphml
This class implements several GML utility methods.
mxGraphMlUtils() - Constructor for class com.mxgraph.io.graphml.mxGraphMlUtils
 
mxGraphModel - Class in com.mxgraph.model
Extends mxEventSource to implement a graph model.
mxGraphModel() - Constructor for class com.mxgraph.model.mxGraphModel
Constructs a new empty graph model.
mxGraphModel(Object) - Constructor for class com.mxgraph.model.mxGraphModel
Constructs a new graph model.
mxGraphModel.Filter - Interface in com.mxgraph.model
 
mxGraphModel.mxChildChange - Class in com.mxgraph.model
 
mxGraphModel.mxChildChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxChildChange
 
mxGraphModel.mxChildChange(mxGraphModel, Object, Object) - Constructor for class com.mxgraph.model.mxGraphModel.mxChildChange
 
mxGraphModel.mxChildChange(mxGraphModel, Object, Object, int) - Constructor for class com.mxgraph.model.mxGraphModel.mxChildChange
 
mxGraphModel.mxCollapseChange - Class in com.mxgraph.model
 
mxGraphModel.mxCollapseChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
mxGraphModel.mxCollapseChange(mxGraphModel, Object, boolean) - Constructor for class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
mxGraphModel.mxGeometryChange - Class in com.mxgraph.model
 
mxGraphModel.mxGeometryChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
mxGraphModel.mxGeometryChange(mxGraphModel, Object, mxGeometry) - Constructor for class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
mxGraphModel.mxRootChange - Class in com.mxgraph.model
 
mxGraphModel.mxRootChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxRootChange
 
mxGraphModel.mxRootChange(mxGraphModel, Object) - Constructor for class com.mxgraph.model.mxGraphModel.mxRootChange
 
mxGraphModel.mxStyleChange - Class in com.mxgraph.model
 
mxGraphModel.mxStyleChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxStyleChange
 
mxGraphModel.mxStyleChange(mxGraphModel, Object, String) - Constructor for class com.mxgraph.model.mxGraphModel.mxStyleChange
 
mxGraphModel.mxTerminalChange - Class in com.mxgraph.model
 
mxGraphModel.mxTerminalChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
mxGraphModel.mxTerminalChange(mxGraphModel, Object, Object, boolean) - Constructor for class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
mxGraphModel.mxValueChange - Class in com.mxgraph.model
 
mxGraphModel.mxValueChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxValueChange
 
mxGraphModel.mxValueChange(mxGraphModel, Object, Object) - Constructor for class com.mxgraph.model.mxGraphModel.mxValueChange
 
mxGraphModel.mxVisibleChange - Class in com.mxgraph.model
 
mxGraphModel.mxVisibleChange() - Constructor for class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
mxGraphModel.mxVisibleChange(mxGraphModel, Object, boolean) - Constructor for class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
mxGraphOutline - Class in com.mxgraph.swing
An outline view for a specific graph component.
mxGraphOutline(mxGraphComponent) - Constructor for class com.mxgraph.swing.mxGraphOutline
 
mxGraphOutline.MouseTracker - Class in com.mxgraph.swing
 
mxGraphOutline.MouseTracker() - Constructor for class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
mxGraphProperties - Class in com.mxgraph.analysis
Constants for graph structure properties
mxGraphProperties() - Constructor for class com.mxgraph.analysis.mxGraphProperties
 
mxGraphProperties.GraphType - Enum in com.mxgraph.analysis
 
mxGraphSelectionModel - Class in com.mxgraph.view
Implements the selection model for a graph.
mxGraphSelectionModel(mxGraph) - Constructor for class com.mxgraph.view.mxGraphSelectionModel
Constructs a new selection model for the specified graph.
mxGraphSelectionModel.mxSelectionChange - Class in com.mxgraph.view
 
mxGraphSelectionModel.mxSelectionChange(mxGraphSelectionModel, Collection<Object>, Collection<Object>) - Constructor for class com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange
 
mxGraphStructure - Class in com.mxgraph.analysis
 
mxGraphStructure() - Constructor for class com.mxgraph.analysis.mxGraphStructure
 
mxGraphTransferable - Class in com.mxgraph.swing.util
 
mxGraphTransferable(Object[], mxRectangle) - Constructor for class com.mxgraph.swing.util.mxGraphTransferable
 
mxGraphTransferable(Object[], mxRectangle, ImageIcon) - Constructor for class com.mxgraph.swing.util.mxGraphTransferable
 
mxGraphTransferHandler - Class in com.mxgraph.swing.handler
 
mxGraphTransferHandler() - Constructor for class com.mxgraph.swing.handler.mxGraphTransferHandler
 
mxGraphView - Class in com.mxgraph.view
Implements a view for the graph.
mxGraphView(mxGraph) - Constructor for class com.mxgraph.view.mxGraphView
Constructs a new view for the given graph.
mxGraphView.mxCurrentRootChange - Class in com.mxgraph.view
Action to change the current root in a view.
mxGraphView.mxCurrentRootChange(mxGraphView, Object) - Constructor for class com.mxgraph.view.mxGraphView.mxCurrentRootChange
Constructs a change of the current root in the given view.
mxGraphViewImageReader - Class in com.mxgraph.reader
A converter that renders display XML data onto a graphics canvas.
mxGraphViewImageReader() - Constructor for class com.mxgraph.reader.mxGraphViewImageReader
Constructs a new reader with a transparent background.
mxGraphViewImageReader(Color) - Constructor for class com.mxgraph.reader.mxGraphViewImageReader
Constructs a new reader with the given background color.
mxGraphViewImageReader(Color, int) - Constructor for class com.mxgraph.reader.mxGraphViewImageReader
Constructs a new reader with a transparent background.
mxGraphViewImageReader(Color, int, boolean) - Constructor for class com.mxgraph.reader.mxGraphViewImageReader
Constructs a new reader with a transparent background.
mxGraphViewImageReader(Color, int, boolean, boolean) - Constructor for class com.mxgraph.reader.mxGraphViewImageReader
Constructs a new reader with a transparent background.
mxGraphViewReader - Class in com.mxgraph.reader
An abstract converter that renders display XML data onto a canvas.
mxGraphViewReader() - Constructor for class com.mxgraph.reader.mxGraphViewReader
 
mxHexagonShape - Class in com.mxgraph.shape
 
mxHexagonShape() - Constructor for class com.mxgraph.shape.mxHexagonShape
 
mxHierarchicalLayout - Class in com.mxgraph.layout.hierarchical
The top level compound layout of the hierarchical layout.
mxHierarchicalLayout(mxGraph) - Constructor for class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Constructs a hierarchical layout
mxHierarchicalLayout(mxGraph, int) - Constructor for class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Constructs a hierarchical layout
mxHierarchicalLayoutStage - Interface in com.mxgraph.layout.hierarchical.stage
The specific layout interface for hierarchical layouts.
mxHtmlCanvas - Class in com.mxgraph.canvas
An implementation of a canvas that uses HTML for painting.
mxHtmlCanvas() - Constructor for class com.mxgraph.canvas.mxHtmlCanvas
Constructs a new HTML canvas for the specified dimension and scale.
mxHtmlCanvas(Document) - Constructor for class com.mxgraph.canvas.mxHtmlCanvas
Constructs a new HTML canvas for the specified bounds, scale and background color.
mxHtmlColor - Class in com.mxgraph.util
Contains various helper methods for use with mxGraph.
mxHtmlColor() - Constructor for class com.mxgraph.util.mxHtmlColor
 
mxHtmlTextShape - Class in com.mxgraph.shape
To set global CSS for all HTML labels, use the following code:
mxHtmlTextShape() - Constructor for class com.mxgraph.shape.mxHtmlTextShape
 
mxICanvas - Interface in com.mxgraph.canvas
Defines the requirements for a canvas that paints the vertices and edges of a graph.
mxICanvas2D - Interface in com.mxgraph.canvas
Requirements for implementing technologies: - Path rendering (move, line, quad, curve, arc) - Images, flip v/h, aspect, alpha (PNG, JPG, GIF) - Linear gradients (in all four directions) - Transparency, fill and stroke - Rotation, flip v/h - Font rendering - Dash patterns - Clipping by path (not just rectangle) - Alpha gradients (for glass effect) - Encode result as image (PNG, JPG)
mxICell - Interface in com.mxgraph.model
Defines the requirements for a cell that can be used in an mxGraphModel.
mxICellEditor - Interface in com.mxgraph.swing.view
 
mxICellOverlay - Interface in com.mxgraph.swing.util
 
mxICostFunction - Interface in com.mxgraph.analysis
The cost function takes a cell and returns it's cost as a double.
mxIGraphLayout - Interface in com.mxgraph.layout
Defines the requirements for an object that implements a graph layout.
mxIGraphModel - Interface in com.mxgraph.model
Defines the requirements for a graph model to be used with mxGraph.
mxIGraphModel.mxAtomicGraphModelChange - Class in com.mxgraph.model
Defines the interface for an atomic change of the graph model.
mxIGraphModel.mxAtomicGraphModelChange() - Constructor for class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
Constructs an empty atomic graph model change.
mxIGraphModel.mxAtomicGraphModelChange(mxIGraphModel) - Constructor for class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
Constructs an atomic graph model change for the given model.
mxImage - Class in com.mxgraph.util
Implements a 2-dimensional point with double precision coordinates.
mxImage(String, int, int) - Constructor for class com.mxgraph.util.mxImage
Constructs a new point at (0, 0).
mxImageBundle - Class in com.mxgraph.util
Maps from keys to base64 encoded images or file locations.
mxImageBundle() - Constructor for class com.mxgraph.util.mxImageBundle
 
mxImageCanvas - Class in com.mxgraph.canvas
An implementation of a canvas that uses Graphics2D for painting.
mxImageCanvas(mxGraphics2DCanvas, int, int, Color, boolean) - Constructor for class com.mxgraph.canvas.mxImageCanvas
 
mxImageShape - Class in com.mxgraph.shape
A rectangular shape that contains a single image
mxImageShape() - Constructor for class com.mxgraph.shape.mxImageShape
 
mxIMarker - Interface in com.mxgraph.shape
 
mxInsertHandler - Class in com.mxgraph.swing.handler
 
mxInsertHandler(mxGraphComponent, String) - Constructor for class com.mxgraph.swing.handler.mxInsertHandler
 
mxInteractiveCanvas - Class in com.mxgraph.swing.view
 
mxInteractiveCanvas() - Constructor for class com.mxgraph.swing.view.mxInteractiveCanvas
 
mxInteractiveCanvas(ImageObserver) - Constructor for class com.mxgraph.swing.view.mxInteractiveCanvas
 
mxIShape - Interface in com.mxgraph.shape
 
mxITextShape - Interface in com.mxgraph.shape
 
mxKeyboardHandler - Class in com.mxgraph.swing.handler
 
mxKeyboardHandler(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxKeyboardHandler
 
mxLabelShape - Class in com.mxgraph.shape
 
mxLabelShape() - Constructor for class com.mxgraph.shape.mxLabelShape
 
mxLayoutManager - Class in com.mxgraph.view
Implements a layout manager that updates the layout for a given transaction.
mxLayoutManager(mxGraph) - Constructor for class com.mxgraph.view.mxLayoutManager
 
mxLightweightLabel - Class in com.mxgraph.util
 
mxLightweightLabel() - Constructor for class com.mxgraph.util.mxLightweightLabel
 
mxLine - Class in com.mxgraph.util
Implements a line with double precision coordinates.
mxLine(mxPoint, mxPoint) - Constructor for class com.mxgraph.util.mxLine
Creates a new line
mxLine(double, double, mxPoint) - Constructor for class com.mxgraph.util.mxLine
Creates a new line
mxLineShape - Class in com.mxgraph.shape
 
mxLineShape() - Constructor for class com.mxgraph.shape.mxLineShape
 
mxMarkerRegistry - Class in com.mxgraph.shape
 
mxMarkerRegistry() - Constructor for class com.mxgraph.shape.mxMarkerRegistry
 
mxMedianHybridCrossingReduction - Class in com.mxgraph.layout.hierarchical.stage
Performs a vertex ordering within ranks as described by Gansner et al 1993
mxMedianHybridCrossingReduction(mxHierarchicalLayout) - Constructor for class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
Constructor that has the roots specified
mxMedianHybridCrossingReduction.MedianCellSorter - Class in com.mxgraph.layout.hierarchical.stage
A utility class used to track cells whilst sorting occurs on the median values.
mxMedianHybridCrossingReduction.MedianCellSorter() - Constructor for class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction.MedianCellSorter
 
mxMinimumCycleRemover - Class in com.mxgraph.layout.hierarchical.stage
An implementation of the first stage of the Sugiyama layout.
mxMinimumCycleRemover(mxHierarchicalLayout) - Constructor for class com.mxgraph.layout.hierarchical.stage.mxMinimumCycleRemover
Constructor that has the roots specified
mxModelCodec - Class in com.mxgraph.io
Codec for mxGraphModels.
mxModelCodec() - Constructor for class com.mxgraph.io.mxModelCodec
Constructs a new model codec.
mxModelCodec(Object) - Constructor for class com.mxgraph.io.mxModelCodec
Constructs a new model codec for the given template.
mxModelCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxModelCodec
Constructs a new model codec for the given arguments.
mxMorphing - Class in com.mxgraph.swing.util
Provides animation effects.
mxMorphing(mxGraphComponent) - Constructor for class com.mxgraph.swing.util.mxMorphing
Constructs a new morphing instance for the given graph.
mxMorphing(mxGraphComponent, int, double, int) - Constructor for class com.mxgraph.swing.util.mxMorphing
Constructs a new morphing instance for the given graph.
mxMouseAdapter - Class in com.mxgraph.swing.util
 
mxMouseAdapter() - Constructor for class com.mxgraph.swing.util.mxMouseAdapter
 
mxMovePreview - Class in com.mxgraph.swing.handler
Connection handler creates new connections between cells.
mxMovePreview(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxMovePreview
Constructs a new rubberband selection for the given graph component.
mxMultiplicity - Class in com.mxgraph.view
 
mxMultiplicity(boolean, String, String, String, int, String, Collection<String>, String, String, boolean) - Constructor for class com.mxgraph.view.mxMultiplicity
 
mxObjectCodec - Class in com.mxgraph.io
Generic codec for Java objects.
mxObjectCodec(Object) - Constructor for class com.mxgraph.io.mxObjectCodec
Constructs a new codec for the specified template object.
mxObjectCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxObjectCodec
Constructs a new codec for the specified template object.
mxOrganicLayout - Class in com.mxgraph.layout
An implementation of a simulated annealing layout, based on "Drawing Graphs Nicely Using Simulated Annealing" by Davidson and Harel (1996).
mxOrganicLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxOrganicLayout
Constructor for mxOrganicLayout.
mxOrganicLayout(mxGraph, Rectangle2D) - Constructor for class com.mxgraph.layout.mxOrganicLayout
Constructor for mxOrganicLayout.
mxOrganicLayout.CellWrapper - Class in com.mxgraph.layout
Internal representation of a node or edge that holds cached information to enable the layout to perform more quickly and to simplify the code
mxOrganicLayout.CellWrapper(Object) - Constructor for class com.mxgraph.layout.mxOrganicLayout.CellWrapper
Constructs a new CellWrapper
mxOrthogonalLayout - Class in com.mxgraph.layout.orthogonal
 
mxOrthogonalLayout(mxGraph) - Constructor for class com.mxgraph.layout.orthogonal.mxOrthogonalLayout
 
mxOrthogonalModel - Class in com.mxgraph.layout.orthogonal.model
A custom graph model
mxOrthogonalModel(mxGraph) - Constructor for class com.mxgraph.layout.orthogonal.model.mxOrthogonalModel
 
mxPanningHandler - Class in com.mxgraph.swing.handler
 
mxPanningHandler(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxPanningHandler
 
mxParallelEdgeLayout - Class in com.mxgraph.layout
 
mxParallelEdgeLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxParallelEdgeLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxParallelEdgeLayout(mxGraph, int) - Constructor for class com.mxgraph.layout.mxParallelEdgeLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout - Class in com.mxgraph.layout
 
mxPartitionLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph, boolean) - Constructor for class com.mxgraph.layout.mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph, boolean, int) - Constructor for class com.mxgraph.layout.mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph, boolean, int, int) - Constructor for class com.mxgraph.layout.mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPerimeter - Class in com.mxgraph.view
Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER.
mxPerimeter() - Constructor for class com.mxgraph.view.mxPerimeter
 
mxPerimeter.mxPerimeterFunction - Interface in com.mxgraph.view
Defines the requirements for a perimeter function.
mxPngEncodeParam - Class in com.mxgraph.util.png
An instance of ImageEncodeParam for encoding images in the PNG format.
mxPngEncodeParam() - Constructor for class com.mxgraph.util.png.mxPngEncodeParam
 
mxPngEncodeParam.Gray - Class in com.mxgraph.util.png
 
mxPngEncodeParam.Gray() - Constructor for class com.mxgraph.util.png.mxPngEncodeParam.Gray
Constructs an instance of PNGEncodeParam.Gray.
mxPngEncodeParam.Palette - Class in com.mxgraph.util.png
 
mxPngEncodeParam.Palette() - Constructor for class com.mxgraph.util.png.mxPngEncodeParam.Palette
Constructs an instance of PNGEncodeParam.Palette.
mxPngEncodeParam.RGB - Class in com.mxgraph.util.png
 
mxPngEncodeParam.RGB() - Constructor for class com.mxgraph.util.png.mxPngEncodeParam.RGB
Constructs an instance of PNGEncodeParam.RGB.
mxPngImageEncoder - Class in com.mxgraph.util.png
An ImageEncoder for the PNG file format.
mxPngImageEncoder(OutputStream, mxPngEncodeParam) - Constructor for class com.mxgraph.util.png.mxPngImageEncoder
 
mxPngSuggestedPaletteEntry - Class in com.mxgraph.util.png
A class representing the fields of a PNG suggested palette entry.
mxPngSuggestedPaletteEntry() - Constructor for class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
 
mxPngTextDecoder - Class in com.mxgraph.util.png
Utility class to extract the compression text portion of a PNG
mxPngTextDecoder() - Constructor for class com.mxgraph.util.png.mxPngTextDecoder
 
mxPoint - Class in com.mxgraph.util
Implements a 2-dimensional point with double precision coordinates.
mxPoint() - Constructor for class com.mxgraph.util.mxPoint
Constructs a new point at (0, 0).
mxPoint(Point2D) - Constructor for class com.mxgraph.util.mxPoint
Constructs a new point at the location of the given point.
mxPoint(mxPoint) - Constructor for class com.mxgraph.util.mxPoint
Constructs a new point at the location of the given point.
mxPoint(double, double) - Constructor for class com.mxgraph.util.mxPoint
Constructs a new point at (x, y).
mxPointPair - Class in com.mxgraph.layout.orthogonal.model
 
mxPointPair() - Constructor for class com.mxgraph.layout.orthogonal.model.mxPointPair
 
mxPointSequence - Class in com.mxgraph.layout.orthogonal.model
 
mxPointSequence() - Constructor for class com.mxgraph.layout.orthogonal.model.mxPointSequence
 
mxRectangle - Class in com.mxgraph.util
Implements a 2-dimensional rectangle with double precision coordinates.
mxRectangle() - Constructor for class com.mxgraph.util.mxRectangle
Constructs a new rectangle at (0, 0) with the width and height set to 0.
mxRectangle(Rectangle2D) - Constructor for class com.mxgraph.util.mxRectangle
Constructs a copy of the given rectangle.
mxRectangle(mxRectangle) - Constructor for class com.mxgraph.util.mxRectangle
Constructs a copy of the given rectangle.
mxRectangle(double, double, double, double) - Constructor for class com.mxgraph.util.mxRectangle
Constructs a rectangle using the given parameters.
mxRectangleShape - Class in com.mxgraph.shape
 
mxRectangleShape() - Constructor for class com.mxgraph.shape.mxRectangleShape
 
mxResources - Class in com.mxgraph.util
 
mxResources() - Constructor for class com.mxgraph.util.mxResources
 
mxRhombusShape - Class in com.mxgraph.shape
 
mxRhombusShape() - Constructor for class com.mxgraph.shape.mxRhombusShape
 
mxRootChangeCodec - Class in com.mxgraph.io
Codec for mxChildChanges.
mxRootChangeCodec() - Constructor for class com.mxgraph.io.mxRootChangeCodec
Constructs a new model codec.
mxRootChangeCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxRootChangeCodec
Constructs a new model codec for the given arguments.
mxRotationHandler - Class in com.mxgraph.swing.handler
Basic example of implementing a handler for rotation.
mxRotationHandler(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxRotationHandler
Constructs a new rotation handler.
mxRubberband - Class in com.mxgraph.swing.handler
Implements a rubberband selection.
mxRubberband(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxRubberband
Constructs a new rubberband selection for the given graph component.
mxSaxOutputHandler - Class in com.mxgraph.reader
XMLReader reader = SAXParserFactory.newInstance().newSAXParser() .getXMLReader(); reader.setContentHandler(new mxSaxExportHandler( new mxGraphicsExportCanvas(g2))); reader.parse(new InputSource(new StringReader(xml)));
mxSaxOutputHandler(mxICanvas2D) - Constructor for class com.mxgraph.reader.mxSaxOutputHandler
 
mxSaxOutputHandler.IElementHandler - Interface in com.mxgraph.reader
 
mxSegment - Class in com.mxgraph.layout.orthogonal.model
 
mxSegment() - Constructor for class com.mxgraph.layout.orthogonal.model.mxSegment
 
mxSelectionCellsHandler - Class in com.mxgraph.swing.handler
 
mxSelectionCellsHandler(mxGraphComponent) - Constructor for class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
mxSession - Class in com.mxgraph.sharing
Implements a session that may be attached to a shared diagram.
mxSession(String, mxSharedState) - Constructor for class com.mxgraph.sharing.mxSession
Constructs a new session with the given ID.
mxSharedGraphModel - Class in com.mxgraph.sharing
Implements a diagram that may be shared among multiple sessions.
mxSharedGraphModel(mxGraphModel) - Constructor for class com.mxgraph.sharing.mxSharedGraphModel
Constructs a new diagram with the given model.
mxSharedState - Class in com.mxgraph.sharing
Implements a diagram that may be shared among multiple sessions.
mxSharedState(String) - Constructor for class com.mxgraph.sharing.mxSharedState
Constructs a new diagram with the given state.
mxSharedState.mxDiagramChangeListener - Interface in com.mxgraph.sharing
Defines the requirements for an object that listens to changes on the shared diagram.
mxSpaceManager - Class in com.mxgraph.view
 
mxSpaceManager(mxGraph) - Constructor for class com.mxgraph.view.mxSpaceManager
 
mxSpline - Class in com.mxgraph.util
 
mxSpline(List<mxPoint>) - Constructor for class com.mxgraph.util.mxSpline
 
mxSpline1D - Class in com.mxgraph.util
One dimension of a spline curve
mxSpline1D(double[], double[]) - Constructor for class com.mxgraph.util.mxSpline1D
Creates a new Spline.
mxStackLayout - Class in com.mxgraph.layout
 
mxStackLayout(mxGraph) - Constructor for class com.mxgraph.layout.mxStackLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph, boolean) - Constructor for class com.mxgraph.layout.mxStackLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph, boolean, int) - Constructor for class com.mxgraph.layout.mxStackLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph, boolean, int, int, int, int) - Constructor for class com.mxgraph.layout.mxStackLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStencil - Class in com.mxgraph.shape
Implements a stencil for the given XML definition.
mxStencil(Element) - Constructor for class com.mxgraph.shape.mxStencil
Constructs a new stencil for the given mxGraph shape description.
mxStencilRegistry - Class in com.mxgraph.shape
 
mxStencilRegistry() - Constructor for class com.mxgraph.shape.mxStencilRegistry
 
mxStencilShape - Class in com.mxgraph.shape
Stencil shape drawing that takes an XML definition of the shape and renders it.
mxStencilShape() - Constructor for class com.mxgraph.shape.mxStencilShape
 
mxStencilShape(String) - Constructor for class com.mxgraph.shape.mxStencilShape
Constructs a new stencil for the given Dia shape description.
mxStencilShape(Document) - Constructor for class com.mxgraph.shape.mxStencilShape
 
mxStencilShape.svgShape - Class in com.mxgraph.shape
 
mxStencilShape.svgShape(Shape, Map<String, Object>) - Constructor for class com.mxgraph.shape.mxStencilShape.svgShape
 
mxStyleRegistry - Class in com.mxgraph.view
Singleton class that acts as a global converter from string to object values in a style.
mxStyleRegistry() - Constructor for class com.mxgraph.view.mxStyleRegistry
 
mxStylesheet - Class in com.mxgraph.view
Defines the appearance of the cells in a graph.
mxStylesheet() - Constructor for class com.mxgraph.view.mxStylesheet
Constructs a new stylesheet and assigns default styles.
mxStylesheetCodec - Class in com.mxgraph.io
Codec for mxStylesheets.
mxStylesheetCodec() - Constructor for class com.mxgraph.io.mxStylesheetCodec
Constructs a new model codec.
mxStylesheetCodec(Object) - Constructor for class com.mxgraph.io.mxStylesheetCodec
Constructs a new stylesheet codec for the given template.
mxStylesheetCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxStylesheetCodec
Constructs a new model codec for the given arguments.
mxStyleUtils - Class in com.mxgraph.util
Contains various style helper methods for use with mxGraph.
mxStyleUtils() - Constructor for class com.mxgraph.util.mxStyleUtils
 
mxSvgCanvas - Class in com.mxgraph.canvas
An implementation of a canvas that uses SVG for painting.
mxSvgCanvas() - Constructor for class com.mxgraph.canvas.mxSvgCanvas
Constructs a new SVG canvas for the specified dimension and scale.
mxSvgCanvas(Document) - Constructor for class com.mxgraph.canvas.mxSvgCanvas
Constructs a new SVG canvas for the specified bounds, scale and background color.
mxSwimlaneManager - Class in com.mxgraph.view
Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if siblings is true, and its ancestors, if bubbling is true.
mxSwimlaneManager(mxGraph) - Constructor for class com.mxgraph.view.mxSwimlaneManager
 
mxSwimlaneShape - Class in com.mxgraph.shape
 
mxSwimlaneShape() - Constructor for class com.mxgraph.shape.mxSwimlaneShape
 
mxSwingConstants - Class in com.mxgraph.swing.util
 
mxSwingConstants() - Constructor for class com.mxgraph.swing.util.mxSwingConstants
 
mxTemporaryCellStates - Class in com.mxgraph.view
 
mxTemporaryCellStates(mxGraphView) - Constructor for class com.mxgraph.view.mxTemporaryCellStates
Constructs a new temporary cell states instance.
mxTemporaryCellStates(mxGraphView, double) - Constructor for class com.mxgraph.view.mxTemporaryCellStates
Constructs a new temporary cell states instance.
mxTemporaryCellStates(mxGraphView, double, Object[]) - Constructor for class com.mxgraph.view.mxTemporaryCellStates
Constructs a new temporary cell states instance.
mxTerminalChangeCodec - Class in com.mxgraph.io
Codec for mxChildChanges.
mxTerminalChangeCodec() - Constructor for class com.mxgraph.io.mxTerminalChangeCodec
Constructs a new model codec.
mxTerminalChangeCodec(Object, String[], String[], Map<String, String>) - Constructor for class com.mxgraph.io.mxTerminalChangeCodec
Constructs a new model codec for the given arguments.
mxTraversal - Class in com.mxgraph.analysis
Implements a collection of utility methods for traversing the graph structure.
mxTraversal() - Constructor for class com.mxgraph.analysis.mxTraversal
 
mxTriangleShape - Class in com.mxgraph.shape
 
mxTriangleShape() - Constructor for class com.mxgraph.shape.mxTriangleShape
 
mxUndoableEdit - Class in com.mxgraph.util
Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoableEdit(Object) - Constructor for class com.mxgraph.util.mxUndoableEdit
Constructs a new undoable edit for the given source.
mxUndoableEdit(Object, boolean) - Constructor for class com.mxgraph.util.mxUndoableEdit
Constructs a new undoable edit for the given source.
mxUndoableEdit.mxUndoableChange - Interface in com.mxgraph.util
Defines the requirements for an undoable change.
mxUndoManager - Class in com.mxgraph.util
Implements an undo history.
mxUndoManager() - Constructor for class com.mxgraph.util.mxUndoManager
Constructs a new undo manager with a default history size.
mxUndoManager(int) - Constructor for class com.mxgraph.util.mxUndoManager
Constructs a new undo manager for the specified size.
mxUnionFind - Class in com.mxgraph.analysis
Implements a union find structure that uses union by rank and path compression.
mxUnionFind(Object[]) - Constructor for class com.mxgraph.analysis.mxUnionFind
Constructs a union find structure and initializes it with the specified elements.
mxUnionFind.Node - Class in com.mxgraph.analysis
A class that defines the identity of a set.
mxUnionFind.Node() - Constructor for class com.mxgraph.analysis.mxUnionFind.Node
 
mxUtils - Class in com.mxgraph.util
Contains various helper methods for use with mxGraph.
mxUtils() - Constructor for class com.mxgraph.util.mxUtils
 
mxVertexHandler - Class in com.mxgraph.swing.handler
 
mxVertexHandler(mxGraphComponent, mxCellState) - Constructor for class com.mxgraph.swing.handler.mxVertexHandler
 
mxVmlCanvas - Class in com.mxgraph.canvas
An implementation of a canvas that uses VML for painting.
mxVmlCanvas() - Constructor for class com.mxgraph.canvas.mxVmlCanvas
Constructs a new VML canvas for the specified dimension and scale.
mxVmlCanvas(Document) - Constructor for class com.mxgraph.canvas.mxVmlCanvas
Constructs a new VML canvas for the specified bounds, scale and background color.
mxXmlUtils - Class in com.mxgraph.util
Contains various XML helper methods for use with mxGraph.
mxXmlUtils() - Constructor for class com.mxgraph.util.mxXmlUtils
 

N

name - Variable in class com.mxgraph.shape.mxStencilShape
 
name - Variable in class com.mxgraph.util.mxEventObject
Holds the name of the event.
name - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The name of the entry.
neighbours - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Local copy of cell neighbours.
nestedBestRanks - Variable in class com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction
Stores each rank as a collection of cells in the best order found for each layer so far
newPath - Variable in class com.mxgraph.util.svg.AWTPolylineProducer
Is the current path a new one?
next - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polyline
 
next - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
next() - Method in interface com.mxgraph.util.svg.ExtendedPathIterator
 
next - Variable in class com.mxgraph.util.svg.StringNormalizingReader
The index of the next character.
nextId - Variable in class com.mxgraph.model.mxGraphModel
Specifies the next Id to be created.
nextLayerConnectedCache - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
A store of connections to the layer above for speed
nextLayerConnectedCells - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
A cached version of the cells this cell connects to on the next layer up
NODE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
nodeDistance - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Holds the nodeDistance.
nodeDistributionCostFactor - Variable in class com.mxgraph.layout.mxOrganicLayout
Cost factor applied to energy calculations involving the general node distribution of the graph.
nodeListHasTag(NodeList, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Checks if the NodeList has a Node with name = tag.
nodeListTag(NodeList, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Returns the first Element that has name = tag in Node List.
nodeListTags(NodeList, String) - Static method in class com.mxgraph.io.graphml.mxGraphMlUtils
Returns a list with the elements included in the Node List that have name = tag.
nodes - Variable in class com.mxgraph.analysis.mxFibonacciHeap
Maps from elements to nodes
nodes - Variable in class com.mxgraph.analysis.mxUnionFind
Maps from elements to nodes
NONE - Static variable in class com.mxgraph.util.mxConstants
Defines the value for none.
NormalizingReader - Class in com.mxgraph.util.svg
This class represents a reader which normalizes the line break: \n, \r, \r\n are replaced by \n.
NormalizingReader() - Constructor for class com.mxgraph.util.svg.NormalizingReader
 
NOTIFY - Static variable in class com.mxgraph.util.mxEvent
Holds the name for the norify event.
NS_SVG - Static variable in class com.mxgraph.util.mxConstants
Defines the SVG namespace.
NS_XHTML - Static variable in class com.mxgraph.util.mxConstants
Defines the XHTML namespace.
NS_XLINK - Static variable in class com.mxgraph.util.mxConstants
Defines the XLink namespace.
nudge - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
Whether or not to flip equal weight values.
nudge - Variable in class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
Whether or not to flip equal weight values.
NumberParser - Class in com.mxgraph.util.svg
This class represents a parser with support for numbers.
NumberParser() - Constructor for class com.mxgraph.util.svg.NumberParser
 

O

objects - Variable in class com.mxgraph.io.mxCodec
Maps from IDs to objects.
offset(double, double, double, double, double, double) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
offset - Variable in class com.mxgraph.model.mxGeometry
Holds the offset of the label for edges.
offset - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
offsetX - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
offsetY - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
oldBounds - Variable in class com.mxgraph.view.mxTemporaryCellStates
 
oldScale - Variable in class com.mxgraph.view.mxTemporaryCellStates
 
oldStates - Variable in class com.mxgraph.view.mxTemporaryCellStates
 
oneSpanningTree(mxAnalysisGraph, boolean, boolean) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
opacity - Variable in class com.mxgraph.swing.view.mxCellStatePreview
 
ORDER_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
orderCells(boolean) - Method in class com.mxgraph.view.mxGraph
Moves the selection cells to the front or back.
orderCells(boolean, Object[]) - Method in class com.mxgraph.view.mxGraph
Moves the given cells to the front or back.
orientation - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The position of the root node(s) relative to the laid out graph in.
orientation - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The position of the root ( start ) node(s) relative to the rest of the laid out graph
origin - Variable in class com.mxgraph.view.mxCellState
Holds the origin for all child cells.
origin - Variable in class com.mxgraph.view.mxGraph
Holds the current automatic origin.
originalCells - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Reference to the original cells for removal after a move.
origins - Variable in class com.mxgraph.swing.util.mxMorphing
Maps from cells to origins.
orthBuffer - Static variable in class com.mxgraph.view.mxEdgeStyle
 
OrthConnector - Static variable in class com.mxgraph.view.mxEdgeStyle
An orthogonal connector that avoids connecting vertices and respects port constraints
orthModel - Variable in class com.mxgraph.layout.orthogonal.mxOrthogonalLayout
 
outdegree(mxAnalysisGraph, Object) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
outlineBorder - Variable in class com.mxgraph.swing.mxGraphOutline
Not yet implemented.
output - Variable in class com.mxgraph.util.png.mxPngImageEncoder
The OutputStream associcted with this ImageEncoder.
overlays - Variable in class com.mxgraph.swing.mxGraphComponent
Maps from cells to lists of overlays.

P

p - Variable in class com.mxgraph.swing.handler.mxEdgeHandler
 
packages - Static variable in class com.mxgraph.io.mxCodecRegistry
Holds the list of known packages.
paethPredictor(int, int, int) - Static method in class com.mxgraph.util.png.mxPngEncodeParam
The Paeth predictor routine used in PNG encoding.
pageBackgroundColor - Variable in class com.mxgraph.swing.mxGraphComponent
Color of the background area if layout view.
pageBorderColor - Variable in class com.mxgraph.swing.mxGraphComponent
 
pageBreakColor - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the color of page breaks
pageBreaksVisible - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if a dashed line should be drawn between multiple pages.
pageFormat - Variable in class com.mxgraph.swing.mxGraphComponent
Background page format.
pageScale - Variable in class com.mxgraph.swing.mxGraphComponent
Defines the scaling for the background page metrics.
pageShadowColor - Variable in class com.mxgraph.swing.mxGraphComponent
 
pageVisible - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if the background page should be visible.
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxCellHandler
Paints the visible handles of this handler.
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxCellMarker
Paints the outline of the markedState with the currentColor.
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
paint(Graphics) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
paint(Graphics) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
paint(Graphics) - Method in class com.mxgraph.swing.util.mxCellOverlay
 
paint(Graphics) - Method in class com.mxgraph.swing.util.mxMorphing
 
paint(Graphics) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
PAINT - Static variable in class com.mxgraph.util.mxEvent
 
paintBackground(Graphics) - Method in class com.mxgraph.swing.mxGraphComponent
 
paintBackground(Graphics) - Method in class com.mxgraph.swing.mxGraphOutline
Paints the background.
paintBackgroundImage(Graphics) - Method in class com.mxgraph.swing.mxGraphComponent
 
paintBackgroundPage(Graphics) - Method in class com.mxgraph.swing.mxGraphComponent
 
paintComponent(Graphics) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
 
paintComponent(Graphics) - Method in class com.mxgraph.swing.mxGraphOutline
 
paintCurrentPath(boolean, boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
paintForeground(Graphics) - Method in class com.mxgraph.swing.mxGraphOutline
Paints the foreground.
paintGraph(Graphics) - Method in class com.mxgraph.swing.mxGraphOutline
Paints the graph outline.
paintGrid(Graphics) - Method in class com.mxgraph.swing.mxGraphComponent
Paints the grid onto the given graphics object.
paintHandles(Graphics) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
paintMarker(mxGraphics2DCanvas, mxCellState, boolean) - Method in class com.mxgraph.shape.mxConnectorShape
Draws the marker for the given edge.
paintMarker(mxGraphics2DCanvas, mxCellState, String, mxPoint, double, double, double, boolean) - Method in interface com.mxgraph.shape.mxIMarker
 
paintNode(mxGraphics2DCanvas, mxCellState, mxStencilShape.svgShape, double, double) - Method in class com.mxgraph.shape.mxStencilShape
 
paintPolyline(mxPoint[], boolean) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
paintPolyline(mxGraphics2DCanvas, List<mxPoint>, Map<String, Object>) - Method in class com.mxgraph.shape.mxConnectorShape
 
paintPolyline(mxGraphics2DCanvas, List<mxPoint>, Map<String, Object>) - Method in class com.mxgraph.shape.mxCurveShape
 
paintPreview(mxGraphics2DCanvas) - Method in class com.mxgraph.swing.handler.mxConnectPreview
Draws the preview using the graphics canvas.
paintPreview(mxGraphics2DCanvas) - Method in class com.mxgraph.swing.view.mxCellStatePreview
Draws the preview using the graphics canvas.
paintPreviewState(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.swing.view.mxCellStatePreview
Draws the preview using the graphics canvas.
paintRectangle(Rectangle, Color, Color) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
paintRubberband(Graphics) - Method in class com.mxgraph.swing.handler.mxRubberband
 
paintShadow(boolean, boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxBasicShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxConnectorShape
 
paintShape(mxGraphics2DCanvas, String, mxCellState, Map<String, Object>) - Method in class com.mxgraph.shape.mxCurveLabelShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxCurveShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxCylinderShape
Draws a cylinder for the given parameters.
paintShape(mxGraphics2DCanvas, String, mxCellState, Map<String, Object>) - Method in class com.mxgraph.shape.mxDefaultTextShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxDoubleEllipseShape
 
paintShape(mxGraphics2DCanvas, String, mxCellState, Map<String, Object>) - Method in class com.mxgraph.shape.mxHtmlTextShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxImageShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in interface com.mxgraph.shape.mxIShape
 
paintShape(mxGraphics2DCanvas, String, mxCellState, Map<String, Object>) - Method in interface com.mxgraph.shape.mxITextShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLabelShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxLineShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxRectangleShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxStencil
Paints the stencil for the given state.
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxStencilShape
 
paintShape(mxGraphics2DCanvas, mxCellState) - Method in class com.mxgraph.shape.mxSwimlaneShape
 
panningHandler - Variable in class com.mxgraph.swing.mxGraphComponent
 
parallelEdgeSpacing - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The distance between each parallel edge on each ranks for long edges
parallelEdgeSpacing - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The distance between each parallel edge on each ranks for long edges
parent - Variable in class com.mxgraph.analysis.mxUnionFind.Node
Reference to the parent node.
parent - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
The parent cell whose children are being laid out
parent - Variable in class com.mxgraph.layout.mxGraphLayout
The parent cell of the layout, if any
parent - Variable in class com.mxgraph.model.mxCell
Reference to the parent cell and source and target terminals for edges.
parent - Variable in class com.mxgraph.model.mxGraphModel.mxChildChange
 
parentBorder - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The border to be added around the children if the parent is to be resized using resizeParent.
parentForCellChanged(Object, Object, int) - Method in class com.mxgraph.model.mxGraphModel
Inner callback to update the parent of a cell using mxCell.insert on the parent and return the previous parent.
parentsChanged - Variable in class com.mxgraph.layout.mxCompactTreeLayout
A set of the parents that need updating based on children process as part of the layout
parse(String) - Method in class com.mxgraph.util.svg.AbstractParser
Parses the given string.
parse(String) - Method in interface com.mxgraph.util.svg.Parser
Parses the given string
parsea() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'a' command.
parseA() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'A' command.
parsec() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'c' command.
parseC() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'C' command.
parseColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Helper method that uses mxUtils.parseColor(String).
parseColor(String) - Static method in class com.mxgraph.util.mxHtmlColor
Convert a string representing a 24/32bit hex color value into a Color object.
parseColor(String) - Static method in class com.mxgraph.util.mxUtils
Convert a string representing a 24/32bit hex color value into a Color object.
parseDescription() - Method in class com.mxgraph.shape.mxStencil
Parses the description of this shape.
parseElement(Element) - Method in interface com.mxgraph.reader.mxDomOutputParser.IElementHandler
 
parseElement(String, Map<String, Object>) - Method in class com.mxgraph.reader.mxGraphViewReader
Parses the given element and paints it onto the canvas.
parseElement(Attributes) - Method in interface com.mxgraph.reader.mxSaxOutputHandler.IElementHandler
 
ParseException - Exception in com.mxgraph.util.svg
This class encapsulates a general parse error or warning.
ParseException(String, int, int) - Constructor for exception com.mxgraph.util.svg.ParseException
Creates a new ParseException.
ParseException(Exception) - Constructor for exception com.mxgraph.util.svg.ParseException
Creates a new ParseException wrapping an existing exception.
ParseException(String, Exception) - Constructor for exception com.mxgraph.util.svg.ParseException
Creates a new ParseException from an existing exception.
parseFloat() - Method in class com.mxgraph.util.svg.NumberParser
Parses the content of the buffer and converts it to a float.
parseh() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'h' command.
parseH() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'H' command.
parsel() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'l' command.
parseL() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'L' command.
parsem() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'm' command.
parseM() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'M' command.
parsePoints(String) - Static method in class com.mxgraph.reader.mxGraphViewReader
Parses the list of points into an object-oriented representation.
parseq() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'q' command.
parseQ() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'Q' command.
Parser - Interface in com.mxgraph.util.svg
This interface represents a parser.
parses() - Method in class com.mxgraph.util.svg.PathParser
Parses a 's' command.
parseS() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'S' command.
parseState(mxCellState, boolean) - Method in class com.mxgraph.reader.mxGraphViewReader
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.
parset() - Method in class com.mxgraph.util.svg.PathParser
Parses a 't' command.
parseT() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'T' command.
parsev() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'v' command.
parseV() - Method in class com.mxgraph.util.svg.PathParser
Parses a 'V' command.
parseXml(String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxXmlUtils.parseXml (Jan 2012)
parseXml(String) - Static method in class com.mxgraph.util.mxXmlUtils
Returns a new document for the given XML string.
path - Variable in class com.mxgraph.util.svg.AWTPathProducer
The temporary value of extendedGeneralPath.
path - Variable in class com.mxgraph.util.svg.AWTPolylineProducer
The current path.
path - Variable in class com.mxgraph.util.svg.ExtendedGeneralPath
The enclosed general path.
PATH_SEPARATOR - Static variable in class com.mxgraph.model.mxCellPath
Defines the separator between the path components.
PathHandler - Interface in com.mxgraph.util.svg
This interface must be implemented and then registred as the handler of a PathParser instance in order to be notified of parsing events.
pathHandler - Variable in class com.mxgraph.util.svg.PathParser
The path handler used to report parse events.
PathParser - Class in com.mxgraph.util.svg
This class implements an event-based parser for the SVG path's d attribute values.
PathParser(PathHandler) - Constructor for class com.mxgraph.util.svg.PathParser
Creates a new PathParser.
performRound() - Method in class com.mxgraph.layout.mxOrganicLayout
The main round of the algorithm.
perimeter - Variable in class com.mxgraph.view.mxConnectionConstraint
Boolean that specifies if the point should be projected onto the perimeter of the terminal.
PERIMETER_ELLIPSE - Static variable in class com.mxgraph.util.mxConstants
Name of the ellipse perimeter.
PERIMETER_HEXAGON - Static variable in class com.mxgraph.util.mxConstants
Name of the hexagon perimeter.
PERIMETER_RECTANGLE - Static variable in class com.mxgraph.util.mxConstants
Name of the rectangle perimeter.
PERIMETER_RHOMBUS - Static variable in class com.mxgraph.util.mxConstants
Name of the rhombus perimeter.
PERIMETER_TRIANGLE - Static variable in class com.mxgraph.util.mxConstants
Name of the triangle perimeter.
placeholder - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
placeholderPreview - Variable in class com.mxgraph.swing.handler.mxMovePreview
Specifies if the placeholder rectangle should be used for all previews.
placeLabels(Object[], Object[]) - Method in class com.mxgraph.layout.mxEdgeLabelLayout
 
placementStage(double, Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Executes the placement stage using mxCoordinateAssignment.
plainText(double, double, double, double, String, String, String, boolean, String, String, boolean, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Draws the given text.
PNG_CHUNK_IEND - Static variable in class com.mxgraph.util.png.mxPngTextDecoder
 
PNG_CHUNK_ZTXT - Static variable in class com.mxgraph.util.png.mxPngTextDecoder
 
PNG_FILTER_AVERAGE - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use in filtering.
PNG_FILTER_NONE - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use in filtering.
PNG_FILTER_PAETH - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use in filtering.
PNG_FILTER_SUB - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use in filtering.
PNG_FILTER_UP - Static variable in class com.mxgraph.util.png.mxPngEncodeParam
Constant for use in filtering.
point(float, float) - Method in class com.mxgraph.util.svg.AWTPolylineProducer
Implements PointsHandler.point(float,float).
point(float, float) - Method in interface com.mxgraph.util.svg.PointsHandler
Invoked when a point has been parsed.
point - Variable in class com.mxgraph.view.mxConnectionConstraint
Point that specifies the fixed location of the connection point.
points - Variable in class com.mxgraph.model.mxGeometry
List of mxPoints which specifies the control points along the edge.
points - Variable in class com.mxgraph.util.mxCurve
A collection of arrays of curve points
PointsHandler - Interface in com.mxgraph.util.svg
This interface must be implemented and then registred as the handler of a PointsParser instance in order to be notified of parsing events.
pointsHandler - Variable in class com.mxgraph.util.svg.PointsParser
The points handler used to report parse events.
PointsParser - Class in com.mxgraph.util.svg
This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
PointsParser(PointsHandler) - Constructor for class com.mxgraph.util.svg.PointsParser
Creates a new PointsParser.
poll() - Method in class com.mxgraph.sharing.mxSession
Returns the changes received by other sessions for the shared diagram.
poll(long) - Method in class com.mxgraph.sharing.mxSession
Returns the changes received by other sessions for the shared diagram.
populateIntervals(String) - Method in class com.mxgraph.util.mxCurve
 
PORT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
PORT_NAME - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
pos1D - Variable in class com.mxgraph.util.mxSpline1D
 
postProcessCellStyle(Map<String, Object>) - Method in class com.mxgraph.view.mxGraph
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.
postprocessGlyph(mxCurve, String, int, double) - Method in class com.mxgraph.shape.mxCurveLabelShape
Hook for sub-classers to perform additional processing on each glyph
postProcessLine(String, String, FontMetrics, mxGraphics2DCanvas, int, int) - Method in class com.mxgraph.shape.mxDefaultTextShape
Hook to add functionality after a line has been drawn
preferPageSize - Variable in class com.mxgraph.swing.mxGraphComponent
If the pageFormat should be used to determine the minimal graph bounds even if the page is not visible (see pageVisible).
prefHozEdgeSep - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The preferred horizontal distance between edges exiting a vertex
prefHozEdgeSep - Variable in class com.mxgraph.layout.mxCompactTreeLayout
The preferred horizontal distance between edges exiting a vertex
prefVertEdgeOff - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The preferred vertical offset between edges exiting a vertex
prefVertEdgeOff - Variable in class com.mxgraph.layout.mxCompactTreeLayout
The preferred vertical offset between edges exiting a vertex
PRESERVE_IMAGE_ASPECT - Static variable in class com.mxgraph.canvas.mxBasicCanvas
Specifies if image aspect should be preserved in drawImage.
preview - Variable in class com.mxgraph.swing.handler.mxCellHandler
Holds the component that is used for preview.
preview - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
preview - Variable in class com.mxgraph.swing.util.mxMorphing
 
PREVIEW_BORDER - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the border used for painting the preview when vertices are being resized, or cells and labels are being moved.
PREVIEW_STROKE - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the stroke used for painting the preview for new and existing edges that are being changed.
previewAlpha - Variable in class com.mxgraph.swing.mxGraphComponent
The transparency of previewed cells from 0.0.
previewBounds - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
previewState - Variable in class com.mxgraph.swing.handler.mxConnectPreview
 
previewStates - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxChildChange
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxRootChange
Holds the new and previous root cell.
previous - Variable in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxValueChange
 
previous - Variable in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
previous - Variable in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
 
previousGraphics - Variable in class com.mxgraph.canvas.mxImageCanvas
 
previousIndex - Variable in class com.mxgraph.model.mxGraphModel.mxChildChange
 
previousLayerConnectedCache - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
A store of connections to the layer below for speed
previousLayerConnectedCells - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
A cached version of the cells this cell connects to on the next layer down
print(Graphics, PageFormat, int) - Method in class com.mxgraph.swing.mxGraphComponent
Prints the specified page on the specified graphics using pageFormat for the page format.
printStatus() - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Utility method to display the x co-ords
process(MouseEvent) - Method in class com.mxgraph.swing.handler.mxCellMarker
Processes the given event and marks the state returned by getStateAt with the color returned by getMarkerColor.
processChange(mxUndoableEdit.mxUndoableChange, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Processes the given change and invalidates the respective cached data in .
processChanges(List<mxUndoableEdit.mxUndoableChange>, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Processes the changes and returns the minimal rectangle to be repainted in the buffer.
processDelta(Object, Node) - Method in class com.mxgraph.sharing.mxSharedState
Appends the given string to the history and dispatches the change to all sessions that are listening to this shared diagram.
processEdit(Node) - Method in class com.mxgraph.sharing.mxSharedGraphModel
 
processEdit(Node) - Method in class com.mxgraph.sharing.mxSharedState
 
processInclude(mxCodec, Node, Object) - Method in class com.mxgraph.io.mxObjectCodec
Returns true if the given node is an include directive and executes the include by decoding the XML document.
processNodeOutgoing(mxCompactTreeLayout.TreeNode) - Method in class com.mxgraph.layout.mxCompactTreeLayout
Separates the x position of edges as they connect to vertices
processReversedEdge(mxGraphHierarchyEdge, Object) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Hook to add additional processing
promoteEdges - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Whether or not to promote edges that terminate on vertices with different but common ancestry to appear connected to the highest siblings in the ancestry chains
properties - Variable in class com.mxgraph.analysis.mxAnalysisGraph
 
PROPERTIES - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
properties - Variable in class com.mxgraph.util.mxEventObject
Holds the properties of the event.
ptLineDistSq(mxPoint) - Method in class com.mxgraph.util.mxLine
Returns the square of the shortest distance from a point to this line.
ptSegDistSq(mxPoint) - Method in class com.mxgraph.util.mxLine
Returns the square of the shortest distance from a point to this line segment.
putCellStyle(String, Map<String, Object>) - Method in class com.mxgraph.view.mxStylesheet
Stores the specified style under the given name.
putImage(String, String) - Method in class com.mxgraph.util.mxImageBundle
Adds the specified entry to the map.
putObject(String, Object) - Method in class com.mxgraph.io.mxCodec
Assoiates the given object with the given ID.
putShape(String, mxIShape) - Static method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
putTextShape(String, mxITextShape) - Static method in class com.mxgraph.canvas.mxGraphics2DCanvas
 
putValue(String, Object) - Static method in class com.mxgraph.view.mxStyleRegistry
Puts the given object into the registry under the given name.
PX_PER_PIXEL - Static variable in class com.mxgraph.util.mxConstants
Defines the ratio between px units in HTML markup and pixels on screen.

Q

quadTo(double, double, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
quadTo(double, double, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Draws a quadratic curve to the given point.
quadTo(float, float, float, float) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.

R

RAD_PER_DEG - Static variable in class com.mxgraph.util.mxConstants
Defines the number of radians per degree.
radius - Variable in class com.mxgraph.layout.mxCircleLayout
Integer specifying the size of the radius.
radius - Variable in class com.mxgraph.layout.mxFastOrganicLayout
The approximate radius of each cell, nodes only.
radiusScaleFactor - Variable in class com.mxgraph.layout.mxOrganicLayout
The factor by which the moveRadius is multiplied by after every iteration.
radiusSquared - Variable in class com.mxgraph.layout.mxFastOrganicLayout
The approximate radius squared of each cell, nodes only.
radiusSquared - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The approximate radius squared of this cell, nodes only.
rankBottomY - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Internal cache of bottom-most value of Y for each rank
rankCoordinates(int, mxGraph, mxGraphHierarchyModel) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Sets up the layout in an initial positioning.
rankIndex - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
The index this cell is in the model rank
rankMedianPosition(int, mxGraphHierarchyModel, int) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Performs median minimisation over one rank.
ranks - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Mapping from rank number to actual rank
rankTopY - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Internal cache of top-most values of Y for each rank
rankWidths - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The width of all the ranks
rankY - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The Y-coordinate of all the ranks
read(Node) - Method in class com.mxgraph.reader.mxDomOutputParser
 
read(char[], int, int) - Method in class com.mxgraph.util.svg.NormalizingReader
Read characters into a portion of an array.
read() - Method in class com.mxgraph.util.svg.StringNormalizingReader
Read a single character.
reader - Variable in class com.mxgraph.util.svg.AbstractParser
The normalizing reader.
readFile(String) - Static method in class com.mxgraph.util.mxUtils
Reads the given filename into a string.
readInputStream(InputStream) - Static method in class com.mxgraph.util.mxUtils
Reads the given filename into a string.
receive(Node) - Method in class com.mxgraph.sharing.mxSession
Posts the change represented by the given XML string to the shared diagram.
rect(double, double, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
rect(double, double, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Next fill or stroke should draw a rectangle.
RECTANGLE_ROUNDING_FACTOR - Static variable in class com.mxgraph.util.mxConstants
Defines the rounding factor for rounded rectangles in percent between 0 and 1.
RectanglePerimeter - Static variable in class com.mxgraph.view.mxPerimeter
Describes a rectangular perimeter for the given bounds.
red - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The red color value of the entry.
REDO - Static variable in class com.mxgraph.util.mxEvent
 
redo() - Method in class com.mxgraph.util.mxUndoableEdit
 
redo() - Method in class com.mxgraph.util.mxUndoManager
Redoes the last change.
redone - Variable in class com.mxgraph.util.mxUndoableEdit
Specifies the state of the undoable edit.
redraw(mxCellState) - Method in class com.mxgraph.swing.mxGraphComponent
Updates the buffer (if one exists) and repaints the given cell state.
reduceTemperature() - Method in class com.mxgraph.layout.mxFastOrganicLayout
Reduces the temperature of the layout from an initial setting in a linear fashion to zero.
reference(Object) - Method in class com.mxgraph.io.mxCodec
Hook for subclassers to implement a custom method for retrieving IDs from objects.
refresh(mxCellState) - Method in class com.mxgraph.swing.handler.mxCellHandler
Refreshes the cell handler.
refresh() - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
refresh() - Method in class com.mxgraph.swing.mxGraphComponent
Refreshes the display and handles.
refresh() - Method in class com.mxgraph.view.mxGraph
Clears all cell states or the states for the hierarchy starting at the given cell and validates the graph.
refreshHandler - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
register(mxObjectCodec) - Static method in class com.mxgraph.io.mxCodecRegistry
Registers a new codec and associates the name of the template constructor in the codec with the codec object.
registerMarker(String, mxIMarker) - Static method in class com.mxgraph.shape.mxMarkerRegistry
 
regularity(mxAnalysisGraph) - Static method in class com.mxgraph.analysis.mxGraphStructure
 
relative - Variable in class com.mxgraph.model.mxGeometry
Specifies if the coordinates in the geometry are to be interpreted as relative coordinates.
relevantEdges - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
All edge that repel this cell, only used for nodes.
reload() - Method in class com.mxgraph.view.mxGraphView
Removes all existing cell states and invokes validate.
remove(int) - Method in class com.mxgraph.model.mxCell
 
remove(mxICell) - Method in class com.mxgraph.model.mxCell
 
remove(Object) - Method in class com.mxgraph.model.mxGraphModel
 
remove(int) - Method in interface com.mxgraph.model.mxICell
Removes the child at the specified index from the child array and returns the child that was removed.
remove(mxICell) - Method in interface com.mxgraph.model.mxICell
Removes the given child from the child array and returns it.
remove(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Removes the specified cell from the model.
REMOVE_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
REMOVE_CELLS_FROM_PARENT - Static variable in class com.mxgraph.util.mxEvent
 
REMOVE_OVERLAY - Static variable in class com.mxgraph.util.mxEvent
 
removeAllComponents(Hashtable<Object, Component[]>) - Method in class com.mxgraph.swing.mxGraphComponent
 
removeAllOverlays(Hashtable<Object, mxICellOverlay[]>) - Method in class com.mxgraph.swing.mxGraphComponent
 
removeAllPrivateChunks() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Remove all private chunks associated with this parameter instance.
removeAllStylenames(String) - Static method in class com.mxgraph.util.mxStyleUtils
Removes all stylenames from the given style and returns the updated style.
removeAllStylenames(String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.removeAllStylenames(String) (Jan 2012)
removeCell(Object) - Method in class com.mxgraph.view.mxGraphSelectionModel
Removes the given cell from the selection.
removeCellOverlay(Object, mxICellOverlay) - Method in class com.mxgraph.swing.mxGraphComponent
Removes and returns the given overlay from the given cell.
removeCellOverlayComponent(mxICellOverlay, Object) - Method in class com.mxgraph.swing.mxGraphComponent
Notified when an overlay has been removed from the graph.
removeCellOverlays(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Removes all overlays from the given cell.
removeCells(mxGraphComponent, Object[]) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
removeCells() - Method in class com.mxgraph.view.mxGraph
Removes the selection cells from the graph.
removeCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Removes the given cells from the graph.
removeCells(Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Removes the given cells from the graph including all connected edges if includeEdges is true.
removeCells(Object[]) - Method in class com.mxgraph.view.mxGraphSelectionModel
 
removeCellsFromParent - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if cells may be moved out of their parents.
removeCellsFromParent() - Method in class com.mxgraph.view.mxGraph
Removes the selection cells from their parents and adds them to the default parent returned by getDefaultParent.
removeCellsFromParent(Object[]) - Method in class com.mxgraph.view.mxGraph
Removes the specified cells from their parents and adds them to the default parent.
removeComponent(Component, Object) - Method in class com.mxgraph.swing.mxGraphComponent
 
removed - Variable in class com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange
 
removeDiagramChangeListener(mxSharedState.mxDiagramChangeListener) - Method in class com.mxgraph.sharing.mxSharedState
Removes the given listener from the list of diagram change listeners.
removeEdge(mxICell, boolean) - Method in class com.mxgraph.model.mxCell
 
removeEdge(mxICell, boolean) - Method in interface com.mxgraph.model.mxICell
Removes the specified edge from the edge array and returns the edge.
removeFromParent() - Method in class com.mxgraph.model.mxCell
 
removeFromParent() - Method in interface com.mxgraph.model.mxICell
Removes the cell from its parent.
removeFromTerminal(boolean) - Method in class com.mxgraph.model.mxCell
 
removeFromTerminal(boolean) - Method in interface com.mxgraph.model.mxICell
Removes the edge from its source or target terminal.
removeGraphListeners(mxGraph) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Removes all installed listeners.
removeGraphListeners(mxGraph) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Removes all installed listeners.
removeImageBundle(mxImageBundle) - Method in class com.mxgraph.view.mxGraph
Removes the specified bundle.
removeListener(mxEventSource.mxIEventListener) - Method in interface com.mxgraph.model.mxIGraphModel
Function: removeListener Removes the given listener from the list of listeners.
removeListener(mxEventSource.mxIEventListener, String) - Method in interface com.mxgraph.model.mxIGraphModel
Function: removeListener Removes the given listener from the list of listeners.
removeListener(mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.handler.mxCellMarker
Removes the given event listener.
removeListener(mxEventSource.mxIEventListener, String) - Method in class com.mxgraph.swing.handler.mxCellMarker
Removes the given event listener for the specified event name.
removeListener(mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Removes the given event listener.
removeListener(mxEventSource.mxIEventListener, String) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Removes the given event listener for the specified event name.
removeListener(mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
removeListener(mxEventSource.mxIEventListener, String) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
removeListener(mxEventSource.mxIEventListener) - Method in class com.mxgraph.swing.mxGraphComponent
 
removeListener(mxEventSource.mxIEventListener, String) - Method in class com.mxgraph.swing.mxGraphComponent
 
removeListener(mxEventSource.mxIEventListener) - Method in class com.mxgraph.util.mxEventSource
Function: removeListener Removes all occurances of the given listener from the list of listeners.
removeListener(mxEventSource.mxIEventListener, String) - Method in class com.mxgraph.util.mxEventSource
Function: removeListener Removes all occurances of the given listener from the list of listeners.
removeMin() - Method in class com.mxgraph.analysis.mxFibonacciHeap
Removes the smallest element from the heap.
removePropertyChangeListener(PropertyChangeListener) - Method in class com.mxgraph.view.mxGraph
 
removePropertyChangeListener(String, PropertyChangeListener) - Method in class com.mxgraph.view.mxGraph
 
removeSelectionCell(Object) - Method in class com.mxgraph.view.mxGraph
 
removeSelectionCells(Object[]) - Method in class com.mxgraph.view.mxGraph
 
removeState(Object) - Method in class com.mxgraph.view.mxGraphView
Removes and returns the mxCellState for the given cell.
removeStateForCell(Object) - Method in class com.mxgraph.view.mxGraph
Removes all cached information for the given cell and its descendants.
removeStylename(String, String) - Static method in class com.mxgraph.util.mxStyleUtils
Removes all occurrences of the specified stylename in the given style and returns the updated style.
removeUnsafeToCopyPrivateChunks() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Remove all private chunks associated with this parameter instance whose 'safe-to-copy' bit is not set.
rendererPane - Variable in class com.mxgraph.canvas.mxGraphics2DCanvas
Optional renderer pane to be used for HTML label rendering.
rendererPane - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Optional renderer pane to be used for HTML label rendering.
repaint(mxRectangle) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
REPAINT - Static variable in class com.mxgraph.util.mxEvent
 
repaint(long, int, int, int, int) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
repaint(Rectangle) - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
repaint() - Method in class com.mxgraph.view.mxGraph
Fires a repaint event.
repaint(mxRectangle) - Method in class com.mxgraph.view.mxGraph
Fires a repaint event.
repaintBuffer - Variable in class com.mxgraph.swing.mxGraphOutline
True if the triple buffer needs a full repaint.
repaintClip - Variable in class com.mxgraph.swing.mxGraphOutline
Clip of the triple buffer to be repainted.
repaintHandler - Variable in class com.mxgraph.swing.mxGraphComponent
 
repaintHandler - Variable in class com.mxgraph.swing.mxGraphOutline
 
repaintTripleBuffer(Rectangle) - Method in class com.mxgraph.swing.mxGraphComponent
Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.
repaintTripleBuffer(Rectangle) - Method in class com.mxgraph.swing.mxGraphOutline
Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.
replaceHtmlLinefeeds - Variable in class com.mxgraph.shape.mxHtmlTextShape
Specifies if linefeeds should be replaced with breaks in HTML markup.
replaceLinefeeds - Variable in class com.mxgraph.swing.view.mxCellEditor
Specifies if linefeeds should be replaced with BREAKS before editing, and BREAKS should be replaced with linefeeds after editing.
reportCharacterExpectedError(char, int) - Method in class com.mxgraph.util.svg.AbstractParser
simple api to call often reported error.
reportError(String, Object[]) - Method in class com.mxgraph.util.svg.AbstractParser
Signals an error to the error handler.
reportUnexpected(int) - Method in class com.mxgraph.util.svg.PathParser
 
reportUnexpectedCharacterError(int) - Method in class com.mxgraph.util.svg.AbstractParser
simple api to call often reported error.
repositionValid(mxGraphHierarchyModel, mxGraphAbstractHierarchyCell, int, double) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Determines whether or not a node may be moved to the specified x position on the specified rank
reset() - Method in class com.mxgraph.swing.handler.mxCellHandler
Resets the state of the handler and removes the preview.
reset() - Method in class com.mxgraph.swing.handler.mxCellMarker
Resets the state of the cell marker.
reset() - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
reset() - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Extends the implementation to reset the current error and marker.
reset() - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
reset() - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
reset() - Method in class com.mxgraph.swing.handler.mxMovePreview
 
reset() - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
reset() - Method in class com.mxgraph.swing.handler.mxRubberband
Resets the rubberband selection without carrying out the selection.
reset() - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
reset() - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
resetDelta() - Method in class com.mxgraph.sharing.mxSharedState
Clears the history of all changes.
resetEdge(Object) - Method in class com.mxgraph.view.mxGraph
Resets the control points of the given edge.
resetEdges - Variable in class com.mxgraph.layout.mxCircleLayout
Specifies if all edge points of traversed edges should be removed.
resetEdges - Variable in class com.mxgraph.layout.mxCompactTreeLayout
Specifies if all edge points of traversed edges should be removed.
resetEdges - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Specifies if all edge points of traversed edges should be removed.
resetEdges - Variable in class com.mxgraph.layout.mxOrganicLayout
Specifies if all edge points of traversed edges should be removed.
resetEdges(Object[]) - Method in class com.mxgraph.view.mxGraph
Resets the control points of the edges that are connected to the given cells if not both ends of the edge are in the given cells array.
resetEdgesOnConnect - Variable in class com.mxgraph.view.mxGraph
Specifies if edge control points should be reset after the the edge has been reconnected.
resetEdgesOnMove - Variable in class com.mxgraph.view.mxGraph
Specifies if edge control points should be reset after the move of a connected cell.
resetEdgesOnResize - Variable in class com.mxgraph.view.mxGraph
Specifies if loops (aka self-references) are allowed.
resetHandler - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
resetViewOnRootChange - Variable in class com.mxgraph.view.mxGraph
Specifies if the scale and translate should be reset if the root changes in the model.
RESIZE_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
resizeCell(MouseEvent) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
resizeCell(Object, mxRectangle) - Method in class com.mxgraph.view.mxGraph
Sets the bounds of the given cell using resizeCells.
resizeCells(Object[], mxRectangle[]) - Method in class com.mxgraph.view.mxGraph
Sets the bounds of the given cells and fires a mxEvent.RESIZE_CELLS event.
resizeEnabled - Variable in class com.mxgraph.view.mxSwimlaneManager
Specifies if resizing of swimlanes should be handled.
resizeHandler - Variable in class com.mxgraph.view.mxSpaceManager
 
resizeHandler - Variable in class com.mxgraph.view.mxSwimlaneManager
 
resizeParent - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Specifies if the parent should be resized after the layout so that it contains all the child cells.
resizeParent - Variable in class com.mxgraph.layout.mxCompactTreeLayout
If the parents should be resized to match the width/height of the children.
resizeParent - Variable in class com.mxgraph.layout.mxStackLayout
If the parent should be resized to match the width/height of the stack.
resizeSwimlane(Object, double, double) - Method in class com.mxgraph.view.mxSwimlaneManager
Sets the width or height of the given swimlane to the given value depending on .
resizeVertices - Variable in class com.mxgraph.layout.mxPartitionLayout
Boolean that specifies if vertices should be resized.
resolve(mxICell, String) - Static method in class com.mxgraph.model.mxCellPath
Returns the cell for the specified cell path using the given root as the root of the path.
restore() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Restores the last canvas state.
restore() - Method in interface com.mxgraph.canvas.mxICanvas2D
Restores the previous state of the canvas.
restore(List<mxCellState>) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
restoreClone(Object, Object, Map<Object, Object>) - Method in class com.mxgraph.model.mxGraphModel
Inner helper method for restoring the connections in a network of cloned cells.
restoreState(mxCellState, mxCellState) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
revalidate(mxCellState, Object) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
revalidate() - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
revalidate() - Method in class com.mxgraph.view.mxGraphView
 
revalidateState(mxCellState, mxCellState, double, double) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
reverse - Variable in class com.mxgraph.io.mxObjectCodec
Maps from from XML attribute names to fieldnames.
reversePortConstraints(int) - Static method in class com.mxgraph.util.mxUtils
 
RhombusPerimeter - Static variable in class com.mxgraph.view.mxPerimeter
Describes a rhombus (aka diamond) perimeter.
RIGHT - Static variable in class com.mxgraph.view.mxEdgeStyle
 
RIGHT_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
root - Variable in class com.mxgraph.model.mxGraphModel.mxRootChange
Holds the new and previous root cell.
root - Variable in class com.mxgraph.model.mxGraphModel
Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells.
root - Variable in class com.mxgraph.shape.mxStencilShape
Reference to the root node of the Dia shape description.
ROOT - Static variable in class com.mxgraph.util.mxEvent
 
root - Variable in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
 
rootChanged(Object) - Method in class com.mxgraph.model.mxGraphModel
Inner callback to change the root of the model and update the internal datastructures, such as cells and nextId.
roots - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Store of roots of this hierarchy model, these are real graph cells, not internal cells
roots - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The root nodes of the layout
rootShape - Variable in class com.mxgraph.shape.mxStencilShape
 
rotate(double, boolean, boolean, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
rotate(double, boolean, boolean, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Rotates the canvas by the given angle around the given center.
ROTATE_ICON - Static variable in class com.mxgraph.swing.handler.mxRotationHandler
 
rotationCx - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
rotationCy - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
rotationEnabled - Variable in class com.mxgraph.shape.mxCurveLabelShape
 
rounded - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
roundrect(double, double, double, double, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Implements a rounded rectangle using a path.
roundrect(double, double, double, double, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Next fill or stroke should draw a round rectangle.
route(Object, double, double) - Method in class com.mxgraph.layout.mxParallelEdgeLayout
 
routePatterns - Static variable in class com.mxgraph.view.mxEdgeStyle
The default routing patterns for orthogonal connections
routeToGrid - Variable in class com.mxgraph.layout.orthogonal.mxOrthogonalLayout
Whether or not to route the edges along grid lines only, if the grid is enabled.
rtlGlyphVectors - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache of BIDI glyph vectors
RUBBERBAND_BORDERCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the rubberband border color.
RUBBERBAND_FILLCOLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the rubberband fill color with an alpha of 80.
run(Object) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
The API method used to exercise the layout upon the graph description and produce a separate description of the vertex position and edge routing changes made.

S

sampleDepth - Variable in class com.mxgraph.util.png.mxPngSuggestedPaletteEntry
The depth of the color samples.
save() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Saves the current canvas state.
save() - Method in interface com.mxgraph.canvas.mxICanvas2D
Saves the current state of the canvas.
scale - Variable in class com.mxgraph.canvas.mxBasicCanvas
Specifies the current scale.
scale - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
scale(double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
scale(double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Uniformaly scales the canvas by the given amount.
scale - Variable in class com.mxgraph.reader.mxGraphViewReader
Holds the global scale of the graph.
scale - Variable in class com.mxgraph.swing.mxGraphOutline
 
SCALE - Static variable in class com.mxgraph.util.mxEvent
 
scale - Variable in class com.mxgraph.view.mxGraphView
Specifies the scale.
SCALE_AND_TRANSLATE - Static variable in class com.mxgraph.util.mxEvent
 
scaleAndTranslate(double, double, double) - Method in class com.mxgraph.view.mxGraphView
Sets the scale and translation.
scaleHandler - Variable in class com.mxgraph.swing.mxGraphComponent
Resets the zoom policy if the scale is changed manually.
scaleImage(Image, int, int) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Uses mxGraphicsCanvas2D.IMAGE_SCALING to scale the given image.
scrollCellToVisible(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Scrolls the graph so that it shows the given cell.
scrollCellToVisible(Object, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Scrolls the graph so that it shows the given cell.
scrollPane - Variable in class com.mxgraph.swing.view.mxCellEditor
 
scrollRectToVisible(Rectangle, boolean) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Overrides parent method to add extend flag for making the control larger during previews.
scrollToCenter(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
SEG_ARCTO - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The segment type constant for an elliptical arc.
SEG_CLOSE - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The segment type constant that specifies that the preceding subpath should be closed by appending a line segment back to the point corresponding to the most recent SEG_MOVETO.
SEG_CUBICTO - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The segment type constant for the set of 3 points that specify a cubic parametric curve to be drawn from the most recently specified point.
SEG_LINETO - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
SEG_MOVETO - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
SEG_QUADTO - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The segment type constant for the pair of points that specify a quadratic parametric curve to be drawn from the most recently specified point.
SegmentConnector - Static variable in class com.mxgraph.view.mxEdgeStyle
Implements an orthogonal edge style.
segments - Variable in class com.mxgraph.view.mxCellState
Array of numbers that represent the cached length of each segment of the edge.
select - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
select(Rectangle, MouseEvent) - Method in class com.mxgraph.swing.handler.mxRubberband
 
SELECT - Static variable in class com.mxgraph.util.mxEvent
 
selectAll() - Method in class com.mxgraph.view.mxGraph
 
selectAll(Object) - Method in class com.mxgraph.view.mxGraph
Selects all children of the given parent cell or the children of the default parent if no parent is specified.
selectCell(boolean, boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Selects the next, parent, first child or previous cell, if all arguments are false.
selectCellForEvent(Object, MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Selects the cell for the given event.
selectCells(boolean, boolean) - Method in class com.mxgraph.view.mxGraph
Selects all vertices and/or edges depending on the given boolean arguments recursively, starting at the default parent.
selectCells(boolean, boolean, Object) - Method in class com.mxgraph.view.mxGraph
Selects all vertices and/or edges depending on the given boolean arguments recursively, starting at the given parent or the default parent if no parent is specified.
selectCellsForEvent(Object[], MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
Selects the cells for the given event.
selectChildCell() - Method in class com.mxgraph.view.mxGraph
Selects the first child cell.
selectEdges() - Method in class com.mxgraph.view.mxGraph
Selects all vertices inside the default parent.
selectEdges(Object) - Method in class com.mxgraph.view.mxGraph
Selects all vertices inside the given parent or the default parent if no parent is given.
selectEnabled - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Specifies if moving is enabled.
selectionCellsHandler - Variable in class com.mxgraph.swing.mxGraphComponent
 
selectionModel - Variable in class com.mxgraph.view.mxGraph
Holds the that models the current selection.
selectNextCell() - Method in class com.mxgraph.view.mxGraph
Selects the next cell.
selectParentCell() - Method in class com.mxgraph.view.mxGraph
Selects the parent cell.
selectPreviousCell() - Method in class com.mxgraph.view.mxGraph
Selects the previous cell.
selectRegion(Rectangle, MouseEvent) - Method in class com.mxgraph.swing.mxGraphComponent
 
selectSingleNode(Document, String) - Static method in class com.mxgraph.util.mxUtils
Returns a single node that matches the given XPath expression.
selectVertices() - Method in class com.mxgraph.view.mxGraph
Selects all vertices inside the default parent.
selectVertices(Object) - Method in class com.mxgraph.view.mxGraph
Selects all vertices inside the given parent or the default parent if no parent is given.
setAbsoluteOffset(mxPoint) - Method in class com.mxgraph.view.mxCellState
Returns the absolute offset.
setAbsolutePoint(int, mxPoint) - Method in class com.mxgraph.view.mxCellState
Returns the absolute point at the given index.
setAbsolutePoints(List<mxPoint>) - Method in class com.mxgraph.view.mxCellState
Returns the absolute points.
setAbsoluteTerminalPoint(mxPoint, boolean) - Method in class com.mxgraph.view.mxCellState
Sets the first or last point in the list of points depending on isSource.
setAddEnabled(boolean) - Method in class com.mxgraph.view.mxSwimlaneManager
 
setAlign(Object) - Method in class com.mxgraph.swing.util.mxCellOverlay
 
setAllowDanglingEdges(boolean) - Method in class com.mxgraph.view.mxGraph
Sets allowDanglingEdges.
setAllowLoops(boolean) - Method in class com.mxgraph.view.mxGraph
Sets allowLoops.
setAllowNegativeCoordinates(boolean) - Method in class com.mxgraph.view.mxGraph
 
setAlpha(double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setAlpha(double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value 1.
setAlternateBounds(mxRectangle) - Method in class com.mxgraph.model.mxGeometry
Sets the alternate bounds to the given rectangle.
setAlternateEdgeStyle(String) - Method in class com.mxgraph.view.mxGraph
Sets alternateEdgeStyle.
setAntiAlias(boolean) - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
setAntiAlias(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for antiAlias.
setAntiAlias(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
Fires a property change event for antiAlias.
setAntiAlias(Graphics2D, boolean, boolean) - Static method in class com.mxgraph.util.mxUtils
 
setApproxNodeDimensions(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setAttribute(Node, String, Object) - Static method in class com.mxgraph.io.mxCodec
Sets the attribute on the specified node to value.
setAttribute(String, String) - Method in class com.mxgraph.model.mxCell
Sets the specified attribute on the user object if it is an XML node.
setAutoExtend(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setAutoOrigin(boolean) - Method in class com.mxgraph.view.mxGraph
 
setAutoScroll(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setAutoSizeCells(boolean) - Method in class com.mxgraph.view.mxGraph
Specifies if cell sizes should be automatically updated after a label change.
setAverageNodeArea(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setBackground(Color) - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
setBackgroundGray(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Sets the suggested gray level of the background.
setBackgroundImage(ImageIcon) - Method in class com.mxgraph.swing.mxGraphComponent
 
setBackgroundPaletteIndex(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Sets the palette index of the suggested background color.
setBackgroundRGB(int[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Sets the RGB value of the suggested background color.
setBipartiteGraphSpacing(mxAnalysisGraph, int, int, double, double) - Method in class com.mxgraph.analysis.mxGraphGenerator
Sets the physical spacing between vertices in a bipartite graph.
setBitDepth(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Sets the desired bit depth for a grayscale image.
setBitDepth(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Sets the desired bit depth for a palette image.
setBitDepth(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Sets the desired bit depth for an RGB image.
setBitDepth(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the desired bit depth of an image.
setBitShift(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Sets the desired bit shift for a grayscale image.
setBorder(int) - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
setBorder(int) - Method in class com.mxgraph.view.mxGraph
Sets the value of .
setBorderColor(Color) - Method in class com.mxgraph.swing.handler.mxRubberband
Sets the border color.
setBorderLineCostFactor(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setBoundingBox(Rectangle2D) - Method in class com.mxgraph.shape.mxStencilShape
 
setBoundingBox(mxRectangle) - Method in class com.mxgraph.view.mxCellState
Sets the bounding box.
setBounds(Rectangle) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setBubbling(boolean) - Method in class com.mxgraph.view.mxLayoutManager
 
setBundles(LinkedList<ResourceBundle>) - Static method in class com.mxgraph.util.mxResources
Sets the bundles.
setCanvas(mxICanvas2D) - Method in class com.mxgraph.reader.mxSaxOutputHandler
Sets the canvas for rendering.
setCell(Object) - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
setCell(Object) - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
setCell(Object) - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
setCell(Object) - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
setCell(Object) - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
 
setCell(Object) - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
setCell(Object) - Method in class com.mxgraph.view.mxCellState
Sets the cell that this state represents.
setCell(Object) - Method in class com.mxgraph.view.mxGraphSelectionModel
Clears the selection and adds the given cell to the selection.
setCellEditor(mxICellEditor) - Method in class com.mxgraph.swing.mxGraphComponent
 
setCellLocations(mxGraph, mxGraphHierarchyModel) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Sets the cell locations in the facade to those stored after this layout processing step has completed.
setCells(Object[]) - Method in class com.mxgraph.swing.util.mxMorphing
Optional array of cells to be animated.
setCells(Object[]) - Method in class com.mxgraph.view.mxGraphSelectionModel
Clears the selection and adds the given cells.
setCellsBendable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cellsBendable.
setCellsCloneable(boolean) - Method in class com.mxgraph.view.mxGraph
Specifies if the graph should allow cloning of cells by holding down the control key while cells are being moved.
setCellsDeletable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cellsDeletable.
setCellsDisconnectable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cellsDisconnectable.
setCellsEditable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets if the graph is editable.
setCellsLocked(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cellsLocked, the default return value for isCellLocked and fires a property change event for cellsLocked.
setCellsMovable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cellsMovable.
setCellsResizable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets if the graph is resizable.
setCellsSelectable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cellsSelectable.
setCellStyle(String) - Method in class com.mxgraph.view.mxGraph
Sets the style of the selection cells to the given value.
setCellStyle(String, Object[]) - Method in class com.mxgraph.view.mxGraph
Sets the style of the specified cells.
setCellStyleFlags(mxIGraphModel, Object[], String, int, Boolean) - Static method in class com.mxgraph.util.mxStyleUtils
Sets or toggles the flag bit for the given key in the cell's styles.
setCellStyleFlags(mxIGraphModel, Object[], String, int, Boolean) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean) (Jan 2012)
setCellStyleFlags(String, int, boolean) - Method in class com.mxgraph.view.mxGraph
Sets or toggles the given bit for the given key in the styles of the selection cells.
setCellStyleFlags(String, int, Boolean, Object[]) - Method in class com.mxgraph.view.mxGraph
Sets or toggles the given bit for the given key in the styles of the specified cells.
setCellStyles(mxIGraphModel, Object[], String, String) - Static method in class com.mxgraph.util.mxStyleUtils
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.
setCellStyles(mxIGraphModel, Object[], String, String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String) (Jan 2012)
setCellStyles(String, String) - Method in class com.mxgraph.view.mxGraph
Sets the key to value in the styles of the selection cells.
setCellStyles(String, String, Object[]) - Method in class com.mxgraph.view.mxGraph
Sets the key to value in the styles of the given cells.
setCellWarning(Object, String) - Method in class com.mxgraph.swing.mxGraphComponent
Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
setCellWarning(Object, String, ImageIcon) - Method in class com.mxgraph.swing.mxGraphComponent
Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
setCellWarning(Object, String, ImageIcon, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
setCenterPage(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
zoomAndCenter should be called if this is set to true.
setCenterPreview(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setCenterZoom(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setChangesRepaintThreshold(int) - Method in class com.mxgraph.view.mxGraph
 
setChild(Object) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
setChromaticity(float[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the white point and primary chromaticities in CIE (x, y) space.
setChromaticity(float, float, float, float, float, float, float, float) - Method in class com.mxgraph.util.png.mxPngEncodeParam
A convenience method that calls the array version.
setClip(mxRectangle) - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
setCloned(boolean) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
setCloneEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
 
setCloneEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setCloneInvalidEdges(boolean) - Method in class com.mxgraph.view.mxGraph
Sets cloneInvalidEdge.
setClonePreview(boolean) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
setCollapsed(boolean) - Method in class com.mxgraph.model.mxCell
 
setCollapsed(boolean) - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
setCollapsed(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
 
setCollapsed(boolean) - Method in interface com.mxgraph.model.mxICell
Sets the collapsed state.
setCollapsed(Object, boolean) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the collapsed state of the given cell.
setCollapseToPreferredSize(boolean) - Method in class com.mxgraph.view.mxGraph
 
setCompressedText(String[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the text strings to be stored in compressed form with this image.
setConnectable(boolean) - Method in class com.mxgraph.model.mxCell
 
setConnectable(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setConnectableEdges(boolean) - Method in class com.mxgraph.view.mxGraph
Sets connetableEdges.
setConnectedEdges(int[]) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setConnectIcon(ImageIcon) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setConnectionConstraint(Object, Object, boolean, mxConnectionConstraint) - Method in class com.mxgraph.view.mxGraph
Sets the connection constraint that describes the given connection point.
setConnectPreview(mxConnectPreview) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setConstrainChildren(boolean) - Method in class com.mxgraph.view.mxGraph
 
setContextPreview(boolean) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
setCostFunction(mxCostFunction) - Method in class com.mxgraph.analysis.mxGraphGenerator
 
setCreateIds(boolean) - Method in class com.mxgraph.model.mxGraphModel
Specifies if the model automatically creates Ids for new cells and resolves Id collisions.
setCreateTarget(boolean) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setCropping(boolean) - Method in class com.mxgraph.reader.mxGraphViewImageReader
 
setCurrentColor(Color) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets the current color.
setCurrentRoot(Object) - Method in class com.mxgraph.view.mxGraphView
Sets and returns the current root and fires an undo event.
setCurrentXScale(double) - Method in class com.mxgraph.shape.mxStencilShape.svgShape
 
setCurrentYScale(double) - Method in class com.mxgraph.shape.mxStencilShape.svgShape
 
setCurve(mxCurve) - Method in class com.mxgraph.shape.mxCurveLabelShape
 
setDashed(boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setDashed(boolean) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the dashed state.
setDashPattern(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setDashPattern(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the dash pattern.
setDataHeight(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
setDataId(String) - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
setDataKey(String) - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
setDataLabel(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
setDataShapeEdge(mxGraphMlShapeEdge) - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
setDataShapeNode(mxGraphMlShapeNode) - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
setDataStyle(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
setDataValue(String) - Method in class com.mxgraph.io.graphml.mxGraphMlData
 
setDataWidth(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
setDataX(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
setDataY(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeNode
 
setDefaultEdgeStyle(Map<String, Object>) - Method in class com.mxgraph.view.mxStylesheet
Sets the default style for edges.
setDefaultGraphStyle(mxAnalysisGraph, boolean) - Static method in class com.mxgraph.analysis.mxGraphStructure
Sets the style of the graph to that as in GraphEditor
setDefaultLoopStyle(mxEdgeStyle.mxEdgeStyleFunction) - Method in class com.mxgraph.view.mxGraph
Sets the default style used for loops.
setDefaultOverlap(double) - Method in class com.mxgraph.view.mxGraph
Sets defaultOverlap.
setDefaultParent(Object) - Method in class com.mxgraph.view.mxGraph
Sets the default parent to be returned by getDefaultParent.
setDefaultVertexStyle(Map<String, Object>) - Method in class com.mxgraph.view.mxStylesheet
Sets the default style for vertices.
setDelay(int) - Method in class com.mxgraph.swing.util.mxAnimation
Sets the delay for the animation.
setDescription(Element) - Method in class com.mxgraph.shape.mxStencil
Sets the description.
setDfsCount(int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
 
setDirected(Map<String, Object>, boolean) - Static method in class com.mxgraph.analysis.mxGraphProperties
 
setDisableEdgeStyle(boolean) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setDisableEdgeStyle(boolean) - Method in class com.mxgraph.layout.mxCircleLayout
 
setDisableEdgeStyle(boolean) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setDisableEdgeStyle(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setDisconnectOnMove(boolean) - Method in class com.mxgraph.view.mxGraph
Sets disconnectOnMove.
setDocument(Document) - Method in class com.mxgraph.canvas.mxHtmlCanvas
 
setDocument(Document) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
setDocument(Document) - Method in class com.mxgraph.canvas.mxVmlCanvas
 
setDocument(Document) - Method in class com.mxgraph.io.mxCodec
Sets the owner document of the codec.
setDragEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setDrawLabels(boolean) - Method in class com.mxgraph.canvas.mxBasicCanvas
 
setDrawLabels(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
Fires a property change event for drawLabels.
setDropEnabled(boolean) - Method in class com.mxgraph.view.mxGraph
Sets dropEnabled.
setEase(double) - Method in class com.mxgraph.swing.util.mxMorphing
Sets the easing for the movements.
setEdge(boolean) - Method in class com.mxgraph.model.mxCell
 
setEdgeCrossingCostFactor(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setEdgeData(mxGraphMlData) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgeDataMap(HashMap<String, mxGraphMlData>) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgedefault(String) - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
setEdgeDirected(String) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgeDistanceCostFactor(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setEdgeId(String) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgeLabelsMovable(boolean) - Method in class com.mxgraph.view.mxGraph
Returns edgeLabelsMovable.
setEdgeLengthCostFactor(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setEdgeMapper(Map<Object, mxGraphHierarchyEdge>) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
 
setEdgePoints(Object, List<mxPoint>) - Method in class com.mxgraph.layout.mxGraphLayout
Sets the control points of the given edge to the given list of mxPoints.
setEdgePosition(mxGraphAbstractHierarchyCell) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Fixes the control points
setEdgeRouting(boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setEdges(List<mxGraphMlEdge>) - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
setEdgeSource(String) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgeSource(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
setEdgeSourcePort(String) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgeStyleEnabled(Object, boolean) - Method in class com.mxgraph.layout.mxGraphLayout
Disables or enables the edge style of the given edge.
setEdgeTarget(String) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEdgeTarget(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
setEdgeTargetPort(String) - Method in class com.mxgraph.io.graphml.mxGraphMlEdge
 
setEmbedded(boolean) - Method in class com.mxgraph.canvas.mxSvgCanvas
 
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets the enabled state of the marker.
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxPanningHandler
 
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxRubberband
Sets the enabled state.
setEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
setEnabled(boolean) - Method in class com.mxgraph.view.mxGraph
Specifies if the graph should allow any interactions.
setEnabled(boolean) - Method in class com.mxgraph.view.mxLayoutManager
 
setEnabled(boolean) - Method in class com.mxgraph.view.mxSpaceManager
 
setEnabled(boolean) - Method in class com.mxgraph.view.mxSwimlaneManager
 
setEncodeDefaults(boolean) - Method in class com.mxgraph.io.mxCodec
Sets if default values of member variables should be encoded.
setEndPoint(mxPoint) - Method in class com.mxgraph.util.mxLine
Sets the end point of the rectangle.
setEnterStopsCellEditing(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setErrorHandler(ErrorHandler) - Method in class com.mxgraph.util.svg.AbstractParser
Allow an application to register an error event handler.
setErrorHandler(ErrorHandler) - Method in interface com.mxgraph.util.svg.Parser
Allows an application to register an error event handler.
setEscapeEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setEventsEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setEventsEnabled(boolean) - Method in class com.mxgraph.util.mxEventSource
 
setEventSource(Object) - Method in class com.mxgraph.util.mxEventSource
 
setExportEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setExtendParents(boolean) - Method in class com.mxgraph.view.mxGraph
Sets extendParents.
setExtendParents(boolean) - Method in class com.mxgraph.view.mxSpaceManager
 
setExtendParentsOnAdd(boolean) - Method in class com.mxgraph.view.mxGraph
Sets extendParentsOnAdd.
setExtractHtmlBody(boolean) - Method in class com.mxgraph.swing.view.mxCellEditor
Sets extractHtmlBody
setFieldValue(Object, String, Object) - Method in class com.mxgraph.io.mxObjectCodec
Sets the value of the field with the specified name in the specified object instance.
setFieldValueWithAccessor(Object, Field, Object) - Method in class com.mxgraph.io.mxObjectCodec
Sets the value of the given field using the accessor if one exists.
setFillColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFillColor(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value mxConstants.NONE.
setFillColor(Color) - Method in class com.mxgraph.swing.handler.mxRubberband
Sets the fill color.
setFinderVisible(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
 
setFineTuning(boolean) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setFineTuning(boolean) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
setFineTuning(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setFineTuningRadius(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setFitPage(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
Fires a property change event for fitPage.
setFoldingEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setFontBackgroundColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFontBackgroundColor(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value "#000000".
setFontBorderColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFontBorderColor(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value "#000000".
setFontColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFontColor(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value "#000000".
setFontFamily(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFontFamily(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value mxConstants.DEFAULT_FONTFAMILY.
setFontSize(double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFontSize(double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value mxConstants.DEFAULT_FONTSIZE.
setFontStyle(int) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setFontStyle(int) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value 0.
setForceConstant(double) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setGamma(float) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the file gamma value for the image.
setGeneralPurposeVariable(int, int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Set the value of temp for the specified layer
setGeneralPurposeVariable(int, int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
Set the value of temp for the specified layer
setGeneralPurposeVariable(int, int) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
Set the value of temp for the specified layer
setGenerator(mxGraphGenerator) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
setGeometry(mxGeometry) - Method in class com.mxgraph.model.mxCell
 
setGeometry(mxGeometry) - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
setGeometry(Object, mxGeometry) - Method in class com.mxgraph.model.mxGraphModel
 
setGeometry(mxGeometry) - Method in interface com.mxgraph.model.mxICell
Sets the object to be used as the geometry.
setGeometry(Object, mxGeometry) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the geometry of the given cell.
setGradient(String, String, double, double, double, double, String, double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setGradient(String, String, double, double, double, double, String, double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Prepares the canvas to draw a gradient.
setGraph(mxGraph) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
setGraph(mxGraph) - Method in class com.mxgraph.swing.mxGraphComponent
 
setGraph(mxGraph) - Method in class com.mxgraph.view.mxLayoutManager
 
setGraph(mxGraph) - Method in class com.mxgraph.view.mxSpaceManager
 
setGraph(mxGraph) - Method in class com.mxgraph.view.mxSwimlaneManager
 
setGraphBounds(mxRectangle) - Method in class com.mxgraph.view.mxGraphView
Sets the graph bounds.
setGraphComponent(mxGraphComponent) - Method in class com.mxgraph.swing.mxGraphOutline
Fires a property change event for graphComponent.
setGraphics(Graphics2D) - Method in class com.mxgraph.canvas.mxGraphics2DCanvas
Sets the graphics object for this canvas.
setGraphics(Graphics2D) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Sets the graphics instance.
setGridColor(Color) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for gridColor.
setGridEnabled(boolean) - Method in class com.mxgraph.view.mxGraph
Sets if the grid is enabled.
setGridGraphSpacing(mxAnalysisGraph, double, double, int, int) - Method in class com.mxgraph.analysis.mxGraphGenerator
Sets the physical spacing between vertices in a grid graph.
setGridSize(int) - Method in class com.mxgraph.view.mxGraph
Sets the grid size and fires a property change event for gridSize.
setGridStyle(int) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for gridStyle.
setGridVisible(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for gridVisible.
setGroupPadding(int) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setHandleEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setHandleSize(int) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setHandlesVisible(boolean) - Method in class com.mxgraph.swing.handler.mxCellHandler
Specifies if the handles should be painted.
setHeight(int) - Method in class com.mxgraph.util.mxImage
 
setHeight(double) - Method in class com.mxgraph.util.mxRectangle
Sets the height of the rectangle.
setHeightSquared(double) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setHideSelectionHandler(boolean) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
setHorizontal(boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setHorizontal(boolean) - Method in class com.mxgraph.view.mxSwimlaneManager
 
setHorizontalPageCount(int) - Method in class com.mxgraph.swing.mxGraphComponent
 
setHotspot(double) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets the hotspot.
setHotspotEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxCellMarker
Specifies whether the hotspot should be used in intersects.
setHtmlLabels(boolean) - Method in class com.mxgraph.reader.mxGraphViewReader
Sets the htmlLabels switch.
setHtmlLabels(boolean) - Method in class com.mxgraph.view.mxGraph
 
setICCProfileData(byte[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the ICC profile data to be stored with this image.
setIconPath(String) - Method in class com.mxgraph.shape.mxStencilShape
 
setId(String) - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
setId(String) - Method in class com.mxgraph.model.mxCell
 
setId(String) - Method in interface com.mxgraph.model.mxICell
Sets the Id of the cell to the given string.
setImageBasePath(String) - Method in class com.mxgraph.canvas.mxBasicCanvas
 
setImageObserver(ImageObserver) - Method in class com.mxgraph.swing.view.mxInteractiveCanvas
 
setImagePreview(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setImportCount(int) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
setImportEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Sets importEnabled.
setIndex(int) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
setInitialMoveRadius(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setInitialTemp(double) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setInstance(mxGraphAnalysis) - Static method in class com.mxgraph.analysis.mxGraphAnalysis
Sets the shared instance of this class.
setInterHierarchySpacing(double) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setInterlacing(boolean) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Turns Adam7 interlacing on or off.
setInterRankCellSpacing(double) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setInterRankCellSpacing(double) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
setIntraCellSpacing(double) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setIntraCellSpacing(double) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
setInvalid(boolean) - Method in class com.mxgraph.view.mxCellState
Sets the invalid state.
setInvalidColor(Color) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets the color used for invalid highlights.
setInvert(boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setInvokesStopCellEditing(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setKeepEdgesInBackground(boolean) - Method in class com.mxgraph.view.mxGraph
 
setKeepEdgesInForeground(boolean) - Method in class com.mxgraph.view.mxGraph
 
setKeepOnTop(boolean) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setKeepSelectionVisibleOnZoom(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setKeyDefault(String) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
setKeyFor(mxGraphMlKey.keyForValues) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
setKeyId(String) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
setKeyMap(HashMap<String, mxGraphMlKey>) - Method in class com.mxgraph.io.graphml.mxGraphMlKeyManager
 
setKeyName(String) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
setKeyType(mxGraphMlKey.keyTypeValues) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
 
setLabel(String) - Method in class com.mxgraph.view.mxCellState
Returns the current label.
setLabelBounds(mxRectangle) - Method in class com.mxgraph.view.mxCellState
Sets the label bounds.
setLabelBuffer(double) - Method in class com.mxgraph.util.mxCurve
 
setLabelsClipped(boolean) - Method in class com.mxgraph.view.mxGraph
Sets labelsClipped.
setLabelsVisible(boolean) - Method in class com.mxgraph.view.mxGraph
 
setLength(double) - Method in class com.mxgraph.view.mxCellState
Sets the length.
setLevelDistance(int) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setLimitX(double) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
setLineCap(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setLineCap(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the linecap.
setLineJoin(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setLineJoin(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the linejoin.
setLivePreview(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setLocation(Point) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
setLoggerLevel(Level) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Sets the logging level of this class
setLoggerLevel(Level) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Sets the logging level of this class
setMaintainEdgeParent(boolean) - Method in class com.mxgraph.model.mxGraphModel
Specifies if the model automatically updates parents of edges so that the edge is contained in the nearest-common-ancestor of its terminals.
setMarkedState(mxCellState) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets the marked state.
setMarker(mxCellMarker) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setMarker(mxCellMarker) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setMarkerEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setMaxDistanceLimit(double) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setMaxDistanceLimit(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setMaxHandlers(int) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
setMaximumGraphBounds(mxRectangle) - Method in class com.mxgraph.view.mxGraph
 
setMaxIterations(double) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setMaxIterations(int) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setMinDistanceLimit(double) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setMinDistanceLimit(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setMinimumEditorScale(double) - Method in class com.mxgraph.swing.view.mxCellEditor
 
setMinimumGraphSize(mxRectangle) - Method in class com.mxgraph.view.mxGraph
 
setMinimumHeight(int) - Method in class com.mxgraph.swing.view.mxCellEditor
 
setMinimumWidth(int) - Method in class com.mxgraph.swing.view.mxCellEditor
 
setMinMoveRadius(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setMiterLimit(double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setMiterLimit(double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the miterlimit.
setModel(mxIGraphModel) - Method in class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
Sets the model where the change is to be carried out.
setModel(mxIGraphModel) - Method in class com.mxgraph.view.mxGraph
Sets the graph model that contains the data, and fires an mxEvent.CHANGE followed by an mxEvent.REPAINT event.
setModificationTime(Date) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the modification time, as a Date, to be stored with this image.
setMoveCircle(boolean) - Method in class com.mxgraph.layout.mxCircleLayout
 
setMoveEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setMoveParent(boolean) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Sets the moveParent flag.
setMoveTree(boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setMultigraph(boolean) - Method in class com.mxgraph.view.mxGraph
Sets multigraph.
setMultiplicities(mxMultiplicity[]) - Method in class com.mxgraph.view.mxGraph
 
setName(String) - Method in class com.mxgraph.io.graphml.mxGraphMlPort
 
setName(String) - Method in class com.mxgraph.shape.mxStencilShape
 
setNodeData(mxGraphMlData) - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
setNodeDataMap(HashMap<String, mxGraphMlData>) - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
setNodeDistance(int) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setNodeDistributionCostFactor(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setNodeGraph(List<mxGraphMlGraph>) - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
setNodeId(String) - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
setNodePort(HashMap<String, mxGraphMlPort>) - Method in class com.mxgraph.io.graphml.mxGraphMlNode
 
setNodes(List<mxGraphMlNode>) - Method in class com.mxgraph.io.graphml.mxGraphMlGraph
 
setOffset(mxPoint) - Method in class com.mxgraph.model.mxGeometry
Sets the offset to the given point.
setOffset(Point) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
setOpacity(float) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
setOptimizeBorderLine(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setOptimizeEdgeCrossing(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setOptimizeEdgeDistance(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setOptimizeEdgeLength(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setOptimizeNodeDistribution(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setOrientation(int) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setOrientation(int) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
 
setOrigin(mxPoint) - Method in class com.mxgraph.view.mxCellState
Sets the origin for the children.
setOrigin(mxPoint) - Method in class com.mxgraph.view.mxGraph
 
setOrthogonalEdge(Object, boolean) - Method in class com.mxgraph.layout.mxGraphLayout
Disables or enables orthogonal end segments of the given edge
setPageBackgroundColor(Color) - Method in class com.mxgraph.swing.mxGraphComponent
Sets the color that appears behind the page.
setPageBorderColor(Color) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPageBreakColor(Color) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPageBreaksVisible(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPageFormat(PageFormat) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPageScale(double) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPageShadowColor(Color) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPageVisible(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for pageVisible.
setPalette(int[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Sets the RGB palette of the image to be encoded.
setPaletteHistogram(int[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the palette histogram to be stored with this image.
setPaletteTransparency(byte[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Sets the alpha values associated with each palette entry.
setPanning(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setParallelEdgeSpacing(double) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
 
setParam(mxPngEncodeParam) - Method in class com.mxgraph.util.png.mxPngImageEncoder
 
setParent(mxUnionFind.Node) - Method in class com.mxgraph.analysis.mxUnionFind.Node
 
setParent(mxICell) - Method in class com.mxgraph.model.mxCell
 
setParent(Object) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
setParent(mxICell) - Method in interface com.mxgraph.model.mxICell
Sets the parent cell.
setParentBorder(int) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Sets parentBorder.
setPathGraphSpacing(mxAnalysisGraph, double) - Method in class com.mxgraph.analysis.mxGraphGenerator
Sets the physical spacing between vertices in a path graph.
setPathHandler(PathHandler) - Method in class com.mxgraph.util.svg.PathParser
Allows an application to register a path handler.
setPerimeter(boolean) - Method in class com.mxgraph.view.mxConnectionConstraint
Sets perimeter.
setPhysicalDimension(int[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the physical dimension information to be stored with this image.
setPhysicalDimension(int, int, int) - Method in class com.mxgraph.util.png.mxPngEncodeParam
A convenience method that calls the array version.
setPlaceholderPreview(boolean) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
setPoint(mxPoint) - Method in class com.mxgraph.view.mxConnectionConstraint
Sets the point.
setPoints(List<mxPoint>) - Method in class com.mxgraph.model.mxGeometry
Sets the list of control points to the given list.
setPoints(mxPoint, mxPoint) - Method in class com.mxgraph.util.mxLine
Sets the start and end points.
setPointsHandler(PointsHandler) - Method in class com.mxgraph.util.svg.PointsParser
Allows an application to register a points handler.
setPortDataMap(HashMap<String, mxGraphMlData>) - Method in class com.mxgraph.io.graphml.mxGraphMlPort
 
setPreferPageSize(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for preferPageSize.
setPreviewAlpha(float) - Method in class com.mxgraph.swing.mxGraphComponent
 
setPreviewBounds(Rectangle) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setPrevious(Object) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
setPrevious(boolean) - Method in class com.mxgraph.model.mxGraphModel.mxCollapseChange
 
setPrevious(mxGeometry) - Method in class com.mxgraph.model.mxGraphModel.mxGeometryChange
 
setPrevious(Object) - Method in class com.mxgraph.model.mxGraphModel.mxRootChange
 
setPrevious(String) - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
setPrevious(Object) - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
setPrevious(Object) - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
 
setPrevious(boolean) - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
setPreviousIndex(int) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
 
setProperties(Map<String, Object>) - Method in class com.mxgraph.analysis.mxAnalysisGraph
 
setRadius(double) - Method in class com.mxgraph.layout.mxCircleLayout
 
setRadiusScaleFactor(double) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setRadiusSquared(double) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setRect(double, double, double, double) - Method in class com.mxgraph.util.mxRectangle
Sets this rectangle to the specified values
setRelative(boolean) - Method in class com.mxgraph.model.mxGeometry
Sets the relative state of the geometry.
setRelevantEdges(int[]) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setRemoveCellsFromParent(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setReplaceHtmlLinefeeds(boolean) - Method in class com.mxgraph.shape.mxHtmlTextShape
Returns replaceHtmlLinefeeds
setReplaceHtmlLinefeeds(boolean) - Method in class com.mxgraph.swing.view.mxCellEditor
Sets replaceHtmlLinefeeds
setResetEdges(boolean) - Method in class com.mxgraph.layout.mxCircleLayout
 
setResetEdges(boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setResetEdges(boolean) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setResetEdges(boolean) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setResetEdgesOnConnect(boolean) - Method in class com.mxgraph.view.mxGraph
Sets resetEdgesOnConnect.
setResetEdgesOnMove(boolean) - Method in class com.mxgraph.view.mxGraph
Sets resetEdgesOnMove.
setResetEdgesOnResize(boolean) - Method in class com.mxgraph.view.mxGraph
Sets resetEdgesOnResize.
setResetViewOnRootChange(boolean) - Method in class com.mxgraph.view.mxGraph
Sets resetEdgesOnResize.
setResizeEnabled(boolean) - Method in class com.mxgraph.view.mxSwimlaneManager
 
setResizeParent(boolean) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Sets the resizeParent flag.
setResizeParent(boolean) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
setReversed(boolean) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
 
setRoot(Object) - Method in class com.mxgraph.model.mxGraphModel.mxRootChange
 
setRoot(Object) - Method in class com.mxgraph.model.mxGraphModel
 
setRoot(Object) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the root of the model and resets all structures.
setRotationEnabled(boolean) - Method in class com.mxgraph.shape.mxCurveLabelShape
 
setRoundToDecimals(int) - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
setScale(double) - Method in class com.mxgraph.canvas.mxBasicCanvas
 
setScale(double) - Method in interface com.mxgraph.canvas.mxICanvas
Sets the scale for the following drawing requests.
setScale(double) - Method in class com.mxgraph.canvas.mxImageCanvas
 
setScale(double) - Method in class com.mxgraph.view.mxGraphView
Sets the current scale and revalidates the view.
setSegments(double[]) - Method in class com.mxgraph.view.mxCellState
Sets the length of the segments.
setSelect(boolean) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
setSelectEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setSelectionCell(Object) - Method in class com.mxgraph.view.mxGraph
 
setSelectionCells(Object[]) - Method in class com.mxgraph.view.mxGraph
 
setSelectionCells(Collection<Object>) - Method in class com.mxgraph.view.mxGraph
 
setShadow(boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setShadow(boolean) - Method in interface com.mxgraph.canvas.mxICanvas2D
Enables or disables the painting of shadows.
setShadowAlpha(double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setShadowAlpha(double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value mxConstants.NONE.
setShadowColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setShadowColor(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value mxConstants.NONE.
setShadowOffset(double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setShadowOffset(double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Default value mxConstants.NONE.
setShiftDownwards(boolean) - Method in class com.mxgraph.view.mxSpaceManager
 
setShiftEnterSubmitsText(boolean) - Method in class com.mxgraph.swing.view.mxCellEditor
Sets shiftEnterSubmitsText
setShiftRightwards(boolean) - Method in class com.mxgraph.view.mxSpaceManager
 
setSignificantBits(int[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the number of significant bits for each band of the image.
setSignificantRemoteChanges(boolean) - Method in class com.mxgraph.sharing.mxSharedGraphModel
 
setSingleSelection(boolean) - Method in class com.mxgraph.view.mxGraphSelectionModel
 
setSize(int) - Method in class com.mxgraph.analysis.mxUnionFind.Node
 
setSource(int) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setSource(mxICell) - Method in class com.mxgraph.model.mxCell
Sets the source terminal.
setSource(boolean) - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
setSourcePoint(mxPoint) - Method in class com.mxgraph.model.mxGeometry
Sets the source point.
setSplitEnabled(boolean) - Method in class com.mxgraph.view.mxGraph
Sets splitEnabled.
setSrc(String) - Method in class com.mxgraph.util.mxImage
 
setSRGBIntent(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the sRGB rendering intent to be stored with this image.
setStarGraphLayout(mxAnalysisGraph, double) - Method in class com.mxgraph.analysis.mxGraphGenerator
Sets the physical size of a star graph.
setStates(Hashtable<Object, mxCellState>) - Method in class com.mxgraph.view.mxGraphView
Returns the dictionary that maps from cells to states.
setSteps(int) - Method in class com.mxgraph.swing.util.mxMorphing
Sets the number of steps for the animation.
setStrokeColor(String) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Caches color conversion as it is expensive.
setStrokeColor(String) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the stroke color.
setStrokeWidth(double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
setStrokeWidth(double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Sets the stroke width.
setStyle(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
setStyle(String) - Method in class com.mxgraph.model.mxCell
 
setStyle(String) - Method in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
setStyle(Object, String) - Method in class com.mxgraph.model.mxGraphModel
 
setStyle(String) - Method in interface com.mxgraph.model.mxICell
Sets the string to be used as the style.
setStyle(Object, String) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the style of the given cell.
setStyle(String, String, String) - Static method in class com.mxgraph.util.mxStyleUtils
Adds or removes the given key, value pair to the style and returns the new style.
setStyle(String, String, String) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.setStyle(String, String, String) (Jan 2012)
setStyle(Map<String, Object>) - Method in class com.mxgraph.view.mxCellState
Sets the cell style as a map of key, value pairs.
setStyleFlag(String, String, int, Boolean) - Static method in class com.mxgraph.util.mxStyleUtils
Sets or removes the given key from the specified style and returns the new style.
setStyleFlag(String, String, int, Boolean) - Static method in class com.mxgraph.util.mxUtils
Deprecated. Use mxStyleUtils.setStyleFlag(String, String, int, Boolean) (Jan 2012)
setStyles(Map<String, Map<String, Object>>) - Method in class com.mxgraph.view.mxStylesheet
Sets all styles in the stylesheet.
setStylesheet(mxStylesheet) - Method in class com.mxgraph.view.mxGraph
Sets the stylesheet that provides the style.
setSuggestedPalette(mxPngSuggestedPaletteEntry[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the suggested palette information to be stored with this image.
setSwimlaneContentEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets if the content area of swimlanes should not be transparent to events.
setSwimlaneNesting(boolean) - Method in class com.mxgraph.view.mxGraph
Sets swimlaneNesting.
setSwimlaneSelectionEnabled(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setTarget(int) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setTarget(mxICell) - Method in class com.mxgraph.model.mxCell
Sets the target terminal.
setTargetPoint(mxPoint) - Method in class com.mxgraph.model.mxGeometry
Sets the target point.
setTerminal(mxICell, boolean) - Method in class com.mxgraph.model.mxCell
 
setTerminal(Object, Object, boolean) - Method in class com.mxgraph.model.mxGraphModel.mxChildChange
Sets the source or target terminal field for the given edge without inserting an incoming or outgoing edge in the respective terminal.
setTerminal(Object) - Method in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
setTerminal(Object, Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
 
setTerminal(mxICell, boolean) - Method in interface com.mxgraph.model.mxICell
Sets the source or target terminal and returns the new terminal.
setTerminal(Object, Object, boolean) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the source or target terminal of the given edge using.
setTerminalDistance(double) - Method in class com.mxgraph.view.mxCellState
Sets the terminal distance.
setTerminalPoint(mxPoint, boolean) - Method in class com.mxgraph.model.mxGeometry
Sets the sourcePoint or targetPoint to the given point and returns the new point.
setTerminals(mxIGraphModel, Object, Object, Object) - Static method in class com.mxgraph.model.mxGraphModel
Sets the source and target of the given edge in a single atomic change.
setText(String) - Method in class com.mxgraph.io.graphml.mxGraphMlShapeEdge
 
setText(String[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam
Sets the textual data to be stored in uncompressed form with this image.
setTextAntiAlias(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
Fires a property change event for textAntiAlias.
setTextEnabled(boolean) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Disables or enables text rendering.
setThreshold(int) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
setTolerance(int) - Method in class com.mxgraph.swing.mxGraphComponent
 
setToolTips(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setTransferImageBackground(Color) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
setTransferImageEnabled(boolean) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
 
setTranslate(int, int) - Method in class com.mxgraph.canvas.mxBasicCanvas
Sets the current translate.
setTranslate(int, int) - Method in interface com.mxgraph.canvas.mxICanvas
Sets the translation for the following drawing requests.
setTranslate(int, int) - Method in class com.mxgraph.canvas.mxImageCanvas
 
setTranslate(Point) - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Sets the translate.
setTranslate(mxPoint) - Method in class com.mxgraph.view.mxGraphView
Sets the current translation and invalidates the view.
setTransparentGray(int) - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Sets the gray value to be used to denote transparency.
setTransparentRGB(int[]) - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Sets the RGB value to be used to denote transparency.
setTraverseVisible(Map<String, Object>, boolean) - Static method in class com.mxgraph.analysis.mxGraphProperties
 
setTriesPerCell(int) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setTripleBuffered(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
setTripleBuffered(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
Fires a property change event for tripleBuffered.
setUnchangedEnergyRoundTermination(int) - Method in class com.mxgraph.layout.mxOrganicLayout
 
setUseBoundingBox(boolean) - Method in class com.mxgraph.layout.mxGraphLayout
 
setUseInputOrigin(boolean) - Method in class com.mxgraph.layout.mxFastOrganicLayout
 
setUserObject(Object) - Method in class com.mxgraph.analysis.mxFibonacciHeap.Node
 
setValidColor(Color) - Method in class com.mxgraph.swing.handler.mxCellMarker
Sets the color used for valid highlights.
setValue(Object) - Method in class com.mxgraph.model.mxCell
 
setValue(Object) - Method in class com.mxgraph.model.mxGraphModel.mxValueChange
 
setValue(Object, Object) - Method in class com.mxgraph.model.mxGraphModel
 
setValue(Object) - Method in interface com.mxgraph.model.mxICell
Sets the user object of the cell.
setValue(Object, Object) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the user object of then given cell.
setValues(double[], double[]) - Method in class com.mxgraph.util.mxSpline1D
Set values for this Spline.
setVertex(boolean) - Method in class com.mxgraph.model.mxCell
 
setVertexLabelsMovable(boolean) - Method in class com.mxgraph.view.mxGraph
Sets vertexLabelsMovable.
setVertexLocation(mxGraphAbstractHierarchyCell) - Method in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
Fixes the position of the specified vertex
setVertexLocation(Object, double, double) - Method in class com.mxgraph.layout.mxGraphLayout
Sets the new position of the given cell taking into account the size of the bounding box if is true.
setVertexMapper(Map<Object, mxGraphHierarchyNode>) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
 
setVerticalAlign(Object) - Method in class com.mxgraph.swing.util.mxCellOverlay
 
setVerticalPageCount(int) - Method in class com.mxgraph.swing.mxGraphComponent
 
setView(mxGraphView) - Method in class com.mxgraph.view.mxCellState
Sets the enclosing graph view.
setView(mxGraphView) - Method in class com.mxgraph.view.mxGraph
Sets the view that contains the cell states.
setVisible(boolean) - Method in class com.mxgraph.model.mxCell
 
setVisible(boolean) - Method in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
setVisible(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
 
setVisible(boolean) - Method in interface com.mxgraph.model.mxICell
Specifies if the cell is visible.
setVisible(Object, boolean) - Method in interface com.mxgraph.model.mxIGraphModel
Sets the visible state of the given cell.
setVisible(boolean) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
setVisible(boolean) - Method in class com.mxgraph.swing.handler.mxSelectionCellsHandler
 
setVisible(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
 
setVisibleTerminalState(mxCellState, boolean) - Method in class com.mxgraph.view.mxCellState
Sets the visible source or target terminal state.
setWeightRange(double, double) - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomFunction
 
setWeightRange(double, double) - Method in class com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction
 
setWidth(int) - Method in class com.mxgraph.util.mxImage
 
setWidth(double) - Method in class com.mxgraph.util.mxRectangle
Sets the width of the rectangle.
setWindingRule(int) - Method in class com.mxgraph.util.svg.AWTPathProducer
Sets the winding rule used to construct the path.
setWindingRule(int) - Method in class com.mxgraph.util.svg.AWTPolylineProducer
Sets the winding rule used to construct the path.
setWindingRule(int) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
setWindingRule(int) - Method in interface com.mxgraph.util.svg.ShapeProducer
Sets the winding rule used to construct the path.
setWindmillGraphLayout(mxAnalysisGraph, int, int, double) - Method in class com.mxgraph.analysis.mxGraphGenerator
Sets the layout of a windmill graph.
setX(int, double) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Set the value of x for the specified layer
setX(double) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setX(double) - Method in class com.mxgraph.util.mxPoint
Sets the x-coordinate of the point.
setX0(double) - Method in class com.mxgraph.layout.mxCircleLayout
 
setY(int, double) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Set the value of y for the specified layer
setY(double) - Method in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
 
setY(double) - Method in class com.mxgraph.util.mxPoint
Sets the y-coordinate of the point.
setY0(double) - Method in class com.mxgraph.layout.mxCircleLayout
 
setZoomFactor(double) - Method in class com.mxgraph.swing.mxGraphComponent
 
setZoomHandleVisible(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
 
setZoomPolicy(int) - Method in class com.mxgraph.swing.mxGraphComponent
 
shadow - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
SHADOW_COLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the color to be used for shadows.
SHADOW_OFFSETX - Static variable in class com.mxgraph.util.mxConstants
Defines the x-offset to be used for shadows.
SHADOW_OFFSETY - Static variable in class com.mxgraph.util.mxConstants
Defines the y-offset to be used for shadows.
shadowAlpha - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
shadowColor - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
shadowColorValue - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
shadowOffsetX - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
shadowOffsetY - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
SHAPE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
shape - Variable in class com.mxgraph.shape.mxStencilShape.svgShape
 
SHAPE_ACTOR - Static variable in class com.mxgraph.util.mxConstants
SHAPE_ACTOR
SHAPE_ARROW - Static variable in class com.mxgraph.util.mxConstants
SHAPE_ARROW
SHAPE_CLOUD - Static variable in class com.mxgraph.util.mxConstants
SHAPE_CLOUD
SHAPE_CONNECTOR - Static variable in class com.mxgraph.util.mxConstants
SHAPE_CONNECTOR
SHAPE_CURVE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_ARROW
SHAPE_CYLINDER - Static variable in class com.mxgraph.util.mxConstants
SHAPE_CYLINDER
SHAPE_DOUBLE_ELLIPSE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_DOUBLE_ELLIPSE
SHAPE_ELLIPSE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_ELLIPSE
SHAPE_HEXAGON - Static variable in class com.mxgraph.util.mxConstants
SHAPE_HEXAGON
SHAPE_IMAGE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_IMAGE
SHAPE_LABEL - Static variable in class com.mxgraph.util.mxConstants
SHAPE_LABEL
SHAPE_LINE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_LINE
SHAPE_RECTANGLE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_RECTANGLE
SHAPE_RHOMBUS - Static variable in class com.mxgraph.util.mxConstants
SHAPE_RHOMBUS
SHAPE_SWIMLANE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_SWIMLANE
SHAPE_TRIANGLE - Static variable in class com.mxgraph.util.mxConstants
SHAPE_TRIANGLE
SHAPEEDGE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
SHAPENODE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
shapePath - Variable in class com.mxgraph.shape.mxStencilShape
 
ShapeProducer - Interface in com.mxgraph.util.svg
This interface represents objects which creates Shape objects.
shapes - Static variable in class com.mxgraph.canvas.mxGraphics2DCanvas
Maps from names to mxIVertexShape instances.
sharedInstance - Static variable in class com.mxgraph.util.mxLightweightLabel
 
shiftCell(Object, double, double, double, double, double, double, double, double, boolean) - Method in class com.mxgraph.view.mxSpaceManager
 
shiftDownwards - Variable in class com.mxgraph.view.mxSpaceManager
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
shiftEnterSubmitsText - Variable in class com.mxgraph.swing.view.mxCellEditor
Specifies if shift ENTER should submit text if enterStopsCellEditing is true.
shiftRightwards - Variable in class com.mxgraph.view.mxSpaceManager
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
shouldRemoveCellFromParent(Object, Object[], MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
Returns true if the given cells should be removed from the parent for the specified mousereleased event.
show(mxCellStatePreview) - Method in class com.mxgraph.swing.util.mxMorphing
Shows the changes in the given mxCellStatePreview.
show() - Method in class com.mxgraph.swing.view.mxCellStatePreview
Returns a dirty rectangle to be repainted in mxGraphControl.
showDirtyRectangle - Variable in class com.mxgraph.swing.mxGraphComponent
Used for debugging the dirty region.
SIDE_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
SideToSide - Static variable in class com.mxgraph.view.mxEdgeStyle
Provides a vertical elbow edge.
significant - Variable in class com.mxgraph.util.mxUndoableEdit
Specifies this undoable edit is significant.
significantRemoteChanges - Variable in class com.mxgraph.sharing.mxSharedGraphModel
Whether remote changes should be significant in the local command history.
singleSelection - Variable in class com.mxgraph.view.mxGraphSelectionModel
Specifies if only one selected item at a time is allowed.
size - Variable in class com.mxgraph.analysis.mxFibonacciHeap
 
size() - Method in class com.mxgraph.analysis.mxFibonacciHeap
Returns the size of the heap which is measured in the number of elements contained in the heap.
size - Variable in class com.mxgraph.analysis.mxUnionFind.Node
The size of the tree.
size - Variable in class com.mxgraph.util.mxUndoManager
Maximum command history size.
size() - Method in class com.mxgraph.view.mxGraphSelectionModel
Returns the number of selected cells.
skipCommaSpaces() - Method in class com.mxgraph.util.svg.AbstractParser
Skips the whitespaces and an optional comma.
skipCommaSpaces2() - Method in class com.mxgraph.util.svg.PathParser
Skips the whitespaces and an optional comma.
skipSpaces() - Method in class com.mxgraph.util.svg.AbstractParser
Skips the whitespaces in the current reader.
skipSubPath() - Method in class com.mxgraph.util.svg.PathParser
Skips a sub-path.
snap(double) - Method in class com.mxgraph.view.mxGraph
Snaps the given numeric value to the grid if is true.
snapScaledPoint(mxPoint) - Method in class com.mxgraph.swing.mxGraphComponent
 
snapScaledPoint(mxPoint, double, double) - Method in class com.mxgraph.swing.mxGraphComponent
 
snapshot(mxCellState) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
solve(double[][], double[]) - Method in class com.mxgraph.util.mxSpline1D
Solves Ax=b and stores the solution in b.
sort(mxCellState[], mxICostFunction) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Returns a sorted set for cells with respect to cf.
sortCells(Object[], boolean) - Static method in class com.mxgraph.util.mxUtils
Sorts the given cells according to the order in the cell hierarchy.
sortCells(Collection<Object>, boolean) - Static method in class com.mxgraph.util.mxUtils
Sorts the given cells according to the order in the cell hierarchy.
source - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
The node this edge is sourced at
source - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The index of the node attached to this edge as source, edges only
source - Variable in class com.mxgraph.model.mxCell
Reference to the parent cell and source and target terminals for edges.
source - Variable in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
source - Variable in class com.mxgraph.swing.handler.mxConnectionHandler
 
source - Variable in class com.mxgraph.util.mxUndoableEdit
Holds the source of the undoable edit.
source - Variable in class com.mxgraph.view.mxMultiplicity
Boolean that specifies if the rule is applied to the source or target terminal of an edge.
SOURCE_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
sourcePoint - Variable in class com.mxgraph.model.mxGeometry
Defines the source- and target-point of the edge.
sourceState - Variable in class com.mxgraph.swing.handler.mxConnectPreview
 
SOURCETARGET - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
spacing - Variable in class com.mxgraph.layout.mxParallelEdgeLayout
Specifies the spacing between the edges.
spacing - Variable in class com.mxgraph.layout.mxPartitionLayout
Integer that specifies the absolute spacing in pixels between the children.
spacing - Variable in class com.mxgraph.layout.mxStackLayout
Specifies the spacing between the cells.
Spline2D(double[], double[]) - Method in class com.mxgraph.util.mxSpline
Creates a new mxSpline.
SPLIT_EDGE - Static variable in class com.mxgraph.util.mxEvent
 
SPLIT_WORDS - Static variable in class com.mxgraph.util.mxConstants
Whether or not to split whole words when applying word wrapping in mxUtils.wordWrap.
splitEdge(Object, Object[]) - Method in class com.mxgraph.view.mxGraph
 
splitEdge(Object, Object[], double, double) - Method in class com.mxgraph.view.mxGraph
 
splitEdge(Object, Object[], Object, double, double) - Method in class com.mxgraph.view.mxGraph
Splits the given edge by adding a newEdge between the previous source and the given cell and reconnecting the source of the given edge to the given cell.
splitEnabled - Variable in class com.mxgraph.view.mxGraph
Specifies if dropping onto edges should be enabled.
src - Variable in class com.mxgraph.util.mxImage
Holds the path or URL for the image.
stack - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Stack of states for save/restore.
start(MouseEvent, int) - Method in class com.mxgraph.swing.handler.mxCellHandler
Starts handling a gesture at the given handle index.
start(MouseEvent, mxCellState) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
 
start(MouseEvent, mxCellState, String) - Method in class com.mxgraph.swing.handler.mxConnectPreview
Updates the style of the edge preview from the incoming edge
start(MouseEvent) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
start(MouseEvent) - Method in class com.mxgraph.swing.handler.mxInsertHandler
 
start(MouseEvent, mxCellState) - Method in class com.mxgraph.swing.handler.mxMovePreview
Sets the translation of the preview.
start - Variable in class com.mxgraph.swing.handler.mxPanningHandler
 
start(MouseEvent) - Method in class com.mxgraph.swing.handler.mxRotationHandler
 
start(Point) - Method in class com.mxgraph.swing.handler.mxRubberband
Starts the rubberband selection at the given point.
start - Variable in class com.mxgraph.swing.mxGraphOutline.MouseTracker
 
START - Static variable in class com.mxgraph.util.mxEvent
 
START_EDITING - Static variable in class com.mxgraph.util.mxEvent
 
startAnimation() - Method in class com.mxgraph.swing.util.mxAnimation
Starts the animation by repeatedly invoking updateAnimation.
startBuffer - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelPosition
 
startEditing() - Method in class com.mxgraph.swing.mxGraphComponent
 
startEditing(Object, EventObject) - Method in class com.mxgraph.swing.view.mxCellEditor
 
startEditing(Object, EventObject) - Method in interface com.mxgraph.swing.view.mxICellEditor
Starts editing the given cell.
startEditingAtCell(Object) - Method in class com.mxgraph.swing.mxGraphComponent
 
startEditingAtCell(Object, EventObject) - Method in class com.mxgraph.swing.mxGraphComponent
 
startElement(String, String, String, Attributes) - Method in class com.mxgraph.reader.mxGraphViewReader
 
startElement(String, String, String, Attributes) - Method in class com.mxgraph.reader.mxSaxOutputHandler
 
startPath() - Method in class com.mxgraph.util.svg.AWTPathProducer
Implements PathHandler.startPath().
startPath() - Method in interface com.mxgraph.util.svg.PathHandler
Invoked when the path starts.
startPoint - Variable in class com.mxgraph.swing.handler.mxConnectPreview
 
startPoints() - Method in class com.mxgraph.util.svg.AWTPolylineProducer
Implements PointsHandler.startPoints().
startPoints() - Method in interface com.mxgraph.util.svg.PointsHandler
Invoked when the points attribute starts.
startState - Variable in class com.mxgraph.swing.handler.mxMovePreview
 
state - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Represents the current state of the canvas.
state - Variable in class com.mxgraph.shape.mxCurveLabelShape
Cache the state associated with this shape
state - Variable in class com.mxgraph.sharing.mxSharedState
Holds the initial state of the diagram.
state - Variable in class com.mxgraph.swing.handler.mxCellHandler
Holds the cell state associated with this handler.
states - Variable in class com.mxgraph.view.mxGraphView
Maps from cells to cell states.
STENCIL_SHADOW_OPACITY - Static variable in class com.mxgraph.util.mxConstants
Defines the default opacity for stencils shadows.
STENCIL_SHADOWCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the default shadow color for stencils.
stencils - Static variable in class com.mxgraph.shape.mxStencilRegistry
 
step - Variable in class com.mxgraph.swing.util.mxMorphing
Counts the current number of steps of the animation.
steps - Variable in class com.mxgraph.swing.util.mxMorphing
Specifies the maximum number of steps for the morphing.
stop(boolean) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
stop(boolean, MouseEvent) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
stop(boolean, MouseEvent, double, double, boolean, Object) - Method in class com.mxgraph.swing.handler.mxMovePreview
 
STOP - Static variable in class com.mxgraph.util.mxEvent
 
stopAnimation() - Method in class com.mxgraph.swing.util.mxAnimation
Stops the animation by deleting the timer and fires mxEvent.DONE.
stopAnimation() - Method in class com.mxgraph.swing.util.mxMorphing
 
stopEditing(boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
stopEditing(boolean) - Method in class com.mxgraph.swing.view.mxCellEditor
 
stopEditing(boolean) - Method in interface com.mxgraph.swing.view.mxICellEditor
Stops the current editing.
stopRecursion(mxCellState, mxPoint) - Method in class com.mxgraph.swing.util.mxMorphing
Returns true if the animation should not recursively find more deltas for children if the given parent state has been animated.
string - Variable in class com.mxgraph.util.svg.StringNormalizingReader
The characters.
stringForValue(mxGraphMlKey.keyForValues) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
Converts a enum value in its corresponding String value for the keyFor attribute.
StringNormalizingReader - Class in com.mxgraph.util.svg
This class represents a NormalizingReader which handles Strings.
StringNormalizingReader(String) - Constructor for class com.mxgraph.util.svg.StringNormalizingReader
Creates a new StringNormalizingReader.
stringTypeValue(mxGraphMlKey.keyTypeValues) - Method in class com.mxgraph.io.graphml.mxGraphMlKey
Converts a enum value in its corresponding string value for the keyType attribute.
stroke() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
stroke() - Method in interface com.mxgraph.canvas.mxICanvas2D
Paints the outline of the current path.
strokeColor - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
strokeColorValue - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
strokeWidth - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
strokewidth - Variable in class com.mxgraph.shape.mxStencil
Holds the strokewidth direction from the description.
StructuralException - Exception in com.mxgraph.analysis
 
StructuralException(String) - Constructor for exception com.mxgraph.analysis.StructuralException
 
STYLE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
style - Variable in class com.mxgraph.model.mxCell
Holds the style as a string of the form stylename[;key=value].
style - Variable in class com.mxgraph.model.mxGraphModel.mxStyleChange
 
style - Variable in class com.mxgraph.shape.mxStencilShape.svgShape
Contains an array of key, value pairs that represent the style of the cell.
style - Variable in class com.mxgraph.swing.handler.mxInsertHandler
 
style - Variable in class com.mxgraph.view.mxCellState
Contains an array of key, value pairs that represent the style of the cell.
STYLE_ALIGN - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the align style.
STYLE_AUTOSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the autosize style.
STYLE_BENDABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the bendable style.
STYLE_CLONEABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the cloneable style.
STYLE_DASH_PATTERN - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the dashed pattern style.
STYLE_DASHED - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the dashed style.
STYLE_DELETABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the deletable style.
STYLE_DIRECTION - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the direction style.
STYLE_EDGE - Static variable in class com.mxgraph.util.mxConstants
Takes a function that creates points.
STYLE_EDITABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the editable style.
STYLE_ELBOW - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the elbow style.
STYLE_ENDARROW - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the endArrow style.
STYLE_ENDFILL - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the endFill style.
STYLE_ENDSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the endSize style.
STYLE_ENTRY_PERIMETER - Static variable in class com.mxgraph.util.mxConstants
Defines if the perimeter should be used to find the exact entry point along the perimeter of the target.
STYLE_ENTRY_X - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal.
STYLE_ENTRY_Y - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the vertical relative coordinate connection point of an edge with its target terminal.
STYLE_EXIT_PERIMETER - Static variable in class com.mxgraph.util.mxConstants
Defines if the perimeter should be used to find the exact entry point along the perimeter of the source.
STYLE_EXIT_X - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal.
STYLE_EXIT_Y - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the vertical relative coordinate connection point of an edge with its source terminal.
STYLE_FILLCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the fillColor style.
STYLE_FOLDABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the foldable style.
STYLE_FONTCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the fontColor style.
STYLE_FONTFAMILY - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the fontFamily style.
STYLE_FONTSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the fontSize style (in points).
STYLE_FONTSTYLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the fontStyle style.
STYLE_GLASS - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the glass style.
STYLE_GRADIENT_DIRECTION - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the gradient direction.
STYLE_GRADIENTCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the gradientColor style.
STYLE_HORIZONTAL - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal style.
STYLE_IMAGE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the image style.
STYLE_IMAGE_ALIGN - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the align style.
STYLE_IMAGE_BACKGROUND - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the image background color.
STYLE_IMAGE_BORDER - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the image border color.
STYLE_IMAGE_FLIPH - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal image flip.
STYLE_IMAGE_FLIPV - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the vertical image flip.
STYLE_IMAGE_HEIGHT - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the imageHeight style The type of this value is int, the value is the image height in pixels and must be greater than 0.
STYLE_IMAGE_VERTICAL_ALIGN - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the verticalAlign style.
STYLE_IMAGE_WIDTH - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the imageWidth style.
STYLE_INDICATOR_COLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorColor style.
STYLE_INDICATOR_GRADIENTCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorGradientColor style.
STYLE_INDICATOR_HEIGHT - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorHeight style (in px).
STYLE_INDICATOR_IMAGE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorImage style.
STYLE_INDICATOR_SHAPE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorShape style.
STYLE_INDICATOR_SPACING - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorSpacing style (in px).
STYLE_INDICATOR_WIDTH - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the indicatorWidth style (in px).
STYLE_LABEL_BACKGROUNDCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the label background color.
STYLE_LABEL_BORDERCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the label border color.
STYLE_LABEL_POSITION - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal label position of vertices.
STYLE_LOOP - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the loop style.
STYLE_MOVABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the movable style.
STYLE_NOEDGESTYLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the noEdgeStyle style.
STYLE_NOLABEL - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the noLabel style.
STYLE_OPACITY - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the opacity style.
STYLE_ORTHOGONAL - Static variable in class com.mxgraph.util.mxConstants
Defines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location.
STYLE_OVERFLOW - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the overflow style.
STYLE_PERIMETER - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the perimeter style.
STYLE_PERIMETER_SPACING - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the perimeter spacing.
STYLE_PORT_CONSTRAINT - Static variable in class com.mxgraph.util.mxConstants
Defines the direction(s) that edges are allowed to connect to cells in.
STYLE_RESIZABLE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the resizable style.
STYLE_ROTATION - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the rotation style.
STYLE_ROUNDED - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the rounded style.
STYLE_ROUTING_CENTER_X - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal routing center.
STYLE_ROUTING_CENTER_Y - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the vertical routing center.
STYLE_SEGMENT - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the segment style.
STYLE_SEPARATORCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the separatorColor style.
STYLE_SHADOW - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the shadow style.
STYLE_SHAPE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the shape style.
STYLE_SOURCE_PERIMETER_SPACING - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the source perimeter spacing.
STYLE_SOURCE_PORT - Static variable in class com.mxgraph.util.mxConstants
Defines the ID of the cell that should be used for computing the perimeter point of the source for an edge.
STYLE_SPACING - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the spacing.
STYLE_SPACING_BOTTOM - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only).
STYLE_SPACING_LEFT - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the spacingLeft style.
STYLE_SPACING_RIGHT - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only).
STYLE_SPACING_TOP - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the spacingTop style.
STYLE_STARTARROW - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the startArrow style.
STYLE_STARTFILL - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the startFill style.
STYLE_STARTSIZE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the startSize style.
STYLE_STENCIL_FLIPH - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the horizontal stencil flip.
STYLE_STENCIL_FLIPV - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the vertical stencil flip.
STYLE_STROKECOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the strokeColor style.
STYLE_STROKEWIDTH - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the strokeWidth style.
STYLE_TARGET_PERIMETER_SPACING - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the target perimeter spacing.
STYLE_TARGET_PORT - Static variable in class com.mxgraph.util.mxConstants
Defines the ID of the cell that should be used for computing the perimeter point of the target for an edge.
STYLE_TEXT_OPACITY - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the text opacity style.
STYLE_VERTICAL_ALIGN - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the verticalAlign style.
STYLE_VERTICAL_LABEL_POSITION - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the vertical label position of vertices.
STYLE_WHITE_SPACE - Static variable in class com.mxgraph.util.mxConstants
Defines the key for the white-space style.
styleForCellChanged(Object, String) - Method in class com.mxgraph.model.mxGraphModel
Inner callback to update the style of the given mxCell using mxCell.setStyle and return the previous style.
styles - Variable in class com.mxgraph.view.mxStylesheet
Maps from names to styles.
stylesheet - Variable in class com.mxgraph.view.mxGraph
Holds the stylesheet that defines the appearance of the cells.
subShapes - Variable in class com.mxgraph.shape.mxStencilShape.svgShape
 
sum(mxCellState[], mxICostFunction) - Method in class com.mxgraph.analysis.mxGraphAnalysis
Returns the sum of all cost for cells with respect to cf.
SVG_SHADOWTRANSFORM - Static variable in class com.mxgraph.util.mxConstants
Defines the transformation used to draw shadows in SVG.
swap() - Method in class com.mxgraph.model.mxGeometry
Swaps the x, y, width and height with the values stored in alternateBounds and puts the previous values into alternateBounds as a rectangle.
swapBounds(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Swaps the alternate and the actual bounds in the geometry of the given cell invoking updateAlternateBounds before carrying out the swap.
swimlaneAdded(Object) - Method in class com.mxgraph.view.mxSwimlaneManager
Called for each swimlane which has been added.
swimlaneContentEnabled - Variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies if the the content area of swimlane should be non-transparent to mouse events.
swimlaneNesting - Variable in class com.mxgraph.view.mxGraph
Specifies if nesting of swimlanes is allowed.
swimlaneSelectionEnabled - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if swimlanes are selected when the mouse is released over the swimlanes content area.

T

target - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
The node this edge targets
target - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The index of the node attached to this edge as target, edges only
target - Variable in class com.mxgraph.model.mxCell
Reference to the parent cell and source and target terminals for edges.
TARGET_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
targetPoint - Variable in class com.mxgraph.model.mxGeometry
Defines the source- and target-point of the edge.
temp - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
Temporary variable for general use.
temperature - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Temperature to limit displacement at later stages of layout.
template - Variable in class com.mxgraph.io.mxObjectCodec
Holds the template object associated with this codec.
terminal - Variable in class com.mxgraph.model.mxGraphModel.mxTerminalChange
 
terminalDistance - Variable in class com.mxgraph.view.mxCellState
Caches the distance between the end points and the length of an edge.
terminalForCellChanged(Object, Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
Inner helper function to update the terminal of the edge using mxCell.insertEdge and return the previous terminal.
text(double, double, double, double, String, String, String, boolean, String, String, boolean, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
Draws the given text.
text(double, double, double, double, String, String, String, boolean, String, String, boolean, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Draws the given string.
TEXT - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
TEXT_SHAPE_DEFAULT - Static variable in class com.mxgraph.canvas.mxGraphics2DCanvas
 
TEXT_SHAPE_HTML - Static variable in class com.mxgraph.canvas.mxGraphics2DCanvas
 
textAntiAlias - Variable in class com.mxgraph.swing.mxGraphComponent
 
textArea - Variable in class com.mxgraph.swing.view.mxCellEditor
Holds the editor for plain text editing.
textEnabled - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D
Specifies if text output should be rendered.
textShapes - Static variable in class com.mxgraph.canvas.mxGraphics2DCanvas
Maps from names to mxITextShape instances.
textSubmitAction - Variable in class com.mxgraph.swing.view.mxCellEditor
 
theta - Variable in class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
 
threshold - Variable in class com.mxgraph.swing.handler.mxMovePreview
Maximum number of cells to preview individually.
timer - Variable in class com.mxgraph.swing.util.mxAnimation
Time instance that is used for timing the animation.
TOGGLE_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
toggleCells(boolean) - Method in class com.mxgraph.view.mxGraph
Sets the visible state of the selection cells.
toggleCells(boolean, Object[]) - Method in class com.mxgraph.view.mxGraph
Sets the visible state of the specified cells.
toggleCells(boolean, Object[], boolean) - Method in class com.mxgraph.view.mxGraph
Sets the visible state of the specified cells and all connected edges if includeEdges is true.
toggleCellStyle(String, boolean, Object) - Method in class com.mxgraph.view.mxGraph
Toggles the boolean value for the given key in the style of the given cell.
toggleCellStyleFlags(String, int) - Method in class com.mxgraph.view.mxGraph
Toggles the given bit for the given key in the styles of the selection cells.
toggleCellStyleFlags(String, int, Object[]) - Method in class com.mxgraph.view.mxGraph
Toggles the given bit for the given key in the styles of the specified cells.
toggleCellStyles(String, boolean) - Method in class com.mxgraph.view.mxGraph
Toggles the boolean value for the given key in the style of the selection cells.
toggleCellStyles(String, boolean, Object[]) - Method in class com.mxgraph.view.mxGraph
Toggles the boolean value for the given key in the style of the given cells.
tolerance - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the tolerance for mouse clicks.
TOP - Static variable in class com.mxgraph.view.mxEdgeStyle
 
TOP_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
TopToBottom - Static variable in class com.mxgraph.view.mxEdgeStyle
Provides a horizontal elbow edge.
toString() - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Returns Hierarchical, the name of this algorithm.
toString() - Method in class com.mxgraph.layout.mxOrganicLayout
Returns Organic, the name of this algorithm.
toString() - Method in class com.mxgraph.util.mxPoint
Returns a String that represents the value of this mxPoint.
toString() - Method in class com.mxgraph.util.mxRectangle
Returns the String representation of this mxRectangle.
tracker - Variable in class com.mxgraph.swing.mxGraphOutline
 
transferBounds - Variable in class com.mxgraph.swing.handler.mxGraphHandler
Unscaled, untranslated bounding box of the selection cells.
transferImageBackground - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Specifies the background color for the transfer image.
transferImageEnabled - Variable in class com.mxgraph.swing.handler.mxGraphTransferHandler
Specifies if a transfer image should be created for the transferable.
transform(AffineTransform) - Method in class com.mxgraph.util.svg.ExtendedGeneralPath
Delegates to the enclosed GeneralPath.
transformControlPoint(mxCellState, mxPoint) - Method in class com.mxgraph.view.mxGraphView
Transforms the given control point to an absolute point.
transformScreenPoint(double, double) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
transformShape(Shape, double, double, double, double) - Method in class com.mxgraph.shape.mxStencilShape
Scales the points composing this shape by the x and y ratios specified
translate - Variable in class com.mxgraph.canvas.mxBasicCanvas
Specifies the current translation.
translate(double, double) - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
translate(double, double) - Method in interface com.mxgraph.canvas.mxICanvas2D
Translates the canvas by the given amount.
translate(double, double) - Method in class com.mxgraph.model.mxGeometry
Translates the geometry by the specified amount.
translate - Variable in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Specifies a translation for painting.
translate - Variable in class com.mxgraph.swing.mxGraphOutline
 
TRANSLATE - Static variable in class com.mxgraph.util.mxEvent
 
translate - Variable in class com.mxgraph.view.mxGraphView
Point that specifies the current translation.
TRANSLATE_CONTROL_POINTS - Static variable in class com.mxgraph.model.mxGeometry
Global switch to translate the points in translate.
translateCell(Object, double, double) - Method in class com.mxgraph.view.mxGraph
Translates the geometry of the given cell and stores the new, translated geometry in the model as an atomic change.
translatePoints(List<mxPoint>, double, double) - Static method in class com.mxgraph.util.mxUtils
Creates a new list of new points obtained by translating the points in the given list by the given vector.
translateState(mxCellState, mxCellState, double, double) - Method in class com.mxgraph.swing.view.mxCellStatePreview
 
transparentSwimlaneContent - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if the content area should be transparent to events.
traverse(Object, boolean, Object, Set<Object>, Set<Object>, List<Set<Object>>, Set<Object>) - Method in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Traverses the (directed) graph invoking the given function for each visited vertex and edge.
traverse(Object, boolean, mxGraph.mxICellVisitor) - Method in class com.mxgraph.view.mxGraph
Traverses the tree starting at the given vertex.
traverse(Object, boolean, mxGraph.mxICellVisitor, Object, Set<Object>) - Method in class com.mxgraph.view.mxGraph
Traverses the (directed) graph invoking the given function for each visited vertex and edge.
TRAVERSE_VISIBLE - Static variable in class com.mxgraph.analysis.mxGraphProperties
Whether or not to navigate the graph raw graph structure or the visible structure.
traverseAncestors - Variable in class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Whether or not to navigate edges whose terminal vertices have different parents but are in the same ancestry chain
TrianglePerimeter - Static variable in class com.mxgraph.view.mxPerimeter
Describes a triangle perimeter.
triesPerCell - Variable in class com.mxgraph.layout.mxOrganicLayout
determines, in how many segments the circle around cells is divided, to find a new position for the cell.
trigger - Variable in class com.mxgraph.swing.view.mxCellEditor
 
trim() - Method in class com.mxgraph.util.mxUndoManager
Removes all pending steps after indexOfNextAdd from the history, invoking die on each edit.
tripleBuffer - Variable in class com.mxgraph.swing.mxGraphComponent
 
tripleBuffer - Variable in class com.mxgraph.swing.mxGraphOutline
TODO: Not yet implemented.
tripleBuffered - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies if an image buffer should be used for painting the component.
tripleBuffered - Variable in class com.mxgraph.swing.mxGraphOutline
 
tripleBufferGraphics - Variable in class com.mxgraph.swing.mxGraphComponent
 
tripleBufferGraphics - Variable in class com.mxgraph.swing.mxGraphOutline
Holds the graphics of the triple buffer.
TYPE - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
type - Variable in class com.mxgraph.view.mxMultiplicity
Defines the type of the source or target terminal.
typeError - Variable in class com.mxgraph.view.mxMultiplicity
Holds the localized error message to be displayed if the type of the neighbor for a connection does not match the rule.

U

unchangedEnergyRoundCount - Variable in class com.mxgraph.layout.mxOrganicLayout
Keeps track of how many consecutive round have passed without any energy changes
unchangedEnergyRoundTermination - Variable in class com.mxgraph.layout.mxOrganicLayout
The number of round of no node moves taking placed that the layout terminates
UNDO - Static variable in class com.mxgraph.util.mxEvent
 
undo() - Method in class com.mxgraph.util.mxUndoableEdit
 
undo() - Method in class com.mxgraph.util.mxUndoManager
Undoes the last change.
undoableEditHappened(mxUndoableEdit) - Method in class com.mxgraph.util.mxUndoManager
Method to be called to add new undoable edits to the history.
undoHandler - Variable in class com.mxgraph.view.mxLayoutManager
 
undone - Variable in class com.mxgraph.util.mxUndoableEdit
Specifies the state of the undoable edit.
UNGROUP_CELLS - Static variable in class com.mxgraph.util.mxEvent
 
ungroupCells() - Method in class com.mxgraph.view.mxGraph
Ungroups the selection cells.
ungroupCells(Object[]) - Method in class com.mxgraph.view.mxGraph
Ungroups the given cells by moving the children the children to their parents parent and removing the empty groups.
union(mxFibonacciHeap, mxFibonacciHeap) - Static method in class com.mxgraph.analysis.mxFibonacciHeap
Joins two Fibonacci heaps into a new one.
union(mxUnionFind.Node, mxUnionFind.Node) - Method in class com.mxgraph.analysis.mxUnionFind
Unifies the sets a and b in constant time using a union by rank on the tree size.
union(mxRectangle, double, double, int) - Method in class com.mxgraph.swing.handler.mxVertexHandler
 
unmark() - Method in class com.mxgraph.swing.handler.mxCellMarker
Hides the marker and fires a mxEvent.MARK event.
unsetBackground() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Suppresses the 'bKGD' chunk from being output.
unsetBackground() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Suppresses the 'bKGD' chunk from being output.
unsetBackground() - Method in class com.mxgraph.util.png.mxPngEncodeParam.RGB
Suppresses the 'bKGD' chunk from being output.
unsetBackground() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'bKGD' chunk from being output.
unsetBitDepth() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the setting of the bit depth of a grayscale image.
unsetBitShift() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Gray
Suppresses the setting of the bit shift of a grayscale image.
unsetChromaticity() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'cHRM' chunk from being output.
unsetCompressedText() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'zTXt' chunk from being output.
unsetGamma() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'gAMA' chunk from being output.
unsetICCProfileData() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'iCCP' chunk from being output.
unsetModificationTime() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'tIME' chunk from being output.
unsetPalette() - Method in class com.mxgraph.util.png.mxPngEncodeParam.Palette
Suppresses the 'PLTE' chunk from being output.
unsetPaletteHistogram() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'hIST' chunk from being output.
unsetPhysicalDimension() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'pHYS' chunk from being output.
unsetSignificantBits() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'sBIT' chunk from being output.
unsetSRGBIntent() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'sRGB' chunk from being output.
unsetSuggestedPalette() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'sPLT' chunk from being output.
unsetText() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'tEXt' chunk from being output.
unsetTransparency() - Method in class com.mxgraph.util.png.mxPngEncodeParam
Suppresses the 'tRNS' chunk from being output.
UP - Static variable in class com.mxgraph.util.mxEvent
 
up - Variable in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
 
update(MouseEvent, mxCellState, double, double) - Method in class com.mxgraph.swing.handler.mxConnectPreview
 
update(MouseEvent, double, double, boolean) - Method in class com.mxgraph.swing.handler.mxMovePreview
Sets the translation of the preview.
UPDATE_CELL_SIZE - Static variable in class com.mxgraph.util.mxEvent
 
updateAlternateBounds(Object, mxGeometry, boolean) - Method in class com.mxgraph.view.mxGraph
Updates or sets the alternate bounds in the given geometry for the given cell depending on whether the cell is going to be collapsed.
updateAnimation() - Method in class com.mxgraph.swing.util.mxAnimation
Hook for subclassers to implement the animation.
updateAnimation() - Method in class com.mxgraph.swing.util.mxMorphing
Animation step.
updateBoundingBox(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the bounding box in the given cell state.
updateBounds(double, double) - Method in class com.mxgraph.util.mxCurve
Updates the total bounds of this curve, increasing any dimensions, if necessary, to fit in the specified point
updateCellOverlayComponent(mxCellState, mxICellOverlay) - Method in class com.mxgraph.swing.mxGraphComponent
Notified when an overlay has been removed from the graph.
updateCellOverlays(Object) - Method in class com.mxgraph.swing.mxGraphComponent
Returns a hashtable with all entries from the overlays variable where a cell still exists in the model.
updateCellSize(Object) - Method in class com.mxgraph.view.mxGraph
Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
updateCellSize(Object, boolean) - Method in class com.mxgraph.view.mxGraph
Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
updateComponent(mxCellState, Component) - Method in class com.mxgraph.swing.mxGraphComponent
 
updateComponents() - Method in class com.mxgraph.swing.mxGraphComponent
 
updateComponents(Object) - Method in class com.mxgraph.swing.mxGraphComponent
 
updateCurve(List<mxPoint>) - Method in class com.mxgraph.util.mxCurve
Updates the existing curve using the points passed in.
updateDragImage(Object[]) - Method in class com.mxgraph.swing.handler.mxGraphHandler
 
updateEdgeBounds(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the given state using the bounding box of the absolute points.
updateEdgeParent(Object, Object) - Method in class com.mxgraph.model.mxGraphModel
Inner helper method to update the parent of the specified edge to the nearest-common-ancestor of its two terminals.
updateEdgeParents(Object) - Method in class com.mxgraph.model.mxGraphModel
Updates the parents of the edges connected to the given cell and all its descendants so that each edge is contained in the nearest common ancestor.
updateEdgeParents(Object, Object) - Method in class com.mxgraph.model.mxGraphModel
Updates the parents of the edges connected to the given cell and all its descendants so that the edge is contained in the nearest-common-ancestor.
updateFinder(boolean) - Method in class com.mxgraph.swing.mxGraphOutline
 
updateFinderBounds(Rectangle, boolean) - Method in class com.mxgraph.swing.mxGraphOutline
 
updateFixedTerminalPoint(mxCellState, mxCellState, boolean, mxConnectionConstraint) - Method in class com.mxgraph.view.mxGraphView
Sets the fixed source or target terminal point on the given edge.
updateFixedTerminalPoints(mxCellState, mxCellState, mxCellState) - Method in class com.mxgraph.view.mxGraphView
Sets the initial absolute terminal points in the given state before the edge style is computed.
updateFloatingTerminalPoint(mxCellState, mxCellState, mxCellState, boolean) - Method in class com.mxgraph.view.mxGraphView
Updates the absolute terminal point in the given state for the given start and end state, where start is the source if source is true.
updateFloatingTerminalPoints(mxCellState, mxCellState, mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the terminal points in the given state after the edge style was computed for the edge.
updateFont() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
updateGroupBounds() - Method in class com.mxgraph.view.mxGraph
Updates the bounds of the given array of groups so that it includes all child vertices.
updateGroupBounds(Object[]) - Method in class com.mxgraph.view.mxGraph
Updates the bounds of the given array of groups so that it includes all child vertices.
updateGroupBounds(Object[], int) - Method in class com.mxgraph.view.mxGraph
Updates the bounds of the given array of groups so that it includes all child vertices.
updateGroupBounds(Object[], int, boolean) - Method in class com.mxgraph.view.mxGraph
Updates the bounds of the given array of groups so that it includes all child vertices.
updateHandler - Variable in class com.mxgraph.swing.mxGraphComponent
Updates the heavyweight component structure after any changes.
updateImportCount(Transferable) - Method in class com.mxgraph.swing.handler.mxGraphTransferHandler
Counts the number of times that the given transferable has been imported.
updateLabel(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the label of the given state.
updateLabelBounds(String, Map<String, Object>) - Method in class com.mxgraph.shape.mxCurveLabelShape
Updates the cached position and size of each glyph in the edge label.
updateLabelBounds(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the label bounds in the given state.
updateLevel - Variable in class com.mxgraph.model.mxGraphModel
Counter for the depth of nested transactions.
updateOrigin() - Method in class com.mxgraph.view.mxGraph
Extends the canvas by doing another validation with a shifted global translation if the bounds of the graph are below (0,0).
updateOriginHandler - Variable in class com.mxgraph.view.mxGraph
Fires repaint events for full repaints.
updatePoints(mxCellState, List<mxPoint>, mxCellState, mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the absolute points in the given state using the specified array of points as the relative points.
updatePreferredSize() - Method in class com.mxgraph.swing.mxGraphComponent.mxGraphControl
Updates the preferred size for the given scale if the page size should be preferred or the page is visible.
updateScaleAndTranslate() - Method in class com.mxgraph.swing.mxGraphOutline
Returns true if the scale or translate has changed.
updateStroke() - Method in class com.mxgraph.canvas.mxGraphicsCanvas2D
 
updateVertexLabelOffset(mxCellState) - Method in class com.mxgraph.view.mxGraphView
Updates the absoluteOffset of the given vertex cell state.
upperHead - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polygon
 
upperTail - Variable in class com.mxgraph.layout.mxCompactTreeLayout.Polygon
 
useBoundingBox - Variable in class com.mxgraph.layout.mxGraphLayout
Boolean indicating if the bounding box of the label should be used if its available.
useInputOrigin - Variable in class com.mxgraph.layout.mxFastOrganicLayout
Specifies if the top left corner of the input cells should be the origin of the layout result.
useLabelBounds(mxCellState) - Method in class com.mxgraph.swing.view.mxCellEditor
Returns true if the label bounds of the state should be used for the editor.
useScaledInstance - Variable in class com.mxgraph.swing.mxGraphOutline
 

V

v - Variable in class com.mxgraph.layout.mxOrganicLayout
Internal models collection of nodes ( vertices ) to be laid out
valid - Variable in class com.mxgraph.util.mxCurve
Whether or not the curve currently holds valid values
validate() - Method in class com.mxgraph.util.mxLightweightLabel
Overridden for performance reasons.
validate() - Method in class com.mxgraph.view.mxGraphView
First validates all bounds and then validates all points recursively on all visible cells.
validateBounds(mxCellState, Object) - Method in class com.mxgraph.view.mxGraphView
Validates the bounds of the given parent's child using the given parent state as the origin for the child.
validateCell(Object, Hashtable<Object, Object>) - Method in class com.mxgraph.view.mxGraph
Hook method for subclassers to return an error message for the given cell and validation context.
validateConnection(Object, Object) - Method in class com.mxgraph.swing.handler.mxConnectionHandler
Returns the error message or an empty string if the connection for the given source target pair is not valid.
validateConnection(Object, Object) - Method in class com.mxgraph.swing.handler.mxEdgeHandler
Returns the error message or an empty string if the connection for the given source target pair is not valid.
validateCurve(List<mxPoint>, double, Map<String, Object>) - Method in class com.mxgraph.shape.mxCurveShape
Forces underlying curve to a valid state
validateCurve() - Method in class com.mxgraph.util.mxCurve
Method must be called before any attempt to access curve information
validateEdge(Object, Object, Object) - Method in class com.mxgraph.view.mxGraph
Hook method for subclassers to return an error message for the given edge and terminals.
validateGraph() - Method in class com.mxgraph.swing.mxGraphComponent
Validates the graph by validating each descendant of the given cell or the root of the model.
validateGraph(Object, Hashtable<Object, Object>) - Method in class com.mxgraph.swing.mxGraphComponent
Validates the graph by validating each descendant of the given cell or the root of the model.
validatePoints(mxCellState, Object) - Method in class com.mxgraph.view.mxGraphView
Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle.
validColor - Variable in class com.mxgraph.swing.handler.mxCellMarker
Specifies the valid- and invalidColor for the marker.
validNeighbors - Variable in class com.mxgraph.view.mxMultiplicity
Holds an array of strings that specify the type of neighbor for which this rule applies.
validNeighborsAllowed - Variable in class com.mxgraph.view.mxMultiplicity
Boolean indicating if the list of validNeighbors are those that are allowed for this rule or those that are not allowed for this rule.
validState - Variable in class com.mxgraph.swing.handler.mxCellMarker
Holds the marked state if it is valid.
value - Variable in class com.mxgraph.model.mxCell
Holds the user object.
value - Variable in class com.mxgraph.model.mxGraphModel.mxValueChange
 
value - Variable in class com.mxgraph.view.mxMultiplicity
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
valueForCellChanged(Object, Object) - Method in class com.mxgraph.model.mxGraphModel
Inner callback to update the user object of the given mxCell using mxCell.setValue and return the previous value, that is, the return value of mxCell.getValue.
valueOf(String) - Static method in enum com.mxgraph.analysis.mxGraphProperties.GraphType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mxgraph.io.graphml.mxGraphMlKey.keyForValues
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mxgraph.io.graphml.mxGraphMlKey.keyTypeValues
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mxgraph.io.mxGdCodec.mxGDParseState
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mxgraph.analysis.mxGraphProperties.GraphType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mxgraph.io.graphml.mxGraphMlKey.keyForValues
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mxgraph.io.graphml.mxGraphMlKey.keyTypeValues
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mxgraph.io.mxGdCodec.mxGDParseState
Returns an array containing the constants of this enum type, in the order they are declared.
values - Static variable in class com.mxgraph.view.mxStyleRegistry
Maps from strings to objects.
VERSION - Static variable in class com.mxgraph.view.mxGraph
Holds the version number of this release.
vertBendProportion - Static variable in class com.mxgraph.view.mxEdgeStyle
 
vertex - Variable in class com.mxgraph.model.mxCell
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
VERTEX_MASK - Static variable in class com.mxgraph.view.mxEdgeStyle
 
VERTEX_SELECTION_COLOR - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the selection color for vertices.
VERTEX_SELECTION_STROKE - Static variable in class com.mxgraph.swing.util.mxSwingConstants
Defines the stroke used for painting the border of selected vertices.
vertexArray - Variable in class com.mxgraph.layout.mxFastOrganicLayout
An array of all vertices to be laid out.
vertexConnectionBuffer - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The buffer on either side of a vertex where edges must not connect.
vertexLabelsMovable - Variable in class com.mxgraph.view.mxGraph
Specifies the return value for vertices in isLabelMovable.
vertexMapper - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
Map from graph vertices to internal model nodes
vertexSeperations - Static variable in class com.mxgraph.view.mxEdgeStyle
 
verticalAlign - Variable in class com.mxgraph.swing.util.mxCellOverlay
Holds the vertical alignment for the overlay.
verticalLayout(mxCompactTreeLayout.TreeNode, Object, double, double, mxRectangle) - Method in class com.mxgraph.layout.mxCompactTreeLayout
 
verticalPageCount - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the number of pages in the vertical direction.
view - Variable in class com.mxgraph.view.mxCellState
Reference to the enclosing graph view.
view - Variable in class com.mxgraph.view.mxGraph
Holds the view that caches the cell states.
view - Variable in class com.mxgraph.view.mxGraphView.mxCurrentRootChange
 
view - Variable in class com.mxgraph.view.mxTemporaryCellStates
 
viewChangeHandler - Variable in class com.mxgraph.swing.mxGraphComponent
 
visible - Variable in class com.mxgraph.model.mxCell
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
visible - Variable in class com.mxgraph.model.mxGraphModel.mxVisibleChange
 
visible - Variable in class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
Whether or not the glyph should be drawn
visible - Variable in class com.mxgraph.swing.handler.mxGraphHandler
 
visible - Variable in class com.mxgraph.swing.handler.mxSelectionCellsHandler
Specifies if this handler is visible.
visibleSourceState - Variable in class com.mxgraph.view.mxCellState
Caches the visible source and target terminal states.
visibleStateForCellChanged(Object, boolean) - Method in class com.mxgraph.model.mxGraphModel
Sets the visible state of the given mxCell using mxVisibleChange and adds the change to the current transaction.
visibleTargetState - Variable in class com.mxgraph.view.mxCellState
Caches the visible source and target terminal states.
visit(mxGraphHierarchyNode, mxGraphHierarchyNode, mxGraphHierarchyEdge, int, int) - Method in interface com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel.CellVisitor
The method within which the visitor will perform operations upon the graph model
visit(mxGraphHierarchyModel.CellVisitor, mxGraphHierarchyNode[], boolean, Set<mxGraphHierarchyNode>) - Method in class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyModel
A depth first search through the internal hierarchy model
visit(Object, Object) - Method in interface com.mxgraph.view.mxGraph.mxICellVisitor
 
visited - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
Whether or not this cell has been visited in the current assignment
visited - Variable in class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
Whether or not this cell has been visited in the current assignment

W

w0 - Variable in class com.mxgraph.shape.mxStencil
Holds the width of the shape.
W3C_SHADOWCOLOR - Static variable in class com.mxgraph.util.mxConstants
Defines the color to be used to draw shadows in W3C standards.
warningIcon - Variable in class com.mxgraph.swing.mxGraphComponent
 
wayPoints1 - Static variable in class com.mxgraph.view.mxEdgeStyle
 
weightedValue - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.WeightedCellSorter
The weighted value of the cell stored
weightedValue - Variable in class com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
The weighted value of the cell stored
widestRank - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The rank that has the widest x position
widestRankValue - Variable in class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment
The X-coordinate of the edge of the widest rank
WIDTH - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
width - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
The width of this cell
width - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
width - Variable in class com.mxgraph.util.mxImage
Holds the image width and height.
width - Variable in class com.mxgraph.util.mxRectangle
Holds the width and the height.
WIND_EVEN_ODD - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The winding rule constant for specifying an even-odd rule for determining the interior of a path.
WIND_NON_ZERO - Static variable in interface com.mxgraph.util.svg.ExtendedPathIterator
The winding rule constant for specifying a non-zero rule for determining the interior of a path.
windingRule - Variable in class com.mxgraph.util.svg.AWTPathProducer
The winding rule to use to construct the path.
windingRule - Variable in class com.mxgraph.util.svg.AWTPolylineProducer
The winding rule to use to construct the path.
wordWrap(String, FontMetrics, double) - Static method in class com.mxgraph.util.mxUtils
Returns the specified text in lines that fit within the specified width when the specified font metrics are applied to the text
wrap - Variable in class com.mxgraph.layout.mxStackLayout
Value at which a new column or row should be created.
writeAttribute(mxCodec, Object, String, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value.
writeComplexAttribute(mxCodec, Object, String, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Writes the given value as a child node of the given node.
writeFile(String, String) - Static method in class com.mxgraph.util.mxUtils
Writes the given string into the given file.
writePrimitiveAttribute(mxCodec, Object, String, Object, Node) - Method in class com.mxgraph.io.mxObjectCodec
Writes the given value as an attribute of the given node.

X

X - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
x - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
The x position of this cell for each layer it occupies
x - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
x - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The x-coordinate position of this cell, nodes only
x - Variable in class com.mxgraph.util.mxPoint
Holds the x- and y-coordinates of the point.
x0 - Variable in class com.mxgraph.layout.mxCircleLayout
Integer specifying the left coordinate of the circle.
x0 - Variable in class com.mxgraph.layout.mxStackLayout
Specifies the horizontal origin of the layout.
xCenter - Variable in class com.mxgraph.util.svg.AWTPathProducer
The reference x point for smooth arcs.
xNormTry - Variable in class com.mxgraph.layout.mxOrganicLayout
Array of the x portion of the normalised test vectors that are tested for a lower energy around each vertex.

Y

Y - Static variable in class com.mxgraph.io.graphml.mxGraphMlConstants
 
y - Variable in class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
The y position of this cell for each layer it occupies
y - Variable in class com.mxgraph.layout.mxCompactTreeLayout.TreeNode
 
y - Variable in class com.mxgraph.layout.mxOrganicLayout.CellWrapper
The y-coordinate position of this cell, nodes only
y - Variable in class com.mxgraph.util.mxPoint
Holds the x- and y-coordinates of the point.
y0 - Variable in class com.mxgraph.layout.mxCircleLayout
Integer specifying the top coordinate of the circle.
y0 - Variable in class com.mxgraph.layout.mxStackLayout
Specifies the vertical origin of the layout.
yCenter - Variable in class com.mxgraph.util.svg.AWTPathProducer
The reference y point for smooth arcs.
yNormTry - Variable in class com.mxgraph.layout.mxOrganicLayout
Array of the y portion of the normalised test vectors that are tested for a lower energy around each vertex.

Z

zoom(double) - Method in class com.mxgraph.swing.mxGraphComponent
 
zoom(boolean, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 
ZOOM_POLICY_NONE - Static variable in class com.mxgraph.swing.mxGraphComponent
 
ZOOM_POLICY_PAGE - Static variable in class com.mxgraph.swing.mxGraphComponent
 
ZOOM_POLICY_WIDTH - Static variable in class com.mxgraph.swing.mxGraphComponent
 
zoomActual() - Method in class com.mxgraph.swing.mxGraphComponent
Function: zoomActual Resets the zoom and panning in the view.
zoomAndCenter() - Method in class com.mxgraph.swing.mxGraphComponent
Invoked after the component was resized to update the zoom if the zoom policy is not none and/or update the translation of the diagram if pageVisible and centerPage are true.
zoomFactor - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the factor used for zoomIn and zoomOut.
zoomGesture - Variable in class com.mxgraph.swing.mxGraphOutline
 
zoomHandleLocation - Variable in class com.mxgraph.swing.mxGraphOutline
 
zoomHandleVisible - Variable in class com.mxgraph.swing.mxGraphOutline
 
zoomIn() - Method in class com.mxgraph.swing.mxGraphComponent
Zooms into the graph by zoomFactor.
zoomOut() - Method in class com.mxgraph.swing.mxGraphComponent
Function: zoomOut Zooms out of the graph by .
zoomPolicy - Variable in class com.mxgraph.swing.mxGraphComponent
Specifies the zoom policy.
zoomTo(double, boolean) - Method in class com.mxgraph.swing.mxGraphComponent
 

_

_parsel(boolean) - Method in class com.mxgraph.util.svg.PathParser
 
_parseL(boolean) - Method in class com.mxgraph.util.svg.PathParser
 

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/serialized-form.html0000664000175000017500000022027512176166726023325 0ustar sylvestresylvestre Serialized Form (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Serialized Form


Package com.mxgraph.analysis

Class com.mxgraph.analysis.StructuralException extends Exception implements Serializable

serialVersionUID: -468633497832330356L


Package com.mxgraph.layout.hierarchical.model

Class com.mxgraph.layout.hierarchical.model.mxGraphHierarchyRank extends LinkedHashSet<mxGraphAbstractHierarchyCell> implements Serializable

serialVersionUID: -2781491210687143878L


Package com.mxgraph.layout.hierarchical.stage

Class com.mxgraph.layout.hierarchical.stage.mxCoordinateAssignment.AreaSpatialCache extends Rectangle2D.Double implements Serializable

Serialized Fields

cells

Set<E> cells

Package com.mxgraph.model

Class com.mxgraph.model.mxCell extends Object implements Serializable

serialVersionUID: 910211337632342672L

Serialized Fields

id

String id
Holds the Id. Default is null.


value

Object value
Holds the user object. Default is null.


geometry

mxGeometry geometry
Holds the geometry. Default is null.


style

String style
Holds the style as a string of the form stylename[;key=value]. Default is null.


vertex

boolean vertex
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


edge

boolean edge
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


connectable

boolean connectable
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


visible

boolean visible
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


collapsed

boolean collapsed
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


parent

mxICell parent
Reference to the parent cell and source and target terminals for edges.


source

mxICell source
Reference to the parent cell and source and target terminals for edges.


target

mxICell target
Reference to the parent cell and source and target terminals for edges.


children

List<E> children
Holds the child cells and connected edges.


edges

List<E> edges
Holds the child cells and connected edges.

Class com.mxgraph.model.mxGeometry extends mxRectangle implements Serializable

serialVersionUID: 2649828026610336589L

Serialized Fields

alternateBounds

mxRectangle alternateBounds
Stores alternate values for x, y, width and height in a rectangle. Default is null.


sourcePoint

mxPoint sourcePoint
Defines the source- and target-point of the edge. This is used if the corresponding edge does not have a source vertex. Otherwise it is ignored. Default is null.


targetPoint

mxPoint targetPoint
Defines the source- and target-point of the edge. This is used if the corresponding edge does not have a source vertex. Otherwise it is ignored. Default is null.


points

List<E> points
List of mxPoints which specifies the control points along the edge. These points are the intermediate points on the edge, for the endpoints use targetPoint and sourcePoint or set the terminals of the edge to a non-null value. Default is null.


offset

mxPoint offset
Holds the offset of the label for edges. This is the absolute vector between the center of the edge and the top, left point of the label. Default is null.


relative

boolean relative
Specifies if the coordinates in the geometry are to be interpreted as relative coordinates. Default is false. This is used to mark a geometry with an x- and y-coordinate that is used to describe an edge label position, or a relative location with respect to a parent cell's width and height.

Class com.mxgraph.model.mxGraphModel extends mxEventSource implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
Initializes the currentEdit field if the model is deserialized.

Throws:
IOException
ClassNotFoundException
Serialized Fields

root

mxICell root
Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. That is, the actual element of the diagram are supposed to live in the third generation of cells and below.


cells

Map<K,V> cells
Maps from Ids to cells.


maintainEdgeParent

boolean maintainEdgeParent
Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. Default is true.


createIds

boolean createIds
Specifies if the model should automatically create Ids for new cells. Default is true.


nextId

int nextId
Specifies the next Id to be created. Initial value is 0.


Package com.mxgraph.swing

Class com.mxgraph.swing.mxGraphComponent extends JScrollPane implements Serializable

serialVersionUID: -30203858391633447L

Serialized Fields

graph

mxGraph graph

graphControl

mxGraphComponent.mxGraphControl graphControl

eventSource

mxEventSource eventSource

cellEditor

mxICellEditor cellEditor

connectionHandler

mxConnectionHandler connectionHandler

panningHandler

mxPanningHandler panningHandler

selectionCellsHandler

mxSelectionCellsHandler selectionCellsHandler

graphHandler

mxGraphHandler graphHandler

previewAlpha

float previewAlpha
The transparency of previewed cells from 0.0. to 0.1. 0.0 indicates transparent, 1.0 indicates opaque. Default is 1.


backgroundImage

ImageIcon backgroundImage
Specifies the to be returned by . Default is null.


pageFormat

PageFormat pageFormat
Background page format.


canvas

mxInteractiveCanvas canvas

tripleBuffer

BufferedImage tripleBuffer

tripleBufferGraphics

Graphics2D tripleBufferGraphics

pageScale

double pageScale
Defines the scaling for the background page metrics. Default is mxGraphComponent.DEFAULT_PAGESCALE.


pageVisible

boolean pageVisible
Specifies if the background page should be visible. Default is false.


preferPageSize

boolean preferPageSize
If the pageFormat should be used to determine the minimal graph bounds even if the page is not visible (see pageVisible). Default is false.


pageBreaksVisible

boolean pageBreaksVisible
Specifies if a dashed line should be drawn between multiple pages.


pageBreakColor

Color pageBreakColor
Specifies the color of page breaks


horizontalPageCount

int horizontalPageCount
Specifies the number of pages in the horizontal direction.


verticalPageCount

int verticalPageCount
Specifies the number of pages in the vertical direction.


centerPage

boolean centerPage
Specifies if the background page should be centered by automatically setting the translate in the view. Default is true. This does only apply if pageVisible is true.


pageBackgroundColor

Color pageBackgroundColor
Color of the background area if layout view.


pageShadowColor

Color pageShadowColor

pageBorderColor

Color pageBorderColor

gridVisible

boolean gridVisible
Specifies if the grid is visible. Default is false.


gridColor

Color gridColor

autoScroll

boolean autoScroll
Whether or not to scroll the scrollable container the graph exists in if a suitable handler is active and the graph bounds already exist extended in the direction of mouse travel.


autoExtend

boolean autoExtend
Whether to extend the graph bounds and scroll towards the limit of those new bounds in the direction of mouse travel if a handler is active while the mouse leaves the container that the graph exists in.


dragEnabled

boolean dragEnabled

importEnabled

boolean importEnabled

exportEnabled

boolean exportEnabled

foldingEnabled

boolean foldingEnabled
Specifies if folding (collapse and expand via an image icon in the graph should be enabled). Default is true.


tolerance

int tolerance
Specifies the tolerance for mouse clicks. Default is 4.


swimlaneSelectionEnabled

boolean swimlaneSelectionEnabled
Specifies if swimlanes are selected when the mouse is released over the swimlanes content area. Default is true.


transparentSwimlaneContent

boolean transparentSwimlaneContent
Specifies if the content area should be transparent to events. Default is true.


gridStyle

int gridStyle

expandedIcon

ImageIcon expandedIcon

collapsedIcon

ImageIcon collapsedIcon

warningIcon

ImageIcon warningIcon

antiAlias

boolean antiAlias

textAntiAlias

boolean textAntiAlias

escapeEnabled

boolean escapeEnabled
Specifies should be invoked when the escape key is pressed. Default is true.


invokesStopCellEditing

boolean invokesStopCellEditing
If true, when editing is to be stopped by way of selection changing, data in diagram changing or other means stopCellEditing is invoked, and changes are saved. This is implemented in a mouse listener in this class. Default is true.


enterStopsCellEditing

boolean enterStopsCellEditing
If true, pressing the enter key without pressing control will stop editing and accept the new value. This is used in to stop cell editing. Default is false.


zoomPolicy

int zoomPolicy
Specifies the zoom policy. Default is ZOOM_POLICY_PAGE. The zoom policy does only apply if pageVisible is true.


zoomFactor

double zoomFactor
Specifies the factor used for zoomIn and zoomOut. Default is 1.2 (120%).


keepSelectionVisibleOnZoom

boolean keepSelectionVisibleOnZoom
Specifies if the viewport should automatically contain the selection cells after a zoom operation. Default is false.


centerZoom

boolean centerZoom
Specifies if the zoom operations should go into the center of the actual diagram rather than going from top, left. Default is true.


tripleBuffered

boolean tripleBuffered
Specifies if an image buffer should be used for painting the component. Default is false.


showDirtyRectangle

boolean showDirtyRectangle
Used for debugging the dirty region.


components

Hashtable<K,V> components
Maps from cells to lists of heavyweights.


overlays

Hashtable<K,V> overlays
Maps from cells to lists of overlays.


updateHandler

mxEventSource.mxIEventListener updateHandler
Updates the heavyweight component structure after any changes.


repaintHandler

mxEventSource.mxIEventListener repaintHandler

viewChangeHandler

PropertyChangeListener viewChangeHandler

scaleHandler

mxEventSource.mxIEventListener scaleHandler
Resets the zoom policy if the scale is changed manually.

Class com.mxgraph.swing.mxGraphComponent.mxGraphControl extends JComponent implements Serializable

serialVersionUID: -8916603170766739124L

Serialized Fields

translate

Point translate
Specifies a translation for painting. This should only be used during mouse drags and must be reset after any interactive repaints. Default is (0,0). This should not be null.

Class com.mxgraph.swing.mxGraphOutline extends JComponent implements Serializable

serialVersionUID: -2521103946905154267L

Serialized Fields

graphComponent

mxGraphComponent graphComponent

tripleBuffer

BufferedImage tripleBuffer
TODO: Not yet implemented.


tripleBufferGraphics

Graphics2D tripleBufferGraphics
Holds the graphics of the triple buffer.


repaintBuffer

boolean repaintBuffer
True if the triple buffer needs a full repaint.


repaintClip

mxRectangle repaintClip
Clip of the triple buffer to be repainted.


tripleBuffered

boolean tripleBuffered

finderBounds

Rectangle finderBounds

zoomHandleLocation

Point zoomHandleLocation

finderVisible

boolean finderVisible

zoomHandleVisible

boolean zoomHandleVisible

useScaledInstance

boolean useScaledInstance

antiAlias

boolean antiAlias

drawLabels

boolean drawLabels

fitPage

boolean fitPage
Specifies if the outline should be zoomed to the page if the graph component is in page layout mode. Default is true.


outlineBorder

int outlineBorder
Not yet implemented. Border to add around the page bounds if wholePage is true. Default is 4.


tracker

mxGraphOutline.MouseTracker tracker

scale

double scale

translate

Point translate

repaintHandler

mxEventSource.mxIEventListener repaintHandler

componentHandler

ComponentListener componentHandler

adjustmentHandler

AdjustmentListener adjustmentHandler

Package com.mxgraph.swing.handler

Class com.mxgraph.swing.handler.mxCellMarker extends JComponent implements Serializable

serialVersionUID: 614473367053597572L

Serialized Fields

eventSource

mxEventSource eventSource
Holds the event source.


graphComponent

mxGraphComponent graphComponent
Holds the enclosing graph component.


enabled

boolean enabled
Specifies if the marker is enabled. Default is true.


hotspot

double hotspot
Specifies the portion of the width and height that should trigger a highlight. The area around the center of the cell to be marked is used as the hotspot. Possible values are between 0 and 1. Default is mxConstants.DEFAULT_HOTSPOT.


hotspotEnabled

boolean hotspotEnabled
Specifies if the hotspot is enabled. Default is false.


swimlaneContentEnabled

boolean swimlaneContentEnabled
Specifies if the the content area of swimlane should be non-transparent to mouse events. Default is false.


validColor

Color validColor
Specifies the valid- and invalidColor for the marker.


invalidColor

Color invalidColor
Specifies the valid- and invalidColor for the marker.

Class com.mxgraph.swing.handler.mxCellTracker extends mxCellMarker implements Serializable

serialVersionUID: 7372144804885125688L

Class com.mxgraph.swing.handler.mxGraphTransferHandler extends TransferHandler implements Serializable

serialVersionUID: -6443287704811197675L

Serialized Fields

originalCells

Object[] originalCells
Reference to the original cells for removal after a move.


lastImported

Transferable lastImported
Reference to the last imported cell array.


initialImportCount

int initialImportCount
Sets the value for the initialImportCount. Default is 1. Updated in exportDone to contain 0 after a cut and 1 after a copy.


importCount

int importCount
Counter for the last imported cell array.


transferImageEnabled

boolean transferImageEnabled
Specifies if a transfer image should be created for the transferable. Default is DEFAULT_TRANSFER_IMAGE.


transferImageBackground

Color transferImageBackground
Specifies the background color for the transfer image. Default is DEFAULT_BACKGROUNDCOLOR.


location

Point location

offset

Point offset

Package com.mxgraph.swing.util

Class com.mxgraph.swing.util.mxCellOverlay extends JComponent implements Serializable

serialVersionUID: 921991820491141221L

Serialized Fields

imageIcon

ImageIcon imageIcon

align

Object align
Holds the horizontal alignment for the overlay. Default is ALIGN_RIGHT. For edges, the overlay always appears in the center of the edge.


verticalAlign

Object verticalAlign
Holds the vertical alignment for the overlay. Default is bottom. For edges, the overlay always appears in the center of the edge.


defaultOverlap

double defaultOverlap
Defines the overlapping for the overlay, that is, the proportional distance from the origin to the point defined by the alignment. Default is 0.5.

Class com.mxgraph.swing.util.mxGraphActions.DeleteAction extends AbstractAction implements Serializable

serialVersionUID: -8212339796803275529L

Class com.mxgraph.swing.util.mxGraphActions.DrillAction extends AbstractAction implements Serializable

serialVersionUID: 5464382323663870291L

Class com.mxgraph.swing.util.mxGraphActions.EditAction extends AbstractAction implements Serializable

serialVersionUID: 4610112721356742702L

Class com.mxgraph.swing.util.mxGraphActions.FoldAction extends AbstractAction implements Serializable

serialVersionUID: 4078517503905239901L

Class com.mxgraph.swing.util.mxGraphActions.GroupAction extends AbstractAction implements Serializable

serialVersionUID: -4718086600089409092L

Class com.mxgraph.swing.util.mxGraphActions.LayerAction extends AbstractAction implements Serializable

serialVersionUID: 562519299806253741L

Class com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction extends AbstractAction implements Serializable

serialVersionUID: 7169443038859140811L

Class com.mxgraph.swing.util.mxGraphActions.SelectAction extends AbstractAction implements Serializable

serialVersionUID: 6501585024845668187L

Class com.mxgraph.swing.util.mxGraphActions.UngroupAction extends AbstractAction implements Serializable

serialVersionUID: 2247770767961318251L

Class com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction extends AbstractAction implements Serializable

serialVersionUID: -4718086600089409092L

Class com.mxgraph.swing.util.mxGraphActions.ZoomAction extends AbstractAction implements Serializable

serialVersionUID: -7500195051313272384L

Class com.mxgraph.swing.util.mxGraphTransferable extends Object implements Serializable

serialVersionUID: 5123819419918087664L

Serialized Fields

cells

Object[] cells

bounds

mxRectangle bounds

image

ImageIcon image

Package com.mxgraph.util

Class com.mxgraph.util.mxImage extends Object implements Serializable

serialVersionUID: 8541229679513497585L

Serialized Fields

src

String src
Holds the path or URL for the image.


width

int width
Holds the image width and height.


height

int height
Holds the image width and height.

Class com.mxgraph.util.mxLightweightLabel extends JLabel implements Serializable

serialVersionUID: -6771477489533614010L

Class com.mxgraph.util.mxLine extends mxPoint implements Serializable

serialVersionUID: -4730972599169158546L

Serialized Fields

endPoint

mxPoint endPoint
The end point of the line

Class com.mxgraph.util.mxPoint extends Object implements Serializable

serialVersionUID: 6554231393215892186L

Serialized Fields

x

double x
Holds the x- and y-coordinates of the point. Default is 0.


y

double y
Holds the x- and y-coordinates of the point. Default is 0.

Class com.mxgraph.util.mxRectangle extends mxPoint implements Serializable

serialVersionUID: -3793966043543578946L

Serialized Fields

width

double width
Holds the width and the height. Default is 0.


height

double height
Holds the width and the height. Default is 0.


Package com.mxgraph.util.png

Class com.mxgraph.util.png.mxPngSuggestedPaletteEntry extends Object implements Serializable

serialVersionUID: -8711686482529372447L

Serialized Fields

name

String name
The name of the entry.


sampleDepth

int sampleDepth
The depth of the color samples.


red

int red
The red color value of the entry.


green

int green
The green color value of the entry.


blue

int blue
The blue color value of the entry.


alpha

int alpha
The alpha opacity value of the entry.


frequency

int frequency
The probable frequency of the color in the image.


Package com.mxgraph.util.svg

Class com.mxgraph.util.svg.ParseException extends RuntimeException implements Serializable

Serialized Fields

exception

Exception exception
The embedded exception if tunnelling, or null.

lineNumber

int lineNumber
The line number.

columnNumber

int columnNumber
The column number.

Package com.mxgraph.view

Class com.mxgraph.view.mxCellState extends mxRectangle implements Serializable

serialVersionUID: 7588335615324083354L

Serialized Fields

view

mxGraphView view
Reference to the enclosing graph view.


cell

Object cell
Reference to the cell that is represented by this state.


label

String label
Holds the current label value, including newlines which result from word wrapping.


style

Map<K,V> style
Contains an array of key, value pairs that represent the style of the cell.


origin

mxPoint origin
Holds the origin for all child cells.


absolutePoints

List<E> absolutePoints
List of mxPoints that represent the absolute points of an edge.


absoluteOffset

mxPoint absoluteOffset
Holds the absolute offset. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex.


terminalDistance

double terminalDistance
Caches the distance between the end points and the length of an edge.


length

double length
Caches the distance between the end points and the length of an edge.


segments

double[] segments
Array of numbers that represent the cached length of each segment of the edge.


labelBounds

mxRectangle labelBounds
Holds the rectangle which contains the label.


boundingBox

mxRectangle boundingBox
Holds the largest rectangle which contains all rendering for this cell.


invalid

boolean invalid
Specifies if the state is invalid. Default is true.


visibleSourceState

mxCellState visibleSourceState
Caches the visible source and target terminal states.


visibleTargetState

mxCellState visibleTargetState
Caches the visible source and target terminal states.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/overview-summary.html0000664000175000017500000002551212176166726023567 0ustar sylvestresylvestre Overview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


JGraph X 2.1.0.7 API Specification

Packages
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree.
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML.
com.mxgraph.costfunction  
com.mxgraph.generatorfunction  
com.mxgraph.io This package contains all classes for input/output.
com.mxgraph.io.graphml  
com.mxgraph.layout This package contains various graph layouts.
com.mxgraph.layout.hierarchical  
com.mxgraph.layout.hierarchical.model  
com.mxgraph.layout.hierarchical.stage  
com.mxgraph.layout.orthogonal  
com.mxgraph.layout.orthogonal.model  
com.mxgraph.model This package contains the classes that define a graph model.
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model.
com.mxgraph.shape  
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients.
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component.
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing.
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays.
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes.
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history.
com.mxgraph.util.png  
com.mxgraph.util.svg  
com.mxgraph.view This package implements the graph component, represented by the mxGraph class.

 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/resources/0000775000175000017500000000000012176166726021345 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/resources/inherit.gif0000664000175000017500000000007112176166726023474 0ustar sylvestresylvestreGIF89a€ÿÿÿ,„ ¡½®DršjñÔ;߀Q@–¦…N;libjgraphx-java-2.1.0.7/docs/api/overview-frame.html0000664000175000017500000001032212176166726023155 0ustar sylvestresylvestre Overview List (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7

All Classes

Packages
com.mxgraph.analysis
com.mxgraph.canvas
com.mxgraph.costfunction
com.mxgraph.generatorfunction
com.mxgraph.io
com.mxgraph.io.graphml
com.mxgraph.layout
com.mxgraph.layout.hierarchical
com.mxgraph.layout.hierarchical.model
com.mxgraph.layout.hierarchical.stage
com.mxgraph.layout.orthogonal
com.mxgraph.layout.orthogonal.model
com.mxgraph.model
com.mxgraph.reader
com.mxgraph.shape
com.mxgraph.sharing
com.mxgraph.swing
com.mxgraph.swing.handler
com.mxgraph.swing.util
com.mxgraph.swing.view
com.mxgraph.util
com.mxgraph.util.png
com.mxgraph.util.svg
com.mxgraph.view

  libjgraphx-java-2.1.0.7/docs/api/com/0000775000175000017500000000000012176166716020110 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/0000775000175000017500000000000012176166726021557 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/0000775000175000017500000000000012176166726022706 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/mxGraphComponent.mxGraphControl.html0000664000175000017500000032545012176166724032042 0ustar sylvestresylvestre mxGraphComponent.mxGraphControl (JGraph X 2.1.0.7 API Specification)


JGraph X 2.1.0.7


com.mxgraph.swing
Class mxGraphComponent.mxGraphControl

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.mxgraph.swing.mxGraphComponent.mxGraphControl
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Enclosing class:
mxGraphComponent

public class mxGraphComponent.mxGraphControl
extends JComponent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  Point translate
          Specifies a translation for painting.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxGraphComponent.mxGraphControl()
           
 
Method Summary
protected  void cellDrawn(mxICanvas canvas, mxCellState state)
           
 void drawCell(mxICanvas canvas, Object cell)
          Draws the given cell onto the specified canvas.
protected  void drawChildren(Object cell, boolean edges, boolean others)
          Draws the child edges and/or all other children in the given cell depending on the boolean arguments.
protected  void drawFromRootCell()
          Hook to draw the root cell into the canvas.
 void drawGraph(Graphics2D g, boolean drawLabels)
           
protected  void extendComponent(Rectangle rect)
          Implements extension of the component in all directions.
protected  Rectangle getExtendedCellBounds(mxCellState state)
           
 mxGraphComponent getGraphContainer()
           
 String getToolTipText(MouseEvent e)
           
 Point getTranslate()
          Returns the translate.
protected  boolean hitClip(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  boolean isCellDisplayable(Object cell)
          Returns true if the given cell is not the current root or the root in the model.
 void paint(Graphics g)
           
 void paintComponent(Graphics g)
           
 void scrollRectToVisible(Rectangle aRect, boolean extend)
          Overrides parent method to add extend flag for making the control larger during previews.
 void setTranslate(Point value)
          Sets the translate.
 void updatePreferredSize()
          Updates the preferred size for the given scale if the page size should be preferred or the page is visible.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

translate

protected Point translate
Specifies a translation for painting. This should only be used during mouse drags and must be reset after any interactive repaints. Default is (0,0). This should not be null.

Constructor Detail

mxGraphComponent.mxGraphControl

public mxGraphComponent.mxGraphControl()
Method Detail

getTranslate

public Point getTranslate()
Returns the translate.


setTranslate

public void setTranslate(Point value)
Sets the translate.


getGraphContainer

public mxGraphComponent getGraphContainer()

scrollRectToVisible

public void scrollRectToVisible(Rectangle aRect,
                                boolean extend)
Overrides parent method to add extend flag for making the control larger during previews.


extendComponent

protected void extendComponent(Rectangle rect)
Implements extension of the component in all directions. For extension below the origin (into negative space) the translate will temporaly be used and reset with the next mouse released event.


getToolTipText

public String getToolTipText(MouseEvent e)
Overrides:
getToolTipText in class JComponent

updatePreferredSize

public void updatePreferredSize()
Updates the preferred size for the given scale if the page size should be preferred or the page is visible.


paint

public void paint(Graphics g)
Overrides:
paint in class JComponent

paintComponent

public void paintComponent(Graphics g)
Overrides:
paintComponent in class JComponent

drawGraph

public void drawGraph(Graphics2D g,
                      boolean drawLabels)

drawFromRootCell

protected void drawFromRootCell()
Hook to draw the root cell into the canvas.


hitClip

protected boolean hitClip(mxGraphics2DCanvas canvas,
                          mxCellState state)

getExtendedCellBounds

protected Rectangle getExtendedCellBounds(mxCellState state)
Parameters:
state - the cached state of the cell whose extended bounds are to be calculated
Returns:
the bounds of the cell, including the label and shadow and allowing for rotation

drawCell

public void drawCell(mxICanvas canvas,
                     Object cell)
Draws the given cell onto the specified canvas. This is a modified version of mxGraph.drawCell which paints the label only if the corresponding cell is not being edited and invokes the cellDrawn hook after all descendants have been painted.

Parameters:
canvas - Canvas onto which the cell should be drawn.
cell - Cell that should be drawn onto the canvas.

drawChildren

protected void drawChildren(Object cell,
                            boolean edges,
                            boolean others)
Draws the child edges and/or all other children in the given cell depending on the boolean arguments.


cellDrawn

protected void cellDrawn(mxICanvas canvas,
                         mxCellState state)

isCellDisplayable

protected boolean isCellDisplayable(Object cell)
Returns true if the given cell is not the current root or the root in the model. This can be overridden to not render certain cells in the graph display.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/mxGraphOutline.html0000664000175000017500000036162512176166724026555 0ustar sylvestresylvestre mxGraphOutline (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing
Class mxGraphOutline

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.mxgraph.swing.mxGraphOutline
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class mxGraphOutline
extends JComponent

An outline view for a specific graph component.

See Also:
Serialized Form

Nested Class Summary
 class mxGraphOutline.MouseTracker
           
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  AdjustmentListener adjustmentHandler
           
protected  boolean antiAlias
           
protected  ComponentListener componentHandler
           
static Color DEFAULT_ZOOMHANDLE_FILL
           
protected  boolean drawLabels
           
protected  Rectangle finderBounds
           
protected  boolean finderVisible
           
protected  boolean fitPage
          Specifies if the outline should be zoomed to the page if the graph component is in page layout mode.
protected  mxGraphComponent graphComponent
           
protected  int outlineBorder
          Not yet implemented.
protected  boolean repaintBuffer
          True if the triple buffer needs a full repaint.
protected  mxRectangle repaintClip
          Clip of the triple buffer to be repainted.
protected  mxEventSource.mxIEventListener repaintHandler
           
protected  double scale
           
protected  mxGraphOutline.MouseTracker tracker
           
protected  Point translate
           
protected  BufferedImage tripleBuffer
          TODO: Not yet implemented.
protected  boolean tripleBuffered
           
protected  Graphics2D tripleBufferGraphics
          Holds the graphics of the triple buffer.
protected  boolean useScaledInstance
           
protected  boolean zoomGesture
           
protected  Point zoomHandleLocation
           
protected  boolean zoomHandleVisible
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxGraphOutline(mxGraphComponent graphComponent)
           
 
Method Summary
 void checkTripleBuffer()
          Checks if the triple buffer exists and creates a new one if it does not.
protected  void createTripleBuffer(int width, int height)
          Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer.
 void destroyTripleBuffer()
          Destroys the tripleBuffer and tripleBufferGraphics objects.
 mxGraphComponent getGraphComponent()
           
 boolean isAntiAlias()
           
 boolean isDrawLabels()
           
 boolean isFitPage()
           
 boolean isTripleBuffered()
           
protected  void paintBackground(Graphics g)
          Paints the background.
 void paintComponent(Graphics g)
           
protected  void paintForeground(Graphics g)
          Paints the foreground.
 void paintGraph(Graphics g)
          Paints the graph outline.
 void repaintTripleBuffer(Rectangle clip)
          Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.
 void setAntiAlias(boolean antiAlias)
          Fires a property change event for antiAlias.
 void setDrawLabels(boolean drawLabels)
          Fires a property change event for drawLabels.
 void setFinderVisible(boolean visible)
           
 void setFitPage(boolean fitPage)
          Fires a property change event for fitPage.
 void setGraphComponent(mxGraphComponent graphComponent)
          Fires a property change event for graphComponent.
 void setTripleBuffered(boolean tripleBuffered)
          Fires a property change event for tripleBuffered.
 void setVisible(boolean visible)
           
 void setZoomHandleVisible(boolean visible)
           
 void updateFinder(boolean repaint)
           
 void updateFinderBounds(Rectangle bounds, boolean repaint)
           
 boolean updateScaleAndTranslate()
          Returns true if the scale or translate has changed.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_ZOOMHANDLE_FILL

public static Color DEFAULT_ZOOMHANDLE_FILL

graphComponent

protected mxGraphComponent graphComponent

tripleBuffer

protected BufferedImage tripleBuffer
TODO: Not yet implemented.


tripleBufferGraphics

protected Graphics2D tripleBufferGraphics
Holds the graphics of the triple buffer.


repaintBuffer

protected boolean repaintBuffer
True if the triple buffer needs a full repaint.


repaintClip

protected mxRectangle repaintClip
Clip of the triple buffer to be repainted.


tripleBuffered

protected boolean tripleBuffered

finderBounds

protected Rectangle finderBounds

zoomHandleLocation

protected Point zoomHandleLocation

finderVisible

protected boolean finderVisible

zoomHandleVisible

protected boolean zoomHandleVisible

useScaledInstance

protected boolean useScaledInstance

antiAlias

protected boolean antiAlias

drawLabels

protected boolean drawLabels

fitPage

protected boolean fitPage
Specifies if the outline should be zoomed to the page if the graph component is in page layout mode. Default is true.


outlineBorder

protected int outlineBorder
Not yet implemented. Border to add around the page bounds if wholePage is true. Default is 4.


tracker

protected mxGraphOutline.MouseTracker tracker

scale

protected double scale

translate

protected Point translate

zoomGesture

protected transient boolean zoomGesture

repaintHandler

protected mxEventSource.mxIEventListener repaintHandler

componentHandler

protected ComponentListener componentHandler

adjustmentHandler

protected AdjustmentListener adjustmentHandler
Constructor Detail

mxGraphOutline

public mxGraphOutline(mxGraphComponent graphComponent)
Method Detail

setTripleBuffered

public void setTripleBuffered(boolean tripleBuffered)
Fires a property change event for tripleBuffered.

Parameters:
tripleBuffered - the tripleBuffered to set

isTripleBuffered

public boolean isTripleBuffered()

setDrawLabels

public void setDrawLabels(boolean drawLabels)
Fires a property change event for drawLabels.

Parameters:
drawLabels - the drawLabels to set

isDrawLabels

public boolean isDrawLabels()

setAntiAlias

public void setAntiAlias(boolean antiAlias)
Fires a property change event for antiAlias.

Parameters:
antiAlias - the antiAlias to set

isAntiAlias

public boolean isAntiAlias()
Returns:
the antiAlias

setVisible

public void setVisible(boolean visible)
Overrides:
setVisible in class JComponent

setFinderVisible

public void setFinderVisible(boolean visible)

setZoomHandleVisible

public void setZoomHandleVisible(boolean visible)

setFitPage

public void setFitPage(boolean fitPage)
Fires a property change event for fitPage.

Parameters:
fitPage - the fitPage to set

isFitPage

public boolean isFitPage()

getGraphComponent

public mxGraphComponent getGraphComponent()

setGraphComponent

public void setGraphComponent(mxGraphComponent graphComponent)
Fires a property change event for graphComponent.

Parameters:
graphComponent - the graphComponent to set

checkTripleBuffer

public void checkTripleBuffer()
Checks if the triple buffer exists and creates a new one if it does not. Also compares the size of the buffer with the size of the graph and drops the buffer if it has a different size.


createTripleBuffer

protected void createTripleBuffer(int width,
                                  int height)
Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer.

Parameters:
width -
height -

destroyTripleBuffer

public void destroyTripleBuffer()
Destroys the tripleBuffer and tripleBufferGraphics objects.


repaintTripleBuffer

public void repaintTripleBuffer(Rectangle clip)
Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.

Parameters:
clip -

updateFinder

public void updateFinder(boolean repaint)

updateFinderBounds

public void updateFinderBounds(Rectangle bounds,
                               boolean repaint)

paintComponent

public void paintComponent(Graphics g)
Overrides:
paintComponent in class JComponent

paintBackground

protected void paintBackground(Graphics g)
Paints the background.


paintGraph

public void paintGraph(Graphics g)
Paints the graph outline.


paintForeground

protected void paintForeground(Graphics g)
Paints the foreground. Foreground is dynamic and should never be made part of the triple buffer. It is painted on top of the buffer.


updateScaleAndTranslate

public boolean updateScaleAndTranslate()
Returns true if the scale or translate has changed.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/mxGraphOutline.MouseTracker.html0000664000175000017500000005733612176166724031161 0ustar sylvestresylvestre mxGraphOutline.MouseTracker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing
Class mxGraphOutline.MouseTracker

java.lang.Object
  extended by com.mxgraph.swing.mxGraphOutline.MouseTracker
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Enclosing class:
mxGraphOutline

public class mxGraphOutline.MouseTracker
extends Object
implements MouseListener, MouseMotionListener


Field Summary
protected  Point start
           
 
Constructor Summary
mxGraphOutline.MouseTracker()
           
 
Method Summary
 boolean hitZoomHandle(int x, int y)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

protected Point start
Constructor Detail

mxGraphOutline.MouseTracker

public mxGraphOutline.MouseTracker()
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

hitZoomHandle

public boolean hitZoomHandle(int x,
                             int y)

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/0000775000175000017500000000000012176166726023663 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxAnimation.html0000664000175000017500000005247512176166724027050 0ustar sylvestresylvestre mxAnimation (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxAnimation

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.swing.util.mxAnimation
Direct Known Subclasses:
mxMorphing

public class mxAnimation
extends mxEventSource

Baseclass for all timer-based animations. Fires mxEvent.DONE when the stopAnimation method is called. Implement updateAnimation for the actual animation or listen to mxEvent.EXECUTE.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
static int DEFAULT_DELAY
          Specifies the default delay for animations in ms.
protected  int delay
          Default is DEFAULT_DELAY.
protected  Timer timer
          Time instance that is used for timing the animation.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxAnimation()
          Constructs a new animation instance with the given repaint delay.
mxAnimation(int delay)
          Constructs a new animation instance with the given repaint delay.
 
Method Summary
 int getDelay()
          Returns the delay for the animation.
 void setDelay(int value)
          Sets the delay for the animation.
 void startAnimation()
          Starts the animation by repeatedly invoking updateAnimation.
 void stopAnimation()
          Stops the animation by deleting the timer and fires mxEvent.DONE.
 void updateAnimation()
          Hook for subclassers to implement the animation.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DELAY

public static int DEFAULT_DELAY
Specifies the default delay for animations in ms. Default is 20.


delay

protected int delay
Default is DEFAULT_DELAY.


timer

protected Timer timer
Time instance that is used for timing the animation.

Constructor Detail

mxAnimation

public mxAnimation()
Constructs a new animation instance with the given repaint delay.


mxAnimation

public mxAnimation(int delay)
Constructs a new animation instance with the given repaint delay.

Method Detail

getDelay

public int getDelay()
Returns the delay for the animation.


setDelay

public void setDelay(int value)
Sets the delay for the animation.


startAnimation

public void startAnimation()
Starts the animation by repeatedly invoking updateAnimation.


updateAnimation

public void updateAnimation()
Hook for subclassers to implement the animation. Invoke stopAnimation when finished, startAnimation to resume. This is called whenever the timer fires and fires an mxEvent.EXECUTE event with no properties.


stopAnimation

public void stopAnimation()
Stops the animation by deleting the timer and fires mxEvent.DONE.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.ZoomAction.html0000664000175000017500000005064712176166724031573 0ustar sylvestresylvestre mxGraphActions.ZoomAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.ZoomAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.ZoomAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.ZoomAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.ZoomAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.ZoomAction

public mxGraphActions.ZoomAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxSwingConstants.html0000664000175000017500000006570412176166724030114 0ustar sylvestresylvestre mxSwingConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxSwingConstants

java.lang.Object
  extended by com.mxgraph.swing.util.mxSwingConstants

public class mxSwingConstants
extends Object


Field Summary
static Color CONNECT_HANDLE_FILLCOLOR
          Defines the connect handle fill color.
static Color DEFAULT_INVALID_COLOR
          Specifies the default invalid color.
static Color DEFAULT_VALID_COLOR
          Specifies the default valid color.
static Color EDGE_SELECTION_COLOR
          Defines the selection color for edges.
static Stroke EDGE_SELECTION_STROKE
          Defines the stroke used for painting selected edges.
static BufferedImage EMPTY_IMAGE
          Contains an empty image of size 1, 1.
static Color HANDLE_BORDERCOLOR
          Defines the handle border color.
static Color HANDLE_FILLCOLOR
          Defines the handle fill color.
static Color LABEL_HANDLE_FILLCOLOR
          Defines the label handle fill color.
static Color LOCKED_HANDLE_FILLCOLOR
          Defines the handle fill color for locked handles.
static Border PREVIEW_BORDER
          Defines the border used for painting the preview when vertices are being resized, or cells and labels are being moved.
static Stroke PREVIEW_STROKE
          Defines the stroke used for painting the preview for new and existing edges that are being changed.
static Color RUBBERBAND_BORDERCOLOR
          Defines the rubberband border color.
static Color RUBBERBAND_FILLCOLOR
          Defines the rubberband fill color with an alpha of 80.
static Color SHADOW_COLOR
          Defines the color to be used for shadows.
static Color VERTEX_SELECTION_COLOR
          Defines the selection color for vertices.
static Stroke VERTEX_SELECTION_STROKE
          Defines the stroke used for painting the border of selected vertices.
 
Constructor Summary
mxSwingConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_IMAGE

public static BufferedImage EMPTY_IMAGE
Contains an empty image of size 1, 1.


SHADOW_COLOR

public static Color SHADOW_COLOR
Defines the color to be used for shadows. Default is gray.


DEFAULT_VALID_COLOR

public static Color DEFAULT_VALID_COLOR
Specifies the default valid color. Default is green.


DEFAULT_INVALID_COLOR

public static Color DEFAULT_INVALID_COLOR
Specifies the default invalid color. Default is red.


RUBBERBAND_BORDERCOLOR

public static Color RUBBERBAND_BORDERCOLOR
Defines the rubberband border color.


RUBBERBAND_FILLCOLOR

public static Color RUBBERBAND_FILLCOLOR
Defines the rubberband fill color with an alpha of 80.


HANDLE_BORDERCOLOR

public static Color HANDLE_BORDERCOLOR
Defines the handle border color. Default is black.


HANDLE_FILLCOLOR

public static Color HANDLE_FILLCOLOR
Defines the handle fill color. Default is green.


LABEL_HANDLE_FILLCOLOR

public static Color LABEL_HANDLE_FILLCOLOR
Defines the label handle fill color. Default is yellow.


CONNECT_HANDLE_FILLCOLOR

public static Color CONNECT_HANDLE_FILLCOLOR
Defines the connect handle fill color. Default is blue.


LOCKED_HANDLE_FILLCOLOR

public static Color LOCKED_HANDLE_FILLCOLOR
Defines the handle fill color for locked handles. Default is red.


EDGE_SELECTION_COLOR

public static Color EDGE_SELECTION_COLOR
Defines the selection color for edges. Default is green.


VERTEX_SELECTION_COLOR

public static Color VERTEX_SELECTION_COLOR
Defines the selection color for vertices. Default is green.


EDGE_SELECTION_STROKE

public static Stroke EDGE_SELECTION_STROKE
Defines the stroke used for painting selected edges. Default is a dashed line.


VERTEX_SELECTION_STROKE

public static Stroke VERTEX_SELECTION_STROKE
Defines the stroke used for painting the border of selected vertices. Default is a dashed line.


PREVIEW_STROKE

public static Stroke PREVIEW_STROKE
Defines the stroke used for painting the preview for new and existing edges that are being changed. Default is a dashed line.


PREVIEW_BORDER

public static Border PREVIEW_BORDER
Defines the border used for painting the preview when vertices are being resized, or cells and labels are being moved.

Constructor Detail

mxSwingConstants

public mxSwingConstants()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxMouseAdapter.html0000664000175000017500000005450312176166724027514 0ustar sylvestresylvestre mxMouseAdapter (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxMouseAdapter

java.lang.Object
  extended by com.mxgraph.swing.util.mxMouseAdapter
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
mxConnectionHandler, mxGraphHandler, mxInsertHandler, mxPanningHandler, mxRotationHandler

public class mxMouseAdapter
extends Object
implements MouseMotionListener, MouseListener


Constructor Summary
mxMouseAdapter()
           
 
Method Summary
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxMouseAdapter

public mxMouseAdapter()
Method Detail

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/0000775000175000017500000000000012176166726025562 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxAnimation.html0000664000175000017500000001750512176166726030744 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxAnimation (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxAnimation

Packages that use mxAnimation
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
 

Uses of mxAnimation in com.mxgraph.swing.util
 

Subclasses of mxAnimation in com.mxgraph.swing.util
 class mxMorphing
          Provides animation effects.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.ZoomAction.html0000664000175000017500000001417712176166726033472 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.ZoomAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.ZoomAction

No usage of com.mxgraph.swing.util.mxGraphActions.ZoomAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxSwingConstants.html0000664000175000017500000001404512176166726032005 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxSwingConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxSwingConstants

No usage of com.mxgraph.swing.util.mxSwingConstants


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxMouseAdapter.html0000664000175000017500000002266212176166726031416 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxMouseAdapter (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxMouseAdapter

Packages that use mxMouseAdapter
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxMouseAdapter in com.mxgraph.swing.handler
 

Subclasses of mxMouseAdapter in com.mxgraph.swing.handler
 class mxConnectionHandler
          Connection handler creates new connections between cells.
 class mxGraphHandler
           
 class mxInsertHandler
           
 class mxPanningHandler
           
 class mxRotationHandler
          Basic example of implementing a handler for rotation.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.DeleteAction.html0000664000175000017500000001422312176166726033740 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.DeleteAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.DeleteAction

No usage of com.mxgraph.swing.util.mxGraphActions.DeleteAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.FoldAction.html0000664000175000017500000001417712176166726033432 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.FoldAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.FoldAction

No usage of com.mxgraph.swing.util.mxGraphActions.FoldAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxCellOverlay.html0000664000175000017500000001400712176166726031240 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxCellOverlay (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxCellOverlay

No usage of com.mxgraph.swing.util.mxCellOverlay


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.GroupAction.html0000664000175000017500000001421112176166726033627 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.GroupAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.GroupAction

No usage of com.mxgraph.swing.util.mxGraphActions.GroupAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.DrillAction.html0000664000175000017500000001421112176166726033601 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.DrillAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.DrillAction

No usage of com.mxgraph.swing.util.mxGraphActions.DrillAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.LayerAction.html0000664000175000017500000001421112176166726033607 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.LayerAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.LayerAction

No usage of com.mxgraph.swing.util.mxGraphActions.LayerAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.RemoveFromParentAction.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.RemoveFromParentAct0000664000175000017500000001436712176166726034331 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction

No usage of com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxMorphing.html0000664000175000017500000001375112176166726030607 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxMorphing (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxMorphing

No usage of com.mxgraph.swing.util.mxMorphing


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxICellOverlay.html0000664000175000017500000004663712176166726031367 0ustar sylvestresylvestre Uses of Interface com.mxgraph.swing.util.mxICellOverlay (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.swing.util.mxICellOverlay

Packages that use mxICellOverlay
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
 

Uses of mxICellOverlay in com.mxgraph.swing
 

Methods in com.mxgraph.swing that return mxICellOverlay
 mxICellOverlay mxGraphComponent.addCellOverlay(Object cell, mxICellOverlay overlay)
          Adds an overlay for the specified cell.
 mxICellOverlay[] mxGraphComponent.getCellOverlays(Object cell)
          Returns the array of overlays for the given cell or null, if no overlays are defined.
 mxICellOverlay mxGraphComponent.removeCellOverlay(Object cell, mxICellOverlay overlay)
          Removes and returns the given overlay from the given cell.
 mxICellOverlay[] mxGraphComponent.removeCellOverlays(Object cell)
          Removes all overlays from the given cell.
 mxICellOverlay mxGraphComponent.setCellWarning(Object cell, String warning)
          Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
 mxICellOverlay mxGraphComponent.setCellWarning(Object cell, String warning, ImageIcon icon)
          Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
 mxICellOverlay mxGraphComponent.setCellWarning(Object cell, String warning, ImageIcon icon, boolean select)
          Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
 

Methods in com.mxgraph.swing with parameters of type mxICellOverlay
 mxICellOverlay mxGraphComponent.addCellOverlay(Object cell, mxICellOverlay overlay)
          Adds an overlay for the specified cell.
 mxICellOverlay mxGraphComponent.removeCellOverlay(Object cell, mxICellOverlay overlay)
          Removes and returns the given overlay from the given cell.
protected  void mxGraphComponent.removeCellOverlayComponent(mxICellOverlay overlay, Object cell)
          Notified when an overlay has been removed from the graph.
protected  void mxGraphComponent.updateCellOverlayComponent(mxCellState state, mxICellOverlay overlay)
          Notified when an overlay has been removed from the graph.
 

Uses of mxICellOverlay in com.mxgraph.swing.util
 

Classes in com.mxgraph.swing.util that implement mxICellOverlay
 class mxCellOverlay
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.html0000664000175000017500000001402112176166726031375 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions

No usage of com.mxgraph.swing.util.mxGraphActions


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.UpdateGroupBoundsAction.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.UpdateGroupBoundsAc0000664000175000017500000001440112176166726034311 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction

No usage of com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.SelectAction.html0000664000175000017500000001422312176166726033755 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.SelectAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.SelectAction

No usage of com.mxgraph.swing.util.mxGraphActions.SelectAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.EditAction.html0000664000175000017500000001417712176166726033433 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.EditAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.EditAction

No usage of com.mxgraph.swing.util.mxGraphActions.EditAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphActions.UngroupAction.html0000664000175000017500000001423512176166726034200 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphActions.UngroupAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphActions.UngroupAction

No usage of com.mxgraph.swing.util.mxGraphActions.UngroupAction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/class-use/mxGraphTransferable.html0000664000175000017500000003260012176166726032410 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.util.mxGraphTransferable (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.util.mxGraphTransferable

Packages that use mxGraphTransferable
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxGraphTransferable in com.mxgraph.swing.handler
 

Methods in com.mxgraph.swing.handler that return mxGraphTransferable
 mxGraphTransferable mxGraphTransferHandler.createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, ImageIcon icon)
           
 mxGraphTransferable mxGraphTransferHandler.createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, mxRectangle bounds, ImageIcon icon)
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxGraphTransferable
protected  Object mxGraphTransferHandler.getDropTarget(mxGraphComponent graphComponent, mxGraphTransferable gt)
          Returns the drop target for the given transferable and location.
protected  Object[] mxGraphTransferHandler.importCells(mxGraphComponent graphComponent, mxGraphTransferable gt, double dx, double dy)
          Gets a drop target using getDropTarget and imports the cells using mxGraph.splitEdge or mxGraphComponent.importCells depending on the drop target and the return values of mxGraph.isSplitEnabled and mxGraph.isSplitTarget.
protected  boolean mxGraphTransferHandler.importGraphTransferable(mxGraphComponent graphComponent, mxGraphTransferable gt)
          Returns true if the cells have been imported using importCells.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/package-frame.html0000664000175000017500000000663012176166726027241 0ustar sylvestresylvestre com.mxgraph.swing.util (JGraph X 2.1.0.7 API Specification) com.mxgraph.swing.util
Interfaces 
mxICellOverlay
Classes 
mxAnimation
mxCellOverlay
mxGraphActions
mxGraphActions.DeleteAction
mxGraphActions.DrillAction
mxGraphActions.EditAction
mxGraphActions.FoldAction
mxGraphActions.GroupAction
mxGraphActions.LayerAction
mxGraphActions.RemoveFromParentAction
mxGraphActions.SelectAction
mxGraphActions.UngroupAction
mxGraphActions.UpdateGroupBoundsAction
mxGraphActions.ZoomAction
mxGraphTransferable
mxMorphing
mxMouseAdapter
mxSwingConstants
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.DeleteAction.html0000664000175000017500000005065312176166724032046 0ustar sylvestresylvestre mxGraphActions.DeleteAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.DeleteAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.DeleteAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.DeleteAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.DeleteAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.DeleteAction

public mxGraphActions.DeleteAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.FoldAction.html0000664000175000017500000005063312176166724031526 0ustar sylvestresylvestre mxGraphActions.FoldAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.FoldAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.FoldAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.FoldAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.FoldAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.FoldAction

public mxGraphActions.FoldAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxCellOverlay.html0000664000175000017500000030361312176166724027343 0ustar sylvestresylvestre mxCellOverlay (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxCellOverlay

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.mxgraph.swing.util.mxCellOverlay
All Implemented Interfaces:
mxICellOverlay, ImageObserver, MenuContainer, Serializable

public class mxCellOverlay
extends JComponent
implements mxICellOverlay

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  Object align
          Holds the horizontal alignment for the overlay.
protected  double defaultOverlap
          Defines the overlapping for the overlay, that is, the proportional distance from the origin to the point defined by the alignment.
protected  ImageIcon imageIcon
           
protected  Object verticalAlign
          Holds the vertical alignment for the overlay.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxCellOverlay(ImageIcon icon, String warning)
           
 
Method Summary
 Object getAlign()
           
 mxRectangle getBounds(mxCellState state)
           
 Object getVerticalAlign()
           
 void paint(Graphics g)
           
 void setAlign(Object value)
           
 void setVerticalAlign(Object value)
           
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

imageIcon

protected ImageIcon imageIcon

align

protected Object align
Holds the horizontal alignment for the overlay. Default is ALIGN_RIGHT. For edges, the overlay always appears in the center of the edge.


verticalAlign

protected Object verticalAlign
Holds the vertical alignment for the overlay. Default is bottom. For edges, the overlay always appears in the center of the edge.


defaultOverlap

protected double defaultOverlap
Defines the overlapping for the overlay, that is, the proportional distance from the origin to the point defined by the alignment. Default is 0.5.

Constructor Detail

mxCellOverlay

public mxCellOverlay(ImageIcon icon,
                     String warning)
Method Detail

getAlign

public Object getAlign()
Returns:
the alignment of the overlay, see mxConstants.ALIGN_*****

setAlign

public void setAlign(Object value)
Parameters:
value - the alignment to set, see mxConstants.ALIGN_*****

getVerticalAlign

public Object getVerticalAlign()
Returns:
the vertical alignment, see mxConstants.ALIGN_*****

setVerticalAlign

public void setVerticalAlign(Object value)
Parameters:
value - the vertical alignment to set, see mxConstants.ALIGN_*****

paint

public void paint(Graphics g)
Overrides:
paint in class JComponent

getBounds

public mxRectangle getBounds(mxCellState state)
Specified by:
getBounds in interface mxICellOverlay

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.GroupAction.html0000664000175000017500000005230012176166724031727 0ustar sylvestresylvestre mxGraphActions.GroupAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.GroupAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.GroupAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.GroupAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.GroupAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  int getGroupBorder(mxGraph graph)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.GroupAction

public mxGraphActions.GroupAction(String name)
Parameters:
name -
Method Detail

getGroupBorder

protected int getGroupBorder(mxGraph graph)

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.DrillAction.html0000664000175000017500000005066012176166724031710 0ustar sylvestresylvestre mxGraphActions.DrillAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.DrillAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.DrillAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.DrillAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.DrillAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.DrillAction

public mxGraphActions.DrillAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.LayerAction.html0000664000175000017500000005070612176166724031717 0ustar sylvestresylvestre mxGraphActions.LayerAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.LayerAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.LayerAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.LayerAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.LayerAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.LayerAction

public mxGraphActions.LayerAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.RemoveFromParentAction.html0000664000175000017500000005120312176166724034067 0ustar sylvestresylvestre mxGraphActions.RemoveFromParentAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.RemoveFromParentAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.RemoveFromParentAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.RemoveFromParentAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.RemoveFromParentAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.RemoveFromParentAction

public mxGraphActions.RemoveFromParentAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxMorphing.html0000664000175000017500000011077612176166724026713 0ustar sylvestresylvestre mxMorphing (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxMorphing

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.swing.util.mxAnimation
          extended by com.mxgraph.swing.util.mxMorphing

public class mxMorphing
extends mxAnimation

Provides animation effects.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  Object[] cells
          Optional array of cells to limit the animation to.
protected  mxRectangle dirty
           
protected  double ease
          Ease-off for movement towards the given vector.
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph instance.
protected  Map<Object,mxPoint> origins
          Maps from cells to origins.
protected  mxCellStatePreview preview
           
protected  int step
          Counts the current number of steps of the animation.
protected  int steps
          Specifies the maximum number of steps for the morphing.
 
Fields inherited from class com.mxgraph.swing.util.mxAnimation
DEFAULT_DELAY, delay, timer
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxMorphing(mxGraphComponent graphComponent)
          Constructs a new morphing instance for the given graph.
mxMorphing(mxGraphComponent graphComponent, int steps, double ease, int delay)
          Constructs a new morphing instance for the given graph.
 
Method Summary
protected  void animateCell(Object cell, mxCellStatePreview move, boolean recurse)
          Animates the given cell state using moveState.
protected  mxPoint getDelta(mxCellState state)
          Returns the vector between the current rendered state and the future location of the state after the display will be updated.
 double getEase()
          Returns the easing for the movements.
protected  mxPoint getOriginForCell(Object cell)
          Returns the top, left corner of the given cell.
 int getSteps()
          Returns the number of steps for the animation.
 void paint(Graphics g)
           
 void setCells(Object[] value)
          Optional array of cells to be animated.
 void setEase(double value)
          Sets the easing for the movements.
 void setSteps(int value)
          Sets the number of steps for the animation.
protected  void show(mxCellStatePreview preview)
          Shows the changes in the given mxCellStatePreview.
 void stopAnimation()
          Stops the animation by deleting the timer and fires mxEvent.DONE.
protected  boolean stopRecursion(mxCellState state, mxPoint delta)
          Returns true if the animation should not recursively find more deltas for children if the given parent state has been animated.
 void updateAnimation()
          Animation step.
 
Methods inherited from class com.mxgraph.swing.util.mxAnimation
getDelay, setDelay, startAnimation
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph instance.


steps

protected int steps
Specifies the maximum number of steps for the morphing. Default is 6.


step

protected int step
Counts the current number of steps of the animation.


ease

protected double ease
Ease-off for movement towards the given vector. Larger values are slower and smoother. Default is 1.5.


origins

protected Map<Object,mxPoint> origins
Maps from cells to origins.


cells

protected Object[] cells
Optional array of cells to limit the animation to.


dirty

protected transient mxRectangle dirty

preview

protected transient mxCellStatePreview preview
Constructor Detail

mxMorphing

public mxMorphing(mxGraphComponent graphComponent)
Constructs a new morphing instance for the given graph.


mxMorphing

public mxMorphing(mxGraphComponent graphComponent,
                  int steps,
                  double ease,
                  int delay)
Constructs a new morphing instance for the given graph.

Method Detail

getSteps

public int getSteps()
Returns the number of steps for the animation.


setSteps

public void setSteps(int value)
Sets the number of steps for the animation.


getEase

public double getEase()
Returns the easing for the movements.


setEase

public void setEase(double value)
Sets the easing for the movements.


setCells

public void setCells(Object[] value)
Optional array of cells to be animated. If this is not specified then all cells are checked and animated if they have been moved in the current transaction.


updateAnimation

public void updateAnimation()
Animation step.

Overrides:
updateAnimation in class mxAnimation

stopAnimation

public void stopAnimation()
Description copied from class: mxAnimation
Stops the animation by deleting the timer and fires mxEvent.DONE.

Overrides:
stopAnimation in class mxAnimation

show

protected void show(mxCellStatePreview preview)
Shows the changes in the given mxCellStatePreview.


animateCell

protected void animateCell(Object cell,
                           mxCellStatePreview move,
                           boolean recurse)
Animates the given cell state using moveState.


stopRecursion

protected boolean stopRecursion(mxCellState state,
                                mxPoint delta)
Returns true if the animation should not recursively find more deltas for children if the given parent state has been animated.


getDelta

protected mxPoint getDelta(mxCellState state)
Returns the vector between the current rendered state and the future location of the state after the display will be updated.


getOriginForCell

protected mxPoint getOriginForCell(Object cell)
Returns the top, left corner of the given cell.


paint

public void paint(Graphics g)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxICellOverlay.html0000664000175000017500000002132712176166724027453 0ustar sylvestresylvestre mxICellOverlay (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Interface mxICellOverlay

All Known Implementing Classes:
mxCellOverlay

public interface mxICellOverlay


Method Summary
 mxRectangle getBounds(mxCellState state)
           
 

Method Detail

getBounds

mxRectangle getBounds(mxCellState state)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/package-summary.html0000664000175000017500000002640212176166726027643 0ustar sylvestresylvestre com.mxgraph.swing.util (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.swing.util

This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays.

See:
          Description

Interface Summary
mxICellOverlay  
 

Class Summary
mxAnimation Baseclass for all timer-based animations.
mxCellOverlay  
mxGraphActions  
mxGraphActions.DeleteAction  
mxGraphActions.DrillAction  
mxGraphActions.EditAction  
mxGraphActions.FoldAction  
mxGraphActions.GroupAction  
mxGraphActions.LayerAction  
mxGraphActions.RemoveFromParentAction  
mxGraphActions.SelectAction  
mxGraphActions.UngroupAction  
mxGraphActions.UpdateGroupBoundsAction  
mxGraphActions.ZoomAction  
mxGraphTransferable  
mxMorphing Provides animation effects.
mxMouseAdapter  
mxSwingConstants  
 

Package com.mxgraph.swing.util Description

This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.html0000664000175000017500000011345712176166724027511 0ustar sylvestresylvestre mxGraphActions (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions

java.lang.Object
  extended by com.mxgraph.swing.util.mxGraphActions

public class mxGraphActions
extends Object


Nested Class Summary
static class mxGraphActions.DeleteAction
           
static class mxGraphActions.DrillAction
           
static class mxGraphActions.EditAction
           
static class mxGraphActions.FoldAction
           
static class mxGraphActions.GroupAction
           
static class mxGraphActions.LayerAction
           
static class mxGraphActions.RemoveFromParentAction
           
static class mxGraphActions.SelectAction
           
static class mxGraphActions.UngroupAction
           
static class mxGraphActions.UpdateGroupBoundsAction
           
static class mxGraphActions.ZoomAction
           
 
Constructor Summary
mxGraphActions()
           
 
Method Summary
static Action getCollapseAction()
           
static Action getDeleteAction()
           
static Action getEditAction()
           
static Action getEnterGroupAction()
           
static Action getExitGroupAction()
           
static Action getExpandAction()
           
static mxGraph getGraph(ActionEvent e)
           
static Action getGroupAction()
           
static Action getHomeAction()
           
static Action getRemoveFromParentAction()
           
static Action getSelectAllAction()
           
static Action getSelectChildAction()
           
static Action getSelectEdgesAction()
           
static Action getSelectNextAction()
           
static Action getSelectNoneAction()
           
static Action getSelectParentAction()
           
static Action getSelectPreviousAction()
           
static Action getSelectVerticesAction()
           
static Action getToBackAction()
           
static Action getToFrontAction()
           
static Action getUngroupAction()
           
static Action getUpdateGroupBoundsAction()
           
static Action getZoomActualAction()
           
static Action getZoomInAction()
           
static Action getZoomOutAction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions

public mxGraphActions()
Method Detail

getDeleteAction

public static Action getDeleteAction()
Returns:
the delete action

getEditAction

public static Action getEditAction()
Returns:
the edit action

getGroupAction

public static Action getGroupAction()
Returns:
the edit action

getUngroupAction

public static Action getUngroupAction()
Returns:
the edit action

getRemoveFromParentAction

public static Action getRemoveFromParentAction()
Returns:
the edit action

getUpdateGroupBoundsAction

public static Action getUpdateGroupBoundsAction()
Returns:
the edit action

getSelectAllAction

public static Action getSelectAllAction()
Returns:
the select all action

getSelectVerticesAction

public static Action getSelectVerticesAction()
Returns:
the select vertices action

getSelectEdgesAction

public static Action getSelectEdgesAction()
Returns:
the select edges action

getSelectNoneAction

public static Action getSelectNoneAction()
Returns:
the select none action

getSelectNextAction

public static Action getSelectNextAction()
Returns:
the select next action

getSelectPreviousAction

public static Action getSelectPreviousAction()
Returns:
the select previous action

getSelectParentAction

public static Action getSelectParentAction()
Returns:
the select parent action

getSelectChildAction

public static Action getSelectChildAction()
Returns:
the select child action

getEnterGroupAction

public static Action getEnterGroupAction()
Returns:
the go into action

getExitGroupAction

public static Action getExitGroupAction()
Returns:
the go up action

getHomeAction

public static Action getHomeAction()
Returns:
the home action

getCollapseAction

public static Action getCollapseAction()
Returns:
the collapse action

getExpandAction

public static Action getExpandAction()
Returns:
the expand action

getZoomActualAction

public static Action getZoomActualAction()
Returns:
the zoom actual action

getZoomInAction

public static Action getZoomInAction()
Returns:
the zoom in action

getZoomOutAction

public static Action getZoomOutAction()
Returns:
the zoom out action

getToBackAction

public static Action getToBackAction()
Returns:
the action that moves cell(s) to the backmost layer

getToFrontAction

public static Action getToFrontAction()
Returns:
the action that moves cell(s) to the frontmost layer

getGraph

public static final mxGraph getGraph(ActionEvent e)
Parameters:
e -
Returns:
Returns the graph for the given action event.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/package-use.html0000664000175000017500000002247712176166726026752 0ustar sylvestresylvestre Uses of Package com.mxgraph.swing.util (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.swing.util

Packages that use com.mxgraph.swing.util
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
 

Classes in com.mxgraph.swing.util used by com.mxgraph.swing
mxICellOverlay
           
 

Classes in com.mxgraph.swing.util used by com.mxgraph.swing.handler
mxGraphTransferable
           
mxMouseAdapter
           
 

Classes in com.mxgraph.swing.util used by com.mxgraph.swing.util
mxAnimation
          Baseclass for all timer-based animations.
mxICellOverlay
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.UpdateGroupBoundsAction.html0000664000175000017500000005266412176166724034262 0ustar sylvestresylvestre mxGraphActions.UpdateGroupBoundsAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.UpdateGroupBoundsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.UpdateGroupBoundsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.UpdateGroupBoundsAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.UpdateGroupBoundsAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  int getGroupBorder(mxGraph graph)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.UpdateGroupBoundsAction

public mxGraphActions.UpdateGroupBoundsAction(String name)
Parameters:
name -
Method Detail

getGroupBorder

protected int getGroupBorder(mxGraph graph)

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/package-tree.html0000664000175000017500000003173312176166726027110 0ustar sylvestresylvestre com.mxgraph.swing.util Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.swing.util

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.SelectAction.html0000664000175000017500000005073512176166724032064 0ustar sylvestresylvestre mxGraphActions.SelectAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.SelectAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.SelectAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.SelectAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.SelectAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.SelectAction

public mxGraphActions.SelectAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.EditAction.html0000664000175000017500000005063312176166724031527 0ustar sylvestresylvestre mxGraphActions.EditAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.EditAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.EditAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.EditAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.EditAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.EditAction

public mxGraphActions.EditAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphActions.UngroupAction.html0000664000175000017500000005076012176166724032302 0ustar sylvestresylvestre mxGraphActions.UngroupAction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphActions.UngroupAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.mxgraph.swing.util.mxGraphActions.UngroupAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
mxGraphActions

public static class mxGraphActions.UngroupAction
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
mxGraphActions.UngroupAction(String name)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphActions.UngroupAction

public mxGraphActions.UngroupAction(String name)
Parameters:
name -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/util/mxGraphTransferable.html0000664000175000017500000012137212176166724030514 0ustar sylvestresylvestre mxGraphTransferable (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.util
Class mxGraphTransferable

java.lang.Object
  extended by com.mxgraph.swing.util.mxGraphTransferable
All Implemented Interfaces:
Transferable, Serializable, UIResource

public class mxGraphTransferable
extends Object
implements Transferable, UIResource, Serializable

See Also:
Serialized Form

Field Summary
protected  mxRectangle bounds
           
protected  Object[] cells
           
static DataFlavor dataFlavor
          Serialized Data Flavor.
protected  ImageIcon image
           
 
Constructor Summary
mxGraphTransferable(Object[] cells, mxRectangle bounds)
           
mxGraphTransferable(Object[] cells, mxRectangle bounds, ImageIcon image)
           
 
Method Summary
 mxRectangle getBounds()
          Returns the unscaled, untranslated bounding box of the cells.
 Object[] getCells()
           
protected  String getHtmlData()
          Fetch the data in a text/html format
 ImageIcon getImage()
           
protected  String getPlainData()
          Fetch the data in a text/plain format.
 Object getRicherData(DataFlavor flavor)
           
protected  DataFlavor[] getRicherFlavors()
          Some subclasses will have flavors that are more descriptive than HTML or plain text.
 Object getTransferData(DataFlavor flavor)
          Returns an object which represents the data to be transferred.
 DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
          Returns whether or not the specified data flavor is supported for this object.
protected  boolean isHtmlFlavor(DataFlavor flavor)
          Returns whether or not the specified data flavor is an HTML flavor that is supported.
protected  boolean isHtmlSupported()
          Whether the HTML flavors are offered.
protected  boolean isImageFlavor(DataFlavor flavor)
           
 boolean isImageSupported()
           
protected  boolean isPlainFlavor(DataFlavor flavor)
          Returns whether or not the specified data flavor is an plain flavor that is supported.
protected  boolean isPlainSupported()
          Whether the plain text flavors are offered.
protected  boolean isRicherFlavor(DataFlavor flavor)
           
protected  boolean isStringFlavor(DataFlavor flavor)
          Returns whether or not the specified data flavor is a String flavor that is supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataFlavor

public static DataFlavor dataFlavor
Serialized Data Flavor. Use the following code to switch to local reference flavor: try { mxGraphTransferable.dataFlavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + "; class=com.mxgraph.swing.util.mxGraphTransferable"); } catch (ClassNotFoundException cnfe) { // do nothing } If you get a class not found exception, try the following instead: mxGraphTransferable.dataFlavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + "; class=com.mxgraph.swing.util.mxGraphTransferable", null, new com.mxgraph.swing.util.mxGraphTransferable(null, null).getClass().getClassLoader());


cells

protected Object[] cells

bounds

protected mxRectangle bounds

image

protected ImageIcon image
Constructor Detail

mxGraphTransferable

public mxGraphTransferable(Object[] cells,
                           mxRectangle bounds)

mxGraphTransferable

public mxGraphTransferable(Object[] cells,
                           mxRectangle bounds,
                           ImageIcon image)
Method Detail

getCells

public Object[] getCells()
Returns:
Returns the cells.

getBounds

public mxRectangle getBounds()
Returns the unscaled, untranslated bounding box of the cells.


getImage

public ImageIcon getImage()

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface Transferable

getRicherFlavors

protected DataFlavor[] getRicherFlavors()
Some subclasses will have flavors that are more descriptive than HTML or plain text. If this method returns a non-null value, it will be placed at the start of the array of supported flavors.


isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Returns whether or not the specified data flavor is supported for this object.

Specified by:
isDataFlavorSupported in interface Transferable
Parameters:
flavor - the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException,
                              IOException
Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.

Specified by:
getTransferData in interface Transferable
Parameters:
flavor - the requested flavor for the data
Throws:
IOException - if the data is no longer available in the requested flavor.
UnsupportedFlavorException - if the requested data flavor is not supported.
See Also:
DataFlavor.getRepresentationClass()

isRicherFlavor

protected boolean isRicherFlavor(DataFlavor flavor)
Parameters:
flavor -
Returns:
Returns true if the given flavor is a richer flavor of this transferable.

getRicherData

public Object getRicherData(DataFlavor flavor)
                     throws UnsupportedFlavorException
Parameters:
flavor -
Returns:
the richer data flavor of this and the specified
Throws:
UnsupportedFlavorException

isHtmlFlavor

protected boolean isHtmlFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is an HTML flavor that is supported.

Parameters:
flavor - the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

isHtmlSupported

protected boolean isHtmlSupported()
Whether the HTML flavors are offered. If so, the method getHTMLData should be implemented to provide something reasonable.


getHtmlData

protected String getHtmlData()
Fetch the data in a text/html format


isImageFlavor

protected boolean isImageFlavor(DataFlavor flavor)
Parameters:
flavor -
Returns:
Returns true if the given flavor is an image flavor of this transferable.

isImageSupported

public boolean isImageSupported()

isPlainFlavor

protected boolean isPlainFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is an plain flavor that is supported.

Parameters:
flavor - the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

isPlainSupported

protected boolean isPlainSupported()
Whether the plain text flavors are offered. If so, the method getPlainData should be implemented to provide something reasonable.


getPlainData

protected String getPlainData()
Fetch the data in a text/plain format.


isStringFlavor

protected boolean isStringFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is a String flavor that is supported.

Parameters:
flavor - the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/0000775000175000017500000000000012176166726023660 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/class-use/0000775000175000017500000000000012176166726025557 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/class-use/mxCellStatePreview.html0000664000175000017500000003072412176166726032242 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.view.mxCellStatePreview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.view.mxCellStatePreview

Packages that use mxCellStatePreview
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
 

Uses of mxCellStatePreview in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxCellStatePreview
protected  mxCellStatePreview mxMovePreview.preview
           
 

Methods in com.mxgraph.swing.handler that return mxCellStatePreview
 mxCellStatePreview mxMovePreview.createCellStatePreview()
           
 

Uses of mxCellStatePreview in com.mxgraph.swing.util
 

Fields in com.mxgraph.swing.util declared as mxCellStatePreview
protected  mxCellStatePreview mxMorphing.preview
           
 

Methods in com.mxgraph.swing.util with parameters of type mxCellStatePreview
protected  void mxMorphing.animateCell(Object cell, mxCellStatePreview move, boolean recurse)
          Animates the given cell state using moveState.
protected  void mxMorphing.show(mxCellStatePreview preview)
          Shows the changes in the given mxCellStatePreview.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/class-use/mxICellEditor.html0000664000175000017500000002777412176166726031172 0ustar sylvestresylvestre Uses of Interface com.mxgraph.swing.view.mxICellEditor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.swing.view.mxICellEditor

Packages that use mxICellEditor
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
 

Uses of mxICellEditor in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxICellEditor
protected  mxICellEditor mxGraphComponent.cellEditor
           
 

Methods in com.mxgraph.swing that return mxICellEditor
protected  mxICellEditor mxGraphComponent.createCellEditor()
           
 mxICellEditor mxGraphComponent.getCellEditor()
           
 

Methods in com.mxgraph.swing with parameters of type mxICellEditor
 void mxGraphComponent.setCellEditor(mxICellEditor value)
           
 

Uses of mxICellEditor in com.mxgraph.swing.view
 

Classes in com.mxgraph.swing.view that implement mxICellEditor
 class mxCellEditor
          To control this editor, use mxGraph.invokesStopCellEditing, mxGraph.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/class-use/mxInteractiveCanvas.html0000664000175000017500000002273412176166726032433 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.view.mxInteractiveCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.view.mxInteractiveCanvas

Packages that use mxInteractiveCanvas
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxInteractiveCanvas in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxInteractiveCanvas
protected  mxInteractiveCanvas mxGraphComponent.canvas
           
 

Methods in com.mxgraph.swing that return mxInteractiveCanvas
 mxInteractiveCanvas mxGraphComponent.createCanvas()
          Hook for subclassers to replace the graphics canvas for rendering and and printing.
 mxInteractiveCanvas mxGraphComponent.getCanvas()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/class-use/mxCellEditor.html0000664000175000017500000001377512176166726031055 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.view.mxCellEditor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.view.mxCellEditor

No usage of com.mxgraph.swing.view.mxCellEditor


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/package-frame.html0000664000175000017500000000270012176166726027230 0ustar sylvestresylvestre com.mxgraph.swing.view (JGraph X 2.1.0.7 API Specification) com.mxgraph.swing.view
Interfaces 
mxICellEditor
Classes 
mxCellEditor
mxCellStatePreview
mxInteractiveCanvas
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/mxCellStatePreview.html0000664000175000017500000010601612176166724030337 0ustar sylvestresylvestre mxCellStatePreview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.view
Class mxCellStatePreview

java.lang.Object
  extended by com.mxgraph.swing.view.mxCellStatePreview

public class mxCellStatePreview
extends Object

Represents the current state of a cell in a given graph view.


Field Summary
protected  List<mxCellState> cellStates
           
protected  boolean cloned
          Specifies if cell states should be cloned or changed in-place.
protected  int count
           
protected  Map<mxCellState,mxPoint> deltas
           
protected  mxGraphComponent graphComponent
           
protected  float opacity
           
 
Constructor Summary
mxCellStatePreview(mxGraphComponent graphComponent, boolean cloned)
          Constructs a new state preview.
 
Method Summary
 void addEdges(mxCellState state)
           
 int getCount()
           
 Map<mxCellState,mxPoint> getDeltas()
           
 float getOpacity()
           
protected  float getOpacityForCell(Object cell)
           
 boolean isCloned()
           
 boolean isEmpty()
           
 mxPoint moveState(mxCellState state, double dx, double dy)
           
 mxPoint moveState(mxCellState state, double dx, double dy, boolean add, boolean includeEdges)
           
 void paint(Graphics g)
           
protected  void paintPreview(mxGraphics2DCanvas canvas)
          Draws the preview using the graphics canvas.
protected  void paintPreviewState(mxGraphics2DCanvas canvas, mxCellState state)
          Draws the preview using the graphics canvas.
 void restore(List<mxCellState> snapshot)
           
 void restoreState(mxCellState state, mxCellState from)
           
protected  mxRectangle revalidateState(mxCellState parentState, mxCellState state, double dx, double dy)
           
 void setCloned(boolean value)
           
 void setOpacity(float value)
           
 mxRectangle show()
          Returns a dirty rectangle to be repainted in mxGraphControl.
 List<mxCellState> snapshot(mxCellState state)
           
protected  void translateState(mxCellState parentState, mxCellState state, double dx, double dy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deltas

protected Map<mxCellState,mxPoint> deltas

count

protected int count

graphComponent

protected mxGraphComponent graphComponent

cloned

protected boolean cloned
Specifies if cell states should be cloned or changed in-place.


opacity

protected float opacity

cellStates

protected List<mxCellState> cellStates
Constructor Detail

mxCellStatePreview

public mxCellStatePreview(mxGraphComponent graphComponent,
                          boolean cloned)
Constructs a new state preview. The paint handler to invoke the paint method must be installed elsewhere.

Method Detail

isCloned

public boolean isCloned()

setCloned

public void setCloned(boolean value)

isEmpty

public boolean isEmpty()

getCount

public int getCount()

getDeltas

public Map<mxCellState,mxPoint> getDeltas()

setOpacity

public void setOpacity(float value)

getOpacity

public float getOpacity()

moveState

public mxPoint moveState(mxCellState state,
                         double dx,
                         double dy)

moveState

public mxPoint moveState(mxCellState state,
                         double dx,
                         double dy,
                         boolean add,
                         boolean includeEdges)

show

public mxRectangle show()
Returns a dirty rectangle to be repainted in mxGraphControl.


restore

public void restore(List<mxCellState> snapshot)

restoreState

public void restoreState(mxCellState state,
                         mxCellState from)

snapshot

public List<mxCellState> snapshot(mxCellState state)

translateState

protected void translateState(mxCellState parentState,
                              mxCellState state,
                              double dx,
                              double dy)

revalidateState

protected mxRectangle revalidateState(mxCellState parentState,
                                      mxCellState state,
                                      double dx,
                                      double dy)

addEdges

public void addEdges(mxCellState state)

paint

public void paint(Graphics g)

getOpacityForCell

protected float getOpacityForCell(Object cell)

paintPreview

protected void paintPreview(mxGraphics2DCanvas canvas)
Draws the preview using the graphics canvas.


paintPreviewState

protected void paintPreviewState(mxGraphics2DCanvas canvas,
                                 mxCellState state)
Draws the preview using the graphics canvas.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/mxICellEditor.html0000664000175000017500000002476612176166724027267 0ustar sylvestresylvestre mxICellEditor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.view
Interface mxICellEditor

All Known Implementing Classes:
mxCellEditor

public interface mxICellEditor


Method Summary
 Object getEditingCell()
          Returns the cell that is currently being edited.
 void startEditing(Object cell, EventObject trigger)
          Starts editing the given cell.
 void stopEditing(boolean cancel)
          Stops the current editing.
 

Method Detail

getEditingCell

Object getEditingCell()
Returns the cell that is currently being edited.


startEditing

void startEditing(Object cell,
                  EventObject trigger)
Starts editing the given cell.


stopEditing

void stopEditing(boolean cancel)
Stops the current editing.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/package-summary.html0000664000175000017500000001777412176166726027654 0ustar sylvestresylvestre com.mxgraph.swing.view (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.swing.view

This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes.

See:
          Description

Interface Summary
mxICellEditor  
 

Class Summary
mxCellEditor To control this editor, use mxGraph.invokesStopCellEditing, mxGraph.
mxCellStatePreview Represents the current state of a cell in a given graph view.
mxInteractiveCanvas  
 

Package com.mxgraph.swing.view Description

This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/package-use.html0000664000175000017500000002431612176166726026741 0ustar sylvestresylvestre Uses of Package com.mxgraph.swing.view (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.swing.view

Packages that use com.mxgraph.swing.view
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
 

Classes in com.mxgraph.swing.view used by com.mxgraph.swing
mxICellEditor
           
mxInteractiveCanvas
           
 

Classes in com.mxgraph.swing.view used by com.mxgraph.swing.handler
mxCellStatePreview
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.swing.view used by com.mxgraph.swing.util
mxCellStatePreview
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.swing.view used by com.mxgraph.swing.view
mxICellEditor
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/mxInteractiveCanvas.html0000664000175000017500000007412712176166724030535 0ustar sylvestresylvestre mxInteractiveCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.view
Class mxInteractiveCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxBasicCanvas
      extended by com.mxgraph.canvas.mxGraphics2DCanvas
          extended by com.mxgraph.swing.view.mxInteractiveCanvas
All Implemented Interfaces:
mxICanvas

public class mxInteractiveCanvas
extends mxGraphics2DCanvas


Field Summary
protected  ImageObserver imageObserver
           
 
Fields inherited from class com.mxgraph.canvas.mxGraphics2DCanvas
g, IMAGE_SCALING, rendererPane, shapes, TEXT_SHAPE_DEFAULT, TEXT_SHAPE_HTML, textShapes
 
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate
 
Constructor Summary
mxInteractiveCanvas()
           
mxInteractiveCanvas(ImageObserver imageObserver)
           
 
Method Summary
 boolean contains(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
           
protected  void drawImageImpl(Image image, int x, int y)
          Overrides graphics call to use image observer.
 ImageObserver getImageObserver()
           
protected  Dimension getImageSize(Image image)
          Returns the size for the given image.
 boolean hitSwimlaneContent(mxGraphComponent graphComponent, mxCellState swimlane, int x, int y)
          Returns true if the given point is inside the content area of the given swimlane.
 boolean intersects(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
           
 void setImageObserver(ImageObserver value)
           
 
Methods inherited from class com.mxgraph.canvas.mxGraphics2DCanvas
createFillPaint, createStroke, createTemporaryGraphics, drawCell, drawImage, drawImage, drawLabel, fillShape, fillShape, getGraphics, getRendererPane, getShape, getTextShape, paintPolyline, paintRectangle, putShape, putTextShape, setGraphics
 
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageObserver

protected ImageObserver imageObserver
Constructor Detail

mxInteractiveCanvas

public mxInteractiveCanvas()

mxInteractiveCanvas

public mxInteractiveCanvas(ImageObserver imageObserver)
Method Detail

setImageObserver

public void setImageObserver(ImageObserver value)

getImageObserver

public ImageObserver getImageObserver()

drawImageImpl

protected void drawImageImpl(Image image,
                             int x,
                             int y)
Overrides graphics call to use image observer.

Overrides:
drawImageImpl in class mxGraphics2DCanvas

getImageSize

protected Dimension getImageSize(Image image)
Returns the size for the given image.

Overrides:
getImageSize in class mxGraphics2DCanvas

contains

public boolean contains(mxGraphComponent graphComponent,
                        Rectangle rect,
                        mxCellState state)

intersects

public boolean intersects(mxGraphComponent graphComponent,
                          Rectangle rect,
                          mxCellState state)

hitSwimlaneContent

public boolean hitSwimlaneContent(mxGraphComponent graphComponent,
                                  mxCellState swimlane,
                                  int x,
                                  int y)
Returns true if the given point is inside the content area of the given swimlane. (The content area of swimlanes is transparent to events.) This implementation does not check if the given state is a swimlane, it is assumed that the caller has checked this before using this method.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/package-tree.html0000664000175000017500000001700212176166726027076 0ustar sylvestresylvestre com.mxgraph.swing.view Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.swing.view

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/view/mxCellEditor.html0000664000175000017500000012611412176166724027144 0ustar sylvestresylvestre mxCellEditor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.view
Class mxCellEditor

java.lang.Object
  extended by com.mxgraph.swing.view.mxCellEditor
All Implemented Interfaces:
mxICellEditor

public class mxCellEditor
extends Object
implements mxICellEditor

To control this editor, use mxGraph.invokesStopCellEditing, mxGraph. enterStopsCellEditing and mxGraph.escapeEnabled.


Field Summary
protected  AbstractAction cancelEditingAction
           
static int DEFAULT_MIN_HEIGHT
           
static int DEFAULT_MIN_WIDTH
           
static double DEFAULT_MINIMUM_EDITOR_SCALE
           
protected  Object editingCell
           
protected  JEditorPane editorPane
          Holds the editor for HTML editing.
protected  boolean extractHtmlBody
          Specifies if the text content of the HTML body should be extracted before and after editing for HTML markup.
protected  mxGraphComponent graphComponent
           
protected  double minimumEditorScale
          Defines the minimum scale to be used for the editor.
protected  int minimumHeight
           
protected  int minimumWidth
           
protected  boolean replaceLinefeeds
          Specifies if linefeeds should be replaced with BREAKS before editing, and BREAKS should be replaced with linefeeds after editing.
protected  JScrollPane scrollPane
           
protected  boolean shiftEnterSubmitsText
          Specifies if shift ENTER should submit text if enterStopsCellEditing is true.
protected  JTextArea textArea
          Holds the editor for plain text editing.
protected  AbstractAction textSubmitAction
           
protected  EventObject trigger
           
 
Constructor Summary
mxCellEditor(mxGraphComponent graphComponent)
           
 
Method Summary
protected  void configureActionMaps()
          Installs the keyListener in the textArea and editorPane for handling the enter keystroke and updating the modified state.
 String getCurrentValue()
          Returns the current editing value.
 Object getEditingCell()
          Returns the cell that is currently being edited.
 Component getEditor()
          Returns the current editor or null if no editing is in progress.
 Rectangle getEditorBounds(mxCellState state, double scale)
          Returns the bounds to be used for the editor.
protected  String getInitialValue(mxCellState state, EventObject trigger)
          Gets the initial editing value for the given cell.
 double getMinimumEditorScale()
           
 int getMinimumHeight()
           
 int getMinimumWidth()
           
 boolean isExtractHtmlBody()
          Returns replaceHtmlLinefeeds
protected  boolean isHideLabel(mxCellState state)
           
 boolean isReplaceHtmlLinefeeds()
          Returns replaceHtmlLinefeeds
 boolean isShiftEnterSubmitsText()
          Returns shiftEnterSubmitsText
 void setExtractHtmlBody(boolean value)
          Sets extractHtmlBody
 void setMinimumEditorScale(double minimumEditorScale)
           
 void setMinimumHeight(int minimumHeight)
           
 void setMinimumWidth(int minimumWidth)
           
 void setReplaceHtmlLinefeeds(boolean value)
          Sets replaceHtmlLinefeeds
 void setShiftEnterSubmitsText(boolean value)
          Sets shiftEnterSubmitsText
 void startEditing(Object cell, EventObject evt)
          Starts editing the given cell.
 void stopEditing(boolean cancel)
          Stops the current editing.
protected  boolean useLabelBounds(mxCellState state)
          Returns true if the label bounds of the state should be used for the editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIN_WIDTH

public static int DEFAULT_MIN_WIDTH

DEFAULT_MIN_HEIGHT

public static int DEFAULT_MIN_HEIGHT

DEFAULT_MINIMUM_EDITOR_SCALE

public static double DEFAULT_MINIMUM_EDITOR_SCALE

graphComponent

protected mxGraphComponent graphComponent

minimumEditorScale

protected double minimumEditorScale
Defines the minimum scale to be used for the editor. Set this to 0 if the font size in the editor


minimumWidth

protected int minimumWidth

minimumHeight

protected int minimumHeight

editingCell

protected transient Object editingCell

trigger

protected transient EventObject trigger

scrollPane

protected transient JScrollPane scrollPane

textArea

protected transient JTextArea textArea
Holds the editor for plain text editing.


editorPane

protected transient JEditorPane editorPane
Holds the editor for HTML editing.


extractHtmlBody

protected boolean extractHtmlBody
Specifies if the text content of the HTML body should be extracted before and after editing for HTML markup. Default is true.


replaceLinefeeds

protected boolean replaceLinefeeds
Specifies if linefeeds should be replaced with BREAKS before editing, and BREAKS should be replaced with linefeeds after editing. This value is ignored if extractHtmlBody is false. Default is true.


shiftEnterSubmitsText

protected boolean shiftEnterSubmitsText
Specifies if shift ENTER should submit text if enterStopsCellEditing is true. Default is false.


cancelEditingAction

protected AbstractAction cancelEditingAction

textSubmitAction

protected AbstractAction textSubmitAction
Constructor Detail

mxCellEditor

public mxCellEditor(mxGraphComponent graphComponent)
Method Detail

isExtractHtmlBody

public boolean isExtractHtmlBody()
Returns replaceHtmlLinefeeds


setExtractHtmlBody

public void setExtractHtmlBody(boolean value)
Sets extractHtmlBody


isReplaceHtmlLinefeeds

public boolean isReplaceHtmlLinefeeds()
Returns replaceHtmlLinefeeds


setReplaceHtmlLinefeeds

public void setReplaceHtmlLinefeeds(boolean value)
Sets replaceHtmlLinefeeds


isShiftEnterSubmitsText

public boolean isShiftEnterSubmitsText()
Returns shiftEnterSubmitsText


setShiftEnterSubmitsText

public void setShiftEnterSubmitsText(boolean value)
Sets shiftEnterSubmitsText


configureActionMaps

protected void configureActionMaps()
Installs the keyListener in the textArea and editorPane for handling the enter keystroke and updating the modified state.


getEditor

public Component getEditor()
Returns the current editor or null if no editing is in progress.


useLabelBounds

protected boolean useLabelBounds(mxCellState state)
Returns true if the label bounds of the state should be used for the editor.


getEditorBounds

public Rectangle getEditorBounds(mxCellState state,
                                 double scale)
Returns the bounds to be used for the editor.


startEditing

public void startEditing(Object cell,
                         EventObject evt)
Description copied from interface: mxICellEditor
Starts editing the given cell.

Specified by:
startEditing in interface mxICellEditor

isHideLabel

protected boolean isHideLabel(mxCellState state)

stopEditing

public void stopEditing(boolean cancel)
Description copied from interface: mxICellEditor
Stops the current editing.

Specified by:
stopEditing in interface mxICellEditor

getInitialValue

protected String getInitialValue(mxCellState state,
                                 EventObject trigger)
Gets the initial editing value for the given cell.


getCurrentValue

public String getCurrentValue()
Returns the current editing value.


getEditingCell

public Object getEditingCell()
Description copied from interface: mxICellEditor
Returns the cell that is currently being edited.

Specified by:
getEditingCell in interface mxICellEditor

getMinimumEditorScale

public double getMinimumEditorScale()
Returns:
the minimumEditorScale

setMinimumEditorScale

public void setMinimumEditorScale(double minimumEditorScale)
Parameters:
minimumEditorScale - the minimumEditorScale to set

getMinimumWidth

public int getMinimumWidth()
Returns:
the minimumWidth

setMinimumWidth

public void setMinimumWidth(int minimumWidth)
Parameters:
minimumWidth - the minimumWidth to set

getMinimumHeight

public int getMinimumHeight()
Returns:
the minimumHeight

setMinimumHeight

public void setMinimumHeight(int minimumHeight)
Parameters:
minimumHeight - the minimumHeight to set

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/class-use/0000775000175000017500000000000012176166726024605 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/class-use/mxGraphComponent.mxGraphControl.html0000664000175000017500000002313712176166726033740 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.mxGraphComponent.mxGraphControl (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.mxGraphComponent.mxGraphControl

Packages that use mxGraphComponent.mxGraphControl
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxGraphComponent.mxGraphControl in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxGraphComponent.mxGraphControl
protected  mxGraphComponent.mxGraphControl mxGraphComponent.graphControl
           
 

Methods in com.mxgraph.swing that return mxGraphComponent.mxGraphControl
protected  mxGraphComponent.mxGraphControl mxGraphComponent.createGraphControl()
          Creates the inner control that handles tooltips, preferred size and can draw cells onto a canvas.
 mxGraphComponent.mxGraphControl mxGraphComponent.getGraphControl()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/class-use/mxGraphOutline.html0000664000175000017500000001365412176166726030452 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.mxGraphOutline (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.mxGraphOutline

No usage of com.mxgraph.swing.mxGraphOutline


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/class-use/mxGraphOutline.MouseTracker.html0000664000175000017500000001773212176166726033056 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.mxGraphOutline.MouseTracker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.mxGraphOutline.MouseTracker

Packages that use mxGraphOutline.MouseTracker
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxGraphOutline.MouseTracker in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxGraphOutline.MouseTracker
protected  mxGraphOutline.MouseTracker mxGraphOutline.tracker
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/class-use/mxGraphComponent.mxMouseRedirector.html0000664000175000017500000001416412176166726034451 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.mxGraphComponent.mxMouseRedirector (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.mxGraphComponent.mxMouseRedirector

No usage of com.mxgraph.swing.mxGraphComponent.mxMouseRedirector


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/class-use/mxGraphComponent.html0000664000175000017500000014421312176166726030771 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.mxGraphComponent (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.mxGraphComponent

Packages that use mxGraphComponent
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
 

Uses of mxGraphComponent in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxGraphComponent
protected  mxGraphComponent mxGraphComponent.mxMouseRedirector.graphComponent
           
protected  mxGraphComponent mxGraphOutline.graphComponent
           
 

Methods in com.mxgraph.swing that return mxGraphComponent
 mxGraphComponent mxGraphOutline.getGraphComponent()
           
 mxGraphComponent mxGraphComponent.mxGraphControl.getGraphContainer()
           
 

Methods in com.mxgraph.swing with parameters of type mxGraphComponent
 void mxGraphOutline.setGraphComponent(mxGraphComponent graphComponent)
          Fires a property change event for graphComponent.
 

Constructors in com.mxgraph.swing with parameters of type mxGraphComponent
mxGraphComponent.mxMouseRedirector(mxGraphComponent graphComponent)
           
mxGraphOutline(mxGraphComponent graphComponent)
           
 

Uses of mxGraphComponent in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxGraphComponent
protected  mxGraphComponent mxRubberband.graphComponent
          Reference to the enclosing graph container.
protected  mxGraphComponent mxPanningHandler.graphComponent
           
protected  mxGraphComponent mxRotationHandler.graphComponent
          Reference to the enclosing graph component.
protected  mxGraphComponent mxInsertHandler.graphComponent
          Reference to the enclosing graph component.
protected  mxGraphComponent mxConnectionHandler.graphComponent
           
protected  mxGraphComponent mxGraphHandler.graphComponent
          Reference to the enclosing graph component.
protected  mxGraphComponent mxMovePreview.graphComponent
           
protected  mxGraphComponent mxConnectPreview.graphComponent
           
protected  mxGraphComponent mxSelectionCellsHandler.graphComponent
          Reference to the enclosing graph component.
protected  mxGraphComponent mxCellMarker.graphComponent
          Holds the enclosing graph component.
protected  mxGraphComponent mxCellHandler.graphComponent
          Reference to the enclosing graph component.
 

Methods in com.mxgraph.swing.handler that return mxGraphComponent
 mxGraphComponent mxRotationHandler.getGraphComponent()
           
 mxGraphComponent mxInsertHandler.getGraphComponent()
           
 mxGraphComponent mxGraphHandler.getGraphComponent()
           
 mxGraphComponent mxSelectionCellsHandler.getGraphComponent()
           
 mxGraphComponent mxCellHandler.getGraphComponent()
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxGraphComponent
 mxGraphTransferable mxGraphTransferHandler.createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, ImageIcon icon)
           
 mxGraphTransferable mxGraphTransferHandler.createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, mxRectangle bounds, ImageIcon icon)
           
 ImageIcon mxGraphTransferHandler.createTransferableImage(mxGraphComponent graphComponent, Object[] cells)
           
protected  Object mxGraphTransferHandler.getDropTarget(mxGraphComponent graphComponent, mxGraphTransferable gt)
          Returns the drop target for the given transferable and location.
protected  Object[] mxGraphTransferHandler.importCells(mxGraphComponent graphComponent, mxGraphTransferable gt, double dx, double dy)
          Gets a drop target using getDropTarget and imports the cells using mxGraph.splitEdge or mxGraphComponent.importCells depending on the drop target and the return values of mxGraph.isSplitEnabled and mxGraph.isSplitTarget.
protected  boolean mxGraphTransferHandler.importGraphTransferable(mxGraphComponent graphComponent, mxGraphTransferable gt)
          Returns true if the cells have been imported using importCells.
protected  void mxKeyboardHandler.installKeyboardActions(mxGraphComponent graphComponent)
          Invoked as part from the boilerplate install block.
protected  void mxGraphTransferHandler.removeCells(mxGraphComponent graphComponent, Object[] cells)
           
 

Constructors in com.mxgraph.swing.handler with parameters of type mxGraphComponent
mxCellHandler(mxGraphComponent graphComponent, mxCellState state)
          Constructs a new cell handler for the given cell state.
mxCellMarker(mxGraphComponent graphComponent)
          Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent graphComponent, Color validColor)
          Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent graphComponent, Color validColor, Color invalidColor)
          Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent graphComponent, Color validColor, Color invalidColor, double hotspot)
          Constructs a new marker for the given graph component.
mxCellTracker(mxGraphComponent graphComponent, Color color)
          Constructs an event handler that highlights cells.
mxConnectionHandler(mxGraphComponent graphComponent)
           
mxConnectPreview(mxGraphComponent graphComponent)
           
mxEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
mxElbowEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
mxGraphHandler(mxGraphComponent graphComponent)
           
mxInsertHandler(mxGraphComponent graphComponent, String style)
           
mxKeyboardHandler(mxGraphComponent graphComponent)
           
mxMovePreview(mxGraphComponent graphComponent)
          Constructs a new rubberband selection for the given graph component.
mxPanningHandler(mxGraphComponent graphComponent)
           
mxRotationHandler(mxGraphComponent graphComponent)
          Constructs a new rotation handler.
mxRubberband(mxGraphComponent graphComponent)
          Constructs a new rubberband selection for the given graph component.
mxSelectionCellsHandler(mxGraphComponent graphComponent)
           
mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
           
 

Uses of mxGraphComponent in com.mxgraph.swing.util
 

Fields in com.mxgraph.swing.util declared as mxGraphComponent
protected  mxGraphComponent mxMorphing.graphComponent
          Reference to the enclosing graph instance.
 

Constructors in com.mxgraph.swing.util with parameters of type mxGraphComponent
mxMorphing(mxGraphComponent graphComponent)
          Constructs a new morphing instance for the given graph.
mxMorphing(mxGraphComponent graphComponent, int steps, double ease, int delay)
          Constructs a new morphing instance for the given graph.
 

Uses of mxGraphComponent in com.mxgraph.swing.view
 

Fields in com.mxgraph.swing.view declared as mxGraphComponent
protected  mxGraphComponent mxCellStatePreview.graphComponent
           
protected  mxGraphComponent mxCellEditor.graphComponent
           
 

Methods in com.mxgraph.swing.view with parameters of type mxGraphComponent
 boolean mxInteractiveCanvas.contains(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
           
 boolean mxInteractiveCanvas.hitSwimlaneContent(mxGraphComponent graphComponent, mxCellState swimlane, int x, int y)
          Returns true if the given point is inside the content area of the given swimlane.
 boolean mxInteractiveCanvas.intersects(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
           
 

Constructors in com.mxgraph.swing.view with parameters of type mxGraphComponent
mxCellEditor(mxGraphComponent graphComponent)
           
mxCellStatePreview(mxGraphComponent graphComponent, boolean cloned)
          Constructs a new state preview.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/package-frame.html0000664000175000017500000000221012176166726026252 0ustar sylvestresylvestre com.mxgraph.swing (JGraph X 2.1.0.7 API Specification) com.mxgraph.swing
Classes 
mxGraphComponent
mxGraphComponent.mxMouseRedirector
mxGraphOutline
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/mxGraphComponent.mxMouseRedirector.html0000664000175000017500000005752412176166724032557 0ustar sylvestresylvestre mxGraphComponent.mxMouseRedirector (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing
Class mxGraphComponent.mxMouseRedirector

java.lang.Object
  extended by com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Enclosing class:
mxGraphComponent

public static class mxGraphComponent.mxMouseRedirector
extends Object
implements MouseListener, MouseMotionListener


Field Summary
protected  mxGraphComponent graphComponent
           
 
Constructor Summary
mxGraphComponent.mxMouseRedirector(mxGraphComponent graphComponent)
           
 
Method Summary
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent
Constructor Detail

mxGraphComponent.mxMouseRedirector

public mxGraphComponent.mxMouseRedirector(mxGraphComponent graphComponent)
Method Detail

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/package-summary.html0000664000175000017500000001641312176166726026667 0ustar sylvestresylvestre com.mxgraph.swing (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.swing

This package contains the main component for JFC/Swing, namely the graph component and the outline component.

See:
          Description

Class Summary
mxGraphComponent For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize.
mxGraphComponent.mxMouseRedirector  
mxGraphOutline An outline view for a specific graph component.
 

Package com.mxgraph.swing Description

This package contains the main component for JFC/Swing, namely the graph component and the outline component.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/package-use.html0000664000175000017500000002507012176166726025765 0ustar sylvestresylvestre Uses of Package com.mxgraph.swing (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.swing

Packages that use com.mxgraph.swing
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
 

Classes in com.mxgraph.swing used by com.mxgraph.swing
mxGraphComponent
          For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize.
mxGraphComponent.mxGraphControl
           
mxGraphOutline.MouseTracker
           
 

Classes in com.mxgraph.swing used by com.mxgraph.swing.handler
mxGraphComponent
          For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize.
 

Classes in com.mxgraph.swing used by com.mxgraph.swing.util
mxGraphComponent
          For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize.
 

Classes in com.mxgraph.swing used by com.mxgraph.swing.view
mxGraphComponent
          For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/package-tree.html0000664000175000017500000002344112176166726026130 0ustar sylvestresylvestre com.mxgraph.swing Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.swing

Package Hierarchies:
All Packages

Class Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/mxGraphComponent.html0000664000175000017500000123061112176166724027067 0ustar sylvestresylvestre mxGraphComponent (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing
Class mxGraphComponent

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JScrollPane
                  extended by com.mxgraph.swing.mxGraphComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Printable, Serializable, Accessible, ScrollPaneConstants

public class mxGraphComponent
extends JScrollPane
implements Printable

For setting the preferred size of the viewport for scrolling, use mxGraph.setMinimumGraphSize. This component is a combined scrollpane with an inner mxGraphControl. The control contains the actual graph display. To set the background color of the graph, use the following code:

 graphComponent.getViewport().setOpaque(true);
 graphComponent.getViewport().setBackground(newColor);
 
This class fires the following events: mxEvent.START_EDITING fires before starting the in-place editor for an existing cell in startEditingAtCell. The cell property contains the cell that is being edit and the event property contains optional EventObject which was passed to startEditingAtCell. mxEvent.LABEL_CHANGED fires between begin- and endUpdate after the call to mxGraph.cellLabelChanged in labelChanged. The cell property contains the cell, the value property contains the new value for the cell and the optional event property contains the EventObject that started the edit. mxEvent.ADD_OVERLAY and mxEvent.REMOVE_OVERLAY fire afer an overlay was added or removed using add-/removeOverlay. The cell property contains the cell for which the overlay was added or removed and the overlay property contain the mxOverlay. mxEvent.BEFORE_PAINT and mxEvent.AFTER_PAINT fire before and after the paint method is called on the component. The g property contains the graphics context which is used for painting.

See Also:
Serialized Form

Nested Class Summary
 class mxGraphComponent.mxGraphControl
           
static class mxGraphComponent.mxMouseRedirector
           
 
Nested classes/interfaces inherited from class javax.swing.JScrollPane
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  boolean antiAlias
           
protected  boolean autoExtend
          Whether to extend the graph bounds and scroll towards the limit of those new bounds in the direction of mouse travel if a handler is active while the mouse leaves the container that the graph exists in.
protected  boolean autoScroll
          Whether or not to scroll the scrollable container the graph exists in if a suitable handler is active and the graph bounds already exist extended in the direction of mouse travel.
protected  ImageIcon backgroundImage
          Specifies the to be returned by .
protected  mxInteractiveCanvas canvas
           
protected  mxICellEditor cellEditor
           
protected  boolean centerPage
          Specifies if the background page should be centered by automatically setting the translate in the view.
protected  boolean centerZoom
          Specifies if the zoom operations should go into the center of the actual diagram rather than going from top, left.
protected  ImageIcon collapsedIcon
           
protected  Hashtable<Object,Component[]> components
          Maps from cells to lists of heavyweights.
protected  mxConnectionHandler connectionHandler
           
static ImageIcon DEFAULT_COLLAPSED_ICON
           
static ImageIcon DEFAULT_EXPANDED_ICON
           
static double DEFAULT_PAGESCALE
          Specifies the default page scale.
static ImageIcon DEFAULT_WARNING_ICON
           
protected  boolean dragEnabled
           
protected  boolean enterStopsCellEditing
          If true, pressing the enter key without pressing control will stop editing and accept the new value.
protected  boolean escapeEnabled
          Specifies should be invoked when the escape key is pressed.
protected  mxEventSource eventSource
           
protected  ImageIcon expandedIcon
           
protected  boolean exportEnabled
           
protected  boolean foldingEnabled
          Specifies if folding (collapse and expand via an image icon in the graph should be enabled).
protected  mxGraph graph
           
protected  mxGraphComponent.mxGraphControl graphControl
           
protected  mxGraphHandler graphHandler
           
static int GRID_STYLE_CROSS
           
static int GRID_STYLE_DASHED
           
static int GRID_STYLE_DOT
           
static int GRID_STYLE_LINE
           
protected  Color gridColor
           
protected  int gridStyle
           
protected  boolean gridVisible
          Specifies if the grid is visible.
protected  int horizontalPageCount
          Specifies the number of pages in the horizontal direction.
protected  boolean importEnabled
           
protected  boolean invokesStopCellEditing
          If true, when editing is to be stopped by way of selection changing, data in diagram changing or other means stopCellEditing is invoked, and changes are saved.
protected  boolean keepSelectionVisibleOnZoom
          Specifies if the viewport should automatically contain the selection cells after a zoom operation.
protected  Hashtable<Object,mxICellOverlay[]> overlays
          Maps from cells to lists of overlays.
protected  Color pageBackgroundColor
          Color of the background area if layout view.
protected  Color pageBorderColor
           
protected  Color pageBreakColor
          Specifies the color of page breaks
protected  boolean pageBreaksVisible
          Specifies if a dashed line should be drawn between multiple pages.
protected  PageFormat pageFormat
          Background page format.
protected  double pageScale
          Defines the scaling for the background page metrics.
protected  Color pageShadowColor
           
protected  boolean pageVisible
          Specifies if the background page should be visible.
protected  mxPanningHandler panningHandler
           
protected  boolean preferPageSize
          If the pageFormat should be used to determine the minimal graph bounds even if the page is not visible (see pageVisible).
protected  float previewAlpha
          The transparency of previewed cells from 0.0.
protected  mxEventSource.mxIEventListener repaintHandler
           
protected  mxEventSource.mxIEventListener scaleHandler
          Resets the zoom policy if the scale is changed manually.
protected  mxSelectionCellsHandler selectionCellsHandler
           
 boolean showDirtyRectangle
          Used for debugging the dirty region.
protected  boolean swimlaneSelectionEnabled
          Specifies if swimlanes are selected when the mouse is released over the swimlanes content area.
protected  boolean textAntiAlias
           
protected  int tolerance
          Specifies the tolerance for mouse clicks.
protected  boolean transparentSwimlaneContent
          Specifies if the content area should be transparent to events.
protected  BufferedImage tripleBuffer
           
protected  boolean tripleBuffered
          Specifies if an image buffer should be used for painting the component.
protected  Graphics2D tripleBufferGraphics
           
protected  mxEventSource.mxIEventListener updateHandler
          Updates the heavyweight component structure after any changes.
protected  int verticalPageCount
          Specifies the number of pages in the vertical direction.
protected  PropertyChangeListener viewChangeHandler
           
protected  ImageIcon warningIcon
           
static int ZOOM_POLICY_NONE
           
static int ZOOM_POLICY_PAGE
           
static int ZOOM_POLICY_WIDTH
           
protected  double zoomFactor
          Specifies the factor used for zoomIn and zoomOut.
protected  int zoomPolicy
          Specifies the zoom policy.
 
Fields inherited from class javax.swing.JScrollPane
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxGraphComponent(mxGraph graph)
           
 
Method Summary
 mxICellOverlay addCellOverlay(Object cell, mxICellOverlay overlay)
          Adds an overlay for the specified cell.
 void addListener(String eventName, mxEventSource.mxIEventListener listener)
           
 boolean canExportCell(Object cell)
          Returns true if the given cell can be exported via datatransfer.
 boolean canImportCell(Object cell)
          Returns true if the given cell can be imported via datatransfer.
 void checkTripleBuffer()
          Checks if the triple buffer exists and creates a new one if it does not.
 void clearCellOverlays()
          Removes all overlays in the graph.
 void clearCellOverlays(Object cell)
          Removes all overlays in the graph for the given cell and all its descendants.
 mxInteractiveCanvas createCanvas()
          Hook for subclassers to replace the graphics canvas for rendering and and printing.
protected  mxICellEditor createCellEditor()
           
 Component[] createComponents(mxCellState state)
          Hook for subclassers to create the array of heavyweights for the given state.
protected  mxConnectionHandler createConnectionHandler()
           
protected  mxGraphComponent.mxGraphControl createGraphControl()
          Creates the inner control that handles tooltips, preferred size and can draw cells onto a canvas.
protected  mxGraphHandler createGraphHandler()
           
 mxCellHandler createHandler(mxCellState state)
           
protected  void createHandlers()
          Creates the connection-, panning and graphhandler (in this order).
protected  mxPanningHandler createPanningHandler()
           
protected  mxSelectionCellsHandler createSelectionCellsHandler()
           
protected  TransferHandler createTransferHandler()
           
protected  void createTripleBuffer(int width, int height)
          Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer.
 void destroyTripleBuffer()
          Destroys the tripleBuffer and tripleBufferGraphics objects.
 void escape(KeyEvent e)
          Callback to process an escape keystroke.
 ImageIcon getBackgroundImage()
           
 mxInteractiveCanvas getCanvas()
           
 Object getCellAt(int x, int y)
           
 Object getCellAt(int x, int y, boolean hitSwimlaneContent)
           
 Object getCellAt(int x, int y, boolean hitSwimlaneContent, Object parent)
          Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy starting at the given parent.
 mxICellEditor getCellEditor()
           
 mxICellOverlay[] getCellOverlays(Object cell)
          Returns the array of overlays for the given cell or null, if no overlays are defined.
 Object[] getCells(Rectangle rect)
          Returns the cells inside the given rectangle.
 Object[] getCells(Rectangle rect, Object parent)
          Returns the children of the given parent that are contained in the given rectangle (x, y, width, height).
 mxConnectionHandler getConnectionHandler()
           
 String getEditingValue(Object cell, EventObject trigger)
           
 Object[] getExportableCells(Object[] cells)
          Returns all cells which may be exported via datatransfer.
 ImageIcon getFoldingIcon(mxCellState state)
          Returns the icon used to display the collapsed state of the specified cell state.
 Rectangle getFoldingIconBounds(mxCellState state, ImageIcon icon)
           
 mxGraph getGraph()
           
 mxGraphComponent.mxGraphControl getGraphControl()
           
 mxGraphHandler getGraphHandler()
           
 Color getGridColor()
           
 int getGridStyle()
           
 int getHorizontalPageBorder()
          Returns the horizontal border between the page and the control.
 int getHorizontalPageCount()
           
 Object[] getImportableCells(Object[] cells)
          Returns all cells which may be imported via datatransfer.
 mxRectangle getLayoutAreaSize()
          Returns the size of the area that layouts can operate in.
 Color getPageBackgroundColor()
           
 Color getPageBorderColor()
           
 Color getPageBreakColor()
           
 PageFormat getPageFormat()
           
 double getPageScale()
           
 Color getPageShadowColor()
           
protected  mxPoint getPageTranslate(double scale)
          Should be called by a hook inside mxGraphView/mxGraph
 mxPanningHandler getPanningHandler()
           
 mxPoint getPointForEvent(MouseEvent e)
          Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.
 mxPoint getPointForEvent(MouseEvent e, boolean addOffset)
          Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.
protected  Dimension getPreferredSizeForPage()
          Returns the (unscaled) preferred size for the current page format (scaled by pageScale).
 float getPreviewAlpha()
           
protected  Dimension getScaledPreferredSizeForGraph()
          Returns the scaled preferred size for the current graph.
 mxSelectionCellsHandler getSelectionCellsHandler()
           
 int getTolerance()
           
 BufferedImage getTripleBuffer()
           
 int getVerticalPageBorder()
          Returns the vertical border between the page and the control.
 int getVerticalPageCount()
           
 double getZoomFactor()
           
 int getZoomPolicy()
           
 boolean hitFoldingIcon(Object cell, int x, int y)
           
 Object[] importCells(Object[] cells, double dx, double dy, Object target, Point location)
          Clones and inserts the given cells into the graph using the move method and returns the inserted cells.
 void insertComponent(mxCellState state, Component c)
           
protected  void installDoubleClickHandler()
          Adds handling of edit and stop-edit events after all other handlers have been installed.
protected  void installFocusHandler()
          installs a handler to set the focus to the container.
protected  void installKeyHandler()
          Handles escape keystrokes.
protected  void installResizeHandler()
          Applies the zoom policy if the size of the component changes.
 boolean isAntiAlias()
           
 boolean isAutoExtend()
           
 boolean isAutoScroll()
           
 boolean isCenterPage()
           
 boolean isCenterZoom()
           
 boolean isCloneEvent(MouseEvent event)
           
 boolean isConnectable()
           
 boolean isConstrainedEvent(MouseEvent event)
          Note: This is not used during drag and drop operations due to limitations of the underlying API.
 boolean isDragEnabled()
           
 boolean isEditEvent(MouseEvent e)
           
 boolean isEditing()
           
 boolean isEnterStopsCellEditing()
           
 boolean isEscapeEnabled()
           
 boolean isEventsEnabled()
           
 boolean isExportEnabled()
           
 boolean isFoldingEnabled()
           
 boolean isForceMarqueeEvent(MouseEvent event)
          Note: This is not used during drag and drop operations due to limitations of the underlying API.
 boolean isForceTripleBuffered()
          Hook for dynamic triple buffering condition.
 boolean isGridEnabledEvent(MouseEvent event)
           
 boolean isGridVisible()
           
 boolean isImportEnabled()
          Returns importEnabled.
 boolean isInvokesStopCellEditing()
           
 boolean isKeepSelectionVisibleOnZoom()
           
 boolean isPageBreaksVisible()
           
 boolean isPageVisible()
           
 boolean isPanning()
           
 boolean isPanningEvent(MouseEvent event)
          Note: This is not used during drag and drop operations due to limitations of the underlying API.
 boolean isPreferPageSize()
           
 boolean isSignificant(double dx, double dy)
          Returns true if the absolute value of one of the given parameters is greater than the tolerance.
 boolean isSwimlaneSelectionEnabled()
           
 boolean isTextAntiAlias()
           
 boolean isToggleEvent(MouseEvent event)
           
 boolean isTripleBuffered()
           
 Object labelChanged(Object cell, Object value, EventObject evt)
          Sets the label of the specified cell to the given value using mxGraph.cellLabelChanged and fires mxEvent.LABEL_CHANGED while the transaction is in progress.
protected  void maintainScrollBar(boolean horizontal, double factor, boolean center)
           
protected  void paintBackground(Graphics g)
           
protected  void paintBackgroundImage(Graphics g)
           
protected  Rectangle paintBackgroundPage(Graphics g)
           
protected  void paintGrid(Graphics g)
          Paints the grid onto the given graphics object.
 int print(Graphics g, PageFormat printFormat, int page)
          Prints the specified page on the specified graphics using pageFormat for the page format.
 void redraw(mxCellState state)
          Updates the buffer (if one exists) and repaints the given cell state.
 void refresh()
          Refreshes the display and handles.
 void removeAllComponents(Hashtable<Object,Component[]> map)
           
 void removeAllOverlays(Hashtable<Object,mxICellOverlay[]> map)
           
 mxICellOverlay removeCellOverlay(Object cell, mxICellOverlay overlay)
          Removes and returns the given overlay from the given cell.
protected  void removeCellOverlayComponent(mxICellOverlay overlay, Object cell)
          Notified when an overlay has been removed from the graph.
 mxICellOverlay[] removeCellOverlays(Object cell)
          Removes all overlays from the given cell.
 void removeComponent(Component c, Object cell)
           
 void removeListener(mxEventSource.mxIEventListener listener)
           
 void removeListener(mxEventSource.mxIEventListener listener, String eventName)
           
 void repaintTripleBuffer(Rectangle dirty)
          Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.
 void scrollCellToVisible(Object cell)
          Scrolls the graph so that it shows the given cell.
 void scrollCellToVisible(Object cell, boolean center)
          Scrolls the graph so that it shows the given cell.
 void scrollToCenter(boolean horizontal)
           
 void selectCellForEvent(Object cell, MouseEvent e)
          Selects the cell for the given event.
 void selectCellsForEvent(Object[] cells, MouseEvent event)
          Selects the cells for the given event.
 Object[] selectRegion(Rectangle rect, MouseEvent e)
           
 void setAntiAlias(boolean value)
          Fires a property change event for antiAlias.
 void setAutoExtend(boolean value)
           
 void setAutoScroll(boolean value)
           
 void setBackgroundImage(ImageIcon value)
           
 void setCellEditor(mxICellEditor value)
           
 mxICellOverlay setCellWarning(Object cell, String warning)
          Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
 mxICellOverlay setCellWarning(Object cell, String warning, ImageIcon icon)
          Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
 mxICellOverlay setCellWarning(Object cell, String warning, ImageIcon icon, boolean select)
          Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay.
 void setCenterPage(boolean value)
          zoomAndCenter should be called if this is set to true.
 void setCenterZoom(boolean value)
           
 void setConnectable(boolean connectable)
           
 void setDragEnabled(boolean value)
           
 void setEnterStopsCellEditing(boolean value)
           
 void setEscapeEnabled(boolean value)
           
 void setEventsEnabled(boolean eventsEnabled)
           
 void setExportEnabled(boolean value)
           
 void setFoldingEnabled(boolean value)
           
 void setGraph(mxGraph value)
           
 void setGridColor(Color value)
          Fires a property change event for gridColor.
 void setGridStyle(int value)
          Fires a property change event for gridStyle.
 void setGridVisible(boolean value)
          Fires a property change event for gridVisible.
 void setHorizontalPageCount(int value)
           
 void setImportEnabled(boolean value)
          Sets importEnabled.
 void setInvokesStopCellEditing(boolean value)
           
 void setKeepSelectionVisibleOnZoom(boolean value)
           
 void setPageBackgroundColor(Color value)
          Sets the color that appears behind the page.
 void setPageBorderColor(Color value)
           
 void setPageBreakColor(Color pageBreakColor)
           
 void setPageBreaksVisible(boolean value)
           
 void setPageFormat(PageFormat value)
           
 void setPageScale(double value)
           
 void setPageShadowColor(Color value)
           
 void setPageVisible(boolean value)
          Fires a property change event for pageVisible.
 void setPanning(boolean enabled)
           
 void setPreferPageSize(boolean value)
          Fires a property change event for preferPageSize.
 void setPreviewAlpha(float value)
           
 void setSwimlaneSelectionEnabled(boolean value)
           
 void setTextAntiAlias(boolean value)
          Fires a property change event for textAntiAlias.
 void setTolerance(int value)
           
 void setToolTips(boolean enabled)
           
 void setTripleBuffered(boolean value)
           
 void setVerticalPageCount(int value)
           
 void setZoomFactor(double value)
           
 void setZoomPolicy(int value)
           
 mxPoint snapScaledPoint(mxPoint pt)
           
 mxPoint snapScaledPoint(mxPoint pt, double dx, double dy)
           
 void startEditing()
           
 void startEditingAtCell(Object cell)
           
 void startEditingAtCell(Object cell, EventObject evt)
           
 void stopEditing(boolean cancel)
           
protected  void updateCellOverlayComponent(mxCellState state, mxICellOverlay overlay)
          Notified when an overlay has been removed from the graph.
 Hashtable<Object,mxICellOverlay[]> updateCellOverlays(Object cell)
          Returns a hashtable with all entries from the overlays variable where a cell still exists in the model.
 void updateComponent(mxCellState state, Component c)
           
 void updateComponents()
           
 Hashtable<Object,Component[]> updateComponents(Object cell)
           
 String validateGraph()
          Validates the graph by validating each descendant of the given cell or the root of the model.
 String validateGraph(Object cell, Hashtable<Object,Object> context)
          Validates the graph by validating each descendant of the given cell or the root of the model.
 void zoom(boolean page, boolean center)
           
 void zoom(double factor)
           
 void zoomActual()
          Function: zoomActual Resets the zoom and panning in the view.
 void zoomAndCenter()
          Invoked after the component was resized to update the zoom if the zoom policy is not none and/or update the translation of the diagram if pageVisible and centerPage are true.
 void zoomIn()
          Zooms into the graph by zoomFactor.
 void zoomOut()
          Function: zoomOut Zooms out of the graph by .
 void zoomTo(double newScale, boolean center)
           
 
Methods inherited from class javax.swing.JScrollPane
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRID_STYLE_DOT

public static final int GRID_STYLE_DOT
See Also:
Constant Field Values

GRID_STYLE_CROSS

public static final int GRID_STYLE_CROSS
See Also:
Constant Field Values

GRID_STYLE_LINE

public static final int GRID_STYLE_LINE
See Also:
Constant Field Values

GRID_STYLE_DASHED

public static final int GRID_STYLE_DASHED
See Also:
Constant Field Values

ZOOM_POLICY_NONE

public static final int ZOOM_POLICY_NONE
See Also:
Constant Field Values

ZOOM_POLICY_PAGE

public static final int ZOOM_POLICY_PAGE
See Also:
Constant Field Values

ZOOM_POLICY_WIDTH

public static final int ZOOM_POLICY_WIDTH
See Also:
Constant Field Values

DEFAULT_EXPANDED_ICON

public static ImageIcon DEFAULT_EXPANDED_ICON

DEFAULT_COLLAPSED_ICON

public static ImageIcon DEFAULT_COLLAPSED_ICON

DEFAULT_WARNING_ICON

public static ImageIcon DEFAULT_WARNING_ICON

DEFAULT_PAGESCALE

public static final double DEFAULT_PAGESCALE
Specifies the default page scale. Default is 1.4

See Also:
Constant Field Values

graph

protected mxGraph graph

graphControl

protected mxGraphComponent.mxGraphControl graphControl

eventSource

protected mxEventSource eventSource

cellEditor

protected mxICellEditor cellEditor

connectionHandler

protected mxConnectionHandler connectionHandler

panningHandler

protected mxPanningHandler panningHandler

selectionCellsHandler

protected mxSelectionCellsHandler selectionCellsHandler

graphHandler

protected mxGraphHandler graphHandler

previewAlpha

protected float previewAlpha
The transparency of previewed cells from 0.0. to 0.1. 0.0 indicates transparent, 1.0 indicates opaque. Default is 1.


backgroundImage

protected ImageIcon backgroundImage
Specifies the to be returned by . Default is null.


pageFormat

protected PageFormat pageFormat
Background page format.


canvas

protected mxInteractiveCanvas canvas

tripleBuffer

protected BufferedImage tripleBuffer

tripleBufferGraphics

protected Graphics2D tripleBufferGraphics

pageScale

protected double pageScale
Defines the scaling for the background page metrics. Default is DEFAULT_PAGESCALE.


pageVisible

protected boolean pageVisible
Specifies if the background page should be visible. Default is false.


preferPageSize

protected boolean preferPageSize
If the pageFormat should be used to determine the minimal graph bounds even if the page is not visible (see pageVisible). Default is false.


pageBreaksVisible

protected boolean pageBreaksVisible
Specifies if a dashed line should be drawn between multiple pages.


pageBreakColor

protected Color pageBreakColor
Specifies the color of page breaks


horizontalPageCount

protected int horizontalPageCount
Specifies the number of pages in the horizontal direction.


verticalPageCount

protected int verticalPageCount
Specifies the number of pages in the vertical direction.


centerPage

protected boolean centerPage
Specifies if the background page should be centered by automatically setting the translate in the view. Default is true. This does only apply if pageVisible is true.


pageBackgroundColor

protected Color pageBackgroundColor
Color of the background area if layout view.


pageShadowColor

protected Color pageShadowColor

pageBorderColor

protected Color pageBorderColor

gridVisible

protected boolean gridVisible
Specifies if the grid is visible. Default is false.


gridColor

protected Color gridColor

autoScroll

protected boolean autoScroll
Whether or not to scroll the scrollable container the graph exists in if a suitable handler is active and the graph bounds already exist extended in the direction of mouse travel.


autoExtend

protected boolean autoExtend
Whether to extend the graph bounds and scroll towards the limit of those new bounds in the direction of mouse travel if a handler is active while the mouse leaves the container that the graph exists in.


dragEnabled

protected boolean dragEnabled

importEnabled

protected boolean importEnabled

exportEnabled

protected boolean exportEnabled

foldingEnabled

protected boolean foldingEnabled
Specifies if folding (collapse and expand via an image icon in the graph should be enabled). Default is true.


tolerance

protected int tolerance
Specifies the tolerance for mouse clicks. Default is 4.


swimlaneSelectionEnabled

protected boolean swimlaneSelectionEnabled
Specifies if swimlanes are selected when the mouse is released over the swimlanes content area. Default is true.


transparentSwimlaneContent

protected boolean transparentSwimlaneContent
Specifies if the content area should be transparent to events. Default is true.


gridStyle

protected int gridStyle

expandedIcon

protected ImageIcon expandedIcon

collapsedIcon

protected ImageIcon collapsedIcon

warningIcon

protected ImageIcon warningIcon

antiAlias

protected boolean antiAlias

textAntiAlias

protected boolean textAntiAlias

escapeEnabled

protected boolean escapeEnabled
Specifies should be invoked when the escape key is pressed. Default is true.


invokesStopCellEditing

protected boolean invokesStopCellEditing
If true, when editing is to be stopped by way of selection changing, data in diagram changing or other means stopCellEditing is invoked, and changes are saved. This is implemented in a mouse listener in this class. Default is true.


enterStopsCellEditing

protected boolean enterStopsCellEditing
If true, pressing the enter key without pressing control will stop editing and accept the new value. This is used in to stop cell editing. Default is false.


zoomPolicy

protected int zoomPolicy
Specifies the zoom policy. Default is ZOOM_POLICY_PAGE. The zoom policy does only apply if pageVisible is true.


zoomFactor

protected double zoomFactor
Specifies the factor used for zoomIn and zoomOut. Default is 1.2 (120%).


keepSelectionVisibleOnZoom

protected boolean keepSelectionVisibleOnZoom
Specifies if the viewport should automatically contain the selection cells after a zoom operation. Default is false.


centerZoom

protected boolean centerZoom
Specifies if the zoom operations should go into the center of the actual diagram rather than going from top, left. Default is true.


tripleBuffered

protected boolean tripleBuffered
Specifies if an image buffer should be used for painting the component. Default is false.


showDirtyRectangle

public boolean showDirtyRectangle
Used for debugging the dirty region.


components

protected Hashtable<Object,Component[]> components
Maps from cells to lists of heavyweights.


overlays

protected Hashtable<Object,mxICellOverlay[]> overlays
Maps from cells to lists of overlays.


updateHandler

protected mxEventSource.mxIEventListener updateHandler
Updates the heavyweight component structure after any changes.


repaintHandler

protected mxEventSource.mxIEventListener repaintHandler

viewChangeHandler

protected PropertyChangeListener viewChangeHandler

scaleHandler

protected mxEventSource.mxIEventListener scaleHandler
Resets the zoom policy if the scale is changed manually.

Constructor Detail

mxGraphComponent

public mxGraphComponent(mxGraph graph)
Parameters:
graph -
Method Detail

installFocusHandler

protected void installFocusHandler()
installs a handler to set the focus to the container.


installKeyHandler

protected void installKeyHandler()
Handles escape keystrokes.


installResizeHandler

protected void installResizeHandler()
Applies the zoom policy if the size of the component changes.


installDoubleClickHandler

protected void installDoubleClickHandler()
Adds handling of edit and stop-edit events after all other handlers have been installed.


createCellEditor

protected mxICellEditor createCellEditor()

setGraph

public void setGraph(mxGraph value)

getGraph

public mxGraph getGraph()
Returns:
Returns the object that contains the graph.

createGraphControl

protected mxGraphComponent.mxGraphControl createGraphControl()
Creates the inner control that handles tooltips, preferred size and can draw cells onto a canvas.


getGraphControl

public mxGraphComponent.mxGraphControl getGraphControl()
Returns:
Returns the control that renders the graph.

createHandlers

protected void createHandlers()
Creates the connection-, panning and graphhandler (in this order).


createTransferHandler

protected TransferHandler createTransferHandler()

createSelectionCellsHandler

protected mxSelectionCellsHandler createSelectionCellsHandler()

createGraphHandler

protected mxGraphHandler createGraphHandler()

getSelectionCellsHandler

public mxSelectionCellsHandler getSelectionCellsHandler()

getGraphHandler

public mxGraphHandler getGraphHandler()

createConnectionHandler

protected mxConnectionHandler createConnectionHandler()

getConnectionHandler

public mxConnectionHandler getConnectionHandler()

createPanningHandler

protected mxPanningHandler createPanningHandler()

getPanningHandler

public mxPanningHandler getPanningHandler()

isEditing

public boolean isEditing()

getCellEditor

public mxICellEditor getCellEditor()

setCellEditor

public void setCellEditor(mxICellEditor value)

getTolerance

public int getTolerance()
Returns:
the tolerance

setTolerance

public void setTolerance(int value)
Parameters:
value - the tolerance to set

getPageFormat

public PageFormat getPageFormat()

setPageFormat

public void setPageFormat(PageFormat value)

getPageScale

public double getPageScale()

setPageScale

public void setPageScale(double value)

getLayoutAreaSize

public mxRectangle getLayoutAreaSize()
Returns the size of the area that layouts can operate in.


getBackgroundImage

public ImageIcon getBackgroundImage()

setBackgroundImage

public void setBackgroundImage(ImageIcon value)

isPageVisible

public boolean isPageVisible()
Returns:
the pageVisible

setPageVisible

public void setPageVisible(boolean value)
Fires a property change event for pageVisible. zoomAndCenter should be called if this is set to true.

Parameters:
value - the pageVisible to set

isPreferPageSize

public boolean isPreferPageSize()
Returns:
the preferPageSize

setPreferPageSize

public void setPreferPageSize(boolean value)
Fires a property change event for preferPageSize.

Parameters:
value - the preferPageSize to set

isPageBreaksVisible

public boolean isPageBreaksVisible()
Returns:
the pageBreaksVisible

setPageBreaksVisible

public void setPageBreaksVisible(boolean value)
Parameters:
value - the pageBreaksVisible to set

getPageBreakColor

public Color getPageBreakColor()
Returns:
the pageBreakColor

setPageBreakColor

public void setPageBreakColor(Color pageBreakColor)
Parameters:
pageBreakColor - the pageBreakColor to set

setHorizontalPageCount

public void setHorizontalPageCount(int value)
Parameters:
value - the horizontalPageCount to set

getHorizontalPageCount

public int getHorizontalPageCount()

setVerticalPageCount

public void setVerticalPageCount(int value)
Parameters:
value - the verticalPageCount to set

getVerticalPageCount

public int getVerticalPageCount()

isCenterPage

public boolean isCenterPage()
Returns:
the centerPage

setCenterPage

public void setCenterPage(boolean value)
zoomAndCenter should be called if this is set to true.

Parameters:
value - the centerPage to set

getPageBackgroundColor

public Color getPageBackgroundColor()
Returns:
the pageBackgroundColor

setPageBackgroundColor

public void setPageBackgroundColor(Color value)
Sets the color that appears behind the page.

Parameters:
value - the pageBackgroundColor to set

getPageShadowColor

public Color getPageShadowColor()
Returns:
the pageShadowColor

setPageShadowColor

public void setPageShadowColor(Color value)
Parameters:
value - the pageShadowColor to set

getPageBorderColor

public Color getPageBorderColor()
Returns:
the pageShadowColor

setPageBorderColor

public void setPageBorderColor(Color value)
Parameters:
value - the pageBorderColor to set

isKeepSelectionVisibleOnZoom

public boolean isKeepSelectionVisibleOnZoom()
Returns:
the keepSelectionVisibleOnZoom

setKeepSelectionVisibleOnZoom

public void setKeepSelectionVisibleOnZoom(boolean value)
Parameters:
value - the keepSelectionVisibleOnZoom to set

getZoomFactor

public double getZoomFactor()
Returns:
the zoomFactor

setZoomFactor

public void setZoomFactor(double value)
Parameters:
value - the zoomFactor to set

isCenterZoom

public boolean isCenterZoom()
Returns:
the centerZoom

setCenterZoom

public void setCenterZoom(boolean value)
Parameters:
value - the centerZoom to set

setZoomPolicy

public void setZoomPolicy(int value)

getZoomPolicy

public int getZoomPolicy()

escape

public void escape(KeyEvent e)
Callback to process an escape keystroke.

Parameters:
e -

importCells

public Object[] importCells(Object[] cells,
                            double dx,
                            double dy,
                            Object target,
                            Point location)
Clones and inserts the given cells into the graph using the move method and returns the inserted cells. This shortcut is used if cells are inserted via datatransfer.


refresh

public void refresh()
Refreshes the display and handles.


getPointForEvent

public mxPoint getPointForEvent(MouseEvent e)
Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.


getPointForEvent

public mxPoint getPointForEvent(MouseEvent e,
                                boolean addOffset)
Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.


startEditing

public void startEditing()

startEditingAtCell

public void startEditingAtCell(Object cell)

startEditingAtCell

public void startEditingAtCell(Object cell,
                               EventObject evt)

getEditingValue

public String getEditingValue(Object cell,
                              EventObject trigger)

stopEditing

public void stopEditing(boolean cancel)

labelChanged

public Object labelChanged(Object cell,
                           Object value,
                           EventObject evt)
Sets the label of the specified cell to the given value using mxGraph.cellLabelChanged and fires mxEvent.LABEL_CHANGED while the transaction is in progress. Returns the cell whose label was changed.

Parameters:
cell - Cell whose label should be changed.
value - New value of the label.
evt - Optional event that triggered the change.

getPreferredSizeForPage

protected Dimension getPreferredSizeForPage()
Returns the (unscaled) preferred size for the current page format (scaled by pageScale).


getVerticalPageBorder

public int getVerticalPageBorder()
Returns the vertical border between the page and the control.


getHorizontalPageBorder

public int getHorizontalPageBorder()
Returns the horizontal border between the page and the control.


getScaledPreferredSizeForGraph

protected Dimension getScaledPreferredSizeForGraph()
Returns the scaled preferred size for the current graph.


getPageTranslate

protected mxPoint getPageTranslate(double scale)
Should be called by a hook inside mxGraphView/mxGraph


zoomAndCenter

public void zoomAndCenter()
Invoked after the component was resized to update the zoom if the zoom policy is not none and/or update the translation of the diagram if pageVisible and centerPage are true.


zoomIn

public void zoomIn()
Zooms into the graph by zoomFactor.


zoomOut

public void zoomOut()
Function: zoomOut Zooms out of the graph by .


zoom

public void zoom(double factor)

zoomTo

public void zoomTo(double newScale,
                   boolean center)

zoomActual

public void zoomActual()
Function: zoomActual Resets the zoom and panning in the view.


zoom

public void zoom(boolean page,
                 boolean center)

maintainScrollBar

protected void maintainScrollBar(boolean horizontal,
                                 double factor,
                                 boolean center)

scrollToCenter

public void scrollToCenter(boolean horizontal)

scrollCellToVisible

public void scrollCellToVisible(Object cell)
Scrolls the graph so that it shows the given cell.

Parameters:
cell -

scrollCellToVisible

public void scrollCellToVisible(Object cell,
                                boolean center)
Scrolls the graph so that it shows the given cell.

Parameters:
cell -

getCellAt

public Object getCellAt(int x,
                        int y)
Parameters:
x -
y -
Returns:
Returns the cell at the given location.

getCellAt

public Object getCellAt(int x,
                        int y,
                        boolean hitSwimlaneContent)
Parameters:
x -
y -
hitSwimlaneContent -
Returns:
Returns the cell at the given location.

getCellAt

public Object getCellAt(int x,
                        int y,
                        boolean hitSwimlaneContent,
                        Object parent)
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy starting at the given parent.

Parameters:
x - X-coordinate of the location to be checked.
y - Y-coordinate of the location to be checked.
parent - that should be used as the root of the recursion. Default is .
Returns:
Returns the child at the given location.

setSwimlaneSelectionEnabled

public void setSwimlaneSelectionEnabled(boolean value)

isSwimlaneSelectionEnabled

public boolean isSwimlaneSelectionEnabled()

selectRegion

public Object[] selectRegion(Rectangle rect,
                             MouseEvent e)

getCells

public Object[] getCells(Rectangle rect)
Returns the cells inside the given rectangle.

Returns:
Returns the cells inside the given rectangle.

getCells

public Object[] getCells(Rectangle rect,
                         Object parent)
Returns the children of the given parent that are contained in the given rectangle (x, y, width, height). The result is added to the optional result array, which is returned from the function. If no result array is specified then a new array is created and returned.

Returns:
Returns the children inside the given rectangle.

selectCellsForEvent

public void selectCellsForEvent(Object[] cells,
                                MouseEvent event)
Selects the cells for the given event.


selectCellForEvent

public void selectCellForEvent(Object cell,
                               MouseEvent e)
Selects the cell for the given event.


isSignificant

public boolean isSignificant(double dx,
                             double dy)
Returns true if the absolute value of one of the given parameters is greater than the tolerance.


getFoldingIcon

public ImageIcon getFoldingIcon(mxCellState state)
Returns the icon used to display the collapsed state of the specified cell state. This returns null for all edges.


getFoldingIconBounds

public Rectangle getFoldingIconBounds(mxCellState state,
                                      ImageIcon icon)

hitFoldingIcon

public boolean hitFoldingIcon(Object cell,
                              int x,
                              int y)

setToolTips

public void setToolTips(boolean enabled)
Parameters:
enabled -

isConnectable

public boolean isConnectable()

setConnectable

public void setConnectable(boolean connectable)
Parameters:
connectable -

isPanning

public boolean isPanning()

setPanning

public void setPanning(boolean enabled)
Parameters:
enabled -

isAutoScroll

public boolean isAutoScroll()
Returns:
the autoScroll

setAutoScroll

public void setAutoScroll(boolean value)
Parameters:
value - the autoScroll to set

isAutoExtend

public boolean isAutoExtend()
Returns:
the autoExtend

setAutoExtend

public void setAutoExtend(boolean value)
Parameters:
value - the autoExtend to set

isEscapeEnabled

public boolean isEscapeEnabled()
Returns:
the escapeEnabled

setEscapeEnabled

public void setEscapeEnabled(boolean value)
Parameters:
value - the escapeEnabled to set

isInvokesStopCellEditing

public boolean isInvokesStopCellEditing()
Returns:
the escapeEnabled

setInvokesStopCellEditing

public void setInvokesStopCellEditing(boolean value)
Parameters:
value - the invokesStopCellEditing to set

isEnterStopsCellEditing

public boolean isEnterStopsCellEditing()
Returns:
the enterStopsCellEditing

setEnterStopsCellEditing

public void setEnterStopsCellEditing(boolean value)
Parameters:
value - the enterStopsCellEditing to set

isDragEnabled

public boolean isDragEnabled()
Returns:
the dragEnabled

setDragEnabled

public void setDragEnabled(boolean value)
Parameters:
value - the dragEnabled to set

isGridVisible

public boolean isGridVisible()
Returns:
the gridVisible

setGridVisible

public void setGridVisible(boolean value)
Fires a property change event for gridVisible.

Parameters:
value - the gridVisible to set

isAntiAlias

public boolean isAntiAlias()
Returns:
the gridVisible

setAntiAlias

public void setAntiAlias(boolean value)
Fires a property change event for antiAlias.

Parameters:
value - the antiAlias to set

isTextAntiAlias

public boolean isTextAntiAlias()
Returns:
the gridVisible

setTextAntiAlias

public void setTextAntiAlias(boolean value)
Fires a property change event for textAntiAlias.

Parameters:
value - the textAntiAlias to set

getPreviewAlpha

public float getPreviewAlpha()

setPreviewAlpha

public void setPreviewAlpha(float value)

isTripleBuffered

public boolean isTripleBuffered()
Returns:
the tripleBuffered

isForceTripleBuffered

public boolean isForceTripleBuffered()
Hook for dynamic triple buffering condition.


setTripleBuffered

public void setTripleBuffered(boolean value)
Parameters:
value - the tripleBuffered to set

getGridColor

public Color getGridColor()
Returns:
the gridColor

setGridColor

public void setGridColor(Color value)
Fires a property change event for gridColor.

Parameters:
value - the gridColor to set

getGridStyle

public int getGridStyle()
Returns:
the gridStyle

setGridStyle

public void setGridStyle(int value)
Fires a property change event for gridStyle.

Parameters:
value - the gridStyle to set

isImportEnabled

public boolean isImportEnabled()
Returns importEnabled.


setImportEnabled

public void setImportEnabled(boolean value)
Sets importEnabled.


getImportableCells

public Object[] getImportableCells(Object[] cells)
Returns all cells which may be imported via datatransfer.


canImportCell

public boolean canImportCell(Object cell)
Returns true if the given cell can be imported via datatransfer. This returns importEnabled.


isExportEnabled

public boolean isExportEnabled()
Returns:
the exportEnabled

setExportEnabled

public void setExportEnabled(boolean value)
Parameters:
value - the exportEnabled to set

getExportableCells

public Object[] getExportableCells(Object[] cells)
Returns all cells which may be exported via datatransfer.


canExportCell

public boolean canExportCell(Object cell)
Returns true if the given cell can be exported via datatransfer.


isFoldingEnabled

public boolean isFoldingEnabled()
Returns:
the foldingEnabled

setFoldingEnabled

public void setFoldingEnabled(boolean value)
Parameters:
value - the foldingEnabled to set

isEditEvent

public boolean isEditEvent(MouseEvent e)

isCloneEvent

public boolean isCloneEvent(MouseEvent event)
Parameters:
event -
Returns:
Returns true if the given event should toggle selected cells.

isToggleEvent

public boolean isToggleEvent(MouseEvent event)
Parameters:
event -
Returns:
Returns true if the given event should toggle selected cells.

isGridEnabledEvent

public boolean isGridEnabledEvent(MouseEvent event)
Parameters:
event -
Returns:
Returns true if the given event allows the grid to be applied.

isPanningEvent

public boolean isPanningEvent(MouseEvent event)
Note: This is not used during drag and drop operations due to limitations of the underlying API. To enable this for move operations set dragEnabled to false.

Parameters:
event -
Returns:
Returns true if the given event is a panning event.

isConstrainedEvent

public boolean isConstrainedEvent(MouseEvent event)
Note: This is not used during drag and drop operations due to limitations of the underlying API. To enable this for move operations set dragEnabled to false.

Parameters:
event -
Returns:
Returns true if the given event is constrained.

isForceMarqueeEvent

public boolean isForceMarqueeEvent(MouseEvent event)
Note: This is not used during drag and drop operations due to limitations of the underlying API. To enable this for move operations set dragEnabled to false.

Parameters:
event -
Returns:
Returns true if the given event is constrained.

snapScaledPoint

public mxPoint snapScaledPoint(mxPoint pt)

snapScaledPoint

public mxPoint snapScaledPoint(mxPoint pt,
                               double dx,
                               double dy)

print

public int print(Graphics g,
                 PageFormat printFormat,
                 int page)
Prints the specified page on the specified graphics using pageFormat for the page format.

Specified by:
print in interface Printable
Parameters:
g - The graphics to paint the graph on.
printFormat - The page format to use for printing.
page - The page to print
Returns:
Returns Printable.PAGE_EXISTS or Printable.NO_SUCH_PAGE.

getCanvas

public mxInteractiveCanvas getCanvas()

getTripleBuffer

public BufferedImage getTripleBuffer()

createCanvas

public mxInteractiveCanvas createCanvas()
Hook for subclassers to replace the graphics canvas for rendering and and printing. This must be overridden to return a custom canvas if there are any custom shapes.


createHandler

public mxCellHandler createHandler(mxCellState state)
Parameters:
state - Cell state for which a handler should be created.
Returns:
Returns the handler to be used for the given cell state.

createComponents

public Component[] createComponents(mxCellState state)
Hook for subclassers to create the array of heavyweights for the given state.


insertComponent

public void insertComponent(mxCellState state,
                            Component c)

removeComponent

public void removeComponent(Component c,
                            Object cell)

updateComponent

public void updateComponent(mxCellState state,
                            Component c)

updateComponents

public void updateComponents()

removeAllComponents

public void removeAllComponents(Hashtable<Object,Component[]> map)

removeAllOverlays

public void removeAllOverlays(Hashtable<Object,mxICellOverlay[]> map)

updateComponents

public Hashtable<Object,Component[]> updateComponents(Object cell)

validateGraph

public String validateGraph()
Validates the graph by validating each descendant of the given cell or the root of the model. Context is an object that contains the validation state for the complete validation run. The validation errors are attached to their cells using . This function returns true if no validation errors exist in the graph.


validateGraph

public String validateGraph(Object cell,
                            Hashtable<Object,Object> context)
Validates the graph by validating each descendant of the given cell or the root of the model. Context is an object that contains the validation state for the complete validation run. The validation errors are attached to their cells using . This function returns true if no validation errors exist in the graph.

Parameters:
cell - Cell to start the validation recursion.
context - Object that represents the global validation state.

addCellOverlay

public mxICellOverlay addCellOverlay(Object cell,
                                     mxICellOverlay overlay)
Adds an overlay for the specified cell. This method fires an addoverlay event and returns the new overlay.

Parameters:
cell - Cell to add the overlay for.
overlay - Overlay to be added for the cell.

getCellOverlays

public mxICellOverlay[] getCellOverlays(Object cell)
Returns the array of overlays for the given cell or null, if no overlays are defined.

Parameters:
cell - Cell whose overlays should be returned.

removeCellOverlay

public mxICellOverlay removeCellOverlay(Object cell,
                                        mxICellOverlay overlay)
Removes and returns the given overlay from the given cell. This method fires a remove overlay event. If no overlay is given, then all overlays are removed using removeOverlays.

Parameters:
cell - Cell whose overlay should be removed.
overlay - Optional overlay to be removed.

removeCellOverlays

public mxICellOverlay[] removeCellOverlays(Object cell)
Removes all overlays from the given cell. This method fires a removeoverlay event for each removed overlay and returns the array of overlays that was removed from the cell.

Parameters:
cell - Cell whose overlays should be removed.

removeCellOverlayComponent

protected void removeCellOverlayComponent(mxICellOverlay overlay,
                                          Object cell)
Notified when an overlay has been removed from the graph. This implementation removes the given overlay from its parent if it is a component inside a component hierarchy.


updateCellOverlayComponent

protected void updateCellOverlayComponent(mxCellState state,
                                          mxICellOverlay overlay)
Notified when an overlay has been removed from the graph. This implementation removes the given overlay from its parent if it is a component inside a component hierarchy.


clearCellOverlays

public void clearCellOverlays()
Removes all overlays in the graph.


clearCellOverlays

public void clearCellOverlays(Object cell)
Removes all overlays in the graph for the given cell and all its descendants. If no cell is specified then all overlays are removed from the graph. This implementation uses removeOverlays to remove the overlays from the individual cells.

Parameters:
cell - Optional cell that represents the root of the subtree to remove the overlays from. Default is the root in the model.

setCellWarning

public mxICellOverlay setCellWarning(Object cell,
                                     String warning)
Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay. If the warning is null or a zero length string, then all overlays are removed from the cell instead.

Parameters:
cell - Cell whose warning should be set.
warning - String that represents the warning to be displayed.

setCellWarning

public mxICellOverlay setCellWarning(Object cell,
                                     String warning,
                                     ImageIcon icon)
Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay. If the warning is null or a zero length string, then all overlays are removed from the cell instead.

Parameters:
cell - Cell whose warning should be set.
warning - String that represents the warning to be displayed.
icon - Optional image to be used for the overlay. Default is warningImageBasename.

setCellWarning

public mxICellOverlay setCellWarning(Object cell,
                                     String warning,
                                     ImageIcon icon,
                                     boolean select)
Creates an overlay for the given cell using the warning and image or warningImage and returns the new overlay. If the warning is null or a zero length string, then all overlays are removed from the cell instead.

Parameters:
cell - Cell whose warning should be set.
warning - String that represents the warning to be displayed.
icon - Optional image to be used for the overlay. Default is warningImageBasename.
select - Optional boolean indicating if a click on the overlay should select the corresponding cell. Default is false.

updateCellOverlays

public Hashtable<Object,mxICellOverlay[]> updateCellOverlays(Object cell)
Returns a hashtable with all entries from the overlays variable where a cell still exists in the model. The entries are removed from the global hashtable so that the remaining entries reflect those whose cell have been removed from the model. If no state is available for a given cell then its overlays are temporarly removed from the rendering control, but kept in the result.


paintBackground

protected void paintBackground(Graphics g)

paintBackgroundPage

protected Rectangle paintBackgroundPage(Graphics g)

paintBackgroundImage

protected void paintBackgroundImage(Graphics g)

paintGrid

protected void paintGrid(Graphics g)
Paints the grid onto the given graphics object.


redraw

public void redraw(mxCellState state)
Updates the buffer (if one exists) and repaints the given cell state.


checkTripleBuffer

public void checkTripleBuffer()
Checks if the triple buffer exists and creates a new one if it does not. Also compares the size of the buffer with the size of the graph and drops the buffer if it has a different size.


createTripleBuffer

protected void createTripleBuffer(int width,
                                  int height)
Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer.

Parameters:
width -
height -

destroyTripleBuffer

public void destroyTripleBuffer()
Destroys the tripleBuffer and tripleBufferGraphics objects.


repaintTripleBuffer

public void repaintTripleBuffer(Rectangle dirty)
Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.

Parameters:
dirty -

isEventsEnabled

public boolean isEventsEnabled()
Returns:
Returns true if event dispatching is enabled in the event source.
See Also:
mxEventSource.isEventsEnabled()

setEventsEnabled

public void setEventsEnabled(boolean eventsEnabled)
Parameters:
eventsEnabled -
See Also:
mxEventSource.setEventsEnabled(boolean)

addListener

public void addListener(String eventName,
                        mxEventSource.mxIEventListener listener)
Parameters:
eventName -
listener -
See Also:
mxEventSource.addListener(java.lang.String, com.mxgraph.util.mxEventSource.mxIEventListener)

removeListener

public void removeListener(mxEventSource.mxIEventListener listener)
Parameters:
listener - Listener instance.

removeListener

public void removeListener(mxEventSource.mxIEventListener listener,
                           String eventName)
Parameters:
eventName - Name of the event.
listener - Listener instance.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/0000775000175000017500000000000012176166726024323 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxKeyboardHandler.html0000664000175000017500000003525312176166724030622 0ustar sylvestresylvestre mxKeyboardHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxKeyboardHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxKeyboardHandler

public class mxKeyboardHandler
extends Object


Constructor Summary
mxKeyboardHandler(mxGraphComponent graphComponent)
           
 
Method Summary
protected  ActionMap createActionMap()
          Return the mapping between JTree's input map and JGraph's actions.
protected  InputMap getInputMap(int condition)
          Return JTree's input map.
protected  void installKeyboardActions(mxGraphComponent graphComponent)
          Invoked as part from the boilerplate install block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxKeyboardHandler

public mxKeyboardHandler(mxGraphComponent graphComponent)
Parameters:
graphComponent -
Method Detail

installKeyboardActions

protected void installKeyboardActions(mxGraphComponent graphComponent)
Invoked as part from the boilerplate install block.


getInputMap

protected InputMap getInputMap(int condition)
Return JTree's input map.


createActionMap

protected ActionMap createActionMap()
Return the mapping between JTree's input map and JGraph's actions.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxSelectionCellsHandler.html0000664000175000017500000012070312176166724031765 0ustar sylvestresylvestre mxSelectionCellsHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxSelectionCellsHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxSelectionCellsHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class mxSelectionCellsHandler
extends Object
implements MouseListener, MouseMotionListener


Field Summary
protected  Rectangle bounds
          Reference to the enclosing graph component.
static int DEFAULT_MAX_HANDLERS
          Defines the default value for maxHandlers.
protected  boolean enabled
          Specifies if this handler is enabled.
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph component.
protected  LinkedHashMap<Object,mxCellHandler> handlers
          Maps from cells to handlers in the order of the selection cells.
protected  PropertyChangeListener labelMoveHandler
           
protected  int maxHandlers
          Defines the maximum number of handlers to paint individually.
protected  mxEventSource.mxIEventListener refreshHandler
           
protected  boolean visible
          Specifies if this handler is visible.
 
Constructor Summary
mxSelectionCellsHandler(mxGraphComponent graphComponent)
           
 
Method Summary
protected  void addGraphListeners(mxGraph graph)
          Installs the listeners to update the handles after any changes.
 mxGraphComponent getGraphComponent()
           
 mxCellHandler getHandler(Object cell)
           
 int getMaxHandlers()
           
 String getToolTipText(MouseEvent e)
          Redirects the tooltip handling of the JComponent to the graph component, which in turn may use getHandleToolTipText in this class to find a tooltip associated with a handle.
 boolean isEnabled()
           
 boolean isVisible()
           
 void mouseClicked(MouseEvent arg0)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent arg0)
           
 void mouseExited(MouseEvent arg0)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
          Dispatches the mousepressed event to the subhandles.
 void mouseReleased(MouseEvent e)
           
 void paintHandles(Graphics g)
           
 void refresh()
           
protected  void removeGraphListeners(mxGraph graph)
          Removes all installed listeners.
 void reset()
           
 void setEnabled(boolean value)
           
 void setMaxHandlers(int value)
           
 void setVisible(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_HANDLERS

public static int DEFAULT_MAX_HANDLERS
Defines the default value for maxHandlers. Default is 100.


graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph component.


enabled

protected boolean enabled
Specifies if this handler is enabled.


visible

protected boolean visible
Specifies if this handler is visible.


bounds

protected Rectangle bounds
Reference to the enclosing graph component.


maxHandlers

protected int maxHandlers
Defines the maximum number of handlers to paint individually. Default is DEFAULT_MAX_HANDLES.


handlers

protected transient LinkedHashMap<Object,mxCellHandler> handlers
Maps from cells to handlers in the order of the selection cells.


refreshHandler

protected transient mxEventSource.mxIEventListener refreshHandler

labelMoveHandler

protected transient PropertyChangeListener labelMoveHandler
Constructor Detail

mxSelectionCellsHandler

public mxSelectionCellsHandler(mxGraphComponent graphComponent)
Parameters:
graphComponent -
Method Detail

addGraphListeners

protected void addGraphListeners(mxGraph graph)
Installs the listeners to update the handles after any changes.


removeGraphListeners

protected void removeGraphListeners(mxGraph graph)
Removes all installed listeners.


getGraphComponent

public mxGraphComponent getGraphComponent()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean value)

getMaxHandlers

public int getMaxHandlers()

setMaxHandlers

public void setMaxHandlers(int value)

getHandler

public mxCellHandler getHandler(Object cell)

mousePressed

public void mousePressed(MouseEvent e)
Dispatches the mousepressed event to the subhandles. This is called from the connection handler as subhandles have precedence over the connection handler.

Specified by:
mousePressed in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

getToolTipText

public String getToolTipText(MouseEvent e)
Redirects the tooltip handling of the JComponent to the graph component, which in turn may use getHandleToolTipText in this class to find a tooltip associated with a handle.


reset

public void reset()

refresh

public void refresh()

paintHandles

public void paintHandles(Graphics g)

mouseClicked

public void mouseClicked(MouseEvent arg0)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent arg0)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent arg0)
Specified by:
mouseExited in interface MouseListener

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxVertexHandler.html0000664000175000017500000010310212176166724030324 0ustar sylvestresylvestre mxVertexHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxVertexHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxCellHandler
      extended by com.mxgraph.swing.handler.mxVertexHandler

public class mxVertexHandler
extends mxCellHandler


Field Summary
protected  boolean constrainedEvent
          Workaround for shift-key-state not correct in mouseReleased.
static Cursor[] CURSORS
           
protected  boolean gridEnabledEvent
          Workaround for alt-key-state not correct in mouseReleased.
 
Fields inherited from class com.mxgraph.swing.handler.mxCellHandler
bounds, first, graphComponent, handles, handlesVisible, index, preview, state
 
Constructor Summary
mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
           
 
Method Summary
protected  Rectangle[] createHandles()
          Creates the rectangles that define the handles.
protected  JComponent createPreview()
          Creates the preview for this handler.
protected  Cursor getCursor(MouseEvent e, int index)
          Returns the cursor for the given event and handle.
 Color getSelectionColor()
          Returns the color used to draw the selection border.
 Stroke getSelectionStroke()
          Returns the stroke used to draw the selection border.
 void mouseDragged(MouseEvent e)
          Processes the given event.
 void mouseReleased(MouseEvent e)
          Processes the given event.
protected  void moveLabel(MouseEvent e)
           
 void paint(Graphics g)
          Paints the visible handles of this handler.
protected  void resizeCell(MouseEvent e)
           
protected  mxRectangle union(mxRectangle bounds, double dx, double dy, int index)
           
 
Methods inherited from class com.mxgraph.swing.handler.mxCellHandler
destroy, getBounds, getGraphComponent, getHandleBorderColor, getHandleCount, getHandleFillColor, getIndex, getIndexAt, getState, getToolTipText, isActive, isHandleEnabled, isHandlesVisible, isHandleVisible, isIgnoredEvent, isLabel, isLabelMovable, mouseMoved, mousePressed, refresh, reset, setHandlesVisible, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURSORS

public static Cursor[] CURSORS

gridEnabledEvent

protected transient boolean gridEnabledEvent
Workaround for alt-key-state not correct in mouseReleased.


constrainedEvent

protected transient boolean constrainedEvent
Workaround for shift-key-state not correct in mouseReleased.

Constructor Detail

mxVertexHandler

public mxVertexHandler(mxGraphComponent graphComponent,
                       mxCellState state)
Parameters:
graphComponent -
state -
Method Detail

createHandles

protected Rectangle[] createHandles()
Description copied from class: mxCellHandler
Creates the rectangles that define the handles.

Overrides:
createHandles in class mxCellHandler

createPreview

protected JComponent createPreview()
Description copied from class: mxCellHandler
Creates the preview for this handler.

Overrides:
createPreview in class mxCellHandler

mouseDragged

public void mouseDragged(MouseEvent e)
Description copied from class: mxCellHandler
Processes the given event.

Overrides:
mouseDragged in class mxCellHandler

mouseReleased

public void mouseReleased(MouseEvent e)
Description copied from class: mxCellHandler
Processes the given event.

Overrides:
mouseReleased in class mxCellHandler

moveLabel

protected void moveLabel(MouseEvent e)

resizeCell

protected void resizeCell(MouseEvent e)
Parameters:
e -

getCursor

protected Cursor getCursor(MouseEvent e,
                           int index)
Description copied from class: mxCellHandler
Returns the cursor for the given event and handle.

Overrides:
getCursor in class mxCellHandler

union

protected mxRectangle union(mxRectangle bounds,
                            double dx,
                            double dy,
                            int index)
Parameters:
bounds -
dx -
dy -
index -

getSelectionColor

public Color getSelectionColor()
Description copied from class: mxCellHandler
Returns the color used to draw the selection border. This implementation returns null.

Overrides:
getSelectionColor in class mxCellHandler

getSelectionStroke

public Stroke getSelectionStroke()
Description copied from class: mxCellHandler
Returns the stroke used to draw the selection border. This implementation returns null.

Overrides:
getSelectionStroke in class mxCellHandler

paint

public void paint(Graphics g)
Description copied from class: mxCellHandler
Paints the visible handles of this handler.

Overrides:
paint in class mxCellHandler

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxConnectPreview.html0000664000175000017500000010306612176166724030515 0ustar sylvestresylvestre mxConnectPreview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxConnectPreview

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.swing.handler.mxConnectPreview

public class mxConnectPreview
extends mxEventSource

Connection handler creates new connections between cells. This control is used to display the connector icon, while the preview is used to draw the line.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  mxGraphComponent graphComponent
           
protected  mxCellState previewState
           
protected  mxCellState sourceState
           
protected  mxPoint startPoint
           
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxConnectPreview(mxGraphComponent graphComponent)
           
 
Method Summary
protected  Object createCell(mxCellState startState, String style)
          Creates a new instance of mxShape for previewing the edge.
protected  Rectangle getDirtyRect()
           
protected  Rectangle getDirtyRect(mxRectangle dirty)
           
 mxCellState getPreviewState()
           
 mxCellState getSourceState()
           
 mxPoint getStartPoint()
           
 boolean isActive()
           
 void paint(Graphics g)
           
protected  void paintPreview(mxGraphics2DCanvas canvas)
          Draws the preview using the graphics canvas.
 void revalidate(mxCellState pState, Object cell)
           
 void start(MouseEvent e, mxCellState startState, String style)
          Updates the style of the edge preview from the incoming edge
 Object stop(boolean commit)
           
 Object stop(boolean commit, MouseEvent e)
           
protected  mxPoint transformScreenPoint(double x, double y)
           
 void update(MouseEvent e, mxCellState targetState, double x, double y)
           
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent

previewState

protected mxCellState previewState

sourceState

protected mxCellState sourceState

startPoint

protected mxPoint startPoint
Constructor Detail

mxConnectPreview

public mxConnectPreview(mxGraphComponent graphComponent)
Parameters:
graphComponent -
Method Detail

createCell

protected Object createCell(mxCellState startState,
                            String style)
Creates a new instance of mxShape for previewing the edge.


isActive

public boolean isActive()

getSourceState

public mxCellState getSourceState()

getPreviewState

public mxCellState getPreviewState()

getStartPoint

public mxPoint getStartPoint()

start

public void start(MouseEvent e,
                  mxCellState startState,
                  String style)
Updates the style of the edge preview from the incoming edge


update

public void update(MouseEvent e,
                   mxCellState targetState,
                   double x,
                   double y)

getDirtyRect

protected Rectangle getDirtyRect()

getDirtyRect

protected Rectangle getDirtyRect(mxRectangle dirty)

transformScreenPoint

protected mxPoint transformScreenPoint(double x,
                                       double y)

revalidate

public void revalidate(mxCellState pState,
                       Object cell)

paint

public void paint(Graphics g)

paintPreview

protected void paintPreview(mxGraphics2DCanvas canvas)
Draws the preview using the graphics canvas.


stop

public Object stop(boolean commit)

stop

public Object stop(boolean commit,
                   MouseEvent e)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxPanningHandler.html0000664000175000017500000005531512176166724030455 0ustar sylvestresylvestre mxPanningHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxPanningHandler

java.lang.Object
  extended by com.mxgraph.swing.util.mxMouseAdapter
      extended by com.mxgraph.swing.handler.mxPanningHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class mxPanningHandler
extends mxMouseAdapter


Field Summary
protected  boolean enabled
           
protected  mxGraphComponent graphComponent
           
protected  Point start
           
 
Constructor Summary
mxPanningHandler(mxGraphComponent graphComponent)
           
 
Method Summary
 boolean isActive()
          Whether or not panning is currently active
 boolean isEnabled()
           
 void mouseDragged(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void setEnabled(boolean value)
           
 
Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent

enabled

protected boolean enabled

start

protected transient Point start
Constructor Detail

mxPanningHandler

public mxPanningHandler(mxGraphComponent graphComponent)
Parameters:
graphComponent -
Method Detail

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class mxMouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class mxMouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class mxMouseAdapter

isActive

public boolean isActive()
Whether or not panning is currently active

Returns:
Whether or not panning is currently active

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxRotationHandler.html0000664000175000017500000007716112176166724030665 0ustar sylvestresylvestre mxRotationHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxRotationHandler

java.lang.Object
  extended by com.mxgraph.swing.util.mxMouseAdapter
      extended by com.mxgraph.swing.handler.mxRotationHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class mxRotationHandler
extends mxMouseAdapter

Basic example of implementing a handler for rotation. This can be used as follows: new mxRotationHandler(graphComponent) Note that the Java core does actually not support rotation for the selection handles, perimeter points etc. Feel free to contribute a fix!


Field Summary
protected  double currentAngle
           
protected  mxCellState currentState
           
protected  boolean enabled
          Specifies if this handler is enabled.
protected  Point first
           
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph component.
protected  JComponent handle
           
protected  double initialAngle
           
static ImageIcon ROTATE_ICON
           
 
Constructor Summary
mxRotationHandler(mxGraphComponent graphComponent)
          Constructs a new rotation handler.
 
Method Summary
protected  JComponent createHandle()
           
 mxGraphComponent getGraphComponent()
           
 boolean isEnabled()
           
 boolean isStateHandled(mxCellState state)
           
 void mouseDragged(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paint(Graphics g)
           
 void reset()
           
 void setEnabled(boolean value)
           
 void start(MouseEvent e)
           
 
Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROTATE_ICON

public static ImageIcon ROTATE_ICON

graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph component.


enabled

protected boolean enabled
Specifies if this handler is enabled. Default is true.


handle

protected JComponent handle

currentState

protected mxCellState currentState

initialAngle

protected double initialAngle

currentAngle

protected double currentAngle

first

protected Point first
Constructor Detail

mxRotationHandler

public mxRotationHandler(mxGraphComponent graphComponent)
Constructs a new rotation handler.

Method Detail

getGraphComponent

public mxGraphComponent getGraphComponent()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

createHandle

protected JComponent createHandle()

isStateHandled

public boolean isStateHandled(mxCellState state)

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class mxMouseAdapter

start

public void start(MouseEvent e)

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class mxMouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class mxMouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class mxMouseAdapter

reset

public void reset()

paint

public void paint(Graphics g)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/0000775000175000017500000000000012176166726026222 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxKeyboardHandler.html0000664000175000017500000001411512176166726032515 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxKeyboardHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxKeyboardHandler

No usage of com.mxgraph.swing.handler.mxKeyboardHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxSelectionCellsHandler.html0000664000175000017500000002322312176166726033665 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxSelectionCellsHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxSelectionCellsHandler

Packages that use mxSelectionCellsHandler
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxSelectionCellsHandler in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxSelectionCellsHandler
protected  mxSelectionCellsHandler mxGraphComponent.selectionCellsHandler
           
 

Methods in com.mxgraph.swing that return mxSelectionCellsHandler
protected  mxSelectionCellsHandler mxGraphComponent.createSelectionCellsHandler()
           
 mxSelectionCellsHandler mxGraphComponent.getSelectionCellsHandler()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxVertexHandler.html0000664000175000017500000001407112176166726032233 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxVertexHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxVertexHandler

No usage of com.mxgraph.swing.handler.mxVertexHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxConnectPreview.html0000664000175000017500000002507112176166726032415 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxConnectPreview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxConnectPreview

Packages that use mxConnectPreview
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxConnectPreview in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxConnectPreview
protected  mxConnectPreview mxConnectionHandler.connectPreview
           
 

Methods in com.mxgraph.swing.handler that return mxConnectPreview
protected  mxConnectPreview mxConnectionHandler.createConnectPreview()
           
 mxConnectPreview mxConnectionHandler.getConnectPreview()
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxConnectPreview
 void mxConnectionHandler.setConnectPreview(mxConnectPreview value)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxPanningHandler.html0000664000175000017500000002271012176166726032347 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxPanningHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxPanningHandler

Packages that use mxPanningHandler
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxPanningHandler in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxPanningHandler
protected  mxPanningHandler mxGraphComponent.panningHandler
           
 

Methods in com.mxgraph.swing that return mxPanningHandler
protected  mxPanningHandler mxGraphComponent.createPanningHandler()
           
 mxPanningHandler mxGraphComponent.getPanningHandler()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxRotationHandler.html0000664000175000017500000001411512176166726032554 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxRotationHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxRotationHandler

No usage of com.mxgraph.swing.handler.mxRotationHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxCellHandler.html0000664000175000017500000003146012176166726031636 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxCellHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxCellHandler

Packages that use mxCellHandler
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxCellHandler in com.mxgraph.swing
 

Methods in com.mxgraph.swing that return mxCellHandler
 mxCellHandler mxGraphComponent.createHandler(mxCellState state)
           
 

Uses of mxCellHandler in com.mxgraph.swing.handler
 

Subclasses of mxCellHandler in com.mxgraph.swing.handler
 class mxEdgeHandler
           
 class mxElbowEdgeHandler
           
 class mxVertexHandler
           
 

Fields in com.mxgraph.swing.handler with type parameters of type mxCellHandler
protected  LinkedHashMap<Object,mxCellHandler> mxSelectionCellsHandler.handlers
          Maps from cells to handlers in the order of the selection cells.
 

Methods in com.mxgraph.swing.handler that return mxCellHandler
 mxCellHandler mxSelectionCellsHandler.getHandler(Object cell)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxGraphHandler.html0000664000175000017500000002261612176166726032023 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxGraphHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxGraphHandler

Packages that use mxGraphHandler
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxGraphHandler in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxGraphHandler
protected  mxGraphHandler mxGraphComponent.graphHandler
           
 

Methods in com.mxgraph.swing that return mxGraphHandler
protected  mxGraphHandler mxGraphComponent.createGraphHandler()
           
 mxGraphHandler mxGraphComponent.getGraphHandler()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxCellTracker.html0000664000175000017500000001404512176166726031654 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxCellTracker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxCellTracker

No usage of com.mxgraph.swing.handler.mxCellTracker


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxInsertHandler.html0000664000175000017500000001407112176166726032222 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxInsertHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxInsertHandler

No usage of com.mxgraph.swing.handler.mxInsertHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxConnectionHandler.html0000664000175000017500000002303712176166726033057 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxConnectionHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxConnectionHandler

Packages that use mxConnectionHandler
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
 

Uses of mxConnectionHandler in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxConnectionHandler
protected  mxConnectionHandler mxGraphComponent.connectionHandler
           
 

Methods in com.mxgraph.swing that return mxConnectionHandler
protected  mxConnectionHandler mxGraphComponent.createConnectionHandler()
           
 mxConnectionHandler mxGraphComponent.getConnectionHandler()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxGraphTransferHandler.html0000664000175000017500000002065312176166726033527 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxGraphTransferHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxGraphTransferHandler

Packages that use mxGraphTransferHandler
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxGraphTransferHandler in com.mxgraph.swing.handler
 

Methods in com.mxgraph.swing.handler that return mxGraphTransferHandler
protected static mxGraphTransferHandler mxGraphHandler.getGraphTransferHandler(DropTargetEvent e)
          Helper method to return the component for a drop target event.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxRubberband.html0000664000175000017500000001403312176166726031524 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxRubberband (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxRubberband

No usage of com.mxgraph.swing.handler.mxRubberband


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxMovePreview.html0000664000175000017500000002265112176166726031733 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxMovePreview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxMovePreview

Packages that use mxMovePreview
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxMovePreview in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxMovePreview
protected  mxMovePreview mxGraphHandler.movePreview
           
 

Methods in com.mxgraph.swing.handler that return mxMovePreview
protected  mxMovePreview mxGraphHandler.createMovePreview()
           
 mxMovePreview mxGraphHandler.getMovePreview()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxEdgeHandler.html0000664000175000017500000001756012176166726031630 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxEdgeHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxEdgeHandler

Packages that use mxEdgeHandler
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxEdgeHandler in com.mxgraph.swing.handler
 

Subclasses of mxEdgeHandler in com.mxgraph.swing.handler
 class mxElbowEdgeHandler
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxElbowEdgeHandler.html0000664000175000017500000001412712176166726032615 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxElbowEdgeHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxElbowEdgeHandler

No usage of com.mxgraph.swing.handler.mxElbowEdgeHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/class-use/mxCellMarker.html0000664000175000017500000003226112176166726031502 0ustar sylvestresylvestre Uses of Class com.mxgraph.swing.handler.mxCellMarker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.swing.handler.mxCellMarker

Packages that use mxCellMarker
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Uses of mxCellMarker in com.mxgraph.swing.handler
 

Subclasses of mxCellMarker in com.mxgraph.swing.handler
 class mxCellTracker
          Event handler that highlights cells.
 

Fields in com.mxgraph.swing.handler declared as mxCellMarker
protected  mxCellMarker mxConnectionHandler.marker
           
protected  mxCellMarker mxGraphHandler.marker
           
protected  mxCellMarker mxEdgeHandler.marker
           
 

Methods in com.mxgraph.swing.handler that return mxCellMarker
protected  mxCellMarker mxGraphHandler.createMarker()
           
 mxCellMarker mxConnectionHandler.getMarker()
           
 mxCellMarker mxGraphHandler.getMarker()
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxCellMarker
 void mxConnectionHandler.setMarker(mxCellMarker value)
           
 void mxGraphHandler.setMarker(mxCellMarker value)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/package-frame.html0000664000175000017500000000546412176166726027705 0ustar sylvestresylvestre com.mxgraph.swing.handler (JGraph X 2.1.0.7 API Specification) com.mxgraph.swing.handler
Classes 
mxCellHandler
mxCellMarker
mxCellTracker
mxConnectionHandler
mxConnectPreview
mxEdgeHandler
mxElbowEdgeHandler
mxGraphHandler
mxGraphTransferHandler
mxInsertHandler
mxKeyboardHandler
mxMovePreview
mxPanningHandler
mxRotationHandler
mxRubberband
mxSelectionCellsHandler
mxVertexHandler
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxCellHandler.html0000664000175000017500000013050612176166724027736 0ustar sylvestresylvestre mxCellHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxCellHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxCellHandler
Direct Known Subclasses:
mxEdgeHandler, mxVertexHandler

public class mxCellHandler
extends Object


Field Summary
protected  Rectangle bounds
          Holds the bounding box of the handler.
protected  Point first
          Holds the start location of the mouse gesture.
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph component.
protected  Rectangle[] handles
          Holds the rectangles that define the handles.
protected  boolean handlesVisible
          Specifies if the handles should be painted.
protected  int index
          Holds the index of the handle that was clicked.
protected  JComponent preview
          Holds the component that is used for preview.
protected  mxCellState state
          Holds the cell state associated with this handler.
 
Constructor Summary
mxCellHandler(mxGraphComponent graphComponent, mxCellState state)
          Constructs a new cell handler for the given cell state.
 
Method Summary
protected  Rectangle[] createHandles()
          Creates the rectangles that define the handles.
protected  JComponent createPreview()
          Creates the preview for this handler.
protected  void destroy()
          Invoked when the handler is no longer used.
 Rectangle getBounds()
          Returns the bounding box of this handler.
protected  Cursor getCursor(MouseEvent e, int index)
          Returns the cursor for the given event and handle.
 mxGraphComponent getGraphComponent()
           
protected  Color getHandleBorderColor(int index)
          Returns the border color of the handle at the specified index.
protected  int getHandleCount()
          Returns the number of handles in this handler.
protected  Color getHandleFillColor(int index)
          Returns the color to be used to fill the handle at the specified index.
 int getIndex()
          Returns the index of the current handle.
 int getIndexAt(int x, int y)
          Returns the index of the handle at the given location.
 Color getSelectionColor()
          Returns the color used to draw the selection border.
 Stroke getSelectionStroke()
          Returns the stroke used to draw the selection border.
 mxCellState getState()
          Returns the cell state that is associated with this handler.
 String getToolTipText(MouseEvent e)
          Hook for subclassers to return tooltip texts for certain points on the handle.
 boolean isActive()
           
protected  boolean isHandleEnabled(int index)
          Returns true if the handle at the specified index is enabled.
 boolean isHandlesVisible()
          Returns true if the handles should be painted.
protected  boolean isHandleVisible(int index)
          Returns true if the handle at the specified index is visible.
protected  boolean isIgnoredEvent(MouseEvent e)
          Returns true if the given event should be ignored.
 boolean isLabel(int index)
          Returns true if the given index is the index of the last handle.
 boolean isLabelMovable()
          Returns true if the label is movable.
 void mouseDragged(MouseEvent e)
          Processes the given event.
 void mouseMoved(MouseEvent e)
          Processes the given event.
 void mousePressed(MouseEvent e)
          Processes the given event.
 void mouseReleased(MouseEvent e)
          Processes the given event.
 void paint(Graphics g)
          Paints the visible handles of this handler.
 void refresh(mxCellState state)
          Refreshes the cell handler.
 void reset()
          Resets the state of the handler and removes the preview.
 void setHandlesVisible(boolean handlesVisible)
          Specifies if the handles should be painted.
 void start(MouseEvent e, int index)
          Starts handling a gesture at the given handle index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph component.


state

protected mxCellState state
Holds the cell state associated with this handler.


handles

protected Rectangle[] handles
Holds the rectangles that define the handles.


handlesVisible

protected boolean handlesVisible
Specifies if the handles should be painted. Default is true.


bounds

protected transient Rectangle bounds
Holds the bounding box of the handler.


preview

protected transient JComponent preview
Holds the component that is used for preview.


first

protected transient Point first
Holds the start location of the mouse gesture.


index

protected transient int index
Holds the index of the handle that was clicked.

Constructor Detail

mxCellHandler

public mxCellHandler(mxGraphComponent graphComponent,
                     mxCellState state)
Constructs a new cell handler for the given cell state.

Parameters:
graphComponent - Enclosing graph component.
state - Cell state for which the handler is created.
Method Detail

isActive

public boolean isActive()

refresh

public void refresh(mxCellState state)
Refreshes the cell handler.


getGraphComponent

public mxGraphComponent getGraphComponent()

getState

public mxCellState getState()
Returns the cell state that is associated with this handler.


getIndex

public int getIndex()
Returns the index of the current handle.


getBounds

public Rectangle getBounds()
Returns the bounding box of this handler.


isLabelMovable

public boolean isLabelMovable()
Returns true if the label is movable.


isHandlesVisible

public boolean isHandlesVisible()
Returns true if the handles should be painted.


setHandlesVisible

public void setHandlesVisible(boolean handlesVisible)
Specifies if the handles should be painted.


isLabel

public boolean isLabel(int index)
Returns true if the given index is the index of the last handle.


createHandles

protected Rectangle[] createHandles()
Creates the rectangles that define the handles.


getHandleCount

protected int getHandleCount()
Returns the number of handles in this handler.


getToolTipText

public String getToolTipText(MouseEvent e)
Hook for subclassers to return tooltip texts for certain points on the handle.


getIndexAt

public int getIndexAt(int x,
                      int y)
Returns the index of the handle at the given location.

Parameters:
x - X-coordinate of the location.
y - Y-coordinate of the location.
Returns:
Returns the handle index for the given location.

mousePressed

public void mousePressed(MouseEvent e)
Processes the given event.


mouseMoved

public void mouseMoved(MouseEvent e)
Processes the given event.


mouseDragged

public void mouseDragged(MouseEvent e)
Processes the given event.


mouseReleased

public void mouseReleased(MouseEvent e)
Processes the given event.


start

public void start(MouseEvent e,
                  int index)
Starts handling a gesture at the given handle index.


isIgnoredEvent

protected boolean isIgnoredEvent(MouseEvent e)
Returns true if the given event should be ignored.


createPreview

protected JComponent createPreview()
Creates the preview for this handler.


reset

public void reset()
Resets the state of the handler and removes the preview.


getCursor

protected Cursor getCursor(MouseEvent e,
                           int index)
Returns the cursor for the given event and handle.


paint

public void paint(Graphics g)
Paints the visible handles of this handler.


getSelectionColor

public Color getSelectionColor()
Returns the color used to draw the selection border. This implementation returns null.


getSelectionStroke

public Stroke getSelectionStroke()
Returns the stroke used to draw the selection border. This implementation returns null.


isHandleEnabled

protected boolean isHandleEnabled(int index)
Returns true if the handle at the specified index is enabled.


isHandleVisible

protected boolean isHandleVisible(int index)
Returns true if the handle at the specified index is visible.


getHandleFillColor

protected Color getHandleFillColor(int index)
Returns the color to be used to fill the handle at the specified index.


getHandleBorderColor

protected Color getHandleBorderColor(int index)
Returns the border color of the handle at the specified index.


destroy

protected void destroy()
Invoked when the handler is no longer used. This is an empty hook for subclassers.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxGraphHandler.html0000664000175000017500000024742512176166724030131 0ustar sylvestresylvestre mxGraphHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxGraphHandler

java.lang.Object
  extended by com.mxgraph.swing.util.mxMouseAdapter
      extended by com.mxgraph.swing.handler.mxGraphHandler
All Implemented Interfaces:
DropTargetListener, MouseListener, MouseMotionListener, EventListener

public class mxGraphHandler
extends mxMouseAdapter
implements DropTargetListener


Field Summary
protected  mxRectangle bbox
          Scaled, translated bounding box of the selection cells.
protected  boolean canImport
           
protected  Object cell
           
protected  mxRectangle cellBounds
          Scaled, translated bounds of the selection cells.
protected  Object[] cells
          Holds the cells that are being moved by this handler.
protected  boolean centerPreview
          Specifies if the preview should be centered around the mouse cursor if there was no mouse click to define the offset within the shape (eg.
protected  boolean cloneEnabled
          Specifies if cloning by control-drag is enabled.
protected  boolean constrainedEvent
          Workaround for shift-key-state not correct in mouseReleased.
protected  DropTarget currentDropTarget
          Reference to the current drop target.
static Cursor DEFAULT_CURSOR
          Default is Cursor.DEFAULT_CURSOR.
protected  Object[] dragCells
           
protected  ImageIcon dragImage
          Holds the image that is being used for the preview.
protected  boolean enabled
          Specifies if the handler is enabled.
protected  Point first
          Holds the start location of the mouse gesture.
static Cursor FOLD_CURSOR
          Default is Cursor.HAND_CURSOR.
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph component.
protected  boolean gridEnabledEvent
          Workaround for alt-key-state not correct in mouseReleased.
protected  boolean imagePreview
          Specifies if an image should be used for preview.
protected  Object initialCell
           
protected  boolean keepOnTop
          Specifies if this handler should be painted on top of all other components.
protected  boolean livePreview
          Specifies if live preview should be used if possible.
protected  mxCellMarker marker
           
protected  boolean markerEnabled
          Specifies if the cell marker should be called (for splitting edges and dropping cells into groups).
static Cursor MOVE_CURSOR
          Default is Cursor.MOVE_CURSOR.
protected  boolean moveEnabled
          Specifies if moving is enabled.
protected  mxMovePreview movePreview
           
protected  Rectangle previewBounds
           
protected  boolean removeCellsFromParent
          Specifies if cells may be moved out of their parents.
protected  boolean selectEnabled
          Specifies if moving is enabled.
protected  mxRectangle transferBounds
          Unscaled, untranslated bounding box of the selection cells.
protected  boolean visible
           
 
Constructor Summary
mxGraphHandler(mxGraphComponent graphComponent)
           
 
Method Summary
 Point convertPoint(Point pt)
           
protected  MouseEvent createEvent(DropTargetEvent e)
           
protected  mxCellMarker createMarker()
           
protected  mxMovePreview createMovePreview()
           
 void dragEnter(DropTargetDragEvent e)
           
 void dragExit(DropTargetEvent e)
           
 void dragOver(DropTargetDragEvent e)
           
 void drop(DropTargetDropEvent e)
           
 void dropActionChanged(DropTargetDragEvent e)
           
protected  void fold(Object cell)
           
 Object[] getCells(Object initialCell)
           
protected  Cursor getCursor(MouseEvent e)
           
protected static JComponent getDropTarget(DropTargetEvent e)
          Helper method to return the component for a drop target event.
 mxGraphComponent getGraphComponent()
           
protected static mxGraphTransferHandler getGraphTransferHandler(DropTargetEvent e)
          Helper method to return the component for a drop target event.
 mxCellMarker getMarker()
           
 mxMovePreview getMovePreview()
           
protected  Point getPreviewLocation(MouseEvent e, boolean gridEnabled)
           
protected  void installDragGestureHandler()
           
protected  void installDropTargetHandler()
           
 boolean isCenterPreview()
           
 boolean isCloneEnabled()
           
 boolean isEnabled()
           
 boolean isImagePreview()
           
 boolean isLivePreview()
           
 boolean isMarkerEnabled()
           
 boolean isMoveEnabled()
           
 boolean isRemoveCellsFromParent()
           
 boolean isSelectEnabled()
           
 boolean isVisible()
           
 void mouseDragged(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
protected  void moveCells(Object[] cells, double dx, double dy, Object target, MouseEvent e)
           
 void paint(Graphics g)
           
 void reset()
           
 void setCenterPreview(boolean value)
           
 void setCloneEnabled(boolean value)
           
 void setEnabled(boolean value)
           
 void setImagePreview(boolean value)
           
 void setLivePreview(boolean value)
           
 void setMarker(mxCellMarker value)
           
 void setMarkerEnabled(boolean value)
           
 void setMoveEnabled(boolean value)
           
 void setPreviewBounds(Rectangle bounds)
           
 void setRemoveCellsFromParent(boolean value)
           
 void setSelectEnabled(boolean value)
           
 void setVisible(boolean value)
           
protected  boolean shouldRemoveCellFromParent(Object parent, Object[] cells, MouseEvent e)
          Returns true if the given cells should be removed from the parent for the specified mousereleased event.
 void start(MouseEvent e)
           
 void updateDragImage(Object[] cells)
           
 
Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CURSOR

public static Cursor DEFAULT_CURSOR
Default is Cursor.DEFAULT_CURSOR.


MOVE_CURSOR

public static Cursor MOVE_CURSOR
Default is Cursor.MOVE_CURSOR.


FOLD_CURSOR

public static Cursor FOLD_CURSOR
Default is Cursor.HAND_CURSOR.


graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph component.


enabled

protected boolean enabled
Specifies if the handler is enabled. Default is true.


cloneEnabled

protected boolean cloneEnabled
Specifies if cloning by control-drag is enabled. Default is true.


moveEnabled

protected boolean moveEnabled
Specifies if moving is enabled. Default is true.


selectEnabled

protected boolean selectEnabled
Specifies if moving is enabled. Default is true.


markerEnabled

protected boolean markerEnabled
Specifies if the cell marker should be called (for splitting edges and dropping cells into groups). Default is true.


removeCellsFromParent

protected boolean removeCellsFromParent
Specifies if cells may be moved out of their parents. Default is true.


movePreview

protected mxMovePreview movePreview

livePreview

protected boolean livePreview
Specifies if live preview should be used if possible. Default is false.


imagePreview

protected boolean imagePreview
Specifies if an image should be used for preview. Default is true.


centerPreview

protected boolean centerPreview
Specifies if the preview should be centered around the mouse cursor if there was no mouse click to define the offset within the shape (eg. drag from external source). Default is true.


keepOnTop

protected boolean keepOnTop
Specifies if this handler should be painted on top of all other components. Default is true.


cells

protected transient Object[] cells
Holds the cells that are being moved by this handler.


dragImage

protected transient ImageIcon dragImage
Holds the image that is being used for the preview.


first

protected transient Point first
Holds the start location of the mouse gesture.


cell

protected transient Object cell

initialCell

protected transient Object initialCell

dragCells

protected transient Object[] dragCells

marker

protected transient mxCellMarker marker

canImport

protected transient boolean canImport

cellBounds

protected transient mxRectangle cellBounds
Scaled, translated bounds of the selection cells.


bbox

protected transient mxRectangle bbox
Scaled, translated bounding box of the selection cells.


transferBounds

protected transient mxRectangle transferBounds
Unscaled, untranslated bounding box of the selection cells.


visible

protected transient boolean visible

previewBounds

protected transient Rectangle previewBounds

gridEnabledEvent

protected transient boolean gridEnabledEvent
Workaround for alt-key-state not correct in mouseReleased. Note: State of the alt-key is not available during drag-and-drop.


constrainedEvent

protected transient boolean constrainedEvent
Workaround for shift-key-state not correct in mouseReleased.


currentDropTarget

protected transient DropTarget currentDropTarget
Reference to the current drop target.

Constructor Detail

mxGraphHandler

public mxGraphHandler(mxGraphComponent graphComponent)
Parameters:
graphComponent -
Method Detail

installDragGestureHandler

protected void installDragGestureHandler()

installDropTargetHandler

protected void installDropTargetHandler()

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean value)

setPreviewBounds

public void setPreviewBounds(Rectangle bounds)

createMovePreview

protected mxMovePreview createMovePreview()

getMovePreview

public mxMovePreview getMovePreview()

createMarker

protected mxCellMarker createMarker()

getGraphComponent

public mxGraphComponent getGraphComponent()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

isCloneEnabled

public boolean isCloneEnabled()

setCloneEnabled

public void setCloneEnabled(boolean value)

isMoveEnabled

public boolean isMoveEnabled()

setMoveEnabled

public void setMoveEnabled(boolean value)

isMarkerEnabled

public boolean isMarkerEnabled()

setMarkerEnabled

public void setMarkerEnabled(boolean value)

getMarker

public mxCellMarker getMarker()

setMarker

public void setMarker(mxCellMarker value)

isSelectEnabled

public boolean isSelectEnabled()

setSelectEnabled

public void setSelectEnabled(boolean value)

isRemoveCellsFromParent

public boolean isRemoveCellsFromParent()

setRemoveCellsFromParent

public void setRemoveCellsFromParent(boolean value)

isLivePreview

public boolean isLivePreview()

setLivePreview

public void setLivePreview(boolean value)

isImagePreview

public boolean isImagePreview()

setImagePreview

public void setImagePreview(boolean value)

isCenterPreview

public boolean isCenterPreview()

setCenterPreview

public void setCenterPreview(boolean value)

updateDragImage

public void updateDragImage(Object[] cells)

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class mxMouseAdapter

getCursor

protected Cursor getCursor(MouseEvent e)

dragEnter

public void dragEnter(DropTargetDragEvent e)
Specified by:
dragEnter in interface DropTargetListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class mxMouseAdapter

getCells

public Object[] getCells(Object initialCell)

start

public void start(MouseEvent e)

dropActionChanged

public void dropActionChanged(DropTargetDragEvent e)
Specified by:
dropActionChanged in interface DropTargetListener

dragOver

public void dragOver(DropTargetDragEvent e)
Specified by:
dragOver in interface DropTargetListener
Parameters:
e -

convertPoint

public Point convertPoint(Point pt)

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class mxMouseAdapter

getPreviewLocation

protected Point getPreviewLocation(MouseEvent e,
                                   boolean gridEnabled)

dragExit

public void dragExit(DropTargetEvent e)
Specified by:
dragExit in interface DropTargetListener
Parameters:
e -

drop

public void drop(DropTargetDropEvent e)
Specified by:
drop in interface DropTargetListener
Parameters:
e -

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class mxMouseAdapter

fold

protected void fold(Object cell)

reset

public void reset()

shouldRemoveCellFromParent

protected boolean shouldRemoveCellFromParent(Object parent,
                                             Object[] cells,
                                             MouseEvent e)
Returns true if the given cells should be removed from the parent for the specified mousereleased event.


moveCells

protected void moveCells(Object[] cells,
                         double dx,
                         double dy,
                         Object target,
                         MouseEvent e)
Parameters:
dx -
dy -
e -

paint

public void paint(Graphics g)

createEvent

protected MouseEvent createEvent(DropTargetEvent e)

getGraphTransferHandler

protected static final mxGraphTransferHandler getGraphTransferHandler(DropTargetEvent e)
Helper method to return the component for a drop target event.


getDropTarget

protected static final JComponent getDropTarget(DropTargetEvent e)
Helper method to return the component for a drop target event.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxCellTracker.html0000664000175000017500000032143512176166724027757 0ustar sylvestresylvestre mxCellTracker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxCellTracker

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.mxgraph.swing.handler.mxCellMarker
                  extended by com.mxgraph.swing.handler.mxCellTracker
All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

public class mxCellTracker
extends mxCellMarker
implements MouseListener, MouseMotionListener

Event handler that highlights cells. Inherits from mxCellMarker.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.mxgraph.swing.handler.mxCellMarker
currentColor, DEFAULT_STROKE, enabled, eventSource, graphComponent, hotspot, hotspotEnabled, invalidColor, KEEP_ON_TOP, markedState, swimlaneContentEnabled, validColor, validState
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxCellTracker(mxGraphComponent graphComponent, Color color)
          Constructs an event handler that highlights cells.
 
Method Summary
 void destroy()
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class com.mxgraph.swing.handler.mxCellMarker
addListener, getCell, getCurrentColor, getHotspot, getInvalidColor, getMarkedState, getMarkerColor, getState, getStateToMark, getValidColor, getValidState, hasValidState, highlight, highlight, intersects, isEnabled, isHotspotEnabled, isSwimlaneContentEnabled, isValidState, mark, paint, process, removeListener, removeListener, reset, setCurrentColor, setEnabled, setHotspot, setHotspotEnabled, setInvalidColor, setMarkedState, setSwimlaneContentEnabled, setValidColor, unmark
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

mxCellTracker

public mxCellTracker(mxGraphComponent graphComponent,
                     Color color)
Constructs an event handler that highlights cells.

Method Detail

destroy

public void destroy()

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxInsertHandler.html0000664000175000017500000010471212176166724030323 0ustar sylvestresylvestre mxInsertHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxInsertHandler

java.lang.Object
  extended by com.mxgraph.swing.util.mxMouseAdapter
      extended by com.mxgraph.swing.handler.mxInsertHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class mxInsertHandler
extends mxMouseAdapter


Field Summary
protected  mxRectangle current
           
protected  boolean enabled
          Specifies if this handler is enabled.
protected  mxEventSource eventSource
           
protected  Point first
           
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph component.
protected  Color lineColor
           
protected  float lineWidth
           
protected  boolean rounded
           
protected  String style
           
 
Constructor Summary
mxInsertHandler(mxGraphComponent graphComponent, String style)
           
 
Method Summary
 void addListener(String eventName, mxEventSource.mxIEventListener listener)
           
 mxGraphComponent getGraphComponent()
           
 Object insertCell(mxRectangle bounds)
           
 boolean isEnabled()
           
 boolean isStartEvent(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paint(Graphics g)
           
 void removeListener(mxEventSource.mxIEventListener listener)
           
 void removeListener(mxEventSource.mxIEventListener listener, String eventName)
           
 void reset()
           
 void setEnabled(boolean value)
           
 void start(MouseEvent e)
           
 
Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph component.


enabled

protected boolean enabled
Specifies if this handler is enabled. Default is true.


style

protected String style

first

protected Point first

lineWidth

protected float lineWidth

lineColor

protected Color lineColor

rounded

protected boolean rounded

current

protected mxRectangle current

eventSource

protected mxEventSource eventSource
Constructor Detail

mxInsertHandler

public mxInsertHandler(mxGraphComponent graphComponent,
                       String style)
Method Detail

getGraphComponent

public mxGraphComponent getGraphComponent()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

isStartEvent

public boolean isStartEvent(MouseEvent e)

start

public void start(MouseEvent e)

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class mxMouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class mxMouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class mxMouseAdapter

insertCell

public Object insertCell(mxRectangle bounds)

reset

public void reset()

paint

public void paint(Graphics g)

addListener

public void addListener(String eventName,
                        mxEventSource.mxIEventListener listener)

removeListener

public void removeListener(mxEventSource.mxIEventListener listener)

removeListener

public void removeListener(mxEventSource.mxIEventListener listener,
                           String eventName)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxConnectionHandler.html0000664000175000017500000017214312176166724031161 0ustar sylvestresylvestre mxConnectionHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxConnectionHandler

java.lang.Object
  extended by com.mxgraph.swing.util.mxMouseAdapter
      extended by com.mxgraph.swing.handler.mxConnectionHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class mxConnectionHandler
extends mxMouseAdapter

Connection handler creates new connections between cells. This control is used to display the connector icon, while the preview is used to draw the line. mxEvent.CONNECT fires between begin- and endUpdate in mouseReleased. The cell property contains the inserted edge, the event and target properties contain the respective arguments that were passed to mouseReleased.


Field Summary
protected  boolean active
           
protected  Rectangle bounds
           
static Cursor CONNECT_CURSOR
           
protected  ImageIcon connectIcon
          Specifies the icon to be used for creating new connections.
protected  mxConnectPreview connectPreview
           
protected  boolean createTarget
          Specifies if the source should be cloned and used as a target if no target was selected.
protected  boolean enabled
           
protected  String error
           
protected  mxEventSource eventSource
          Holds the event source.
protected  Point first
           
protected  mxGraphComponent graphComponent
           
protected  boolean handleEnabled
          Specifies if a handle should be used for creating new connections.
protected  int handleSize
          Specifies the size of the handle to be used for creating new connections.
protected  boolean keepOnTop
          Appearance and event handling order wrt subhandles.
protected  mxCellMarker marker
           
protected  mxEventSource.mxIEventListener resetHandler
           
protected  boolean select
           
protected  mxCellState source
           
 
Constructor Summary
mxConnectionHandler(mxGraphComponent graphComponent)
           
 
Method Summary
protected  void addGraphListeners(mxGraph graph)
          Installs the listeners to update the handles after any changes.
 void addListener(String eventName, mxEventSource.mxIEventListener listener)
          Adds the given event listener.
protected  mxConnectPreview createConnectPreview()
           
 Object createTargetVertex(MouseEvent e, Object source)
           
 ImageIcon getConnecIcon()
           
 mxConnectPreview getConnectPreview()
           
 int getHandleSize()
           
 mxCellMarker getMarker()
           
 boolean isActive()
           
 boolean isConnecting()
          Returns true if the source terminal has been clicked and a new connection is currently being previewed.
 boolean isCreateTarget()
           
 boolean isEnabled()
           
 boolean isHandleEnabled()
           
 boolean isHighlighting()
          Returns true if no connectIcon is specified and handleEnabled is false.
 boolean isKeepOnTop()
           
 boolean isSelect()
           
 boolean isValidSource(Object cell)
           
 boolean isValidTarget(Object cell)
          Returns true.
 void mouseDragged(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paint(Graphics g)
           
protected  void removeGraphListeners(mxGraph graph)
          Removes all installed listeners.
 void removeListener(mxEventSource.mxIEventListener listener)
          Removes the given event listener.
 void removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Removes the given event listener for the specified event name.
 void reset()
           
 void setBounds(Rectangle value)
           
 void setConnectIcon(ImageIcon value)
           
 void setConnectPreview(mxConnectPreview value)
           
 void setCreateTarget(boolean value)
           
 void setEnabled(boolean value)
           
 void setHandleEnabled(boolean value)
           
 void setHandleSize(int value)
           
 void setKeepOnTop(boolean value)
           
 void setMarker(mxCellMarker value)
           
 void setSelect(boolean value)
           
 void start(MouseEvent e, mxCellState state)
           
 String validateConnection(Object source, Object target)
          Returns the error message or an empty string if the connection for the given source target pair is not valid.
 
Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECT_CURSOR

public static Cursor CONNECT_CURSOR

graphComponent

protected mxGraphComponent graphComponent

eventSource

protected mxEventSource eventSource
Holds the event source.


connectPreview

protected mxConnectPreview connectPreview

connectIcon

protected ImageIcon connectIcon
Specifies the icon to be used for creating new connections. If this is specified then it is used instead of the handle. Default is null.


handleSize

protected int handleSize
Specifies the size of the handle to be used for creating new connections. Default is mxConstants.CONNECT_HANDLE_SIZE.


handleEnabled

protected boolean handleEnabled
Specifies if a handle should be used for creating new connections. This is only used if no connectIcon is specified. If this is false, then the source cell will be highlighted when the mouse is over the hotspot given in the marker. Default is mxConstants.CONNECT_HANDLE_ENABLED.


select

protected boolean select

createTarget

protected boolean createTarget
Specifies if the source should be cloned and used as a target if no target was selected. Default is false.


keepOnTop

protected boolean keepOnTop
Appearance and event handling order wrt subhandles.


enabled

protected boolean enabled

first

protected transient Point first

active

protected transient boolean active

bounds

protected transient Rectangle bounds

source

protected transient mxCellState source

marker

protected transient mxCellMarker marker

error

protected transient String error

resetHandler

protected transient mxEventSource.mxIEventListener resetHandler
Constructor Detail

mxConnectionHandler

public mxConnectionHandler(mxGraphComponent graphComponent)
Parameters:
graphComponent -
Method Detail

addGraphListeners

protected void addGraphListeners(mxGraph graph)
Installs the listeners to update the handles after any changes.


removeGraphListeners

protected void removeGraphListeners(mxGraph graph)
Removes all installed listeners.


createConnectPreview

protected mxConnectPreview createConnectPreview()

getConnectPreview

public mxConnectPreview getConnectPreview()

setConnectPreview

public void setConnectPreview(mxConnectPreview value)

isConnecting

public boolean isConnecting()
Returns true if the source terminal has been clicked and a new connection is currently being previewed.


isActive

public boolean isActive()

isHighlighting

public boolean isHighlighting()
Returns true if no connectIcon is specified and handleEnabled is false.


isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

isKeepOnTop

public boolean isKeepOnTop()

setKeepOnTop

public void setKeepOnTop(boolean value)

setConnectIcon

public void setConnectIcon(ImageIcon value)

getConnecIcon

public ImageIcon getConnecIcon()

setHandleEnabled

public void setHandleEnabled(boolean value)

isHandleEnabled

public boolean isHandleEnabled()

setHandleSize

public void setHandleSize(int value)

getHandleSize

public int getHandleSize()

getMarker

public mxCellMarker getMarker()

setMarker

public void setMarker(mxCellMarker value)

setCreateTarget

public void setCreateTarget(boolean value)

isCreateTarget

public boolean isCreateTarget()

setSelect

public void setSelect(boolean value)

isSelect

public boolean isSelect()

reset

public void reset()

createTargetVertex

public Object createTargetVertex(MouseEvent e,
                                 Object source)

isValidSource

public boolean isValidSource(Object cell)

isValidTarget

public boolean isValidTarget(Object cell)
Returns true. The call to mxGraph.isValidTarget is implicit by calling mxGraph.getEdgeValidationError in validateConnection. This is an additional hook for disabling certain targets in this specific handler.


validateConnection

public String validateConnection(Object source,
                                 Object target)
Returns the error message or an empty string if the connection for the given source target pair is not valid. Otherwise it returns null.


mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class mxMouseAdapter

start

public void start(MouseEvent e,
                  mxCellState state)

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class mxMouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class mxMouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class mxMouseAdapter

setBounds

public void setBounds(Rectangle value)

addListener

public void addListener(String eventName,
                        mxEventSource.mxIEventListener listener)
Adds the given event listener.


removeListener

public void removeListener(mxEventSource.mxIEventListener listener)
Removes the given event listener.


removeListener

public void removeListener(mxEventSource.mxIEventListener listener,
                           String eventName)
Removes the given event listener for the specified event name.


paint

public void paint(Graphics g)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxGraphTransferHandler.html0000664000175000017500000015527612176166724031640 0ustar sylvestresylvestre mxGraphTransferHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxGraphTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.mxgraph.swing.handler.mxGraphTransferHandler
All Implemented Interfaces:
Serializable

public class mxGraphTransferHandler
extends TransferHandler

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
 
Field Summary
static Color DEFAULT_BACKGROUNDCOLOR
          Specifies the background color of the transfer image.
static boolean DEFAULT_TRANSFER_IMAGE_ENABLED
          Boolean that specifies if an image of the cells should be created for each transferable.
protected  int importCount
          Counter for the last imported cell array.
protected  int initialImportCount
          Sets the value for the initialImportCount.
protected  Transferable lastImported
          Reference to the last imported cell array.
protected  Point location
           
protected  Point offset
           
protected  Object[] originalCells
          Reference to the original cells for removal after a move.
protected  Color transferImageBackground
          Specifies the background color for the transfer image.
protected  boolean transferImageEnabled
          Specifies if a transfer image should be created for the transferable.
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
mxGraphTransferHandler()
           
 
Method Summary
 boolean canImport(JComponent comp, DataFlavor[] flavors)
           
 mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, ImageIcon icon)
           
 mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, mxRectangle bounds, ImageIcon icon)
           
 Transferable createTransferable(JComponent c)
          (non-Javadoc)
 ImageIcon createTransferableImage(mxGraphComponent graphComponent, Object[] cells)
           
 void exportDone(JComponent c, Transferable data, int action)
           
protected  Object getDropTarget(mxGraphComponent graphComponent, mxGraphTransferable gt)
          Returns the drop target for the given transferable and location.
 int getImportCount()
           
 int getSourceActions(JComponent c)
           
 Color getTransferImageBackground()
           
protected  Object[] importCells(mxGraphComponent graphComponent, mxGraphTransferable gt, double dx, double dy)
          Gets a drop target using getDropTarget and imports the cells using mxGraph.splitEdge or mxGraphComponent.importCells depending on the drop target and the return values of mxGraph.isSplitEnabled and mxGraph.isSplitTarget.
 boolean importData(JComponent c, Transferable t)
          Checks if the mxGraphTransferable data flavour is supported and calls importGraphTransferable if possible.
protected  boolean importGraphTransferable(mxGraphComponent graphComponent, mxGraphTransferable gt)
          Returns true if the cells have been imported using importCells.
 boolean isLocalDrag()
          Returns true if the DnD operation started from this handler.
 boolean isTransferImageEnabled()
           
protected  void removeCells(mxGraphComponent graphComponent, Object[] cells)
           
 void setImportCount(int value)
           
 void setLocation(Point value)
           
 void setOffset(Point value)
           
 void setTransferImageBackground(Color transferImageBackground)
           
 void setTransferImageEnabled(boolean transferImageEnabled)
           
protected  void updateImportCount(Transferable t)
          Counts the number of times that the given transferable has been imported.
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TRANSFER_IMAGE_ENABLED

public static boolean DEFAULT_TRANSFER_IMAGE_ENABLED
Boolean that specifies if an image of the cells should be created for each transferable. Default is true.


DEFAULT_BACKGROUNDCOLOR

public static Color DEFAULT_BACKGROUNDCOLOR
Specifies the background color of the transfer image. If no color is given here then the background color of the enclosing graph component is used. Default is Color.WHITE.


originalCells

protected Object[] originalCells
Reference to the original cells for removal after a move.


lastImported

protected Transferable lastImported
Reference to the last imported cell array.


initialImportCount

protected int initialImportCount
Sets the value for the initialImportCount. Default is 1. Updated in exportDone to contain 0 after a cut and 1 after a copy.


importCount

protected int importCount
Counter for the last imported cell array.


transferImageEnabled

protected boolean transferImageEnabled
Specifies if a transfer image should be created for the transferable. Default is DEFAULT_TRANSFER_IMAGE.


transferImageBackground

protected Color transferImageBackground
Specifies the background color for the transfer image. Default is DEFAULT_BACKGROUNDCOLOR.


location

protected Point location

offset

protected Point offset
Constructor Detail

mxGraphTransferHandler

public mxGraphTransferHandler()
Method Detail

getImportCount

public int getImportCount()

setImportCount

public void setImportCount(int value)

setTransferImageEnabled

public void setTransferImageEnabled(boolean transferImageEnabled)

isTransferImageEnabled

public boolean isTransferImageEnabled()

setTransferImageBackground

public void setTransferImageBackground(Color transferImageBackground)

getTransferImageBackground

public Color getTransferImageBackground()

isLocalDrag

public boolean isLocalDrag()
Returns true if the DnD operation started from this handler.


setLocation

public void setLocation(Point value)

setOffset

public void setOffset(Point value)

canImport

public boolean canImport(JComponent comp,
                         DataFlavor[] flavors)
Overrides:
canImport in class TransferHandler

createTransferable

public Transferable createTransferable(JComponent c)
(non-Javadoc)

Overrides:
createTransferable in class TransferHandler
See Also:
TransferHandler.createTransferable(javax.swing.JComponent)

createGraphTransferable

public mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent,
                                                   Object[] cells,
                                                   ImageIcon icon)

createGraphTransferable

public mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent,
                                                   Object[] cells,
                                                   mxRectangle bounds,
                                                   ImageIcon icon)

createTransferableImage

public ImageIcon createTransferableImage(mxGraphComponent graphComponent,
                                         Object[] cells)

exportDone

public void exportDone(JComponent c,
                       Transferable data,
                       int action)
Overrides:
exportDone in class TransferHandler

removeCells

protected void removeCells(mxGraphComponent graphComponent,
                           Object[] cells)

getSourceActions

public int getSourceActions(JComponent c)
Overrides:
getSourceActions in class TransferHandler

importData

public boolean importData(JComponent c,
                          Transferable t)
Checks if the mxGraphTransferable data flavour is supported and calls importGraphTransferable if possible.

Overrides:
importData in class TransferHandler

updateImportCount

protected void updateImportCount(Transferable t)
Counts the number of times that the given transferable has been imported.


importGraphTransferable

protected boolean importGraphTransferable(mxGraphComponent graphComponent,
                                          mxGraphTransferable gt)
Returns true if the cells have been imported using importCells.


getDropTarget

protected Object getDropTarget(mxGraphComponent graphComponent,
                               mxGraphTransferable gt)
Returns the drop target for the given transferable and location.


importCells

protected Object[] importCells(mxGraphComponent graphComponent,
                               mxGraphTransferable gt,
                               double dx,
                               double dy)
Gets a drop target using getDropTarget and imports the cells using mxGraph.splitEdge or mxGraphComponent.importCells depending on the drop target and the return values of mxGraph.isSplitEnabled and mxGraph.isSplitTarget. Selects and returns the cells that have been imported.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxRubberband.html0000664000175000017500000011251012176166724027622 0ustar sylvestresylvestre mxRubberband (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxRubberband

java.lang.Object
  extended by com.mxgraph.swing.handler.mxRubberband
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class mxRubberband
extends Object
implements MouseListener, MouseMotionListener

Implements a rubberband selection.


Field Summary
protected  Color borderColor
          Defines the border color for drawing the rubberband selection.
protected  Rectangle bounds
          Holds the current rubberband bounds.
protected  boolean enabled
          Specifies if the rubberband is enabled.
protected  Color fillColor
          Defines the color to be used for filling the rubberband selection.
protected  Point first
          Holds the point where the selection has started.
protected  mxGraphComponent graphComponent
          Reference to the enclosing graph container.
 
Constructor Summary
mxRubberband(mxGraphComponent graphComponent)
          Constructs a new rubberband selection for the given graph component.
 
Method Summary
 Color getBorderColor()
          Returns the border color.
 Color getFillColor()
          Returns the fill color.
 boolean isEnabled()
          Returns the enabled state.
 boolean isRubberbandTrigger(MouseEvent e)
          Returns true if the given event should start the rubberband selection.
 void mouseClicked(MouseEvent arg0)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent arg0)
           
 void mouseExited(MouseEvent arg0)
           
 void mouseMoved(MouseEvent arg0)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paintRubberband(Graphics g)
           
 void reset()
          Resets the rubberband selection without carrying out the selection.
 Object[] select(Rectangle rect, MouseEvent e)
           
 void setBorderColor(Color value)
          Sets the border color.
 void setEnabled(boolean enabled)
          Sets the enabled state.
 void setFillColor(Color value)
          Sets the fill color.
 void start(Point point)
          Starts the rubberband selection at the given point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderColor

protected Color borderColor
Defines the border color for drawing the rubberband selection. Default is mxConstants.RUBBERBAND_BORDERCOLOR.


fillColor

protected Color fillColor
Defines the color to be used for filling the rubberband selection. Default is mxConstants.RUBBERBAND_FILLCOLOR.


graphComponent

protected mxGraphComponent graphComponent
Reference to the enclosing graph container.


enabled

protected boolean enabled
Specifies if the rubberband is enabled.


first

protected transient Point first
Holds the point where the selection has started.


bounds

protected transient Rectangle bounds
Holds the current rubberband bounds.

Constructor Detail

mxRubberband

public mxRubberband(mxGraphComponent graphComponent)
Constructs a new rubberband selection for the given graph component.

Parameters:
graphComponent - Component that contains the rubberband.
Method Detail

isEnabled

public boolean isEnabled()
Returns the enabled state.


setEnabled

public void setEnabled(boolean enabled)
Sets the enabled state.


getBorderColor

public Color getBorderColor()
Returns the border color.


setBorderColor

public void setBorderColor(Color value)
Sets the border color.


getFillColor

public Color getFillColor()
Returns the fill color.


setFillColor

public void setFillColor(Color value)
Sets the fill color.


isRubberbandTrigger

public boolean isRubberbandTrigger(MouseEvent e)
Returns true if the given event should start the rubberband selection.


start

public void start(Point point)
Starts the rubberband selection at the given point.


reset

public void reset()
Resets the rubberband selection without carrying out the selection.


select

public Object[] select(Rectangle rect,
                       MouseEvent e)
Parameters:
rect -
e -

paintRubberband

public void paintRubberband(Graphics g)

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent arg0)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent arg0)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent arg0)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent arg0)
Specified by:
mouseMoved in interface MouseMotionListener

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/package-summary.html0000664000175000017500000002540412176166726030304 0ustar sylvestresylvestre com.mxgraph.swing.handler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.swing.handler

This package contains all classes required for mouse event handling in JFC/Swing.

See:
          Description

Class Summary
mxCellHandler  
mxCellMarker Implements a mouse tracker that marks cells under the mouse.
mxCellTracker Event handler that highlights cells.
mxConnectionHandler Connection handler creates new connections between cells.
mxConnectPreview Connection handler creates new connections between cells.
mxEdgeHandler  
mxElbowEdgeHandler  
mxGraphHandler  
mxGraphTransferHandler  
mxInsertHandler  
mxKeyboardHandler  
mxMovePreview Connection handler creates new connections between cells.
mxPanningHandler  
mxRotationHandler Basic example of implementing a handler for rotation.
mxRubberband Implements a rubberband selection.
mxSelectionCellsHandler  
mxVertexHandler  
 

Package com.mxgraph.swing.handler Description

This package contains all classes required for mouse event handling in JFC/Swing. The classes implement rubberband selection, mouse tracking, creating connections, handling vertices and edges, moving cells, panning and keystroke handling.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/package-use.html0000664000175000017500000002461312176166726027404 0ustar sylvestresylvestre Uses of Package com.mxgraph.swing.handler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.swing.handler

Packages that use com.mxgraph.swing.handler
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
 

Classes in com.mxgraph.swing.handler used by com.mxgraph.swing
mxCellHandler
           
mxConnectionHandler
          Connection handler creates new connections between cells.
mxGraphHandler
           
mxPanningHandler
           
mxSelectionCellsHandler
           
 

Classes in com.mxgraph.swing.handler used by com.mxgraph.swing.handler
mxCellHandler
           
mxCellMarker
          Implements a mouse tracker that marks cells under the mouse.
mxConnectPreview
          Connection handler creates new connections between cells.
mxEdgeHandler
           
mxGraphTransferHandler
           
mxMovePreview
          Connection handler creates new connections between cells.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxMovePreview.html0000664000175000017500000012553712176166724030041 0ustar sylvestresylvestre mxMovePreview (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxMovePreview

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.swing.handler.mxMovePreview

public class mxMovePreview
extends mxEventSource

Connection handler creates new connections between cells. This control is used to display the connector icon, while the preview is used to draw the line.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  boolean clonePreview
          Specifies if the preview should use clones of the original shapes.
protected  boolean contextPreview
          Specifies if connected, unselected edges should be included in the preview.
protected  mxGraphComponent graphComponent
           
protected  boolean hideSelectionHandler
          Specifies if the selection cells handler should be hidden while the preview is visible.
protected  Rectangle initialPlaceholder
           
protected  mxRectangle lastDirty
           
protected  Object[] movingCells
           
protected  Rectangle placeholder
           
protected  boolean placeholderPreview
          Specifies if the placeholder rectangle should be used for all previews.
protected  mxCellStatePreview preview
           
protected  mxCellState[] previewStates
           
protected  mxCellState startState
           
protected  int threshold
          Maximum number of cells to preview individually.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxMovePreview(mxGraphComponent graphComponent)
          Constructs a new rubberband selection for the given graph component.
 
Method Summary
 mxCellStatePreview createCellStatePreview()
           
 Object[] getCells(mxCellState initialState)
           
 Object[] getMovingCells()
          FIXME: Cells should be assigned outside of getPreviewStates
protected  mxRectangle getPlaceholderBounds(mxCellState startState)
           
protected  mxCellState[] getPreviewStates()
          Returns the states that are affected by the move operation.
 int getThreshold()
           
 boolean isActive()
           
protected  boolean isCellOpaque(Object cell)
           
 boolean isClonePreview()
           
 boolean isContextPreview()
           
 boolean isHideSelectionHandler()
           
 boolean isPlaceholderPreview()
           
 void paint(Graphics g)
           
protected  void repaint(mxRectangle dirty)
           
protected  void reset()
           
 void setClonePreview(boolean value)
           
 void setContextPreview(boolean value)
           
 void setHideSelectionHandler(boolean value)
           
 void setPlaceholderPreview(boolean value)
           
 void setThreshold(int value)
           
 void start(MouseEvent e, mxCellState state)
          Sets the translation of the preview.
 Object[] stop(boolean commit, MouseEvent e, double dx, double dy, boolean clone, Object target)
           
 void update(MouseEvent e, double dx, double dy, boolean clone)
          Sets the translation of the preview.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphComponent

protected mxGraphComponent graphComponent

threshold

protected int threshold
Maximum number of cells to preview individually. Default is 200.


placeholderPreview

protected boolean placeholderPreview
Specifies if the placeholder rectangle should be used for all previews. Default is false. This overrides all other preview settings if true.


clonePreview

protected boolean clonePreview
Specifies if the preview should use clones of the original shapes. Default is true.


contextPreview

protected boolean contextPreview
Specifies if connected, unselected edges should be included in the preview. Default is true. This should not be used if cloning is enabled.


hideSelectionHandler

protected boolean hideSelectionHandler
Specifies if the selection cells handler should be hidden while the preview is visible. Default is false.


startState

protected transient mxCellState startState

previewStates

protected transient mxCellState[] previewStates

movingCells

protected transient Object[] movingCells

initialPlaceholder

protected transient Rectangle initialPlaceholder

placeholder

protected transient Rectangle placeholder

lastDirty

protected transient mxRectangle lastDirty

preview

protected transient mxCellStatePreview preview
Constructor Detail

mxMovePreview

public mxMovePreview(mxGraphComponent graphComponent)
Constructs a new rubberband selection for the given graph component.

Parameters:
graphComponent - Component that contains the rubberband.
Method Detail

getThreshold

public int getThreshold()

setThreshold

public void setThreshold(int value)

isPlaceholderPreview

public boolean isPlaceholderPreview()

setPlaceholderPreview

public void setPlaceholderPreview(boolean value)

isClonePreview

public boolean isClonePreview()

setClonePreview

public void setClonePreview(boolean value)

isContextPreview

public boolean isContextPreview()

setContextPreview

public void setContextPreview(boolean value)

isHideSelectionHandler

public boolean isHideSelectionHandler()

setHideSelectionHandler

public void setHideSelectionHandler(boolean value)

isActive

public boolean isActive()

getMovingCells

public Object[] getMovingCells()
FIXME: Cells should be assigned outside of getPreviewStates


getCells

public Object[] getCells(mxCellState initialState)

getPreviewStates

protected mxCellState[] getPreviewStates()
Returns the states that are affected by the move operation.


isCellOpaque

protected boolean isCellOpaque(Object cell)

start

public void start(MouseEvent e,
                  mxCellState state)
Sets the translation of the preview.


getPlaceholderBounds

protected mxRectangle getPlaceholderBounds(mxCellState startState)

createCellStatePreview

public mxCellStatePreview createCellStatePreview()

update

public void update(MouseEvent e,
                   double dx,
                   double dy,
                   boolean clone)
Sets the translation of the preview.


repaint

protected void repaint(mxRectangle dirty)

reset

protected void reset()

stop

public Object[] stop(boolean commit,
                     MouseEvent e,
                     double dx,
                     double dy,
                     boolean clone,
                     Object target)

paint

public void paint(Graphics g)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/package-tree.html0000664000175000017500000003203112176166726027540 0ustar sylvestresylvestre com.mxgraph.swing.handler Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.swing.handler

Package Hierarchies:
All Packages

Class Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxEdgeHandler.html0000664000175000017500000015412012176166724027721 0ustar sylvestresylvestre mxEdgeHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxEdgeHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxCellHandler
      extended by com.mxgraph.swing.handler.mxEdgeHandler
Direct Known Subclasses:
mxElbowEdgeHandler

public class mxEdgeHandler
extends mxCellHandler


Field Summary
protected  boolean cloneEnabled
           
protected  boolean constrainedEvent
          Workaround for shift-key-state not correct in mouseReleased.
protected  String error
           
protected  boolean gridEnabledEvent
          Workaround for alt-key-state not correct in mouseReleased.
protected  mxCellMarker marker
           
protected  Point[] p
           
 
Fields inherited from class com.mxgraph.swing.handler.mxCellHandler
bounds, first, graphComponent, handles, handlesVisible, index, preview, state
 
Constructor Summary
mxEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
 
Method Summary
protected  void connect(Object edge, Object terminal, boolean isSource, boolean isClone)
          Connects the given edge to the given source or target terminal.
protected  mxPoint convertPoint(mxPoint point, boolean gridEnabled)
           
protected  Rectangle createHandle(Point center)
           
protected  Rectangle createHandle(Point center, int size)
           
protected  Rectangle[] createHandles()
          Creates the rectangles that define the handles.
protected  Point[] createPoints(mxCellState s)
           
protected  JComponent createPreview()
          Creates the preview for this handler.
protected  Cursor getCursor(MouseEvent e, int index)
          Returns the cursor for the given event and handle.
protected  Color getHandleFillColor(int index)
          Returns the color to be used to fill the handle at the specified index.
 int getIndexAt(int x, int y)
          Returns the index of the handle at the given location.
protected  Rectangle getPreviewBounds()
           
 Color getSelectionColor()
          Returns the color used to draw the selection border.
 Stroke getSelectionStroke()
          Returns the stroke used to draw the selection border.
protected  boolean isCellBendable()
           
 boolean isCloneEnabled()
           
protected  boolean isFlipEvent(MouseEvent e)
           
protected  boolean isHandleVisible(int index)
          Hides the middle handle if the edge is not bendable.
protected  boolean isIgnoredEvent(MouseEvent e)
          No flip event is ignored.
 boolean isSource(int index)
          Returns true if the current index is 0.
 boolean isTarget(int index)
          Returns true if the current index is the last index.
 void mouseDragged(MouseEvent e)
          Processes the given event.
 void mousePressed(MouseEvent e)
          Processes the given event.
 void mouseReleased(MouseEvent e)
          Processes the given event.
protected  void moveLabelTo(mxCellState edgeState, double x, double y)
          Moves the label to the given position.
protected  void movePoint(Object edge, int pointIndex, mxPoint point)
          Moves the edges control point with the given index to the given point.
 void paint(Graphics g)
          Paints the visible handles of this handler.
 void reset()
          Extends the implementation to reset the current error and marker.
 void setCloneEnabled(boolean cloneEnabled)
           
 String validateConnection(Object source, Object target)
          Returns the error message or an empty string if the connection for the given source target pair is not valid.
 
Methods inherited from class com.mxgraph.swing.handler.mxCellHandler
destroy, getBounds, getGraphComponent, getHandleBorderColor, getHandleCount, getIndex, getState, getToolTipText, isActive, isHandleEnabled, isHandlesVisible, isLabel, isLabelMovable, mouseMoved, refresh, setHandlesVisible, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cloneEnabled

protected boolean cloneEnabled

p

protected Point[] p

error

protected transient String error

gridEnabledEvent

protected transient boolean gridEnabledEvent
Workaround for alt-key-state not correct in mouseReleased.


constrainedEvent

protected transient boolean constrainedEvent
Workaround for shift-key-state not correct in mouseReleased.


marker

protected mxCellMarker marker
Constructor Detail

mxEdgeHandler

public mxEdgeHandler(mxGraphComponent graphComponent,
                     mxCellState state)
Parameters:
graphComponent -
state -
Method Detail

setCloneEnabled

public void setCloneEnabled(boolean cloneEnabled)

isCloneEnabled

public boolean isCloneEnabled()

isIgnoredEvent

protected boolean isIgnoredEvent(MouseEvent e)
No flip event is ignored.

Overrides:
isIgnoredEvent in class mxCellHandler

isFlipEvent

protected boolean isFlipEvent(MouseEvent e)

validateConnection

public String validateConnection(Object source,
                                 Object target)
Returns the error message or an empty string if the connection for the given source target pair is not valid. Otherwise it returns null.


isSource

public boolean isSource(int index)
Returns true if the current index is 0.


isTarget

public boolean isTarget(int index)
Returns true if the current index is the last index.


isHandleVisible

protected boolean isHandleVisible(int index)
Hides the middle handle if the edge is not bendable.

Overrides:
isHandleVisible in class mxCellHandler

isCellBendable

protected boolean isCellBendable()

createHandles

protected Rectangle[] createHandles()
Description copied from class: mxCellHandler
Creates the rectangles that define the handles.

Overrides:
createHandles in class mxCellHandler

getHandleFillColor

protected Color getHandleFillColor(int index)
Description copied from class: mxCellHandler
Returns the color to be used to fill the handle at the specified index.

Overrides:
getHandleFillColor in class mxCellHandler

getIndexAt

public int getIndexAt(int x,
                      int y)
Description copied from class: mxCellHandler
Returns the index of the handle at the given location.

Overrides:
getIndexAt in class mxCellHandler
Parameters:
x -
y -
Returns:
Returns the inde of the handle at the given location.

createHandle

protected Rectangle createHandle(Point center)

createHandle

protected Rectangle createHandle(Point center,
                                 int size)

createPoints

protected Point[] createPoints(mxCellState s)

createPreview

protected JComponent createPreview()
Description copied from class: mxCellHandler
Creates the preview for this handler.

Overrides:
createPreview in class mxCellHandler

convertPoint

protected mxPoint convertPoint(mxPoint point,
                               boolean gridEnabled)
Parameters:
point -
gridEnabled -
Returns:
Returns the scaled, translated and grid-aligned point.

getPreviewBounds

protected Rectangle getPreviewBounds()
Returns:
Returns the bounds of the preview.

mousePressed

public void mousePressed(MouseEvent e)
Description copied from class: mxCellHandler
Processes the given event.

Overrides:
mousePressed in class mxCellHandler

mouseDragged

public void mouseDragged(MouseEvent e)
Description copied from class: mxCellHandler
Processes the given event.

Overrides:
mouseDragged in class mxCellHandler

mouseReleased

public void mouseReleased(MouseEvent e)
Description copied from class: mxCellHandler
Processes the given event.

Overrides:
mouseReleased in class mxCellHandler

reset

public void reset()
Extends the implementation to reset the current error and marker.

Overrides:
reset in class mxCellHandler

movePoint

protected void movePoint(Object edge,
                         int pointIndex,
                         mxPoint point)
Moves the edges control point with the given index to the given point.


connect

protected void connect(Object edge,
                       Object terminal,
                       boolean isSource,
                       boolean isClone)
Connects the given edge to the given source or target terminal.

Parameters:
edge -
terminal -
isSource -

moveLabelTo

protected void moveLabelTo(mxCellState edgeState,
                           double x,
                           double y)
Moves the label to the given position.


getCursor

protected Cursor getCursor(MouseEvent e,
                           int index)
Description copied from class: mxCellHandler
Returns the cursor for the given event and handle.

Overrides:
getCursor in class mxCellHandler

getSelectionColor

public Color getSelectionColor()
Description copied from class: mxCellHandler
Returns the color used to draw the selection border. This implementation returns null.

Overrides:
getSelectionColor in class mxCellHandler

getSelectionStroke

public Stroke getSelectionStroke()
Description copied from class: mxCellHandler
Returns the stroke used to draw the selection border. This implementation returns null.

Overrides:
getSelectionStroke in class mxCellHandler

paint

public void paint(Graphics g)
Description copied from class: mxCellHandler
Paints the visible handles of this handler.

Overrides:
paint in class mxCellHandler

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxElbowEdgeHandler.html0000664000175000017500000006423212176166724030716 0ustar sylvestresylvestre mxElbowEdgeHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxElbowEdgeHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxCellHandler
      extended by com.mxgraph.swing.handler.mxEdgeHandler
          extended by com.mxgraph.swing.handler.mxElbowEdgeHandler

public class mxElbowEdgeHandler
extends mxEdgeHandler


Field Summary
 
Fields inherited from class com.mxgraph.swing.handler.mxEdgeHandler
cloneEnabled, constrainedEvent, error, gridEnabledEvent, marker, p
 
Fields inherited from class com.mxgraph.swing.handler.mxCellHandler
bounds, first, graphComponent, handles, handlesVisible, index, preview, state
 
Constructor Summary
mxElbowEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
 
Method Summary
protected  Rectangle[] createHandles()
          Creates the rectangles that define the handles.
 String getToolTipText(MouseEvent e)
          Hook for subclassers to return tooltip texts for certain points on the handle.
protected  boolean isFlipEvent(MouseEvent e)
           
 boolean isLabel(int index)
          Returns true if the given index is the index of the last handle.
 
Methods inherited from class com.mxgraph.swing.handler.mxEdgeHandler
connect, convertPoint, createHandle, createHandle, createPoints, createPreview, getCursor, getHandleFillColor, getIndexAt, getPreviewBounds, getSelectionColor, getSelectionStroke, isCellBendable, isCloneEnabled, isHandleVisible, isIgnoredEvent, isSource, isTarget, mouseDragged, mousePressed, mouseReleased, moveLabelTo, movePoint, paint, reset, setCloneEnabled, validateConnection
 
Methods inherited from class com.mxgraph.swing.handler.mxCellHandler
destroy, getBounds, getGraphComponent, getHandleBorderColor, getHandleCount, getIndex, getState, isActive, isHandleEnabled, isHandlesVisible, isLabelMovable, mouseMoved, refresh, setHandlesVisible, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxElbowEdgeHandler

public mxElbowEdgeHandler(mxGraphComponent graphComponent,
                          mxCellState state)
Parameters:
graphComponent -
state -
Method Detail

getToolTipText

public String getToolTipText(MouseEvent e)
Hook for subclassers to return tooltip texts for certain points on the handle.

Overrides:
getToolTipText in class mxCellHandler

isFlipEvent

protected boolean isFlipEvent(MouseEvent e)
Overrides:
isFlipEvent in class mxEdgeHandler

isLabel

public boolean isLabel(int index)
Returns true if the given index is the index of the last handle.

Overrides:
isLabel in class mxCellHandler

createHandles

protected Rectangle[] createHandles()
Description copied from class: mxCellHandler
Creates the rectangles that define the handles.

Overrides:
createHandles in class mxEdgeHandler

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/swing/handler/mxCellMarker.html0000664000175000017500000042003612176166724027602 0ustar sylvestresylvestre mxCellMarker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.swing.handler
Class mxCellMarker

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.mxgraph.swing.handler.mxCellMarker
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
mxCellTracker

public class mxCellMarker
extends JComponent

Implements a mouse tracker that marks cells under the mouse. This class fires the following event: mxEvent.MARK fires in mark and unmark to notify the listener of a new cell under the mouse. The state property contains the mxCellState of the respective cell or null if no cell is under the mouse. To create a cell marker which highlights cells "in-place", the following code can be used: mxCellMarker highlighter = new mxCellMarker(graphComponent) { protected Map lastStyle; public mxCellState process(MouseEvent e) { mxCellState state = null; if (isEnabled()) { state = getState(e); boolean isValid = (state != null) ? isValidState(state) : false; if (!isValid) { state = null; } highlight(state); } return state; } public void highlight(mxCellState state) { if (validState != state) { Rectangle dirty = null; if (validState != null) { validState.setStyle(lastStyle); dirty = validState.getBoundingBox().getRectangle(); dirty.grow(4, 4); } if (state != null) { lastStyle = state.getStyle(); state.setStyle(new Hashtable(state.getStyle())); state.getStyle().put("strokeColor", "#00ff00"); state.getStyle().put("fontColor", "#00ff00"); state.getStyle().put("strokeWidth", "3"); Rectangle tmp = state.getBoundingBox().getRectangle(); if (dirty != null) { dirty.add(tmp); } else { dirty = tmp; } dirty.grow(4, 4); } validState = state; graphComponent.repaint(dirty); } } public void reset() { highlight(null); } public void paint(Graphics g) { // do nothing } }; graphComponent.getConnectionHandler().setMarker(highlighter);

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  Color currentColor
          Holds the current marker color.
static Stroke DEFAULT_STROKE
          Specifies the default stroke for the marker.
protected  boolean enabled
          Specifies if the marker is enabled.
protected  mxEventSource eventSource
          Holds the event source.
protected  mxGraphComponent graphComponent
          Holds the enclosing graph component.
protected  double hotspot
          Specifies the portion of the width and height that should trigger a highlight.
protected  boolean hotspotEnabled
          Specifies if the hotspot is enabled.
protected  Color invalidColor
          Specifies the valid- and invalidColor for the marker.
static boolean KEEP_ON_TOP
          Specifies if the highlights should appear on top of everything else in the overlay pane.
protected  mxCellState markedState
          Holds the marked state.
protected  boolean swimlaneContentEnabled
          Specifies if the the content area of swimlane should be non-transparent to mouse events.
protected  Color validColor
          Specifies the valid- and invalidColor for the marker.
protected  mxCellState validState
          Holds the marked state if it is valid.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxCellMarker(mxGraphComponent graphComponent)
          Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent graphComponent, Color validColor)
          Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent graphComponent, Color validColor, Color invalidColor)
          Constructs a new marker for the given graph component.
mxCellMarker(mxGraphComponent graphComponent, Color validColor, Color invalidColor, double hotspot)
          Constructs a new marker for the given graph component.
 
Method Summary
 void addListener(String eventName, mxEventSource.mxIEventListener listener)
          Adds the given event listener.
protected  Object getCell(MouseEvent e)
          Returns the state at the given location.
 Color getCurrentColor()
          Returns the current color.
 double getHotspot()
          Returns the hotspot.
 Color getInvalidColor()
          Returns the color used for invalid highlights.
 mxCellState getMarkedState()
          Returns the marked state.
protected  Color getMarkerColor(MouseEvent e, mxCellState state, boolean isValid)
          Returns the valid- or invalidColor depending on the value of isValid.
protected  mxCellState getState(MouseEvent e)
          Uses getCell, getMarkedState and intersects to return the state for the given event.
protected  mxCellState getStateToMark(mxCellState state)
          Returns the state to be marked for the given state under the mouse.
 Color getValidColor()
          Returns the color used for valid highlights.
 mxCellState getValidState()
          Returns the valid state.
 boolean hasValidState()
          Returns true if validState is not null.
 void highlight(mxCellState state, Color color)
           
 void highlight(mxCellState state, Color color, boolean valid)
           
protected  boolean intersects(mxCellState state, MouseEvent e)
          Returns true if the given mouse event intersects the given state.
 boolean isEnabled()
          Returns true if the marker is enabled, that is, if it processes events in process.
 boolean isHotspotEnabled()
          Returns true if hotspot is used in intersects.
 boolean isSwimlaneContentEnabled()
          Returns true if the content area of swimlanes is non-transparent to events.
protected  boolean isValidState(mxCellState state)
          Returns true if the given state is a valid state.
 void mark()
          Marks the markedState and fires a mxEvent.MARK event.
 void paint(Graphics g)
          Paints the outline of the markedState with the currentColor.
 mxCellState process(MouseEvent e)
          Processes the given event and marks the state returned by getStateAt with the color returned by getMarkerColor.
 void removeListener(mxEventSource.mxIEventListener listener)
          Removes the given event listener.
 void removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Removes the given event listener for the specified event name.
 void reset()
          Resets the state of the cell marker.
 void setCurrentColor(Color value)
          Sets the current color.
 void setEnabled(boolean enabled)
          Sets the enabled state of the marker.
 void setHotspot(double hotspot)
          Sets the hotspot.
 void setHotspotEnabled(boolean enabled)
          Specifies whether the hotspot should be used in intersects.
 void setInvalidColor(Color value)
          Sets the color used for invalid highlights.
 void setMarkedState(mxCellState value)
          Sets the marked state.
 void setSwimlaneContentEnabled(boolean swimlaneContentEnabled)
          Sets if the content area of swimlanes should not be transparent to events.
 void setValidColor(Color value)
          Sets the color used for valid highlights.
 void unmark()
          Hides the marker and fires a mxEvent.MARK event.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEEP_ON_TOP

public static boolean KEEP_ON_TOP
Specifies if the highlights should appear on top of everything else in the overlay pane. Default is false.


DEFAULT_STROKE

public static Stroke DEFAULT_STROKE
Specifies the default stroke for the marker.


eventSource

protected mxEventSource eventSource
Holds the event source.


graphComponent

protected mxGraphComponent graphComponent
Holds the enclosing graph component.


enabled

protected boolean enabled
Specifies if the marker is enabled. Default is true.


hotspot

protected double hotspot
Specifies the portion of the width and height that should trigger a highlight. The area around the center of the cell to be marked is used as the hotspot. Possible values are between 0 and 1. Default is mxConstants.DEFAULT_HOTSPOT.


hotspotEnabled

protected boolean hotspotEnabled
Specifies if the hotspot is enabled. Default is false.


swimlaneContentEnabled

protected boolean swimlaneContentEnabled
Specifies if the the content area of swimlane should be non-transparent to mouse events. Default is false.


validColor

protected Color validColor
Specifies the valid- and invalidColor for the marker.


invalidColor

protected Color invalidColor
Specifies the valid- and invalidColor for the marker.


currentColor

protected transient Color currentColor
Holds the current marker color.


validState

protected transient mxCellState validState
Holds the marked state if it is valid.


markedState

protected transient mxCellState markedState
Holds the marked state.

Constructor Detail

mxCellMarker

public mxCellMarker(mxGraphComponent graphComponent)
Constructs a new marker for the given graph component.

Parameters:
graphComponent -

mxCellMarker

public mxCellMarker(mxGraphComponent graphComponent,
                    Color validColor)
Constructs a new marker for the given graph component.


mxCellMarker

public mxCellMarker(mxGraphComponent graphComponent,
                    Color validColor,
                    Color invalidColor)
Constructs a new marker for the given graph component.


mxCellMarker

public mxCellMarker(mxGraphComponent graphComponent,
                    Color validColor,
                    Color invalidColor,
                    double hotspot)
Constructs a new marker for the given graph component.

Method Detail

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled state of the marker.

Overrides:
setEnabled in class JComponent

isEnabled

public boolean isEnabled()
Returns true if the marker is enabled, that is, if it processes events in process.

Overrides:
isEnabled in class Component

setHotspot

public void setHotspot(double hotspot)
Sets the hotspot.


getHotspot

public double getHotspot()
Returns the hotspot.


setHotspotEnabled

public void setHotspotEnabled(boolean enabled)
Specifies whether the hotspot should be used in intersects.


isHotspotEnabled

public boolean isHotspotEnabled()
Returns true if hotspot is used in intersects.


setSwimlaneContentEnabled

public void setSwimlaneContentEnabled(boolean swimlaneContentEnabled)
Sets if the content area of swimlanes should not be transparent to events.


isSwimlaneContentEnabled

public boolean isSwimlaneContentEnabled()
Returns true if the content area of swimlanes is non-transparent to events.


setValidColor

public void setValidColor(Color value)
Sets the color used for valid highlights.


getValidColor

public Color getValidColor()
Returns the color used for valid highlights.


setInvalidColor

public void setInvalidColor(Color value)
Sets the color used for invalid highlights.


getInvalidColor

public Color getInvalidColor()
Returns the color used for invalid highlights.


hasValidState

public boolean hasValidState()
Returns true if validState is not null.


getValidState

public mxCellState getValidState()
Returns the valid state.


setCurrentColor

public void setCurrentColor(Color value)
Sets the current color.


getCurrentColor

public Color getCurrentColor()
Returns the current color.


setMarkedState

public void setMarkedState(mxCellState value)
Sets the marked state.


getMarkedState

public mxCellState getMarkedState()
Returns the marked state.


reset

public void reset()
Resets the state of the cell marker.


process

public mxCellState process(MouseEvent e)
Processes the given event and marks the state returned by getStateAt with the color returned by getMarkerColor. If the markerColor is not null, then the state is stored in markedState. If isValidState returns true, then the state is stored in validState regardless of the marker color. The state is returned regardless of the marker color and valid state.


highlight

public void highlight(mxCellState state,
                      Color color)

highlight

public void highlight(mxCellState state,
                      Color color,
                      boolean valid)

mark

public void mark()
Marks the markedState and fires a mxEvent.MARK event.


unmark

public void unmark()
Hides the marker and fires a mxEvent.MARK event.


isValidState

protected boolean isValidState(mxCellState state)
Returns true if the given state is a valid state. If this returns true, then the state is stored in validState. The return value of this method is used as the argument for getMarkerColor.


getMarkerColor

protected Color getMarkerColor(MouseEvent e,
                               mxCellState state,
                               boolean isValid)
Returns the valid- or invalidColor depending on the value of isValid. The given state is ignored by this implementation.


getState

protected mxCellState getState(MouseEvent e)
Uses getCell, getMarkedState and intersects to return the state for the given event.


getCell

protected Object getCell(MouseEvent e)
Returns the state at the given location. This uses mxGraph.getCellAt.


getStateToMark

protected mxCellState getStateToMark(mxCellState state)
Returns the state to be marked for the given state under the mouse. This returns the given state.


intersects

protected boolean intersects(mxCellState state,
                             MouseEvent e)
Returns true if the given mouse event intersects the given state. This returns true if the hotspot is 0 or the event is inside the hotspot for the given cell state.


addListener

public void addListener(String eventName,
                        mxEventSource.mxIEventListener listener)
Adds the given event listener.


removeListener

public void removeListener(mxEventSource.mxIEventListener listener)
Removes the given event listener.


removeListener

public void removeListener(mxEventSource.mxIEventListener listener,
                           String eventName)
Removes the given event listener for the specified event name.


paint

public void paint(Graphics g)
Paints the outline of the markedState with the currentColor.

Overrides:
paint in class JComponent

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/0000775000175000017500000000000012176166726023021 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/mxDomOutputParser.IElementHandler.html0000664000175000017500000002133012176166722032363 0ustar sylvestresylvestre mxDomOutputParser.IElementHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.reader
Interface mxDomOutputParser.IElementHandler

Enclosing class:
mxDomOutputParser

protected static interface mxDomOutputParser.IElementHandler


Method Summary
 void parseElement(Element elt)
           
 

Method Detail

parseElement

void parseElement(Element elt)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/0000775000175000017500000000000012176166726024720 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxDomOutputParser.IElementHandler.html0000664000175000017500000002074112176166726034273 0ustar sylvestresylvestre Uses of Interface com.mxgraph.reader.mxDomOutputParser.IElementHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.reader.mxDomOutputParser.IElementHandler

Packages that use mxDomOutputParser.IElementHandler
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
 

Uses of mxDomOutputParser.IElementHandler in com.mxgraph.reader
 

Fields in com.mxgraph.reader with type parameters of type mxDomOutputParser.IElementHandler
protected  Map<String,mxDomOutputParser.IElementHandler> mxDomOutputParser.handlers
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxSaxOutputHandler.IElementHandler.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxSaxOutputHandler.IElementHandler.htm0000664000175000017500000002076412176166726034261 0ustar sylvestresylvestre Uses of Interface com.mxgraph.reader.mxSaxOutputHandler.IElementHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.reader.mxSaxOutputHandler.IElementHandler

Packages that use mxSaxOutputHandler.IElementHandler
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
 

Uses of mxSaxOutputHandler.IElementHandler in com.mxgraph.reader
 

Fields in com.mxgraph.reader with type parameters of type mxSaxOutputHandler.IElementHandler
protected  Map<String,mxSaxOutputHandler.IElementHandler> mxSaxOutputHandler.handlers
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxDomOutputParser.html0000664000175000017500000001372412176166726031277 0ustar sylvestresylvestre Uses of Class com.mxgraph.reader.mxDomOutputParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.reader.mxDomOutputParser

No usage of com.mxgraph.reader.mxDomOutputParser


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxGraphViewImageReader.html0000664000175000017500000002261512176166726032143 0ustar sylvestresylvestre Uses of Class com.mxgraph.reader.mxGraphViewImageReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.reader.mxGraphViewImageReader

Packages that use mxGraphViewImageReader
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
 

Uses of mxGraphViewImageReader in com.mxgraph.reader
 

Methods in com.mxgraph.reader with parameters of type mxGraphViewImageReader
static BufferedImage mxGraphViewImageReader.convert(InputSource inputSource, mxGraphViewImageReader viewReader)
          Creates the image for the given display XML input source.
static BufferedImage mxGraphViewImageReader.convert(String filename, mxGraphViewImageReader viewReader)
          Creates the image for the given display XML file.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxSaxOutputHandler.html0000664000175000017500000001373612176166726031437 0ustar sylvestresylvestre Uses of Class com.mxgraph.reader.mxSaxOutputHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.reader.mxSaxOutputHandler

No usage of com.mxgraph.reader.mxSaxOutputHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/class-use/mxGraphViewReader.html0000664000175000017500000001747612176166726031211 0ustar sylvestresylvestre Uses of Class com.mxgraph.reader.mxGraphViewReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.reader.mxGraphViewReader

Packages that use mxGraphViewReader
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
 

Uses of mxGraphViewReader in com.mxgraph.reader
 

Subclasses of mxGraphViewReader in com.mxgraph.reader
 class mxGraphViewImageReader
          A converter that renders display XML data onto a graphics canvas.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/package-frame.html0000664000175000017500000000335312176166726026376 0ustar sylvestresylvestre com.mxgraph.reader (JGraph X 2.1.0.7 API Specification) com.mxgraph.reader
Interfaces 
mxDomOutputParser.IElementHandler
mxSaxOutputHandler.IElementHandler
Classes 
mxDomOutputParser
mxGraphViewImageReader
mxGraphViewReader
mxSaxOutputHandler
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/mxSaxOutputHandler.IElementHandler.html0000664000175000017500000002103112176166722032516 0ustar sylvestresylvestre mxSaxOutputHandler.IElementHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.reader
Interface mxSaxOutputHandler.IElementHandler

Enclosing class:
mxSaxOutputHandler

protected static interface mxSaxOutputHandler.IElementHandler


Method Summary
 void parseElement(Attributes atts)
           
 

Method Detail

parseElement

void parseElement(Attributes atts)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/mxDomOutputParser.html0000664000175000017500000004764512176166722027405 0ustar sylvestresylvestre mxDomOutputParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.reader
Class mxDomOutputParser

java.lang.Object
  extended by com.mxgraph.reader.mxDomOutputParser

public class mxDomOutputParser
extends Object

public static void main(String[] args) { try { String filename = Test.class.getResource( "/com/mxgraph/online/exported.xml").getPath(); String xml = mxUtils.readFile(filename); System.out.println("xml=" + xml); Document doc = mxUtils.parseXml(xml); Element root = doc.getDocumentElement(); int width = Integer.parseInt(root.getAttribute("width")); int height = Integer.parseInt(root.getAttribute("height")); System.out.println("width=" + width + " height=" + height); BufferedImage img = mxUtils.createBufferedImage(width, height, Color.WHITE); Graphics2D g2 = img.createGraphics(); mxUtils.setAntiAlias(g2, true, true); mxDomOutputParser reader = new mxDomOutputParser( new mxGraphicsExportCanvas(g2)); reader.read((Element) root.getFirstChild().getNextSibling()); ImageIO.write(img, "PNG", new File( "C:\\Users\\Gaudenz\\Desktop\\test.png")); } catch (Exception e) { e.printStackTrace(); } } // ------------- Document doc = mxUtils.parseXml(xml); Element root = doc.getDocumentElement(); mxDomOutputParser reader = new mxDomOutputParser(canvas); reader.read(root.getFirstChild());


Nested Class Summary
protected static interface mxDomOutputParser.IElementHandler
           
 
Field Summary
protected  mxICanvas2D canvas
           
protected  Map<String,mxDomOutputParser.IElementHandler> handlers
           
 
Constructor Summary
mxDomOutputParser(mxICanvas2D canvas)
           
 
Method Summary
protected  String getValue(Element elt, String name, String defaultValue)
          Returns the given attribute value or an empty string.
protected  void initHandlers()
           
 void read(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

protected mxICanvas2D canvas

handlers

protected transient Map<String,mxDomOutputParser.IElementHandler> handlers
Constructor Detail

mxDomOutputParser

public mxDomOutputParser(mxICanvas2D canvas)
Method Detail

read

public void read(Node node)

initHandlers

protected void initHandlers()

getValue

protected String getValue(Element elt,
                          String name,
                          String defaultValue)
Returns the given attribute value or an empty string.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/mxGraphViewImageReader.html0000664000175000017500000012466112176166722030244 0ustar sylvestresylvestre mxGraphViewImageReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.reader
Class mxGraphViewImageReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.mxgraph.reader.mxGraphViewReader
          extended by com.mxgraph.reader.mxGraphViewImageReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class mxGraphViewImageReader
extends mxGraphViewReader

A converter that renders display XML data onto a graphics canvas. This reader can only be used to generate images for encoded graph views.


Field Summary
protected  boolean antiAlias
          Specifies if the image should be anti-aliased.
protected  Color background
          Specifies the background color.
protected  int border
          Specifies the border which is added to the size of the graph.
protected  mxRectangle clip
          Defines the clip to be drawn.
protected  boolean cropping
          Specifies the border which is added to the size of the graph.
 
Fields inherited from class com.mxgraph.reader.mxGraphViewReader
canvas, htmlLabels, scale
 
Constructor Summary
mxGraphViewImageReader()
          Constructs a new reader with a transparent background.
mxGraphViewImageReader(Color background)
          Constructs a new reader with the given background color.
mxGraphViewImageReader(Color background, int border)
          Constructs a new reader with a transparent background.
mxGraphViewImageReader(Color background, int border, boolean antiAlias)
          Constructs a new reader with a transparent background.
mxGraphViewImageReader(Color background, int border, boolean antiAlias, boolean cropping)
          Constructs a new reader with a transparent background.
 
Method Summary
static BufferedImage convert(InputSource inputSource, mxGraphViewImageReader viewReader)
          Creates the image for the given display XML input source.
static BufferedImage convert(String filename, mxGraphViewImageReader viewReader)
          Creates the image for the given display XML file.
 mxICanvas createCanvas(Map<String,Object> attrs)
          Returns the canvas to be used for rendering.
protected  mxGraphics2DCanvas createGraphicsCanvas()
          Hook that creates the graphics canvas.
 Color getBackground()
           
 int getBorder()
           
 mxRectangle getClip()
           
 boolean isAntiAlias()
           
 boolean isCropping()
          Specifies the optional clipping rectangle.
 void setAntiAlias(boolean antiAlias)
           
 void setBackground(Color background)
           
 void setBorder(int border)
           
 void setClip(mxRectangle value)
           
 void setCropping(boolean value)
           
 
Methods inherited from class com.mxgraph.reader.mxGraphViewReader
getCanvas, isHtmlLabels, parseElement, parsePoints, parseState, setHtmlLabels, startElement
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

background

protected Color background
Specifies the background color. Default is null.


antiAlias

protected boolean antiAlias
Specifies if the image should be anti-aliased. Default is true.


border

protected int border
Specifies the border which is added to the size of the graph. Default is 0.


cropping

protected boolean cropping
Specifies the border which is added to the size of the graph. Default is true.


clip

protected mxRectangle clip
Defines the clip to be drawn. Default is null.

Constructor Detail

mxGraphViewImageReader

public mxGraphViewImageReader()
Constructs a new reader with a transparent background.


mxGraphViewImageReader

public mxGraphViewImageReader(Color background)
Constructs a new reader with the given background color.


mxGraphViewImageReader

public mxGraphViewImageReader(Color background,
                              int border)
Constructs a new reader with a transparent background.


mxGraphViewImageReader

public mxGraphViewImageReader(Color background,
                              int border,
                              boolean antiAlias)
Constructs a new reader with a transparent background.


mxGraphViewImageReader

public mxGraphViewImageReader(Color background,
                              int border,
                              boolean antiAlias,
                              boolean cropping)
Constructs a new reader with a transparent background.

Method Detail

getBackground

public Color getBackground()

setBackground

public void setBackground(Color background)

getBorder

public int getBorder()

setBorder

public void setBorder(int border)

isAntiAlias

public boolean isAntiAlias()

setAntiAlias

public void setAntiAlias(boolean antiAlias)

isCropping

public boolean isCropping()
Specifies the optional clipping rectangle.


setCropping

public void setCropping(boolean value)

getClip

public mxRectangle getClip()

setClip

public void setClip(mxRectangle value)

createCanvas

public mxICanvas createCanvas(Map<String,Object> attrs)
Description copied from class: mxGraphViewReader
Returns the canvas to be used for rendering.

Specified by:
createCanvas in class mxGraphViewReader
Parameters:
attrs - Specifies the attributes of the new canvas.
Returns:
Returns a new canvas.

createGraphicsCanvas

protected mxGraphics2DCanvas createGraphicsCanvas()
Hook that creates the graphics canvas.


convert

public static BufferedImage convert(String filename,
                                    mxGraphViewImageReader viewReader)
                             throws ParserConfigurationException,
                                    SAXException,
                                    IOException
Creates the image for the given display XML file. (Note: The XML file is an encoded mxGraphView, not mxGraphModel.)

Parameters:
filename - Filename of the display XML file.
Returns:
Returns an image representing the display XML file.
Throws:
ParserConfigurationException
SAXException
IOException

convert

public static BufferedImage convert(InputSource inputSource,
                                    mxGraphViewImageReader viewReader)
                             throws ParserConfigurationException,
                                    SAXException,
                                    IOException
Creates the image for the given display XML input source. (Note: The XML is an encoded mxGraphView, not mxGraphModel.)

Parameters:
inputSource - Input source that contains the display XML.
Returns:
Returns an image representing the display XML input source.
Throws:
ParserConfigurationException
SAXException
IOException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/package-summary.html0000664000175000017500000002431112176166726026776 0ustar sylvestresylvestre com.mxgraph.reader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.reader

This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model.

See:
          Description

Interface Summary
mxDomOutputParser.IElementHandler  
mxSaxOutputHandler.IElementHandler  
 

Class Summary
mxDomOutputParser public static void main(String[] args) { try { String filename = Test.class.getResource( "/com/mxgraph/online/exported.xml").getPath(); String xml = mxUtils.readFile(filename); System.out.println("xml=" + xml); Document doc = mxUtils.parseXml(xml); Element root = doc.getDocumentElement(); int width = Integer.parseInt(root.getAttribute("width")); int height = Integer.parseInt(root.getAttribute("height")); System.out.println("width=" + width + " height=" + height); BufferedImage img = mxUtils.createBufferedImage(width, height, Color.WHITE); Graphics2D g2 = img.createGraphics(); mxUtils.setAntiAlias(g2, true, true); mxDomOutputParser reader = new mxDomOutputParser( new mxGraphicsExportCanvas(g2)); reader.read((Element) root.getFirstChild().getNextSibling()); ImageIO.write(img, "PNG", new File( "C:\\Users\\Gaudenz\\Desktop\\test.png")); } catch (Exception e) { e.printStackTrace(); } } // ------------- Document doc = mxUtils.parseXml(xml); Element root = doc.getDocumentElement(); mxDomOutputParser reader = new mxDomOutputParser(canvas); reader.read(root.getFirstChild());
mxGraphViewImageReader A converter that renders display XML data onto a graphics canvas.
mxGraphViewReader An abstract converter that renders display XML data onto a canvas.
mxSaxOutputHandler XMLReader reader = SAXParserFactory.newInstance().newSAXParser() .getXMLReader(); reader.setContentHandler(new mxSaxExportHandler( new mxGraphicsExportCanvas(g2))); reader.parse(new InputSource(new StringReader(xml)));
 

Package com.mxgraph.reader Description

This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/package-use.html0000664000175000017500000001735612176166726026110 0ustar sylvestresylvestre Uses of Package com.mxgraph.reader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.reader

Packages that use com.mxgraph.reader
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
 

Classes in com.mxgraph.reader used by com.mxgraph.reader
mxDomOutputParser.IElementHandler
           
mxGraphViewImageReader
          A converter that renders display XML data onto a graphics canvas.
mxGraphViewReader
          An abstract converter that renders display XML data onto a canvas.
mxSaxOutputHandler.IElementHandler
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/package-tree.html0000664000175000017500000002013012176166726026233 0ustar sylvestresylvestre com.mxgraph.reader Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.reader

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/mxSaxOutputHandler.html0000664000175000017500000007007412176166722027532 0ustar sylvestresylvestre mxSaxOutputHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.reader
Class mxSaxOutputHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.mxgraph.reader.mxSaxOutputHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class mxSaxOutputHandler
extends DefaultHandler

XMLReader reader = SAXParserFactory.newInstance().newSAXParser() .getXMLReader(); reader.setContentHandler(new mxSaxExportHandler( new mxGraphicsExportCanvas(g2))); reader.parse(new InputSource(new StringReader(xml)));


Nested Class Summary
protected static interface mxSaxOutputHandler.IElementHandler
           
 
Field Summary
protected  mxICanvas2D canvas
           
protected  Map<String,mxSaxOutputHandler.IElementHandler> handlers
           
 
Constructor Summary
mxSaxOutputHandler(mxICanvas2D canvas)
           
 
Method Summary
 mxICanvas2D getCanvas()
          Returns the canvas for rendering.
protected  String getValue(Attributes atts, String name, String defaultValue)
          Returns the given attribute value or an empty string.
protected  void initHandlers()
           
 void setCanvas(mxICanvas2D value)
          Sets the canvas for rendering.
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

protected mxICanvas2D canvas

handlers

protected transient Map<String,mxSaxOutputHandler.IElementHandler> handlers
Constructor Detail

mxSaxOutputHandler

public mxSaxOutputHandler(mxICanvas2D canvas)
Method Detail

setCanvas

public void setCanvas(mxICanvas2D value)
Sets the canvas for rendering.


getCanvas

public mxICanvas2D getCanvas()
Returns the canvas for rendering.


startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

initHandlers

protected void initHandlers()

getValue

protected String getValue(Attributes atts,
                          String name,
                          String defaultValue)
Returns the given attribute value or an empty string.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/reader/mxGraphViewReader.html0000664000175000017500000007677512176166722027315 0ustar sylvestresylvestre mxGraphViewReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.reader
Class mxGraphViewReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.mxgraph.reader.mxGraphViewReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
mxGraphViewImageReader

public abstract class mxGraphViewReader
extends DefaultHandler

An abstract converter that renders display XML data onto a canvas.


Field Summary
protected  mxICanvas canvas
          Holds the canvas to be used for rendering the graph.
protected  boolean htmlLabels
          Specifies if labels should be rendered as HTML markup.
protected  double scale
          Holds the global scale of the graph.
 
Constructor Summary
mxGraphViewReader()
           
 
Method Summary
abstract  mxICanvas createCanvas(Map<String,Object> attrs)
          Returns the canvas to be used for rendering.
 mxICanvas getCanvas()
          Returns the canvas that is used for rendering the graph.
 boolean isHtmlLabels()
          Returns the htmlLabels switch.
 void parseElement(String tagName, Map<String,Object> attrs)
          Parses the given element and paints it onto the canvas.
static List<mxPoint> parsePoints(String pts)
          Parses the list of points into an object-oriented representation.
 String parseState(mxCellState state, boolean edge)
          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.
 void setHtmlLabels(boolean value)
          Sets the htmlLabels switch.
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

protected mxICanvas canvas
Holds the canvas to be used for rendering the graph.


scale

protected double scale
Holds the global scale of the graph. This is set just before createCanvas is called.


htmlLabels

protected boolean htmlLabels
Specifies if labels should be rendered as HTML markup.

Constructor Detail

mxGraphViewReader

public mxGraphViewReader()
Method Detail

setHtmlLabels

public void setHtmlLabels(boolean value)
Sets the htmlLabels switch.


isHtmlLabels

public boolean isHtmlLabels()
Returns the htmlLabels switch.


createCanvas

public abstract mxICanvas createCanvas(Map<String,Object> attrs)
Returns the canvas to be used for rendering.

Parameters:
attrs - Specifies the attributes of the new canvas.
Returns:
Returns a new canvas.

getCanvas

public mxICanvas getCanvas()
Returns the canvas that is used for rendering the graph.

Returns:
Returns the canvas.

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

parseElement

public void parseElement(String tagName,
                         Map<String,Object> attrs)
Parses the given element and paints it onto the canvas.

Parameters:
tagName - Name of the node to be parsed.
attrs - Attributes of the node to be parsed.

parseState

public String parseState(mxCellState state,
                         boolean edge)
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.


parsePoints

public static List<mxPoint> parsePoints(String pts)
Parses the list of points into an object-oriented representation.

Parameters:
pts - String containing a list of points.
Returns:
Returns the points as a list of mxPoints.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/0000775000175000017500000000000012176166726023032 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxICanvas2D.html0000664000175000017500000013111712176166720025775 0ustar sylvestresylvestre mxICanvas2D (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Interface mxICanvas2D

All Known Implementing Classes:
mxGraphicsCanvas2D

public interface mxICanvas2D

Requirements for implementing technologies: - Path rendering (move, line, quad, curve, arc) - Images, flip v/h, aspect, alpha (PNG, JPG, GIF) - Linear gradients (in all four directions) - Transparency, fill and stroke - Rotation, flip v/h - Font rendering - Dash patterns - Clipping by path (not just rectangle) - Alpha gradients (for glass effect) - Encode result as image (PNG, JPG)


Method Summary
 void begin()
          Begins a new path.
 void close()
          Closes the current path.
 void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)
          Draws a bezier curve to the given point.
 void ellipse(double x, double y, double w, double h)
          Next fill or stroke should draw an ellipse.
 void fill()
          Fills the current path.
 void fillAndStroke()
          Fills and paints the outline of the current path.
 void image(double x, double y, double w, double h, String src, boolean aspect, boolean flipH, boolean flipV)
          Draws the given image.
 void lineTo(double x, double y)
          Draws a line to the given path.
 void moveTo(double x, double y)
          Moves to the given path.
 void quadTo(double x1, double y1, double x2, double y2)
          Draws a quadratic curve to the given point.
 void rect(double x, double y, double w, double h)
          Next fill or stroke should draw a rectangle.
 void restore()
          Restores the previous state of the canvas.
 void rotate(double theta, boolean flipH, boolean flipV, double cx, double cy)
          Rotates the canvas by the given angle around the given center.
 void roundrect(double x, double y, double w, double h, double dx, double dy)
          Next fill or stroke should draw a round rectangle.
 void save()
          Saves the current state of the canvas.
 void scale(double value)
          Uniformaly scales the canvas by the given amount.
 void setAlpha(double value)
          Default value 1.
 void setDashed(boolean value)
          Sets the dashed state.
 void setDashPattern(String value)
          Sets the dash pattern.
 void setFillColor(String value)
          Default value mxConstants.NONE.
 void setFontBackgroundColor(String value)
          Default value "#000000".
 void setFontBorderColor(String value)
          Default value "#000000".
 void setFontColor(String value)
          Default value "#000000".
 void setFontFamily(String value)
          Default value mxConstants.DEFAULT_FONTFAMILY.
 void setFontSize(double value)
          Default value mxConstants.DEFAULT_FONTSIZE.
 void setFontStyle(int value)
          Default value 0.
 void setGradient(String color1, String color2, double x, double y, double w, double h, String direction, double alpha1, double alpha2)
          Prepares the canvas to draw a gradient.
 void setLineCap(String value)
          Sets the linecap.
 void setLineJoin(String value)
          Sets the linejoin.
 void setMiterLimit(double value)
          Sets the miterlimit.
 void setShadow(boolean enabled)
          Enables or disables the painting of shadows.
 void setShadowAlpha(double value)
          Default value mxConstants.NONE.
 void setShadowColor(String value)
          Default value mxConstants.NONE.
 void setShadowOffset(double dx, double dy)
          Default value mxConstants.NONE.
 void setStrokeColor(String value)
          Sets the stroke color.
 void setStrokeWidth(double value)
          Sets the stroke width.
 void stroke()
          Paints the outline of the current path.
 void text(double x, double y, double w, double h, String str, String align, String valign, boolean wrap, String format, String overflow, boolean clip, double rotation)
          Draws the given string.
 void translate(double dx, double dy)
          Translates the canvas by the given amount.
 

Method Detail

save

void save()
Saves the current state of the canvas.


restore

void restore()
Restores the previous state of the canvas.


scale

void scale(double value)
Uniformaly scales the canvas by the given amount.

Parameters:
value - The new scale value.

translate

void translate(double dx,
               double dy)
Translates the canvas by the given amount.

Parameters:
dx - X-coordinate of the translation.
dy - Y-coordinate of the translation.

rotate

void rotate(double theta,
            boolean flipH,
            boolean flipV,
            double cx,
            double cy)
Rotates the canvas by the given angle around the given center. This method may add rendering overhead and should be used with care.

Parameters:
theta - Rotation angle in degrees (0 - 360).
flipH - Specifies if drawing should be flipped horizontally.
flipV - Specifies if drawing should be flipped vertically.
cx - X-coordinate of the center point.
cy - Y-coordinate of the center point.

setStrokeWidth

void setStrokeWidth(double value)
Sets the stroke width. This should default to 1 if unset.

Parameters:
value - Width of the stroke. The value should be multiplied by the current scale.

setStrokeColor

void setStrokeColor(String value)
Sets the stroke color. This should default to mxConstants.NONE if unset.

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setDashed

void setDashed(boolean value)
Sets the dashed state. This should default to false if unset.

Parameters:
value - Boolean representing the dashed state.

setDashPattern

void setDashPattern(String value)
Sets the dash pattern. This should default to "3 3" if unset.

Parameters:
value - Space separated list of floats representing the dash pattern. The value should be multiplied by the current scale.

setLineCap

void setLineCap(String value)
Sets the linecap. This should default to "flat" if unset.

Parameters:
value - "flat", "square" or "round".

setLineJoin

void setLineJoin(String value)
Sets the linejoin. This should default to "miter" if unset.

Parameters:
value - "miter", "round" or "bevel".

setMiterLimit

void setMiterLimit(double value)
Sets the miterlimit. This should default to 10 if unset.

Parameters:
value -

setFontSize

void setFontSize(double value)
Default value mxConstants.DEFAULT_FONTSIZE.

Parameters:
value -

setFontColor

void setFontColor(String value)
Default value "#000000".

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setFontFamily

void setFontFamily(String value)
Default value mxConstants.DEFAULT_FONTFAMILY.

Parameters:
value -

setFontStyle

void setFontStyle(int value)
Default value 0. See mxConstants.STYLE_FONTSTYLE.

Parameters:
value -

setFontBackgroundColor

void setFontBackgroundColor(String value)
Default value "#000000".

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setFontBorderColor

void setFontBorderColor(String value)
Default value "#000000".

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setAlpha

void setAlpha(double value)
Default value 1. This method may add rendering overhead and should be used with care.

Parameters:
value -

setFillColor

void setFillColor(String value)
Default value mxConstants.NONE.

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setGradient

void setGradient(String color1,
                 String color2,
                 double x,
                 double y,
                 double w,
                 double h,
                 String direction,
                 double alpha1,
                 double alpha2)
Prepares the canvas to draw a gradient.

Parameters:
color1 -
color2 -
x -
y -
w -
h -
direction - Direction may be null. Use default value mxConstants.DIRECTION_SOUTH.

setShadow

void setShadow(boolean enabled)
Enables or disables the painting of shadows.

Parameters:
enabled - Whether the shadow should be enabled.

setShadowColor

void setShadowColor(String value)
Default value mxConstants.NONE.

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setShadowAlpha

void setShadowAlpha(double value)
Default value mxConstants.NONE.

Parameters:
value - Hex representation of the color or mxConstants.NONE.

setShadowOffset

void setShadowOffset(double dx,
                     double dy)
Default value mxConstants.NONE.

Parameters:
value - Hex representation of the color or mxConstants.NONE.

rect

void rect(double x,
          double y,
          double w,
          double h)
Next fill or stroke should draw a rectangle.

Parameters:
x -
y -
w -
h -

roundrect

void roundrect(double x,
               double y,
               double w,
               double h,
               double dx,
               double dy)
Next fill or stroke should draw a round rectangle.

Parameters:
x -
y -
w -
h -
dx -
dy -

ellipse

void ellipse(double x,
             double y,
             double w,
             double h)
Next fill or stroke should draw an ellipse.

Parameters:
x -
y -
w -
h -

image

void image(double x,
           double y,
           double w,
           double h,
           String src,
           boolean aspect,
           boolean flipH,
           boolean flipV)
Draws the given image.

Parameters:
x -
y -
w -
h -
src -
aspect -
flipH -
flipV -

text

void text(double x,
          double y,
          double w,
          double h,
          String str,
          String align,
          String valign,
          boolean wrap,
          String format,
          String overflow,
          boolean clip,
          double rotation)
Draws the given string. Possible values for format are empty string for plain text and html for HTML markup.

Parameters:
x -
y -
w -
h -
str -
align -
valign -
vertical -

begin

void begin()
Begins a new path.


moveTo

void moveTo(double x,
            double y)
Moves to the given path.

Parameters:
x -
y -

lineTo

void lineTo(double x,
            double y)
Draws a line to the given path.

Parameters:
x -
y -

quadTo

void quadTo(double x1,
            double y1,
            double x2,
            double y2)
Draws a quadratic curve to the given point.

Parameters:
x1 -
y1 -
x2 -
y2 -

curveTo

void curveTo(double x1,
             double y1,
             double x2,
             double y2,
             double x3,
             double y3)
Draws a bezier curve to the given point.

Parameters:
x1 -
y1 -
x2 -
y2 -
x3 -
y3 -

close

void close()
Closes the current path.


stroke

void stroke()
Paints the outline of the current path.


fill

void fill()
Fills the current path.


fillAndStroke

void fillAndStroke()
Fills and paints the outline of the current path.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxHtmlCanvas.html0000664000175000017500000007733712176166720026340 0ustar sylvestresylvestre mxHtmlCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxHtmlCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxBasicCanvas
      extended by com.mxgraph.canvas.mxHtmlCanvas
All Implemented Interfaces:
mxICanvas

public class mxHtmlCanvas
extends mxBasicCanvas

An implementation of a canvas that uses HTML for painting.


Field Summary
protected  Document document
          Holds the HTML document that represents the canvas.
 
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate
 
Constructor Summary
mxHtmlCanvas()
          Constructs a new HTML canvas for the specified dimension and scale.
mxHtmlCanvas(Document document)
          Constructs a new HTML canvas for the specified bounds, scale and background color.
 
Method Summary
 void appendHtmlElement(Element node)
           
 Object drawCell(mxCellState state)
          Draws the given cell.
 Object drawLabel(String label, mxCellState state, boolean html)
          Draws the given label.
 void drawLine(List<mxPoint> pts, Map<String,Object> style)
          Draws the given lines as segments between all points of the given list of mxPoints.
protected  void drawSegment(int x0, int y0, int x1, int y1, String strokeColor, int strokeWidth)
          Draws the specified segment of a line.
 Element drawShape(int x, int y, int w, int h, Map<String,Object> style)
          Draws the shape specified with the STYLE_SHAPE key in the given style.
 Element drawText(String text, int x, int y, int w, int h, Map<String,Object> style)
          Draws the specified text either using drawHtmlString or using drawString.
 Document getDocument()
          Returns a reference to the document that represents the canvas.
 void setDocument(Document document)
           
 
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected Document document
Holds the HTML document that represents the canvas.

Constructor Detail

mxHtmlCanvas

public mxHtmlCanvas()
Constructs a new HTML canvas for the specified dimension and scale.


mxHtmlCanvas

public mxHtmlCanvas(Document document)
Constructs a new HTML canvas for the specified bounds, scale and background color.

Method Detail

appendHtmlElement

public void appendHtmlElement(Element node)

setDocument

public void setDocument(Document document)

getDocument

public Document getDocument()
Returns a reference to the document that represents the canvas.

Returns:
Returns the document.

drawCell

public Object drawCell(mxCellState state)
Description copied from interface: mxICanvas
Draws the given cell.

Parameters:
state - State of the cell to be painted.
Returns:
Object that represents the cell.

drawLabel

public Object drawLabel(String label,
                        mxCellState state,
                        boolean html)
Description copied from interface: mxICanvas
Draws the given label.

Parameters:
label - String that represents the label.
state - State of the cell whose label is to be painted.
html - Specifies if the label contains HTML markup.
Returns:
Object that represents the label.

drawShape

public Element drawShape(int x,
                         int y,
                         int w,
                         int h,
                         Map<String,Object> style)
Draws the shape specified with the STYLE_SHAPE key in the given style.

Parameters:
x - X-coordinate of the shape.
y - Y-coordinate of the shape.
w - Width of the shape.
h - Height of the shape.
style - Style of the the shape.

drawLine

public void drawLine(List<mxPoint> pts,
                     Map<String,Object> style)
Draws the given lines as segments between all points of the given list of mxPoints.

Parameters:
pts - List of points that define the line.
style - Style to be used for painting the line.

drawSegment

protected void drawSegment(int x0,
                           int y0,
                           int x1,
                           int y1,
                           String strokeColor,
                           int strokeWidth)
Draws the specified segment of a line.

Parameters:
x0 - X-coordinate of the start point.
y0 - Y-coordinate of the start point.
x1 - X-coordinate of the end point.
y1 - Y-coordinate of the end point.
strokeColor - Color of the stroke to be painted.
strokeWidth - Width of the stroke to be painted.

drawText

public Element drawText(String text,
                        int x,
                        int y,
                        int w,
                        int h,
                        Map<String,Object> style)
Draws the specified text either using drawHtmlString or using drawString.

Parameters:
text - Text to be painted.
x - X-coordinate of the text.
y - Y-coordinate of the text.
w - Width of the text.
h - Height of the text.
style - Style to be used for painting the text.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxVmlCanvas.html0000664000175000017500000007413012176166720026156 0ustar sylvestresylvestre mxVmlCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxVmlCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxBasicCanvas
      extended by com.mxgraph.canvas.mxVmlCanvas
All Implemented Interfaces:
mxICanvas

public class mxVmlCanvas
extends mxBasicCanvas

An implementation of a canvas that uses VML for painting.


Field Summary
protected  Document document
          Holds the HTML document that represents the canvas.
 
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate
 
Constructor Summary
mxVmlCanvas()
          Constructs a new VML canvas for the specified dimension and scale.
mxVmlCanvas(Document document)
          Constructs a new VML canvas for the specified bounds, scale and background color.
 
Method Summary
 void appendVmlElement(Element node)
           
 Object drawCell(mxCellState state)
          Draws the given cell.
 Object drawLabel(String label, mxCellState state, boolean html)
          Draws the given label.
 Element drawLine(List<mxPoint> pts, Map<String,Object> style)
          Draws the given lines as segments between all points of the given list of mxPoints.
 Element drawShape(int x, int y, int w, int h, Map<String,Object> style)
          Draws the shape specified with the STYLE_SHAPE key in the given style.
 Element drawText(String text, int x, int y, int w, int h, Map<String,Object> style)
          Draws the specified text either using drawHtmlString or using drawString.
 Document getDocument()
          Returns a reference to the document that represents the canvas.
 void setDocument(Document document)
           
 
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected Document document
Holds the HTML document that represents the canvas.

Constructor Detail

mxVmlCanvas

public mxVmlCanvas()
Constructs a new VML canvas for the specified dimension and scale.


mxVmlCanvas

public mxVmlCanvas(Document document)
Constructs a new VML canvas for the specified bounds, scale and background color.

Method Detail

setDocument

public void setDocument(Document document)

getDocument

public Document getDocument()
Returns a reference to the document that represents the canvas.

Returns:
Returns the document.

appendVmlElement

public void appendVmlElement(Element node)

drawCell

public Object drawCell(mxCellState state)
Description copied from interface: mxICanvas
Draws the given cell.

Parameters:
state - State of the cell to be painted.
Returns:
Object that represents the cell.

drawLabel

public Object drawLabel(String label,
                        mxCellState state,
                        boolean html)
Description copied from interface: mxICanvas
Draws the given label.

Parameters:
label - String that represents the label.
state - State of the cell whose label is to be painted.
html - Specifies if the label contains HTML markup.
Returns:
Object that represents the label.

drawShape

public Element drawShape(int x,
                         int y,
                         int w,
                         int h,
                         Map<String,Object> style)
Draws the shape specified with the STYLE_SHAPE key in the given style.

Parameters:
x - X-coordinate of the shape.
y - Y-coordinate of the shape.
w - Width of the shape.
h - Height of the shape.
style - Style of the the shape.

drawLine

public Element drawLine(List<mxPoint> pts,
                        Map<String,Object> style)
Draws the given lines as segments between all points of the given list of mxPoints.

Parameters:
pts - List of points that define the line.
style - Style to be used for painting the line.

drawText

public Element drawText(String text,
                        int x,
                        int y,
                        int w,
                        int h,
                        Map<String,Object> style)
Draws the specified text either using drawHtmlString or using drawString.

Parameters:
text - Text to be painted.
x - X-coordinate of the text.
y - Y-coordinate of the text.
w - Width of the text.
h - Height of the text.
style - Style to be used for painting the text.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxICanvas.html0000664000175000017500000003363612176166720025616 0ustar sylvestresylvestre mxICanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Interface mxICanvas

All Known Implementing Classes:
mxBasicCanvas, mxGraphics2DCanvas, mxHtmlCanvas, mxImageCanvas, mxInteractiveCanvas, mxSvgCanvas, mxVmlCanvas

public interface mxICanvas

Defines the requirements for a canvas that paints the vertices and edges of a graph.


Method Summary
 Object drawCell(mxCellState state)
          Draws the given cell.
 Object drawLabel(String text, mxCellState state, boolean html)
          Draws the given label.
 double getScale()
          Returns the scale.
 Point getTranslate()
          Returns the current translation.
 void setScale(double scale)
          Sets the scale for the following drawing requests.
 void setTranslate(int x, int y)
          Sets the translation for the following drawing requests.
 

Method Detail

setTranslate

void setTranslate(int x,
                  int y)
Sets the translation for the following drawing requests.


getTranslate

Point getTranslate()
Returns the current translation.

Returns:
Returns the current translation.

setScale

void setScale(double scale)
Sets the scale for the following drawing requests.


getScale

double getScale()
Returns the scale.


drawCell

Object drawCell(mxCellState state)
Draws the given cell.

Parameters:
state - State of the cell to be painted.
Returns:
Object that represents the cell.

drawLabel

Object drawLabel(String text,
                 mxCellState state,
                 boolean html)
Draws the given label.

Parameters:
text - String that represents the label.
state - State of the cell whose label is to be painted.
html - Specifies if the label contains HTML markup.
Returns:
Object that represents the label.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxImageCanvas.html0000664000175000017500000006442012176166720026443 0ustar sylvestresylvestre mxImageCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxImageCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxImageCanvas
All Implemented Interfaces:
mxICanvas

public class mxImageCanvas
extends Object
implements mxICanvas

An implementation of a canvas that uses Graphics2D for painting. To use an image canvas for an existing graphics canvas and create an image the following code is used: BufferedImage image = mxCellRenderer.createBufferedImage(graph, cells, 1, Color.white, true, null, canvas);


Field Summary
protected  mxGraphics2DCanvas canvas
           
protected  BufferedImage image
           
protected  Graphics2D previousGraphics
           
 
Constructor Summary
mxImageCanvas(mxGraphics2DCanvas canvas, int width, int height, Color background, boolean antiAlias)
           
 
Method Summary
 BufferedImage destroy()
           
 Object drawCell(mxCellState state)
          Draws the given cell.
 Object drawLabel(String label, mxCellState state, boolean html)
          Draws the given label.
 mxGraphics2DCanvas getGraphicsCanvas()
           
 BufferedImage getImage()
           
 double getScale()
          Returns the scale.
 Point getTranslate()
          Returns the current translation.
 void setScale(double scale)
          Sets the scale for the following drawing requests.
 void setTranslate(int dx, int dy)
          Sets the translation for the following drawing requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

protected mxGraphics2DCanvas canvas

previousGraphics

protected Graphics2D previousGraphics

image

protected BufferedImage image
Constructor Detail

mxImageCanvas

public mxImageCanvas(mxGraphics2DCanvas canvas,
                     int width,
                     int height,
                     Color background,
                     boolean antiAlias)
Method Detail

getGraphicsCanvas

public mxGraphics2DCanvas getGraphicsCanvas()

getImage

public BufferedImage getImage()

drawCell

public Object drawCell(mxCellState state)
Description copied from interface: mxICanvas
Draws the given cell.

Specified by:
drawCell in interface mxICanvas
Parameters:
state - State of the cell to be painted.
Returns:
Object that represents the cell.

drawLabel

public Object drawLabel(String label,
                        mxCellState state,
                        boolean html)
Description copied from interface: mxICanvas
Draws the given label.

Specified by:
drawLabel in interface mxICanvas
Parameters:
label - String that represents the label.
state - State of the cell whose label is to be painted.
html - Specifies if the label contains HTML markup.
Returns:
Object that represents the label.

getScale

public double getScale()
Description copied from interface: mxICanvas
Returns the scale.

Specified by:
getScale in interface mxICanvas

getTranslate

public Point getTranslate()
Description copied from interface: mxICanvas
Returns the current translation.

Specified by:
getTranslate in interface mxICanvas
Returns:
Returns the current translation.

setScale

public void setScale(double scale)
Description copied from interface: mxICanvas
Sets the scale for the following drawing requests.

Specified by:
setScale in interface mxICanvas

setTranslate

public void setTranslate(int dx,
                         int dy)
Description copied from interface: mxICanvas
Sets the translation for the following drawing requests.

Specified by:
setTranslate in interface mxICanvas

destroy

public BufferedImage destroy()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/0000775000175000017500000000000012176166726024731 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxICanvas2D.html0000664000175000017500000003153512176166726027705 0ustar sylvestresylvestre Uses of Interface com.mxgraph.canvas.mxICanvas2D (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.canvas.mxICanvas2D

Packages that use mxICanvas2D
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
 

Uses of mxICanvas2D in com.mxgraph.canvas
 

Classes in com.mxgraph.canvas that implement mxICanvas2D
 class mxGraphicsCanvas2D
          Used for exporting images.
 

Uses of mxICanvas2D in com.mxgraph.reader
 

Fields in com.mxgraph.reader declared as mxICanvas2D
protected  mxICanvas2D mxDomOutputParser.canvas
           
protected  mxICanvas2D mxSaxOutputHandler.canvas
           
 

Methods in com.mxgraph.reader that return mxICanvas2D
 mxICanvas2D mxSaxOutputHandler.getCanvas()
          Returns the canvas for rendering.
 

Methods in com.mxgraph.reader with parameters of type mxICanvas2D
 void mxSaxOutputHandler.setCanvas(mxICanvas2D value)
          Sets the canvas for rendering.
 

Constructors in com.mxgraph.reader with parameters of type mxICanvas2D
mxDomOutputParser(mxICanvas2D canvas)
           
mxSaxOutputHandler(mxICanvas2D canvas)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxHtmlCanvas.html0000664000175000017500000001364212176166726030232 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxHtmlCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxHtmlCanvas

No usage of com.mxgraph.canvas.mxHtmlCanvas


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxVmlCanvas.html0000664000175000017500000001363012176166726030061 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxVmlCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxVmlCanvas

No usage of com.mxgraph.canvas.mxVmlCanvas


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxICanvas.html0000664000175000017500000006273012176166726027520 0ustar sylvestresylvestre Uses of Interface com.mxgraph.canvas.mxICanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.canvas.mxICanvas

Packages that use mxICanvas
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxICanvas in com.mxgraph.canvas
 

Classes in com.mxgraph.canvas that implement mxICanvas
 class mxBasicCanvas
           
 class mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
 class mxHtmlCanvas
          An implementation of a canvas that uses HTML for painting.
 class mxImageCanvas
          An implementation of a canvas that uses Graphics2D for painting.
 class mxSvgCanvas
          An implementation of a canvas that uses SVG for painting.
 class mxVmlCanvas
          An implementation of a canvas that uses VML for painting.
 

Uses of mxICanvas in com.mxgraph.reader
 

Fields in com.mxgraph.reader declared as mxICanvas
protected  mxICanvas mxGraphViewReader.canvas
          Holds the canvas to be used for rendering the graph.
 

Methods in com.mxgraph.reader that return mxICanvas
 mxICanvas mxGraphViewImageReader.createCanvas(Map<String,Object> attrs)
           
abstract  mxICanvas mxGraphViewReader.createCanvas(Map<String,Object> attrs)
          Returns the canvas to be used for rendering.
 mxICanvas mxGraphViewReader.getCanvas()
          Returns the canvas that is used for rendering the graph.
 

Uses of mxICanvas in com.mxgraph.swing
 

Methods in com.mxgraph.swing with parameters of type mxICanvas
protected  void mxGraphComponent.mxGraphControl.cellDrawn(mxICanvas canvas, mxCellState state)
           
 void mxGraphComponent.mxGraphControl.drawCell(mxICanvas canvas, Object cell)
          Draws the given cell onto the specified canvas.
 

Uses of mxICanvas in com.mxgraph.swing.view
 

Classes in com.mxgraph.swing.view that implement mxICanvas
 class mxInteractiveCanvas
           
 

Uses of mxICanvas in com.mxgraph.util
 

Methods in com.mxgraph.util that return mxICanvas
abstract  mxICanvas mxCellRenderer.CanvasFactory.createCanvas(int width, int height)
          Separates the creation of the canvas from its initialization, when the size of the required graphics buffer / document / container is known.
static mxICanvas mxCellRenderer.drawCells(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)
          Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
 

Uses of mxICanvas in com.mxgraph.view
 

Methods in com.mxgraph.view with parameters of type mxICanvas
protected  void mxGraph.cellDrawn(mxICanvas canvas, mxCellState state, Object element, Object labelElement)
          Called when a cell has been painted as the specified object, typically a DOM node that represents the given cell graphically in a document.
 void mxGraph.drawCell(mxICanvas canvas, Object cell)
          Draws the given cell and its descendants onto the specified canvas.
 void mxGraph.drawGraph(mxICanvas canvas)
          Draws the graph onto the given canvas.
 void mxGraph.drawState(mxICanvas canvas, mxCellState state, boolean drawLabel)
          Draws the cell state with the given label onto the canvas.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxImageCanvas.html0000664000175000017500000001365412176166726030353 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxImageCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxImageCanvas

No usage of com.mxgraph.canvas.mxImageCanvas


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxSvgCanvas.html0000664000175000017500000001363012176166726030062 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxSvgCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxSvgCanvas

No usage of com.mxgraph.canvas.mxSvgCanvas


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxGraphicsCanvas2D.CanvasState.html0000664000175000017500000002714612176166726033473 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState

Packages that use mxGraphicsCanvas2D.CanvasState
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
 

Uses of mxGraphicsCanvas2D.CanvasState in com.mxgraph.canvas
 

Fields in com.mxgraph.canvas declared as mxGraphicsCanvas2D.CanvasState
protected  mxGraphicsCanvas2D.CanvasState mxGraphicsCanvas2D.state
          Represents the current state of the canvas.
 

Fields in com.mxgraph.canvas with type parameters of type mxGraphicsCanvas2D.CanvasState
protected  Stack<mxGraphicsCanvas2D.CanvasState> mxGraphicsCanvas2D.stack
          Stack of states for save/restore.
 

Methods in com.mxgraph.canvas that return mxGraphicsCanvas2D.CanvasState
protected  mxGraphicsCanvas2D.CanvasState mxGraphicsCanvas2D.cloneState(mxGraphicsCanvas2D.CanvasState state)
          Returns a clone of thec given state.
 

Methods in com.mxgraph.canvas with parameters of type mxGraphicsCanvas2D.CanvasState
protected  mxGraphicsCanvas2D.CanvasState mxGraphicsCanvas2D.cloneState(mxGraphicsCanvas2D.CanvasState state)
          Returns a clone of thec given state.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxGraphicsCanvas2D.html0000664000175000017500000002653212176166726031256 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxGraphicsCanvas2D (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxGraphicsCanvas2D

Packages that use mxGraphicsCanvas2D
com.mxgraph.shape   
 

Uses of mxGraphicsCanvas2D in com.mxgraph.shape
 

Methods in com.mxgraph.shape that return mxGraphicsCanvas2D
protected  mxGraphicsCanvas2D mxStencil.createCanvas(mxGraphics2DCanvas gc)
          Creates the canvas for rendering the stencil.
 

Methods in com.mxgraph.shape with parameters of type mxGraphicsCanvas2D
protected  void mxStencil.drawElement(mxGraphicsCanvas2D canvas, mxCellState state, Element node, mxRectangle aspect)
          Drawsthe given element.
protected  void mxStencil.drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled)
          Draws the shadow.
 boolean mxStencil.drawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, boolean background)
          Draws this stencil inside the given bounds.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxBasicCanvas.html0000664000175000017500000002504412176166726030346 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxBasicCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxBasicCanvas

Packages that use mxBasicCanvas
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
 

Uses of mxBasicCanvas in com.mxgraph.canvas
 

Subclasses of mxBasicCanvas in com.mxgraph.canvas
 class mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
 class mxHtmlCanvas
          An implementation of a canvas that uses HTML for painting.
 class mxSvgCanvas
          An implementation of a canvas that uses SVG for painting.
 class mxVmlCanvas
          An implementation of a canvas that uses VML for painting.
 

Uses of mxBasicCanvas in com.mxgraph.swing.view
 

Subclasses of mxBasicCanvas in com.mxgraph.swing.view
 class mxInteractiveCanvas
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/class-use/mxGraphics2DCanvas.html0000664000175000017500000020044612176166726031254 0ustar sylvestresylvestre Uses of Class com.mxgraph.canvas.mxGraphics2DCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.canvas.mxGraphics2DCanvas

Packages that use mxGraphics2DCanvas
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
 

Uses of mxGraphics2DCanvas in com.mxgraph.canvas
 

Fields in com.mxgraph.canvas declared as mxGraphics2DCanvas
protected  mxGraphics2DCanvas mxImageCanvas.canvas
           
 

Methods in com.mxgraph.canvas that return mxGraphics2DCanvas
 mxGraphics2DCanvas mxImageCanvas.getGraphicsCanvas()
           
 

Constructors in com.mxgraph.canvas with parameters of type mxGraphics2DCanvas
mxImageCanvas(mxGraphics2DCanvas canvas, int width, int height, Color background, boolean antiAlias)
           
 

Uses of mxGraphics2DCanvas in com.mxgraph.reader
 

Methods in com.mxgraph.reader that return mxGraphics2DCanvas
protected  mxGraphics2DCanvas mxGraphViewImageReader.createGraphicsCanvas()
          Hook that creates the graphics canvas.
 

Uses of mxGraphics2DCanvas in com.mxgraph.shape
 

Methods in com.mxgraph.shape with parameters of type mxGraphics2DCanvas
protected  boolean mxBasicShape.configureGraphics(mxGraphics2DCanvas canvas, mxCellState state, boolean background)
          Configures the graphics object ready to paint.
protected  mxGraphicsCanvas2D mxStencil.createCanvas(mxGraphics2DCanvas gc)
          Creates the canvas for rendering the stencil.
 mxPoint[] mxLineShape.createPoints(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxEllipseShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxActorShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxBasicShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxRhombusShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxHexagonShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxCloudShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxTriangleShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxArrowShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
static void mxLabelShape.drawGlassEffect(mxGraphics2DCanvas canvas, mxCellState state)
          Draws the glass effect
 Color mxBasicShape.getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxImageShape.getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxLabelShape.getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  mxRectangle mxBasicShape.getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  mxRectangle mxSwimlaneShape.getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 Rectangle mxImageShape.getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 Rectangle mxLabelShape.getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 String mxImageShape.getImageForStyle(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxBasicShape.getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxImageShape.getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxLabelShape.getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxBasicShape.hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxImageShape.hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxLabelShape.hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxBasicShape.hasShadow(mxGraphics2DCanvas canvas, mxCellState state)
           
 mxPoint mxConnectorShape.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, boolean source)
          Draws the marker for the given edge.
 mxPoint mxIMarker.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, String type, mxPoint pe, double nx, double ny, double size, boolean source)
           
 void mxStencilShape.paintNode(mxGraphics2DCanvas canvas, mxCellState state, mxStencilShape.svgShape shape, double widthRatio, double heightRatio)
           
protected  void mxConnectorShape.paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
           
protected  void mxCurveShape.paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
           
 void mxCylinderShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
          Draws a cylinder for the given parameters.
 void mxBasicShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxStencilShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxImageShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxLabelShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxSwimlaneShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxDoubleEllipseShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxStencil.paintShape(mxGraphics2DCanvas gc, mxCellState state)
          Paints the stencil for the given state.
 void mxRectangleShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxLineShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxConnectorShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxCurveShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxIShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxITextShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void mxHtmlTextShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void mxDefaultTextShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void mxCurveLabelShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
protected  void mxDefaultTextShape.postProcessLine(String text, String line, FontMetrics fm, mxGraphics2DCanvas canvas, int x, int y)
          Hook to add functionality after a line has been drawn
 

Uses of mxGraphics2DCanvas in com.mxgraph.swing
 

Methods in com.mxgraph.swing with parameters of type mxGraphics2DCanvas
protected  boolean mxGraphComponent.mxGraphControl.hitClip(mxGraphics2DCanvas canvas, mxCellState state)
           
 

Uses of mxGraphics2DCanvas in com.mxgraph.swing.handler
 

Methods in com.mxgraph.swing.handler with parameters of type mxGraphics2DCanvas
protected  void mxConnectPreview.paintPreview(mxGraphics2DCanvas canvas)
          Draws the preview using the graphics canvas.
 

Uses of mxGraphics2DCanvas in com.mxgraph.swing.view
 

Subclasses of mxGraphics2DCanvas in com.mxgraph.swing.view
 class mxInteractiveCanvas
           
 

Methods in com.mxgraph.swing.view with parameters of type mxGraphics2DCanvas
protected  void mxCellStatePreview.paintPreview(mxGraphics2DCanvas canvas)
          Draws the preview using the graphics canvas.
protected  void mxCellStatePreview.paintPreviewState(mxGraphics2DCanvas canvas, mxCellState state)
          Draws the preview using the graphics canvas.
 

Uses of mxGraphics2DCanvas in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxGraphics2DCanvas
static BufferedImage mxCellRenderer.createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/package-frame.html0000664000175000017500000000365712176166726026416 0ustar sylvestresylvestre com.mxgraph.canvas (JGraph X 2.1.0.7 API Specification) com.mxgraph.canvas
Interfaces 
mxICanvas
mxICanvas2D
Classes 
mxBasicCanvas
mxGraphics2DCanvas
mxGraphicsCanvas2D
mxHtmlCanvas
mxImageCanvas
mxSvgCanvas
mxVmlCanvas
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxSvgCanvas.html0000664000175000017500000014266412176166720026167 0ustar sylvestresylvestre mxSvgCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxSvgCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxBasicCanvas
      extended by com.mxgraph.canvas.mxSvgCanvas
All Implemented Interfaces:
mxICanvas

public class mxSvgCanvas
extends mxBasicCanvas

An implementation of a canvas that uses SVG for painting. This canvas ignores the STYLE_LABEL_BACKGROUNDCOLOR and STYLE_LABEL_BORDERCOLOR styles due to limitations of SVG.


Field Summary
protected  Element defs
           
protected  Document document
          Holds the HTML document that represents the canvas.
protected  boolean embedded
          Specifies if images should be embedded as base64 encoded strings.
 
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate
 
Constructor Summary
mxSvgCanvas()
          Constructs a new SVG canvas for the specified dimension and scale.
mxSvgCanvas(Document document)
          Constructs a new SVG canvas for the specified bounds, scale and background color.
 
Method Summary
 void appendSvgElement(Element node)
           
protected  String createDataUrl(String src)
           
protected  Element createGradientElement(String start, String end, String direction)
           
protected  Element createImageElement(double x, double y, double w, double h, String src, boolean aspect, boolean flipH, boolean flipV, boolean embedded)
           
 Object drawCell(mxCellState state)
          Draws the given cell.
 Object drawLabel(String label, mxCellState state, boolean html)
          Draws the given label.
 Element drawLine(List<mxPoint> pts, Map<String,Object> style)
          Draws the given lines as segments between all points of the given list of mxPoints.
 mxPoint drawMarker(Element parent, Object type, mxPoint p0, mxPoint pe, float size, float strokeWidth, String color)
          Draws the specified marker as a child path in the given parent.
 Element drawShape(int x, int y, int w, int h, Map<String,Object> style)
          Draws the shape specified with the STYLE_SHAPE key in the given style.
 Object drawText(String text, int x, int y, int w, int h, Map<String,Object> style)
          Draws the specified text either using drawHtmlString or using drawString.
protected  Element getDefsElement()
           
 Document getDocument()
          Returns a reference to the document that represents the canvas.
protected  Element getEmbeddedImageElement(String src)
           
 Element getGlassGradientElement()
           
 Element getGradientElement(String start, String end, String direction)
           
 String getGradientId(String start, String end, String direction)
           
protected  InputStream getResource(String src)
           
 boolean isEmbedded()
           
protected  boolean isImageResource(String src)
          Returns true if the given string ends with .png, .jpg or .gif.
 void setDocument(Document document)
           
 void setEmbedded(boolean value)
           
 
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected Document document
Holds the HTML document that represents the canvas.


defs

protected Element defs

embedded

protected boolean embedded
Specifies if images should be embedded as base64 encoded strings. Default is false.

Constructor Detail

mxSvgCanvas

public mxSvgCanvas()
Constructs a new SVG canvas for the specified dimension and scale.


mxSvgCanvas

public mxSvgCanvas(Document document)
Constructs a new SVG canvas for the specified bounds, scale and background color.

Method Detail

appendSvgElement

public void appendSvgElement(Element node)

getDefsElement

protected Element getDefsElement()

getGradientElement

public Element getGradientElement(String start,
                                  String end,
                                  String direction)

getGlassGradientElement

public Element getGlassGradientElement()

createGradientElement

protected Element createGradientElement(String start,
                                        String end,
                                        String direction)

getGradientId

public String getGradientId(String start,
                            String end,
                            String direction)

isImageResource

protected boolean isImageResource(String src)
Returns true if the given string ends with .png, .jpg or .gif.


getResource

protected InputStream getResource(String src)

createDataUrl

protected String createDataUrl(String src)
                        throws IOException
Throws:
IOException

getEmbeddedImageElement

protected Element getEmbeddedImageElement(String src)

createImageElement

protected Element createImageElement(double x,
                                     double y,
                                     double w,
                                     double h,
                                     String src,
                                     boolean aspect,
                                     boolean flipH,
                                     boolean flipV,
                                     boolean embedded)

setDocument

public void setDocument(Document document)

getDocument

public Document getDocument()
Returns a reference to the document that represents the canvas.

Returns:
Returns the document.

setEmbedded

public void setEmbedded(boolean value)

isEmbedded

public boolean isEmbedded()

drawCell

public Object drawCell(mxCellState state)
Description copied from interface: mxICanvas
Draws the given cell.

Parameters:
state - State of the cell to be painted.
Returns:
Object that represents the cell.

drawLabel

public Object drawLabel(String label,
                        mxCellState state,
                        boolean html)
Description copied from interface: mxICanvas
Draws the given label.

Parameters:
label - String that represents the label.
state - State of the cell whose label is to be painted.
html - Specifies if the label contains HTML markup.
Returns:
Object that represents the label.

drawShape

public Element drawShape(int x,
                         int y,
                         int w,
                         int h,
                         Map<String,Object> style)
Draws the shape specified with the STYLE_SHAPE key in the given style.

Parameters:
x - X-coordinate of the shape.
y - Y-coordinate of the shape.
w - Width of the shape.
h - Height of the shape.
style - Style of the the shape.

drawLine

public Element drawLine(List<mxPoint> pts,
                        Map<String,Object> style)
Draws the given lines as segments between all points of the given list of mxPoints.

Parameters:
pts - List of points that define the line.
style - Style to be used for painting the line.

drawMarker

public mxPoint drawMarker(Element parent,
                          Object type,
                          mxPoint p0,
                          mxPoint pe,
                          float size,
                          float strokeWidth,
                          String color)
Draws the specified marker as a child path in the given parent.


drawText

public Object drawText(String text,
                       int x,
                       int y,
                       int w,
                       int h,
                       Map<String,Object> style)
Draws the specified text either using drawHtmlString or using drawString.

Parameters:
text - Text to be painted.
x - X-coordinate of the text.
y - Y-coordinate of the text.
w - Width of the text.
h - Height of the text.
style - Style to be used for painting the text.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/package-summary.html0000664000175000017500000002250512176166726027012 0ustar sylvestresylvestre com.mxgraph.canvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.canvas

This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML.

See:
          Description

Interface Summary
mxICanvas Defines the requirements for a canvas that paints the vertices and edges of a graph.
mxICanvas2D Requirements for implementing technologies: - Path rendering (move, line, quad, curve, arc) - Images, flip v/h, aspect, alpha (PNG, JPG, GIF) - Linear gradients (in all four directions) - Transparency, fill and stroke - Rotation, flip v/h - Font rendering - Dash patterns - Clipping by path (not just rectangle) - Alpha gradients (for glass effect) - Encode result as image (PNG, JPG)
 

Class Summary
mxBasicCanvas  
mxGraphics2DCanvas An implementation of a canvas that uses Graphics2D for painting.
mxGraphicsCanvas2D Used for exporting images.
mxHtmlCanvas An implementation of a canvas that uses HTML for painting.
mxImageCanvas An implementation of a canvas that uses Graphics2D for painting.
mxSvgCanvas An implementation of a canvas that uses SVG for painting.
mxVmlCanvas An implementation of a canvas that uses VML for painting.
 

Package com.mxgraph.canvas Description

This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/package-use.html0000664000175000017500000004305612176166726026115 0ustar sylvestresylvestre Uses of Package com.mxgraph.canvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.canvas

Packages that use com.mxgraph.canvas
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Classes in com.mxgraph.canvas used by com.mxgraph.canvas
mxBasicCanvas
           
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
mxGraphicsCanvas2D.CanvasState
           
mxICanvas
          Defines the requirements for a canvas that paints the vertices and edges of a graph.
mxICanvas2D
          Requirements for implementing technologies: - Path rendering (move, line, quad, curve, arc) - Images, flip v/h, aspect, alpha (PNG, JPG, GIF) - Linear gradients (in all four directions) - Transparency, fill and stroke - Rotation, flip v/h - Font rendering - Dash patterns - Clipping by path (not just rectangle) - Alpha gradients (for glass effect) - Encode result as image (PNG, JPG)
 

Classes in com.mxgraph.canvas used by com.mxgraph.reader
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
mxICanvas
          Defines the requirements for a canvas that paints the vertices and edges of a graph.
mxICanvas2D
          Requirements for implementing technologies: - Path rendering (move, line, quad, curve, arc) - Images, flip v/h, aspect, alpha (PNG, JPG, GIF) - Linear gradients (in all four directions) - Transparency, fill and stroke - Rotation, flip v/h - Font rendering - Dash patterns - Clipping by path (not just rectangle) - Alpha gradients (for glass effect) - Encode result as image (PNG, JPG)
 

Classes in com.mxgraph.canvas used by com.mxgraph.shape
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
mxGraphicsCanvas2D
          Used for exporting images.
 

Classes in com.mxgraph.canvas used by com.mxgraph.swing
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
mxICanvas
          Defines the requirements for a canvas that paints the vertices and edges of a graph.
 

Classes in com.mxgraph.canvas used by com.mxgraph.swing.handler
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
 

Classes in com.mxgraph.canvas used by com.mxgraph.swing.view
mxBasicCanvas
           
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
mxICanvas
          Defines the requirements for a canvas that paints the vertices and edges of a graph.
 

Classes in com.mxgraph.canvas used by com.mxgraph.util
mxGraphics2DCanvas
          An implementation of a canvas that uses Graphics2D for painting.
mxICanvas
          Defines the requirements for a canvas that paints the vertices and edges of a graph.
 

Classes in com.mxgraph.canvas used by com.mxgraph.view
mxICanvas
          Defines the requirements for a canvas that paints the vertices and edges of a graph.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html0000664000175000017500000011020212176166720031550 0ustar sylvestresylvestre mxGraphicsCanvas2D.CanvasState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxGraphicsCanvas2D.CanvasState

java.lang.Object
  extended by com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState
All Implemented Interfaces:
Cloneable
Enclosing class:
mxGraphicsCanvas2D

protected class mxGraphicsCanvas2D.CanvasState
extends Object
implements Cloneable


Field Summary
protected  double alpha
           
protected  boolean dashed
           
protected  float[] dashPattern
           
protected  double dx
           
protected  double dy
           
protected  Color fillColor
           
protected  String fillColorValue
           
protected  boolean flipH
           
protected  boolean flipV
           
protected  Color fontBackgroundColor
           
protected  String fontBackgroundColorValue
           
protected  Color fontBorderColor
           
protected  String fontBorderColorValue
           
protected  Color fontColor
           
protected  String fontColorValue
           
protected  String fontFamily
           
protected  double fontSize
           
protected  int fontStyle
           
protected  Graphics2D g
          Stores the actual state.
protected  Paint gradientPaint
           
protected  String lineCap
           
protected  String lineJoin
           
protected  double miterLimit
           
protected  double rotationCx
           
protected  double rotationCy
           
protected  double scale
           
protected  boolean shadow
           
protected  double shadowAlpha
           
protected  Color shadowColor
           
protected  String shadowColorValue
           
protected  double shadowOffsetX
           
protected  double shadowOffsetY
           
protected  Color strokeColor
           
protected  String strokeColorValue
           
protected  double strokeWidth
           
protected  double theta
           
 
Constructor Summary
protected mxGraphicsCanvas2D.CanvasState()
           
 
Method Summary
 Object clone()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alpha

protected double alpha

scale

protected double scale

dx

protected double dx

dy

protected double dy

theta

protected double theta

rotationCx

protected double rotationCx

rotationCy

protected double rotationCy

flipV

protected boolean flipV

flipH

protected boolean flipH

miterLimit

protected double miterLimit

fontStyle

protected int fontStyle

fontSize

protected double fontSize

fontFamily

protected String fontFamily

fontColorValue

protected String fontColorValue

fontColor

protected Color fontColor

fontBackgroundColorValue

protected String fontBackgroundColorValue

fontBackgroundColor

protected Color fontBackgroundColor

fontBorderColorValue

protected String fontBorderColorValue

fontBorderColor

protected Color fontBorderColor

lineCap

protected String lineCap

lineJoin

protected String lineJoin

strokeWidth

protected double strokeWidth

strokeColorValue

protected String strokeColorValue

strokeColor

protected Color strokeColor

fillColorValue

protected String fillColorValue

fillColor

protected Color fillColor

gradientPaint

protected Paint gradientPaint

dashed

protected boolean dashed

dashPattern

protected float[] dashPattern

shadow

protected boolean shadow

shadowColorValue

protected String shadowColorValue

shadowColor

protected Color shadowColor

shadowAlpha

protected double shadowAlpha

shadowOffsetX

protected double shadowOffsetX

shadowOffsetY

protected double shadowOffsetY

g

protected transient Graphics2D g
Stores the actual state.

Constructor Detail

mxGraphicsCanvas2D.CanvasState

protected mxGraphicsCanvas2D.CanvasState()
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/package-tree.html0000664000175000017500000002041012176166726026245 0ustar sylvestresylvestre com.mxgraph.canvas Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.canvas

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxGraphicsCanvas2D.html0000664000175000017500000034376512176166720027363 0ustar sylvestresylvestre mxGraphicsCanvas2D (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxGraphicsCanvas2D

java.lang.Object
  extended by com.mxgraph.canvas.mxGraphicsCanvas2D
All Implemented Interfaces:
mxICanvas2D

public class mxGraphicsCanvas2D
extends Object
implements mxICanvas2D

Used for exporting images. To render to an image from a given XML string, graph size and background color, the following code is used: BufferedImage image = mxUtils.createBufferedImage(width, height, background); Graphics2D g2 = image.createGraphics(); mxUtils.setAntiAlias(g2, true, true); XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); reader.setContentHandler(new mxSaxOutputHandler(new mxGraphicsCanvas2D(g2))); reader.parse(new InputSource(new StringReader(xml))); Text rendering is available for plain text and HTML markup, the latter with optional word wrapping. CSS support is limited to the following: http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html


Nested Class Summary
protected  class mxGraphicsCanvas2D.CanvasState
           
 
Field Summary
static int COLOR_CACHE_SIZE
          Specifies the size of the cache used to store parsed colors
protected  LinkedHashMap<String,Color> colorCache
          Caches parsed colors.
protected  GeneralPath currentPath
          Holds the current path.
protected  Graphics2D graphics
          Reference to the graphics instance for painting.
static int IMAGE_SCALING
          Specifies the image scaling quality.
protected  int lastCap
          Stroke caching.
protected  boolean lastDashed
          Stroke caching.
protected  Object lastDashPattern
          Stroke caching.
protected  Font lastFont
          Font caching.
protected  String lastFontFamily
          Font caching.
protected  int lastFontSize
          Font caching.
protected  int lastFontStyle
          Font caching.
protected  int lastJoin
          Stroke caching.
protected  float lastMiterLimit
          Stroke caching.
protected  Stroke lastStroke
          Stroke caching.
protected  float lastStrokeWidth
          Stroke caching.
protected  CellRendererPane rendererPane
          Optional renderer pane to be used for HTML label rendering.
protected  Stack<mxGraphicsCanvas2D.CanvasState> stack
          Stack of states for save/restore.
protected  mxGraphicsCanvas2D.CanvasState state
          Represents the current state of the canvas.
protected  boolean textEnabled
          Specifies if text output should be rendered.
 
Constructor Summary
mxGraphicsCanvas2D(Graphics2D g)
          Constructs a new graphics export canvas.
 
Method Summary
 void begin()
          Begins a new path.
protected  mxGraphicsCanvas2D.CanvasState cloneState(mxGraphicsCanvas2D.CanvasState state)
          Returns a clone of thec given state.
 void close()
          Closes the current path.
protected  Font createFont(String family, int style, int size)
          Hook for subclassers to implement font caching.
protected  String createHtmlDocument(String text, String align, String valign, int w, int h, boolean wrap, String overflow, boolean clip)
          Creates a HTML document around the given markup.
protected  Graphics2D createImageGraphics(double x, double y, double w, double h, boolean flipH, boolean flipV)
          Creates a graphic instance for rendering an image.
protected  Graphics2D createTextGraphics(double x, double y, double w, double h, double rotation, boolean clip, String align, String valign)
          Returns a new graphics instance with the correct color and font for text rendering.
 void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)
          Draws a bezier curve to the given point.
protected  void drawImage(Graphics2D graphics, Image image, int x, int y)
           
 void ellipse(double x, double y, double w, double h)
          Next fill or stroke should draw an ellipse.
 void fill()
          Fills the current path.
 void fillAndStroke()
          Fills and paints the outline of the current path.
protected  String getFontName(String family)
          Returns a font name for the given CSS values for font-family.
 Graphics2D getGraphics()
          Returns the graphics instance.
protected  Rectangle getImageBounds(Image img, double x, double y, double w, double h, boolean aspect)
           
protected  Dimension getImageSize(Image image)
          Returns the size for the given image.
protected  Point2D getMargin(String align, String valign)
           
protected  JLabel getTextRenderer()
          Hook to return the renderer for HTML formatted text.
protected  void htmlText(double x, double y, double w, double h, String str, String align, String valign, boolean wrap, String format, String overflow, boolean clip, double rotation)
          Draws the given HTML text.
 void image(double x, double y, double w, double h, String src, boolean aspect, boolean flipH, boolean flipV)
          Draws the given image.
 boolean isTextEnabled()
          Returns true if text should be rendered.
 void lineTo(double x, double y)
          Draws a line to the given path.
protected  Image loadImage(String src)
          Hook for image caching.
 void moveTo(double x, double y)
          Moves to the given path.
protected  void paintCurrentPath(boolean filled, boolean stroked)
           
protected  void paintShadow(boolean filled, boolean stroked)
           
protected  Color parseColor(String hex)
          Helper method that uses mxUtils.parseColor(String).
 void plainText(double x, double y, double w, double h, String str, String align, String valign, boolean wrap, String format, String overflow, boolean clip, double rotation)
          Draws the given text.
 void quadTo(double x1, double y1, double x2, double y2)
          Draws a quadratic curve to the given point.
 void rect(double x, double y, double w, double h)
          Next fill or stroke should draw a rectangle.
 void restore()
          Restores the last canvas state.
 void rotate(double theta, boolean flipH, boolean flipV, double cx, double cy)
          Rotates the canvas by the given angle around the given center.
 void roundrect(double x, double y, double w, double h, double dx, double dy)
          Implements a rounded rectangle using a path.
 void save()
          Saves the current canvas state.
 void scale(double value)
          Uniformaly scales the canvas by the given amount.
protected  Image scaleImage(Image img, int w, int h)
          Uses IMAGE_SCALING to scale the given image.
 void setAlpha(double value)
          Default value 1.
 void setDashed(boolean value)
          Sets the dashed state.
 void setDashPattern(String value)
          Sets the dash pattern.
 void setFillColor(String value)
          Default value mxConstants.NONE.
 void setFontBackgroundColor(String value)
          Default value "#000000".
 void setFontBorderColor(String value)
          Default value "#000000".
 void setFontColor(String value)
          Default value "#000000".
 void setFontFamily(String value)
          Default value mxConstants.DEFAULT_FONTFAMILY.
 void setFontSize(double value)
          Default value mxConstants.DEFAULT_FONTSIZE.
 void setFontStyle(int value)
          Default value 0.
 void setGradient(String color1, String color2, double x, double y, double w, double h, String direction, double alpha1, double alpha2)
          Prepares the canvas to draw a gradient.
 void setGraphics(Graphics2D value)
          Sets the graphics instance.
 void setLineCap(String value)
          Sets the linecap.
 void setLineJoin(String value)
          Sets the linejoin.
 void setMiterLimit(double value)
          Sets the miterlimit.
 void setShadow(boolean value)
          Enables or disables the painting of shadows.
 void setShadowAlpha(double value)
          Default value mxConstants.NONE.
 void setShadowColor(String value)
          Default value mxConstants.NONE.
 void setShadowOffset(double dx, double dy)
          Default value mxConstants.NONE.
 void setStrokeColor(String value)
          Caches color conversion as it is expensive.
 void setStrokeWidth(double value)
          Sets the stroke width.
 void setTextEnabled(boolean value)
          Disables or enables text rendering.
 void stroke()
          Paints the outline of the current path.
 void text(double x, double y, double w, double h, String str, String align, String valign, boolean wrap, String format, String overflow, boolean clip, double rotation)
          Draws the given text.
 void translate(double dx, double dy)
          Translates the canvas by the given amount.
protected  void updateFont()
           
protected  void updateStroke()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_SCALING

public static int IMAGE_SCALING
Specifies the image scaling quality. Default is Image.SCALE_SMOOTH. See scaleImage(Image, int, int)


COLOR_CACHE_SIZE

public static int COLOR_CACHE_SIZE
Specifies the size of the cache used to store parsed colors


graphics

protected Graphics2D graphics
Reference to the graphics instance for painting.


textEnabled

protected boolean textEnabled
Specifies if text output should be rendered. Default is true.


state

protected transient mxGraphicsCanvas2D.CanvasState state
Represents the current state of the canvas.


stack

protected transient Stack<mxGraphicsCanvas2D.CanvasState> stack
Stack of states for save/restore.


currentPath

protected transient GeneralPath currentPath
Holds the current path.


rendererPane

protected CellRendererPane rendererPane
Optional renderer pane to be used for HTML label rendering.


lastFont

protected transient Font lastFont
Font caching.


lastFontStyle

protected transient int lastFontStyle
Font caching.


lastFontSize

protected transient int lastFontSize
Font caching.


lastFontFamily

protected transient String lastFontFamily
Font caching.


lastStroke

protected transient Stroke lastStroke
Stroke caching.


lastStrokeWidth

protected transient float lastStrokeWidth
Stroke caching.


lastCap

protected transient int lastCap
Stroke caching.


lastJoin

protected transient int lastJoin
Stroke caching.


lastMiterLimit

protected transient float lastMiterLimit
Stroke caching.


lastDashed

protected transient boolean lastDashed
Stroke caching.


lastDashPattern

protected transient Object lastDashPattern
Stroke caching.


colorCache

protected transient LinkedHashMap<String,Color> colorCache
Caches parsed colors.

Constructor Detail

mxGraphicsCanvas2D

public mxGraphicsCanvas2D(Graphics2D g)
Constructs a new graphics export canvas.

Method Detail

setGraphics

public void setGraphics(Graphics2D value)
Sets the graphics instance.


getGraphics

public Graphics2D getGraphics()
Returns the graphics instance.


isTextEnabled

public boolean isTextEnabled()
Returns true if text should be rendered.


setTextEnabled

public void setTextEnabled(boolean value)
Disables or enables text rendering.


save

public void save()
Saves the current canvas state.

Specified by:
save in interface mxICanvas2D

restore

public void restore()
Restores the last canvas state.

Specified by:
restore in interface mxICanvas2D

cloneState

protected mxGraphicsCanvas2D.CanvasState cloneState(mxGraphicsCanvas2D.CanvasState state)
Returns a clone of thec given state.


scale

public void scale(double value)
Description copied from interface: mxICanvas2D
Uniformaly scales the canvas by the given amount.

Specified by:
scale in interface mxICanvas2D
Parameters:
value - The new scale value.

translate

public void translate(double dx,
                      double dy)
Description copied from interface: mxICanvas2D
Translates the canvas by the given amount.

Specified by:
translate in interface mxICanvas2D
Parameters:
dx - X-coordinate of the translation.
dy - Y-coordinate of the translation.

rotate

public void rotate(double theta,
                   boolean flipH,
                   boolean flipV,
                   double cx,
                   double cy)
Description copied from interface: mxICanvas2D
Rotates the canvas by the given angle around the given center. This method may add rendering overhead and should be used with care.

Specified by:
rotate in interface mxICanvas2D
Parameters:
theta - Rotation angle in degrees (0 - 360).
flipH - Specifies if drawing should be flipped horizontally.
flipV - Specifies if drawing should be flipped vertically.
cx - X-coordinate of the center point.
cy - Y-coordinate of the center point.

setStrokeWidth

public void setStrokeWidth(double value)
Description copied from interface: mxICanvas2D
Sets the stroke width. This should default to 1 if unset.

Specified by:
setStrokeWidth in interface mxICanvas2D
Parameters:
value - Width of the stroke. The value should be multiplied by the current scale.

setStrokeColor

public void setStrokeColor(String value)
Caches color conversion as it is expensive.

Specified by:
setStrokeColor in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setDashed

public void setDashed(boolean value)
Description copied from interface: mxICanvas2D
Sets the dashed state. This should default to false if unset.

Specified by:
setDashed in interface mxICanvas2D
Parameters:
value - Boolean representing the dashed state.

setDashPattern

public void setDashPattern(String value)
Description copied from interface: mxICanvas2D
Sets the dash pattern. This should default to "3 3" if unset.

Specified by:
setDashPattern in interface mxICanvas2D
Parameters:
value - Space separated list of floats representing the dash pattern. The value should be multiplied by the current scale.

setLineCap

public void setLineCap(String value)
Description copied from interface: mxICanvas2D
Sets the linecap. This should default to "flat" if unset.

Specified by:
setLineCap in interface mxICanvas2D
Parameters:
value - "flat", "square" or "round".

setLineJoin

public void setLineJoin(String value)
Description copied from interface: mxICanvas2D
Sets the linejoin. This should default to "miter" if unset.

Specified by:
setLineJoin in interface mxICanvas2D
Parameters:
value - "miter", "round" or "bevel".

setMiterLimit

public void setMiterLimit(double value)
Description copied from interface: mxICanvas2D
Sets the miterlimit. This should default to 10 if unset.

Specified by:
setMiterLimit in interface mxICanvas2D

setFontSize

public void setFontSize(double value)
Description copied from interface: mxICanvas2D
Default value mxConstants.DEFAULT_FONTSIZE.

Specified by:
setFontSize in interface mxICanvas2D

setFontColor

public void setFontColor(String value)
Description copied from interface: mxICanvas2D
Default value "#000000".

Specified by:
setFontColor in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setFontBackgroundColor

public void setFontBackgroundColor(String value)
Description copied from interface: mxICanvas2D
Default value "#000000".

Specified by:
setFontBackgroundColor in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setFontBorderColor

public void setFontBorderColor(String value)
Description copied from interface: mxICanvas2D
Default value "#000000".

Specified by:
setFontBorderColor in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setFontFamily

public void setFontFamily(String value)
Description copied from interface: mxICanvas2D
Default value mxConstants.DEFAULT_FONTFAMILY.

Specified by:
setFontFamily in interface mxICanvas2D

setFontStyle

public void setFontStyle(int value)
Description copied from interface: mxICanvas2D
Default value 0. See mxConstants.STYLE_FONTSTYLE.

Specified by:
setFontStyle in interface mxICanvas2D

setAlpha

public void setAlpha(double value)
Description copied from interface: mxICanvas2D
Default value 1. This method may add rendering overhead and should be used with care.

Specified by:
setAlpha in interface mxICanvas2D

setFillColor

public void setFillColor(String value)
Description copied from interface: mxICanvas2D
Default value mxConstants.NONE.

Specified by:
setFillColor in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setGradient

public void setGradient(String color1,
                        String color2,
                        double x,
                        double y,
                        double w,
                        double h,
                        String direction,
                        double alpha1,
                        double alpha2)
Description copied from interface: mxICanvas2D
Prepares the canvas to draw a gradient.

Specified by:
setGradient in interface mxICanvas2D
direction - Direction may be null. Use default value mxConstants.DIRECTION_SOUTH.

parseColor

protected Color parseColor(String hex)
Helper method that uses mxUtils.parseColor(String).


rect

public void rect(double x,
                 double y,
                 double w,
                 double h)
Description copied from interface: mxICanvas2D
Next fill or stroke should draw a rectangle.

Specified by:
rect in interface mxICanvas2D

roundrect

public void roundrect(double x,
                      double y,
                      double w,
                      double h,
                      double dx,
                      double dy)
Implements a rounded rectangle using a path.

Specified by:
roundrect in interface mxICanvas2D

ellipse

public void ellipse(double x,
                    double y,
                    double w,
                    double h)
Description copied from interface: mxICanvas2D
Next fill or stroke should draw an ellipse.

Specified by:
ellipse in interface mxICanvas2D

image

public void image(double x,
                  double y,
                  double w,
                  double h,
                  String src,
                  boolean aspect,
                  boolean flipH,
                  boolean flipV)
Description copied from interface: mxICanvas2D
Draws the given image.

Specified by:
image in interface mxICanvas2D

drawImage

protected void drawImage(Graphics2D graphics,
                         Image image,
                         int x,
                         int y)

loadImage

protected Image loadImage(String src)
Hook for image caching.


getImageBounds

protected final Rectangle getImageBounds(Image img,
                                         double x,
                                         double y,
                                         double w,
                                         double h,
                                         boolean aspect)

getImageSize

protected Dimension getImageSize(Image image)
Returns the size for the given image.


scaleImage

protected Image scaleImage(Image img,
                           int w,
                           int h)
Uses IMAGE_SCALING to scale the given image.


createImageGraphics

protected final Graphics2D createImageGraphics(double x,
                                               double y,
                                               double w,
                                               double h,
                                               boolean flipH,
                                               boolean flipV)
Creates a graphic instance for rendering an image.


createHtmlDocument

protected String createHtmlDocument(String text,
                                    String align,
                                    String valign,
                                    int w,
                                    int h,
                                    boolean wrap,
                                    String overflow,
                                    boolean clip)
Creates a HTML document around the given markup.


getTextRenderer

protected JLabel getTextRenderer()
Hook to return the renderer for HTML formatted text. This implementation returns the shared instance of mxLighweightLabel.


getMargin

protected Point2D getMargin(String align,
                            String valign)

htmlText

protected void htmlText(double x,
                        double y,
                        double w,
                        double h,
                        String str,
                        String align,
                        String valign,
                        boolean wrap,
                        String format,
                        String overflow,
                        boolean clip,
                        double rotation)
Draws the given HTML text.


text

public void text(double x,
                 double y,
                 double w,
                 double h,
                 String str,
                 String align,
                 String valign,
                 boolean wrap,
                 String format,
                 String overflow,
                 boolean clip,
                 double rotation)
Draws the given text.

Specified by:
text in interface mxICanvas2D

plainText

public void plainText(double x,
                      double y,
                      double w,
                      double h,
                      String str,
                      String align,
                      String valign,
                      boolean wrap,
                      String format,
                      String overflow,
                      boolean clip,
                      double rotation)
Draws the given text.


createTextGraphics

protected final Graphics2D createTextGraphics(double x,
                                              double y,
                                              double w,
                                              double h,
                                              double rotation,
                                              boolean clip,
                                              String align,
                                              String valign)
Returns a new graphics instance with the correct color and font for text rendering.


begin

public void begin()
Description copied from interface: mxICanvas2D
Begins a new path.

Specified by:
begin in interface mxICanvas2D

moveTo

public void moveTo(double x,
                   double y)
Description copied from interface: mxICanvas2D
Moves to the given path.

Specified by:
moveTo in interface mxICanvas2D

lineTo

public void lineTo(double x,
                   double y)
Description copied from interface: mxICanvas2D
Draws a line to the given path.

Specified by:
lineTo in interface mxICanvas2D

quadTo

public void quadTo(double x1,
                   double y1,
                   double x2,
                   double y2)
Description copied from interface: mxICanvas2D
Draws a quadratic curve to the given point.

Specified by:
quadTo in interface mxICanvas2D

curveTo

public void curveTo(double x1,
                    double y1,
                    double x2,
                    double y2,
                    double x3,
                    double y3)
Description copied from interface: mxICanvas2D
Draws a bezier curve to the given point.

Specified by:
curveTo in interface mxICanvas2D

close

public void close()
Closes the current path.

Specified by:
close in interface mxICanvas2D

stroke

public void stroke()
Description copied from interface: mxICanvas2D
Paints the outline of the current path.

Specified by:
stroke in interface mxICanvas2D

fill

public void fill()
Description copied from interface: mxICanvas2D
Fills the current path.

Specified by:
fill in interface mxICanvas2D

fillAndStroke

public void fillAndStroke()
Description copied from interface: mxICanvas2D
Fills and paints the outline of the current path.

Specified by:
fillAndStroke in interface mxICanvas2D

paintCurrentPath

protected void paintCurrentPath(boolean filled,
                                boolean stroked)

paintShadow

protected void paintShadow(boolean filled,
                           boolean stroked)

setShadow

public void setShadow(boolean value)
Description copied from interface: mxICanvas2D
Enables or disables the painting of shadows.

Specified by:
setShadow in interface mxICanvas2D
Parameters:
value - Whether the shadow should be enabled.

setShadowColor

public void setShadowColor(String value)
Description copied from interface: mxICanvas2D
Default value mxConstants.NONE.

Specified by:
setShadowColor in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setShadowAlpha

public void setShadowAlpha(double value)
Description copied from interface: mxICanvas2D
Default value mxConstants.NONE.

Specified by:
setShadowAlpha in interface mxICanvas2D
Parameters:
value - Hex representation of the color or mxConstants.NONE.

setShadowOffset

public void setShadowOffset(double dx,
                            double dy)
Description copied from interface: mxICanvas2D
Default value mxConstants.NONE.

Specified by:
setShadowOffset in interface mxICanvas2D

updateFont

protected void updateFont()

createFont

protected Font createFont(String family,
                          int style,
                          int size)
Hook for subclassers to implement font caching.


getFontName

protected String getFontName(String family)
Returns a font name for the given CSS values for font-family. This implementation returns the first entry for comma-separated lists of entries.


updateStroke

protected void updateStroke()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxBasicCanvas.html0000664000175000017500000007273512176166720026452 0ustar sylvestresylvestre mxBasicCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxBasicCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxBasicCanvas
All Implemented Interfaces:
mxICanvas
Direct Known Subclasses:
mxGraphics2DCanvas, mxHtmlCanvas, mxSvgCanvas, mxVmlCanvas

public abstract class mxBasicCanvas
extends Object
implements mxICanvas


Field Summary
static String DEFAULT_IMAGEBASEPATH
          Defines the default value for the imageBasePath in all GDI canvases.
protected  boolean drawLabels
          Specifies whether labels should be painted.
protected  String imageBasePath
          Defines the base path for images with relative paths.
protected  Hashtable<String,BufferedImage> imageCache
          Cache for images.
static boolean PRESERVE_IMAGE_ASPECT
          Specifies if image aspect should be preserved in drawImage.
protected  double scale
          Specifies the current scale.
protected  Point translate
          Specifies the current translation.
 
Constructor Summary
mxBasicCanvas()
           
 
Method Summary
 void flushImageCache()
           
 String getImageBasePath()
           
 String getImageForStyle(Map<String,Object> style)
          Gets the image path from the given style.
 double getScale()
          Returns the scale.
 Point getTranslate()
          Returns the current translate.
 boolean isDrawLabels()
           
 BufferedImage loadImage(String image)
          Returns an image instance for the given URL.
 void setDrawLabels(boolean drawLabels)
           
 void setImageBasePath(String imageBasePath)
           
 void setScale(double scale)
          Sets the scale for the following drawing requests.
 void setTranslate(int dx, int dy)
          Sets the current translate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mxgraph.canvas.mxICanvas
drawCell, drawLabel
 

Field Detail

PRESERVE_IMAGE_ASPECT

public static boolean PRESERVE_IMAGE_ASPECT
Specifies if image aspect should be preserved in drawImage. Default is true.


DEFAULT_IMAGEBASEPATH

public static String DEFAULT_IMAGEBASEPATH
Defines the default value for the imageBasePath in all GDI canvases. Default is an empty string.


imageBasePath

protected String imageBasePath
Defines the base path for images with relative paths. Trailing slash is required. Default value is DEFAULT_IMAGEBASEPATH.


translate

protected Point translate
Specifies the current translation. Default is (0,0).


scale

protected double scale
Specifies the current scale. Default is 1.


drawLabels

protected boolean drawLabels
Specifies whether labels should be painted. Default is true.


imageCache

protected Hashtable<String,BufferedImage> imageCache
Cache for images.

Constructor Detail

mxBasicCanvas

public mxBasicCanvas()
Method Detail

setTranslate

public void setTranslate(int dx,
                         int dy)
Sets the current translate.

Specified by:
setTranslate in interface mxICanvas

getTranslate

public Point getTranslate()
Returns the current translate.

Specified by:
getTranslate in interface mxICanvas
Returns:
Returns the current translation.

setScale

public void setScale(double scale)
Description copied from interface: mxICanvas
Sets the scale for the following drawing requests.

Specified by:
setScale in interface mxICanvas

getScale

public double getScale()
Description copied from interface: mxICanvas
Returns the scale.

Specified by:
getScale in interface mxICanvas

setDrawLabels

public void setDrawLabels(boolean drawLabels)

getImageBasePath

public String getImageBasePath()

setImageBasePath

public void setImageBasePath(String imageBasePath)

isDrawLabels

public boolean isDrawLabels()

loadImage

public BufferedImage loadImage(String image)
Returns an image instance for the given URL. If the URL has been loaded before than an instance of the same instance is returned as in the previous call.


flushImageCache

public void flushImageCache()

getImageForStyle

public String getImageForStyle(Map<String,Object> style)
Gets the image path from the given style. If the path is relative (does not start with a slash) then it is appended to the imageBasePath.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/canvas/mxGraphics2DCanvas.html0000664000175000017500000014277612176166720027362 0ustar sylvestresylvestre mxGraphics2DCanvas (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.canvas
Class mxGraphics2DCanvas

java.lang.Object
  extended by com.mxgraph.canvas.mxBasicCanvas
      extended by com.mxgraph.canvas.mxGraphics2DCanvas
All Implemented Interfaces:
mxICanvas
Direct Known Subclasses:
mxInteractiveCanvas

public class mxGraphics2DCanvas
extends mxBasicCanvas

An implementation of a canvas that uses Graphics2D for painting.


Field Summary
protected  Graphics2D g
          Global graphics handle to the image.
static int IMAGE_SCALING
          Specifies the image scaling quality.
protected  CellRendererPane rendererPane
          Optional renderer pane to be used for HTML label rendering.
protected static Map<String,mxIShape> shapes
          Maps from names to mxIVertexShape instances.
static String TEXT_SHAPE_DEFAULT
           
static String TEXT_SHAPE_HTML
           
protected static Map<String,mxITextShape> textShapes
          Maps from names to mxITextShape instances.
 
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate
 
Constructor Summary
mxGraphics2DCanvas()
          Constructs a new graphics canvas with an empty graphics object.
mxGraphics2DCanvas(Graphics2D g)
          Constructs a new graphics canvas for the given graphics object.
 
Method Summary
 Paint createFillPaint(mxRectangle bounds, Map<String,Object> style)
           
 Stroke createStroke(Map<String,Object> style)
           
 Graphics2D createTemporaryGraphics(Map<String,Object> style, float opacity, mxRectangle bounds)
           
 Object drawCell(mxCellState state)
          Draws the given cell.
 void drawImage(Rectangle bounds, String imageUrl)
           
 void drawImage(Rectangle bounds, String imageUrl, boolean preserveAspect, boolean flipH, boolean flipV)
           
protected  void drawImageImpl(Image image, int x, int y)
          Implements the actual graphics call.
 Object drawLabel(String text, mxCellState state, boolean html)
          Draws the given label.
 void fillShape(Shape shape)
           
 void fillShape(Shape shape, boolean shadow)
           
 Graphics2D getGraphics()
          Returns the graphics object for this canvas.
protected  Dimension getImageSize(Image image)
          Returns the size for the given image.
 CellRendererPane getRendererPane()
           
 mxIShape getShape(Map<String,Object> style)
           
 mxITextShape getTextShape(Map<String,Object> style, boolean html)
           
 void paintPolyline(mxPoint[] points, boolean rounded)
           
 void paintRectangle(Rectangle bounds, Color background, Color border)
           
static void putShape(String name, mxIShape shape)
           
static void putTextShape(String name, mxITextShape shape)
           
 void setGraphics(Graphics2D g)
          Sets the graphics object for this canvas.
 
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_SHAPE_DEFAULT

public static final String TEXT_SHAPE_DEFAULT
See Also:
Constant Field Values

TEXT_SHAPE_HTML

public static final String TEXT_SHAPE_HTML
See Also:
Constant Field Values

IMAGE_SCALING

public static int IMAGE_SCALING
Specifies the image scaling quality. Default is Image.SCALE_SMOOTH.


shapes

protected static Map<String,mxIShape> shapes
Maps from names to mxIVertexShape instances.


textShapes

protected static Map<String,mxITextShape> textShapes
Maps from names to mxITextShape instances. There are currently three different hardcoded text shapes available here: default, html and wrapped.


rendererPane

protected CellRendererPane rendererPane
Optional renderer pane to be used for HTML label rendering.


g

protected Graphics2D g
Global graphics handle to the image.

Constructor Detail

mxGraphics2DCanvas

public mxGraphics2DCanvas()
Constructs a new graphics canvas with an empty graphics object.


mxGraphics2DCanvas

public mxGraphics2DCanvas(Graphics2D g)
Constructs a new graphics canvas for the given graphics object.

Method Detail

putShape

public static void putShape(String name,
                            mxIShape shape)

getShape

public mxIShape getShape(Map<String,Object> style)

putTextShape

public static void putTextShape(String name,
                                mxITextShape shape)

getTextShape

public mxITextShape getTextShape(Map<String,Object> style,
                                 boolean html)

getRendererPane

public CellRendererPane getRendererPane()

getGraphics

public Graphics2D getGraphics()
Returns the graphics object for this canvas.


setGraphics

public void setGraphics(Graphics2D g)
Sets the graphics object for this canvas.


drawCell

public Object drawCell(mxCellState state)
Description copied from interface: mxICanvas
Draws the given cell.

Parameters:
state - State of the cell to be painted.
Returns:
Object that represents the cell.

drawLabel

public Object drawLabel(String text,
                        mxCellState state,
                        boolean html)
Description copied from interface: mxICanvas
Draws the given label.

Parameters:
text - String that represents the label.
state - State of the cell whose label is to be painted.
html - Specifies if the label contains HTML markup.
Returns:
Object that represents the label.

drawImage

public void drawImage(Rectangle bounds,
                      String imageUrl)

drawImage

public void drawImage(Rectangle bounds,
                      String imageUrl,
                      boolean preserveAspect,
                      boolean flipH,
                      boolean flipV)

drawImageImpl

protected void drawImageImpl(Image image,
                             int x,
                             int y)
Implements the actual graphics call.


getImageSize

protected Dimension getImageSize(Image image)
Returns the size for the given image.


paintPolyline

public void paintPolyline(mxPoint[] points,
                          boolean rounded)

paintRectangle

public void paintRectangle(Rectangle bounds,
                           Color background,
                           Color border)

fillShape

public void fillShape(Shape shape)

fillShape

public void fillShape(Shape shape,
                      boolean shadow)

createStroke

public Stroke createStroke(Map<String,Object> style)

createFillPaint

public Paint createFillPaint(mxRectangle bounds,
                             Map<String,Object> style)

createTemporaryGraphics

public Graphics2D createTemporaryGraphics(Map<String,Object> style,
                                          float opacity,
                                          mxRectangle bounds)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/0000775000175000017500000000000012176166726022534 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxConstants.html0000664000175000017500000054711712176166724025760 0ustar sylvestresylvestre mxConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxConstants

java.lang.Object
  extended by com.mxgraph.util.mxConstants

public class mxConstants
extends Object

Contains all global constants.


Field Summary
static String ALIGN_BOTTOM
          ALIGN_BOTTOM
static String ALIGN_CENTER
          ALIGN_CENTER
static String ALIGN_LEFT
          ALIGN_LEFT
static String ALIGN_MIDDLE
          ALIGN_MIDDLE
static String ALIGN_RIGHT
          ALIGN_RIGHT
static String ALIGN_TOP
          ALIGN_TOP
static String ARROW_BLOCK
          ARROW_BLOCK
static String ARROW_CLASSIC
          ARROW_CLASSIC
static String ARROW_DIAMOND
          ARROW_OPEN
static String ARROW_OPEN
          ARROW_OPEN
static String ARROW_OVAL
          ARROW_BLOCK
static int ARROW_SIZE
          Defines the size of the arrowhead in the arrow shape.
static int ARROW_SPACING
          Defines the spacing between the arrow shape and its terminals.
static int ARROW_WIDTH
          Defines the width of the arrow shape.
static boolean CONNECT_HANDLE_ENABLED
          Defines the default value for the connect handle.
static int CONNECT_HANDLE_SIZE
          Defines the connect handle size.
static float[] DEFAULT_DASHED_PATTERN
          Specifies the default dash pattern, 3 pixels solid, 3 pixels clear.
static String DEFAULT_FONTFAMILIES
          Comma separated list of default fonts for CSS properties.
static String DEFAULT_FONTFAMILY
          Defines the default font family.
static int DEFAULT_FONTSIZE
          Defines the default font size.
static double DEFAULT_HOTSPOT
          Defines the portion of the cell which is to be used as a connectable region.
static int DEFAULT_IMAGESIZE
          Defines the default image size.
static double DEFAULT_LABEL_BUFFER
          Specifies the default distance at 1.0 scale that the label curve is created from its base curve
static int DEFAULT_MARKERSIZE
          Defines the default marker size.
static int DEFAULT_STARTSIZE
          Defines the default start size for swimlanes.
static double DEG_PER_RAD
          Defines the number of degrees per radian.
static String DIRECTION_EAST
          DIRECTION_EAST
static int DIRECTION_MASK_ALL
          DIRECTION_MASK_EAST
static int DIRECTION_MASK_EAST
          DIRECTION_MASK_EAST
static int DIRECTION_MASK_NONE
          DIRECTION_MASK_NONE
static int DIRECTION_MASK_NORTH
          DIRECTION_MASK_NORTH
static int DIRECTION_MASK_SOUTH
          DIRECTION_MASK_SOUTH
static int DIRECTION_MASK_WEST
          DIRECTION_MASK_WEST
static String DIRECTION_NORTH
          DIRECTION_NORTH
static String DIRECTION_SOUTH
          DIRECTION_SOUTH
static String DIRECTION_WEST
          DIRECTION_WEST
static String EDGESTYLE_ELBOW
          Name of the elbow edge style.
static String EDGESTYLE_ENTITY_RELATION
          Name of the entity relation edge style.
static String EDGESTYLE_LOOP
          Name of the loop edge style.
static String EDGESTYLE_ORTHOGONAL
          Name of the orthogonal edge style.
static String EDGESTYLE_SEGMENT
          Name of the generic segment edge style.
static String EDGESTYLE_SIDETOSIDE
          Name of the side to side edge style.
static String EDGESTYLE_TOPTOBOTTOM
          Name of the top to bottom edge style.
static String ELBOW_HORIZONTAL
          ELBOW_HORIZONTAL
static String ELBOW_VERTICAL
          ELBOW_VERTICAL
static int ENTITY_SEGMENT
          Defines the length of the horizontal segment of an Entity Relation.
static int FONT_BOLD
          FONT_BOLD
static int FONT_ITALIC
          FONT_ITALIC
static int FONT_SHADOW
          FONT_SHADOW
static int FONT_UNDERLINE
          FONT_UNDERLINE
static int HANDLE_SIZE
          Defines the handle size.
static int LABEL_HANDLE_SIZE
          Defines the handle size.
static int LABEL_INSET
          Defines the inset in absolute pixels between the label bounding box and the label text.
static double LABEL_SCALE_BUFFER
          Multiplier to the width that is passed into the word wrapping calculation See mxUtils.wordWrap for details
static double LINE_ARCSIZE
          Defines the size of the arcs for rounded edges.
static float LINE_HEIGHT
          Default line height for text output.
static int LINESPACING
          Specifies the line spacing.
static int MAX_HOTSPOT_SIZE
          Defines the maximum size in pixels of the portion of the cell which is to be used as a connectable region.
static int MIN_HOTSPOT_SIZE
          Defines the minimum size in pixels of the portion of the cell which is to be used as a connectable region.
static double MIN_SCALE_FOR_ROUNDED_LINES
          Defines the minimum scale at which rounded polylines should be painted.
static String NONE
          Defines the value for none.
static String NS_SVG
          Defines the SVG namespace.
static String NS_XHTML
          Defines the XHTML namespace.
static String NS_XLINK
          Defines the XLink namespace.
static String PERIMETER_ELLIPSE
          Name of the ellipse perimeter.
static String PERIMETER_HEXAGON
          Name of the hexagon perimeter.
static String PERIMETER_RECTANGLE
          Name of the rectangle perimeter.
static String PERIMETER_RHOMBUS
          Name of the rhombus perimeter.
static String PERIMETER_TRIANGLE
          Name of the triangle perimeter.
static double PX_PER_PIXEL
          Defines the ratio between px units in HTML markup and pixels on screen.
static double RAD_PER_DEG
          Defines the number of radians per degree.
static double RECTANGLE_ROUNDING_FACTOR
          Defines the rounding factor for rounded rectangles in percent between 0 and 1.
static int SHADOW_OFFSETX
          Defines the x-offset to be used for shadows.
static int SHADOW_OFFSETY
          Defines the y-offset to be used for shadows.
static String SHAPE_ACTOR
          SHAPE_ACTOR
static String SHAPE_ARROW
          SHAPE_ARROW
static String SHAPE_CLOUD
          SHAPE_CLOUD
static String SHAPE_CONNECTOR
          SHAPE_CONNECTOR
static String SHAPE_CURVE
          SHAPE_ARROW
static String SHAPE_CYLINDER
          SHAPE_CYLINDER
static String SHAPE_DOUBLE_ELLIPSE
          SHAPE_DOUBLE_ELLIPSE
static String SHAPE_ELLIPSE
          SHAPE_ELLIPSE
static String SHAPE_HEXAGON
          SHAPE_HEXAGON
static String SHAPE_IMAGE
          SHAPE_IMAGE
static String SHAPE_LABEL
          SHAPE_LABEL
static String SHAPE_LINE
          SHAPE_LINE
static String SHAPE_RECTANGLE
          SHAPE_RECTANGLE
static String SHAPE_RHOMBUS
          SHAPE_RHOMBUS
static String SHAPE_SWIMLANE
          SHAPE_SWIMLANE
static String SHAPE_TRIANGLE
          SHAPE_TRIANGLE
static boolean SPLIT_WORDS
          Whether or not to split whole words when applying word wrapping in mxUtils.wordWrap.
static int STENCIL_SHADOW_OPACITY
          Defines the default opacity for stencils shadows.
static String STENCIL_SHADOWCOLOR
          Defines the default shadow color for stencils.
static String STYLE_ALIGN
          Defines the key for the align style.
static String STYLE_AUTOSIZE
          Defines the key for the autosize style.
static String STYLE_BENDABLE
          Defines the key for the bendable style.
static String STYLE_CLONEABLE
          Defines the key for the cloneable style.
static String STYLE_DASH_PATTERN
          Defines the key for the dashed pattern style.
static String STYLE_DASHED
          Defines the key for the dashed style.
static String STYLE_DELETABLE
          Defines the key for the deletable style.
static String STYLE_DIRECTION
          Defines the key for the direction style.
static String STYLE_EDGE
          Takes a function that creates points.
static String STYLE_EDITABLE
          Defines the key for the editable style.
static String STYLE_ELBOW
          Defines the key for the elbow style.
static String STYLE_ENDARROW
          Defines the key for the endArrow style.
static String STYLE_ENDFILL
          Defines the key for the endFill style.
static String STYLE_ENDSIZE
          Defines the key for the endSize style.
static String STYLE_ENTRY_PERIMETER
          Defines if the perimeter should be used to find the exact entry point along the perimeter of the target.
static String STYLE_ENTRY_X
          Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal.
static String STYLE_ENTRY_Y
          Defines the key for the vertical relative coordinate connection point of an edge with its target terminal.
static String STYLE_EXIT_PERIMETER
          Defines if the perimeter should be used to find the exact entry point along the perimeter of the source.
static String STYLE_EXIT_X
          Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal.
static String STYLE_EXIT_Y
          Defines the key for the vertical relative coordinate connection point of an edge with its source terminal.
static String STYLE_FILLCOLOR
          Defines the key for the fillColor style.
static String STYLE_FOLDABLE
          Defines the key for the foldable style.
static String STYLE_FONTCOLOR
          Defines the key for the fontColor style.
static String STYLE_FONTFAMILY
          Defines the key for the fontFamily style.
static String STYLE_FONTSIZE
          Defines the key for the fontSize style (in points).
static String STYLE_FONTSTYLE
          Defines the key for the fontStyle style.
static String STYLE_GLASS
          Defines the key for the glass style.
static String STYLE_GRADIENT_DIRECTION
          Defines the key for the gradient direction.
static String STYLE_GRADIENTCOLOR
          Defines the key for the gradientColor style.
static String STYLE_HORIZONTAL
          Defines the key for the horizontal style.
static String STYLE_IMAGE
          Defines the key for the image style.
static String STYLE_IMAGE_ALIGN
          Defines the key for the align style.
static String STYLE_IMAGE_BACKGROUND
          Defines the key for the image background color.
static String STYLE_IMAGE_BORDER
          Defines the key for the image border color.
static String STYLE_IMAGE_FLIPH
          Defines the key for the horizontal image flip.
static String STYLE_IMAGE_FLIPV
          Defines the key for the vertical image flip.
static String STYLE_IMAGE_HEIGHT
          Defines the key for the imageHeight style The type of this value is int, the value is the image height in pixels and must be greater than 0.
static String STYLE_IMAGE_VERTICAL_ALIGN
          Defines the key for the verticalAlign style.
static String STYLE_IMAGE_WIDTH
          Defines the key for the imageWidth style.
static String STYLE_INDICATOR_COLOR
          Defines the key for the indicatorColor style.
static String STYLE_INDICATOR_GRADIENTCOLOR
          Defines the key for the indicatorGradientColor style.
static String STYLE_INDICATOR_HEIGHT
          Defines the key for the indicatorHeight style (in px).
static String STYLE_INDICATOR_IMAGE
          Defines the key for the indicatorImage style.
static String STYLE_INDICATOR_SHAPE
          Defines the key for the indicatorShape style.
static String STYLE_INDICATOR_SPACING
          Defines the key for the indicatorSpacing style (in px).
static String STYLE_INDICATOR_WIDTH
          Defines the key for the indicatorWidth style (in px).
static String STYLE_LABEL_BACKGROUNDCOLOR
          Defines the key for the label background color.
static String STYLE_LABEL_BORDERCOLOR
          Defines the key for the label border color.
static String STYLE_LABEL_POSITION
          Defines the key for the horizontal label position of vertices.
static String STYLE_LOOP
          Defines the key for the loop style.
static String STYLE_MOVABLE
          Defines the key for the movable style.
static String STYLE_NOEDGESTYLE
          Defines the key for the noEdgeStyle style.
static String STYLE_NOLABEL
          Defines the key for the noLabel style.
static String STYLE_OPACITY
          Defines the key for the opacity style.
static String STYLE_ORTHOGONAL
          Defines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location.
static String STYLE_OVERFLOW
          Defines the key for the overflow style.
static String STYLE_PERIMETER
          Defines the key for the perimeter style.
static String STYLE_PERIMETER_SPACING
          Defines the key for the perimeter spacing.
static String STYLE_PORT_CONSTRAINT
          Defines the direction(s) that edges are allowed to connect to cells in.
static String STYLE_RESIZABLE
          Defines the key for the resizable style.
static String STYLE_ROTATION
          Defines the key for the rotation style.
static String STYLE_ROUNDED
          Defines the key for the rounded style.
static String STYLE_ROUTING_CENTER_X
          Defines the key for the horizontal routing center.
static String STYLE_ROUTING_CENTER_Y
          Defines the key for the vertical routing center.
static String STYLE_SEGMENT
          Defines the key for the segment style.
static String STYLE_SEPARATORCOLOR
          Defines the key for the separatorColor style.
static String STYLE_SHADOW
          Defines the key for the shadow style.
static String STYLE_SHAPE
          Defines the key for the shape style.
static String STYLE_SOURCE_PERIMETER_SPACING
          Defines the key for the source perimeter spacing.
static String STYLE_SOURCE_PORT
          Defines the ID of the cell that should be used for computing the perimeter point of the source for an edge.
static String STYLE_SPACING
          Defines the key for the spacing.
static String STYLE_SPACING_BOTTOM
          Defines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only).
static String STYLE_SPACING_LEFT
          Defines the key for the spacingLeft style.
static String STYLE_SPACING_RIGHT
          Defines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only).
static String STYLE_SPACING_TOP
          Defines the key for the spacingTop style.
static String STYLE_STARTARROW
          Defines the key for the startArrow style.
static String STYLE_STARTFILL
          Defines the key for the startFill style.
static String STYLE_STARTSIZE
          Defines the key for the startSize style.
static String STYLE_STENCIL_FLIPH
          Defines the key for the horizontal stencil flip.
static String STYLE_STENCIL_FLIPV
          Defines the key for the vertical stencil flip.
static String STYLE_STROKECOLOR
          Defines the key for the strokeColor style.
static String STYLE_STROKEWIDTH
          Defines the key for the strokeWidth style.
static String STYLE_TARGET_PERIMETER_SPACING
          Defines the key for the target perimeter spacing.
static String STYLE_TARGET_PORT
          Defines the ID of the cell that should be used for computing the perimeter point of the target for an edge.
static String STYLE_TEXT_OPACITY
          Defines the key for the text opacity style.
static String STYLE_VERTICAL_ALIGN
          Defines the key for the verticalAlign style.
static String STYLE_VERTICAL_LABEL_POSITION
          Defines the key for the vertical label position of vertices.
static String STYLE_WHITE_SPACE
          Defines the key for the white-space style.
static String SVG_SHADOWTRANSFORM
          Defines the transformation used to draw shadows in SVG.
static String W3C_SHADOWCOLOR
          Defines the color to be used to draw shadows in W3C standards.
 
Constructor Summary
mxConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAD_PER_DEG

public static double RAD_PER_DEG
Defines the number of radians per degree.


DEG_PER_RAD

public static double DEG_PER_RAD
Defines the number of degrees per radian.


PX_PER_PIXEL

public static double PX_PER_PIXEL
Defines the ratio between px units in HTML markup and pixels on screen. Default is 0.77.


MIN_SCALE_FOR_ROUNDED_LINES

public static double MIN_SCALE_FOR_ROUNDED_LINES
Defines the minimum scale at which rounded polylines should be painted. Default is 0.05.


DEFAULT_HOTSPOT

public static double DEFAULT_HOTSPOT
Defines the portion of the cell which is to be used as a connectable region. Default is 0.3.


MIN_HOTSPOT_SIZE

public static int MIN_HOTSPOT_SIZE
Defines the minimum size in pixels of the portion of the cell which is to be used as a connectable region. Default is 8.


MAX_HOTSPOT_SIZE

public static int MAX_HOTSPOT_SIZE
Defines the maximum size in pixels of the portion of the cell which is to be used as a connectable region. Use 0 for no maximum. Default is 0.


NS_SVG

public static String NS_SVG
Defines the SVG namespace.


NS_XHTML

public static String NS_XHTML
Defines the XHTML namespace.


NS_XLINK

public static String NS_XLINK
Defines the XLink namespace.


DEFAULT_FONTFAMILIES

public static String DEFAULT_FONTFAMILIES
Comma separated list of default fonts for CSS properties. And the default font family value for new image export. Default is Arial, Helvetica.


DEFAULT_FONTFAMILY

public static String DEFAULT_FONTFAMILY
Defines the default font family. Default is "Dialog". (To be replaced with Font.DIALOG after EOL of Java 1.5.)


DEFAULT_FONTSIZE

public static int DEFAULT_FONTSIZE
Defines the default font size. Default is 11.


DEFAULT_STARTSIZE

public static int DEFAULT_STARTSIZE
Defines the default start size for swimlanes. Default is 40.


LINE_HEIGHT

public static float LINE_HEIGHT
Default line height for text output. Default is 1.2. This is ignored for HTML in the current version of Java. See http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html


LINESPACING

public static int LINESPACING
Specifies the line spacing. Default is 0.


SPLIT_WORDS

public static boolean SPLIT_WORDS
Whether or not to split whole words when applying word wrapping in mxUtils.wordWrap.


LABEL_INSET

public static int LABEL_INSET
Defines the inset in absolute pixels between the label bounding box and the label text. Default is 3.


LABEL_SCALE_BUFFER

public static double LABEL_SCALE_BUFFER
Multiplier to the width that is passed into the word wrapping calculation See mxUtils.wordWrap for details


DEFAULT_MARKERSIZE

public static int DEFAULT_MARKERSIZE
Defines the default marker size. Default is 6.


DEFAULT_IMAGESIZE

public static int DEFAULT_IMAGESIZE
Defines the default image size. Default is 24.


STENCIL_SHADOW_OPACITY

public static int STENCIL_SHADOW_OPACITY
Defines the default opacity for stencils shadows. Default is 1.


STENCIL_SHADOWCOLOR

public static String STENCIL_SHADOWCOLOR
Defines the default shadow color for stencils. Default is "gray".


SHADOW_OFFSETX

public static int SHADOW_OFFSETX
Defines the x-offset to be used for shadows. Default is 2.


SHADOW_OFFSETY

public static int SHADOW_OFFSETY
Defines the y-offset to be used for shadows. Default is 3.


W3C_SHADOWCOLOR

public static String W3C_SHADOWCOLOR
Defines the color to be used to draw shadows in W3C standards. Default is gray.


SVG_SHADOWTRANSFORM

public static String SVG_SHADOWTRANSFORM
Defines the transformation used to draw shadows in SVG.


DEFAULT_DASHED_PATTERN

public static float[] DEFAULT_DASHED_PATTERN
Specifies the default dash pattern, 3 pixels solid, 3 pixels clear.


DEFAULT_LABEL_BUFFER

public static double DEFAULT_LABEL_BUFFER
Specifies the default distance at 1.0 scale that the label curve is created from its base curve


HANDLE_SIZE

public static int HANDLE_SIZE
Defines the handle size. Default is 7.


LABEL_HANDLE_SIZE

public static int LABEL_HANDLE_SIZE
Defines the handle size. Default is 4.


CONNECT_HANDLE_ENABLED

public static boolean CONNECT_HANDLE_ENABLED
Defines the default value for the connect handle. Default is false.


CONNECT_HANDLE_SIZE

public static int CONNECT_HANDLE_SIZE
Defines the connect handle size. Default is 8.


ENTITY_SEGMENT

public static int ENTITY_SEGMENT
Defines the length of the horizontal segment of an Entity Relation. This can be overridden using mxConstants.STYLE_SEGMENT style. Default is 30.


RECTANGLE_ROUNDING_FACTOR

public static double RECTANGLE_ROUNDING_FACTOR
Defines the rounding factor for rounded rectangles in percent between 0 and 1. Values should be smaller than 0.5. Default is 0.15.


LINE_ARCSIZE

public static double LINE_ARCSIZE
Defines the size of the arcs for rounded edges. Default is 10.


ARROW_SPACING

public static int ARROW_SPACING
Defines the spacing between the arrow shape and its terminals. Default is 10.


ARROW_WIDTH

public static int ARROW_WIDTH
Defines the width of the arrow shape. Default is 30.


ARROW_SIZE

public static int ARROW_SIZE
Defines the size of the arrowhead in the arrow shape. Default is 30.


NONE

public static String NONE
Defines the value for none. Default is "none".


STYLE_PERIMETER

public static String STYLE_PERIMETER
Defines the key for the perimeter style. This is a function that defines the perimeter around a particular shape. Possible values are the functions defined in mxPerimeter that use the mxPerimeterFunction interface. Alternatively, the constants in this class that start with PERIMETER_ may be used to access perimeter styles in mxStyleRegistry.


STYLE_SOURCE_PORT

public static String STYLE_SOURCE_PORT
Defines the ID of the cell that should be used for computing the perimeter point of the source for an edge. This allows for graphically connecting to a cell while keeping the actual terminal of the edge.


STYLE_TARGET_PORT

public static String STYLE_TARGET_PORT
Defines the ID of the cell that should be used for computing the perimeter point of the target for an edge. This allows for graphically connecting to a cell while keeping the actual terminal of the edge.


STYLE_PORT_CONSTRAINT

public static String STYLE_PORT_CONSTRAINT
Defines the direction(s) that edges are allowed to connect to cells in. Possible values are DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST and DIRECTION_WEST.


STYLE_OPACITY

public static String STYLE_OPACITY
Defines the key for the opacity style. The type of the value is float and the possible range is 0-100.


STYLE_TEXT_OPACITY

public static String STYLE_TEXT_OPACITY
Defines the key for the text opacity style. The type of the value is float and the possible range is 0-100.


STYLE_OVERFLOW

public static String STYLE_OVERFLOW
Defines the key for the overflow style. Possible values are "visible", "hidden" and "fill". The default value is "visible". This value specifies how overlapping vertex labels are handles. A value of "visible" will show the complete label. A value of "hidden" will clip the label so that it does not overlap the vertex bounds. A value of "fill" will use the vertex bounds for the label.

See Also:
mxGraph.isLabelClipped(Object)

STYLE_ORTHOGONAL

public static String STYLE_ORTHOGONAL
Defines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location. Default is false. This is used in mxGraph.isOrthogonal, which also returns true if the edgeStyle of the edge is an elbow or entity.


STYLE_EXIT_X

public static String STYLE_EXIT_X
Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal.


STYLE_EXIT_Y

public static String STYLE_EXIT_Y
Defines the key for the vertical relative coordinate connection point of an edge with its source terminal.


STYLE_EXIT_PERIMETER

public static String STYLE_EXIT_PERIMETER
Defines if the perimeter should be used to find the exact entry point along the perimeter of the source. Possible values are 0 (false) and 1 (true). Default is 1 (true).


STYLE_ENTRY_X

public static String STYLE_ENTRY_X
Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal.


STYLE_ENTRY_Y

public static String STYLE_ENTRY_Y
Defines the key for the vertical relative coordinate connection point of an edge with its target terminal.


STYLE_ENTRY_PERIMETER

public static String STYLE_ENTRY_PERIMETER
Defines if the perimeter should be used to find the exact entry point along the perimeter of the target. Possible values are 0 (false) and 1 (true). Default is 1 (true).


STYLE_WHITE_SPACE

public static String STYLE_WHITE_SPACE
Defines the key for the white-space style. Possible values are "nowrap" and "wrap". The default value is "nowrap". This value specifies how white-space inside a HTML vertex label should be handled. A value of "nowrap" means the text will never wrap to the next line until a linefeed is encountered. A value of "wrap" means text will wrap when necessary.


STYLE_ROTATION

public static String STYLE_ROTATION
Defines the key for the rotation style. The type of the value is double and the possible range is 0-360.


STYLE_FILLCOLOR

public static String STYLE_FILLCOLOR
Defines the key for the fillColor style. The value is a string expression supported by mxUtils.parseColor.

See Also:
mxUtils.parseColor(String)

STYLE_GRADIENTCOLOR

public static String STYLE_GRADIENTCOLOR
Defines the key for the gradientColor style. The value is a string expression supported by mxUtils.parseColor. This is ignored if no fill color is defined.

See Also:
mxUtils.parseColor(String)

STYLE_GRADIENT_DIRECTION

public static String STYLE_GRADIENT_DIRECTION
Defines the key for the gradient direction. Possible values are DIRECTION_EAST, DIRECTION_WEST, DIRECTION_NORTH and DIRECTION_SOUTH. Default is DIRECTION_SOUTH. Generally, and by default in mxGraph, gradient painting is done from the value of STYLE_FILLCOLOR to the value of STYLE_GRADIENTCOLOR. Taking the example of DIRECTION_NORTH, this means STYLE_FILLCOLOR color at the bottom of paint pattern and STYLE_GRADIENTCOLOR at top, with a gradient in-between.


STYLE_STROKECOLOR

public static String STYLE_STROKECOLOR
Defines the key for the strokeColor style. The value is a string expression supported by mxUtils.parseColor.

See Also:
mxUtils.parseColor(String)

STYLE_SEPARATORCOLOR

public static String STYLE_SEPARATORCOLOR
Defines the key for the separatorColor style. The value is a string expression supported by mxUtils.parseColor. This style is only used for SHAPE_SWIMLANE shapes.

See Also:
mxUtils.parseColor(String)

STYLE_STROKEWIDTH

public static String STYLE_STROKEWIDTH
Defines the key for the strokeWidth style. The type of the value is float and the possible range is any non-negative value. The value reflects the stroke width in pixels.


STYLE_ALIGN

public static String STYLE_ALIGN
Defines the key for the align style. Possible values are ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT. This value defines how the lines of the label are horizontally aligned. ALIGN_LEFT mean label text lines are aligned to left of the label bounds, ALIGN_RIGHT to the right of the label bounds and ALIGN_CENTER means the center of the text lines are aligned in the center of the label bounds. Note this value doesn't affect the positioning of the overall label bounds relative to the vertex, to move the label bounds horizontally, use STYLE_LABEL_POSITION.


STYLE_VERTICAL_ALIGN

public static String STYLE_VERTICAL_ALIGN
Defines the key for the verticalAlign style. Possible values are ALIGN_TOP, ALIGN_MIDDLE and ALIGN_BOTTOM. This value defines how the lines of the label are vertically aligned. ALIGN_TOP means the topmost label text line is aligned against the top of the label bounds, ALIGN_BOTTOM means the bottom-most label text line is aligned against the bottom of the label bounds and ALIGN_MIDDLE means there is equal spacing between the topmost text label line and the top of the label bounds and the bottom-most text label line and the bottom of the label bounds. Note this value doesn't affect the positioning of the overall label bounds relative to the vertex, to move the label bounds vertically, use STYLE_VERTICAL_LABEL_POSITION.


STYLE_LABEL_POSITION

public static String STYLE_LABEL_POSITION
Defines the key for the horizontal label position of vertices. Possible values are ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT. Default is ALIGN_CENTER. The label align defines the position of the label relative to the cell. ALIGN_LEFT means the entire label bounds is placed completely just to the left of the vertex, ALIGN_RIGHT means adjust to the right and ALIGN_CENTER means the label bounds are vertically aligned with the bounds of the vertex. Note this value doesn't affect the positioning of label within the label bounds, to move the label horizontally within the label bounds, use STYLE_ALIGN.


STYLE_VERTICAL_LABEL_POSITION

public static String STYLE_VERTICAL_LABEL_POSITION
Defines the key for the vertical label position of vertices. Possible values are ALIGN_TOP, ALIGN_BOTTOM and ALIGN_MIDDLE. Default is ALIGN_MIDDLE. The label align defines the position of the label relative to the cell. ALIGN_TOP means the entire label bounds is placed completely just on the top of the vertex, ALIGN_BOTTOM means adjust on the bottom and ALIGN_MIDDLE means the label bounds are horizontally aligned with the bounds of the vertex. Note this value doesn't affect the positioning of label within the label bounds, to move the label vertically within the label bounds, use STYLE_VERTICAL_ALIGN.


STYLE_IMAGE_ALIGN

public static String STYLE_IMAGE_ALIGN
Defines the key for the align style. Possible values are ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT. The value defines how any image in the vertex label is aligned horizontally within the label bounds of a SHAPE_LABEL shape.


STYLE_IMAGE_VERTICAL_ALIGN

public static String STYLE_IMAGE_VERTICAL_ALIGN
Defines the key for the verticalAlign style. Possible values are ALIGN_TOP, ALIGN_MIDDLE and ALIGN_BOTTOM. The value defines how any image in the vertex label is aligned vertically within the label bounds of a SHAPE_LABEL shape.


STYLE_GLASS

public static String STYLE_GLASS
Defines the key for the glass style. Possible values are 0 (disabled) and 1(enabled). The default value is 0. This is used in mxLabel.


STYLE_IMAGE

public static String STYLE_IMAGE
Defines the key for the image style. Possible values are any image URL, registered key in mxImageResources or short data URI as defined in mxImageBundle. The type of the value is String. This is the path to the image to image that is to be displayed within the label of a vertex. See mxGraphics2DCanvas.getImageForStyle, loadImage and setImageBasePath on how the image URL is resolved. Finally, mxUtils.loadImage is used for loading the image for a given value.


STYLE_IMAGE_WIDTH

public static String STYLE_IMAGE_WIDTH
Defines the key for the imageWidth style. The type of this value is int, the value is the image width in pixels and must be greated than 0.


STYLE_IMAGE_HEIGHT

public static String STYLE_IMAGE_HEIGHT
Defines the key for the imageHeight style The type of this value is int, the value is the image height in pixels and must be greater than 0.


STYLE_IMAGE_BACKGROUND

public static String STYLE_IMAGE_BACKGROUND
Defines the key for the image background color. This style is only used for image shapes. Possible values are all HTML color names or HEX codes.


STYLE_IMAGE_BORDER

public static String STYLE_IMAGE_BORDER
Defines the key for the image border color. This style is only used for image shapes. Possible values are all HTML color names or HEX codes.


STYLE_IMAGE_FLIPH

public static String STYLE_IMAGE_FLIPH
Defines the key for the horizontal image flip. This style is only used in mxImageShape. Possible values are 0 and 1. Default is 0.


STYLE_IMAGE_FLIPV

public static String STYLE_IMAGE_FLIPV
Defines the key for the vertical image flip. This style is only used in mxImageShape. Possible values are 0 and 1. Default is 0.


STYLE_STENCIL_FLIPH

public static String STYLE_STENCIL_FLIPH
Defines the key for the horizontal stencil flip. This style is only used for . Possible values are 0 and 1. Default is 0.


STYLE_STENCIL_FLIPV

public static String STYLE_STENCIL_FLIPV
Defines the key for the vertical stencil flip. This style is only used for . Possible values are 0 and 1. Default is 0.


STYLE_NOLABEL

public static String STYLE_NOLABEL
Defines the key for the noLabel style. If this is true then no label is visible for a given cell. Possible values are true or false (1 or 0). Default is false.


STYLE_NOEDGESTYLE

public static String STYLE_NOEDGESTYLE
Defines the key for the noEdgeStyle style. If this is true then no edge style is applied for a given edge. Possible values are true or false (1 or 0). Default is false.


STYLE_LABEL_BACKGROUNDCOLOR

public static String STYLE_LABEL_BACKGROUNDCOLOR
Defines the key for the label background color. The value is a string expression supported by mxUtils.parseColor.

See Also:
mxUtils.parseColor(String)

STYLE_LABEL_BORDERCOLOR

public static String STYLE_LABEL_BORDERCOLOR
Defines the key for the label border color. The value is a string expression supported by mxUtils.parseColor.

See Also:
mxUtils.parseColor(String)

STYLE_INDICATOR_SHAPE

public static String STYLE_INDICATOR_SHAPE
Defines the key for the indicatorShape style. Possible values are any of the SHAPE_* constants.


STYLE_INDICATOR_IMAGE

public static String STYLE_INDICATOR_IMAGE
Defines the key for the indicatorImage style. Possible values are any image URL, the type of the value is String.


STYLE_INDICATOR_COLOR

public static String STYLE_INDICATOR_COLOR
Defines the key for the indicatorColor style. The value is a string expression supported by mxUtils.parseColor.

See Also:
mxUtils.parseColor(String)

STYLE_INDICATOR_GRADIENTCOLOR

public static String STYLE_INDICATOR_GRADIENTCOLOR
Defines the key for the indicatorGradientColor style. The value is a string expression supported by mxUtils.parseColor. This style is only supported in SHAPE_LABEL shapes.

See Also:
mxUtils.parseColor(String)

STYLE_INDICATOR_SPACING

public static String STYLE_INDICATOR_SPACING
Defines the key for the indicatorSpacing style (in px).


STYLE_INDICATOR_WIDTH

public static String STYLE_INDICATOR_WIDTH
Defines the key for the indicatorWidth style (in px).


STYLE_INDICATOR_HEIGHT

public static String STYLE_INDICATOR_HEIGHT
Defines the key for the indicatorHeight style (in px).


STYLE_SHADOW

public static String STYLE_SHADOW
Defines the key for the shadow style. The type of the value is boolean. This style applies to vertices and arrow style edges.


STYLE_SEGMENT

public static String STYLE_SEGMENT
Defines the key for the segment style. The type of this value is float and the value represents the size of the horizontal segment of the entity relation style. Default is ENTITY_SEGMENT.


STYLE_ENDARROW

public static String STYLE_ENDARROW
Defines the key for the endArrow style. Possible values are all constants in this class that start with ARROW_. This style is supported in the mxConnector shape.


STYLE_STARTARROW

public static String STYLE_STARTARROW
Defines the key for the startArrow style. Possible values are all constants in this class that start with ARROW_. See STYLE_ENDARROW. This style is supported in the mxConnector shape.


STYLE_ENDSIZE

public static String STYLE_ENDSIZE
Defines the key for the endSize style. The type of this value is float and the value represents the size of the end marker in pixels.


STYLE_STARTSIZE

public static String STYLE_STARTSIZE
Defines the key for the startSize style. The type of this value is float and the value represents the size of the start marker or the size of the swimlane title region depending on the shape it is used for.


STYLE_ENDFILL

public static String STYLE_ENDFILL
Defines the key for the endFill style. Use 0 for no fill or 1 (default) for fill. (This style is only exported via .)


STYLE_STARTFILL

public static String STYLE_STARTFILL
Defines the key for the startFill style. Use 0 for no fill or 1 (default) for fill. (This style is only exported via .)


STYLE_DASHED

public static String STYLE_DASHED
Defines the key for the dashed style. The type of this value is boolean and the value determines whether or not an edge or border is drawn with a dashed pattern along the line.


STYLE_DASH_PATTERN

public static String STYLE_DASH_PATTERN
Defines the key for the dashed pattern style. The type of this value is float[] and the value specifies the dashed pattern to apply to edges drawn with this style. This style allows the user to specify a custom-defined dash pattern. This is done using a series of numbers. Dash styles are defined in terms of the length of the dash (the drawn part of the stroke) and the length of the space between the dashes. The lengths are relative to the line width: a length of "1" is equal to the line width.


STYLE_ROUNDED

public static String STYLE_ROUNDED
Defines the key for the rounded style. The type of this value is boolean. For edges this determines whether or not joins between edges segments are smoothed to a rounded finish. For vertices that have the rectangle shape, this determines whether or not the rectangle is rounded.


STYLE_SOURCE_PERIMETER_SPACING

public static String STYLE_SOURCE_PERIMETER_SPACING
Defines the key for the source perimeter spacing. The type of this value is double. This is the distance between the source connection point of an edge and the perimeter of the source vertex in pixels. This style only applies to edges.


STYLE_TARGET_PERIMETER_SPACING

public static String STYLE_TARGET_PERIMETER_SPACING
Defines the key for the target perimeter spacing. The type of this value is double. This is the distance between the target connection point of an edge and the perimeter of the target vertex in pixels. This style only applies to edges.


STYLE_PERIMETER_SPACING

public static String STYLE_PERIMETER_SPACING
Defines the key for the perimeter spacing. This is the distance between the connection point and the perimeter in pixels. When used in a vertex style, this applies to all incoming edges to floating ports (edges that terminate on the perimeter of the vertex). When used in an edge style, this spacing applies to the source and target separately, if they terminate in floating ports (on the perimeter of the vertex).


STYLE_SPACING

public static String STYLE_SPACING
Defines the key for the spacing. The value represents the spacing, in pixels, added to each side of a label in a vertex (style applies to vertices only).


STYLE_SPACING_TOP

public static String STYLE_SPACING_TOP
Defines the key for the spacingTop style. The value represents the spacing, in pixels, added to the top side of a label in a vertex (style applies to vertices only).


STYLE_SPACING_LEFT

public static String STYLE_SPACING_LEFT
Defines the key for the spacingLeft style. The value represents the spacing, in pixels, added to the left side of a label in a vertex (style applies to vertices only).


STYLE_SPACING_BOTTOM

public static String STYLE_SPACING_BOTTOM
Defines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only).


STYLE_SPACING_RIGHT

public static String STYLE_SPACING_RIGHT
Defines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only).


STYLE_HORIZONTAL

public static String STYLE_HORIZONTAL
Defines the key for the horizontal style. Possible values are true or false. This value only applies to vertices. If the STYLE_SHAPE is SHAPE_SWIMLANE a value of false indicates that the swimlane should be drawn vertically, true indicates to draw it horizontally. If the shape style does not indicate that this vertex is a swimlane, this value affects only whether the label is drawn horizontally or vertically.


STYLE_DIRECTION

public static String STYLE_DIRECTION
Defines the key for the direction style. The direction style is used to specify the direction of certain shapes (eg. mxTriangle). Possible values are DIRECTION_EAST (default), DIRECTION_WEST, DIRECTION_NORTH and DIRECTION_SOUTH. This value only applies to vertices.


STYLE_ELBOW

public static String STYLE_ELBOW
Defines the key for the elbow style. Possible values are ELBOW_HORIZONTAL and ELBOW_VERTICAL. Default is ELBOW_HORIZONTAL. This defines how the three segment orthogonal edge style leaves its terminal vertices. The vertical style leaves the terminal vertices at the top and bottom sides.


STYLE_FONTCOLOR

public static String STYLE_FONTCOLOR
Defines the key for the fontColor style. The value is type String and of the expression supported by mxUtils.parseColor.

See Also:
mxUtils.parseColor(String)

STYLE_FONTFAMILY

public static String STYLE_FONTFAMILY
Defines the key for the fontFamily style. Possible values are names such as Arial; Dialog; Verdana; Times New Roman. The value is of type String.


STYLE_FONTSIZE

public static String STYLE_FONTSIZE
Defines the key for the fontSize style (in points). The type of the value is int.


STYLE_FONTSTYLE

public static String STYLE_FONTSTYLE
Defines the key for the fontStyle style. Values may be any logical AND (sum) of FONT_BOLD, FONT_ITALIC, FONT_UNDERLINE and FONT_SHADOW. The type of the value is int.


STYLE_AUTOSIZE

public static String STYLE_AUTOSIZE
Defines the key for the autosize style. This specifies if a cell should be resized automatically if the value has changed. Possible values are 0 or 1. Default is 0. See mxGraph.isAutoSizeCell. This is normally combined with STYLE_RESIZABLE to disable manual sizing.


STYLE_FOLDABLE

public static String STYLE_FOLDABLE
Defines the key for the foldable style. This specifies if a cell is foldable using a folding icon. Possible values are 0 or 1. Default is 1. See mxGraph.isCellFoldable.


STYLE_EDITABLE

public static String STYLE_EDITABLE
Defines the key for the editable style. This specifies if the value of a cell can be edited using the in-place editor. Possible values are 0 or 1. Default is 1. See mxGraph.isCellEditable.


STYLE_BENDABLE

public static String STYLE_BENDABLE
Defines the key for the bendable style. This specifies if the control points of an edge can be moved. Possible values are 0 or 1. Default is 1. See mxGraph.isCellBendable.


STYLE_MOVABLE

public static String STYLE_MOVABLE
Defines the key for the movable style. This specifies if a cell can be moved. Possible values are 0 or 1. Default is 1. See mxGraph.isCellMovable.


STYLE_RESIZABLE

public static String STYLE_RESIZABLE
Defines the key for the resizable style. This specifies if a cell can be resized. Possible values are 0 or 1. Default is 1. See mxGraph.isCellResizable.


STYLE_CLONEABLE

public static String STYLE_CLONEABLE
Defines the key for the cloneable style. This specifies if a cell can be cloned. Possible values are 0 or 1. Default is 1. See mxGraph.isCellCloneable.


STYLE_DELETABLE

public static String STYLE_DELETABLE
Defines the key for the deletable style. This specifies if a cell can be deleted. Possible values are 0 or 1. Default is 1. See mxGraph.isCellDeletable.


STYLE_SHAPE

public static String STYLE_SHAPE
Defines the key for the shape style. Possible values are any of the SHAPE_* constants.


STYLE_EDGE

public static String STYLE_EDGE
Takes a function that creates points. Possible values are the functions defined in mxEdgeStyle.


STYLE_LOOP

public static String STYLE_LOOP
Defines the key for the loop style. Possible values are the functions defined in mxEdgeStyle.


STYLE_ROUTING_CENTER_X

public static String STYLE_ROUTING_CENTER_X
Defines the key for the horizontal routing center. Possible values are between -0.5 and 0.5. This is the relative offset from the center used for connecting edges. The type of this value is float.


STYLE_ROUTING_CENTER_Y

public static String STYLE_ROUTING_CENTER_Y
Defines the key for the vertical routing center. Possible values are between -0.5 and 0.5. This is the relative offset from the center used for connecting edges. The type of this value is float.


FONT_BOLD

public static final int FONT_BOLD
FONT_BOLD

See Also:
Constant Field Values

FONT_ITALIC

public static final int FONT_ITALIC
FONT_ITALIC

See Also:
Constant Field Values

FONT_UNDERLINE

public static final int FONT_UNDERLINE
FONT_UNDERLINE

See Also:
Constant Field Values

FONT_SHADOW

public static final int FONT_SHADOW
FONT_SHADOW

See Also:
Constant Field Values

SHAPE_RECTANGLE

public static final String SHAPE_RECTANGLE
SHAPE_RECTANGLE

See Also:
Constant Field Values

SHAPE_ELLIPSE

public static final String SHAPE_ELLIPSE
SHAPE_ELLIPSE

See Also:
Constant Field Values

SHAPE_DOUBLE_ELLIPSE

public static final String SHAPE_DOUBLE_ELLIPSE
SHAPE_DOUBLE_ELLIPSE

See Also:
Constant Field Values

SHAPE_RHOMBUS

public static final String SHAPE_RHOMBUS
SHAPE_RHOMBUS

See Also:
Constant Field Values

SHAPE_LINE

public static final String SHAPE_LINE
SHAPE_LINE

See Also:
Constant Field Values

SHAPE_IMAGE

public static final String SHAPE_IMAGE
SHAPE_IMAGE

See Also:
Constant Field Values

SHAPE_ARROW

public static final String SHAPE_ARROW
SHAPE_ARROW

See Also:
Constant Field Values

SHAPE_CURVE

public static final String SHAPE_CURVE
SHAPE_ARROW

See Also:
Constant Field Values

SHAPE_LABEL

public static final String SHAPE_LABEL
SHAPE_LABEL

See Also:
Constant Field Values

SHAPE_CYLINDER

public static final String SHAPE_CYLINDER
SHAPE_CYLINDER

See Also:
Constant Field Values

SHAPE_SWIMLANE

public static final String SHAPE_SWIMLANE
SHAPE_SWIMLANE

See Also:
Constant Field Values

SHAPE_CONNECTOR

public static final String SHAPE_CONNECTOR
SHAPE_CONNECTOR

See Also:
Constant Field Values

SHAPE_ACTOR

public static final String SHAPE_ACTOR
SHAPE_ACTOR

See Also:
Constant Field Values

SHAPE_CLOUD

public static final String SHAPE_CLOUD
SHAPE_CLOUD

See Also:
Constant Field Values

SHAPE_TRIANGLE

public static final String SHAPE_TRIANGLE
SHAPE_TRIANGLE

See Also:
Constant Field Values

SHAPE_HEXAGON

public static final String SHAPE_HEXAGON
SHAPE_HEXAGON

See Also:
Constant Field Values

ARROW_CLASSIC

public static final String ARROW_CLASSIC
ARROW_CLASSIC

See Also:
Constant Field Values

ARROW_BLOCK

public static final String ARROW_BLOCK
ARROW_BLOCK

See Also:
Constant Field Values

ARROW_OPEN

public static final String ARROW_OPEN
ARROW_OPEN

See Also:
Constant Field Values

ARROW_OVAL

public static final String ARROW_OVAL
ARROW_BLOCK

See Also:
Constant Field Values

ARROW_DIAMOND

public static final String ARROW_DIAMOND
ARROW_OPEN

See Also:
Constant Field Values

ALIGN_LEFT

public static final String ALIGN_LEFT
ALIGN_LEFT

See Also:
Constant Field Values

ALIGN_CENTER

public static final String ALIGN_CENTER
ALIGN_CENTER

See Also:
Constant Field Values

ALIGN_RIGHT

public static final String ALIGN_RIGHT
ALIGN_RIGHT

See Also:
Constant Field Values

ALIGN_TOP

public static final String ALIGN_TOP
ALIGN_TOP

See Also:
Constant Field Values

ALIGN_MIDDLE

public static final String ALIGN_MIDDLE
ALIGN_MIDDLE

See Also:
Constant Field Values

ALIGN_BOTTOM

public static final String ALIGN_BOTTOM
ALIGN_BOTTOM

See Also:
Constant Field Values

DIRECTION_NORTH

public static final String DIRECTION_NORTH
DIRECTION_NORTH

See Also:
Constant Field Values

DIRECTION_SOUTH

public static final String DIRECTION_SOUTH
DIRECTION_SOUTH

See Also:
Constant Field Values

DIRECTION_EAST

public static final String DIRECTION_EAST
DIRECTION_EAST

See Also:
Constant Field Values

DIRECTION_WEST

public static final String DIRECTION_WEST
DIRECTION_WEST

See Also:
Constant Field Values

DIRECTION_MASK_NONE

public static final int DIRECTION_MASK_NONE
DIRECTION_MASK_NONE

See Also:
Constant Field Values

DIRECTION_MASK_WEST

public static final int DIRECTION_MASK_WEST
DIRECTION_MASK_WEST

See Also:
Constant Field Values

DIRECTION_MASK_NORTH

public static final int DIRECTION_MASK_NORTH
DIRECTION_MASK_NORTH

See Also:
Constant Field Values

DIRECTION_MASK_SOUTH

public static final int DIRECTION_MASK_SOUTH
DIRECTION_MASK_SOUTH

See Also:
Constant Field Values

DIRECTION_MASK_EAST

public static final int DIRECTION_MASK_EAST
DIRECTION_MASK_EAST

See Also:
Constant Field Values

DIRECTION_MASK_ALL

public static final int DIRECTION_MASK_ALL
DIRECTION_MASK_EAST

See Also:
Constant Field Values

ELBOW_VERTICAL

public static final String ELBOW_VERTICAL
ELBOW_VERTICAL

See Also:
Constant Field Values

ELBOW_HORIZONTAL

public static final String ELBOW_HORIZONTAL
ELBOW_HORIZONTAL

See Also:
Constant Field Values

EDGESTYLE_ELBOW

public static final String EDGESTYLE_ELBOW
Name of the elbow edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

EDGESTYLE_ENTITY_RELATION

public static final String EDGESTYLE_ENTITY_RELATION
Name of the entity relation edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

EDGESTYLE_LOOP

public static final String EDGESTYLE_LOOP
Name of the loop edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

EDGESTYLE_SIDETOSIDE

public static final String EDGESTYLE_SIDETOSIDE
Name of the side to side edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

EDGESTYLE_TOPTOBOTTOM

public static final String EDGESTYLE_TOPTOBOTTOM
Name of the top to bottom edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

EDGESTYLE_ORTHOGONAL

public static final String EDGESTYLE_ORTHOGONAL
Name of the orthogonal edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

EDGESTYLE_SEGMENT

public static final String EDGESTYLE_SEGMENT
Name of the generic segment edge style. Can be used as a string value for the STYLE_EDGE style.

See Also:
Constant Field Values

PERIMETER_ELLIPSE

public static final String PERIMETER_ELLIPSE
Name of the ellipse perimeter. Can be used as a string value for the STYLE_PERIMETER style.

See Also:
Constant Field Values

PERIMETER_RECTANGLE

public static final String PERIMETER_RECTANGLE
Name of the rectangle perimeter. Can be used as a string value for the STYLE_PERIMETER style.

See Also:
Constant Field Values

PERIMETER_RHOMBUS

public static final String PERIMETER_RHOMBUS
Name of the rhombus perimeter. Can be used as a string value for the STYLE_PERIMETER style.

See Also:
Constant Field Values

PERIMETER_TRIANGLE

public static final String PERIMETER_TRIANGLE
Name of the triangle perimeter. Can be used as a string value for the STYLE_PERIMETER style.

See Also:
Constant Field Values

PERIMETER_HEXAGON

public static final String PERIMETER_HEXAGON
Name of the hexagon perimeter. Can be used as a string value for the STYLE_PERIMETER style.

See Also:
Constant Field Values
Constructor Detail

mxConstants

public mxConstants()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxLine.html0000664000175000017500000005062412176166726024665 0ustar sylvestresylvestre mxLine (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxLine

java.lang.Object
  extended by com.mxgraph.util.mxPoint
      extended by com.mxgraph.util.mxLine
All Implemented Interfaces:
Serializable, Cloneable

public class mxLine
extends mxPoint

Implements a line with double precision coordinates.

See Also:
Serialized Form

Field Summary
protected  mxPoint endPoint
          The end point of the line
 
Fields inherited from class com.mxgraph.util.mxPoint
x, y
 
Constructor Summary
mxLine(double startPtX, double startPtY, mxPoint endPt)
          Creates a new line
mxLine(mxPoint startPt, mxPoint endPt)
          Creates a new line
 
Method Summary
 mxPoint getEndPoint()
          Returns the end point of the line.
 double ptLineDistSq(mxPoint pt)
          Returns the square of the shortest distance from a point to this line.
 double ptSegDistSq(mxPoint pt)
          Returns the square of the shortest distance from a point to this line segment.
 void setEndPoint(mxPoint value)
          Sets the end point of the rectangle.
 void setPoints(mxPoint startPt, mxPoint endPt)
          Sets the start and end points.
 
Methods inherited from class com.mxgraph.util.mxPoint
clone, equals, getPoint, getX, getY, setX, setY, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

endPoint

protected mxPoint endPoint
The end point of the line

Constructor Detail

mxLine

public mxLine(mxPoint startPt,
              mxPoint endPt)
Creates a new line


mxLine

public mxLine(double startPtX,
              double startPtY,
              mxPoint endPt)
Creates a new line

Method Detail

getEndPoint

public mxPoint getEndPoint()
Returns the end point of the line.

Returns:
Returns the end point of the line.

setEndPoint

public void setEndPoint(mxPoint value)
Sets the end point of the rectangle.

Parameters:
value - The new end point of the line

setPoints

public void setPoints(mxPoint startPt,
                      mxPoint endPt)
Sets the start and end points.


ptLineDistSq

public double ptLineDistSq(mxPoint pt)
Returns the square of the shortest distance from a point to this line. The line is considered extrapolated infinitely in both directions for the purposes of the calculation.

Parameters:
pt - the point whose distance is being measured
Returns:
the square of the distance from the specified point to this line.

ptSegDistSq

public double ptSegDistSq(mxPoint pt)
Returns the square of the shortest distance from a point to this line segment.

Parameters:
pt - the point whose distance is being measured
Returns:
the square of the distance from the specified point to this segment.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxEventSource.html0000664000175000017500000006542212176166724026240 0ustar sylvestresylvestre mxEventSource (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxEventSource

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
Direct Known Subclasses:
mxAnimation, mxConnectPreview, mxGraph, mxGraphModel, mxGraphSelectionModel, mxGraphView, mxLayoutManager, mxMovePreview, mxSharedState, mxSpaceManager, mxSwimlaneManager, mxUndoManager

public class mxEventSource
extends Object

Base class for objects that dispatch named events.


Nested Class Summary
static interface mxEventSource.mxIEventListener
          Defines the requirements for an object that listens to an event source.
 
Field Summary
protected  List<Object> eventListeners
          Holds the event names and associated listeners in an array.
protected  boolean eventsEnabled
          Specifies if events can be fired.
protected  Object eventSource
          Holds the source object for this event source.
 
Constructor Summary
mxEventSource()
          Constructs a new event source using this as the source object.
mxEventSource(Object source)
          Constructs a new event source for the given source object.
 
Method Summary
 void addListener(String eventName, mxEventSource.mxIEventListener listener)
          Binds the specified function to the given event name.
 void fireEvent(mxEventObject evt)
          Dispatches the given event name with this object as the event source.
 void fireEvent(mxEventObject evt, Object sender)
          Dispatches the given event name, passing all arguments after the given name to the registered listeners for the event.
 Object getEventSource()
           
 boolean isEventsEnabled()
           
 void removeListener(mxEventSource.mxIEventListener listener)
          Function: removeListener Removes all occurances of the given listener from the list of listeners.
 void removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Function: removeListener Removes all occurances of the given listener from the list of listeners.
 void setEventsEnabled(boolean eventsEnabled)
           
 void setEventSource(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventListeners

protected transient List<Object> eventListeners
Holds the event names and associated listeners in an array. The array contains the event name followed by the respective listener for each registered listener.


eventSource

protected Object eventSource
Holds the source object for this event source.


eventsEnabled

protected boolean eventsEnabled
Specifies if events can be fired. Default is true.

Constructor Detail

mxEventSource

public mxEventSource()
Constructs a new event source using this as the source object.


mxEventSource

public mxEventSource(Object source)
Constructs a new event source for the given source object.

Method Detail

getEventSource

public Object getEventSource()

setEventSource

public void setEventSource(Object value)

isEventsEnabled

public boolean isEventsEnabled()

setEventsEnabled

public void setEventsEnabled(boolean eventsEnabled)

addListener

public void addListener(String eventName,
                        mxEventSource.mxIEventListener listener)
Binds the specified function to the given event name. If no event name is given, then the listener is registered for all events.


removeListener

public void removeListener(mxEventSource.mxIEventListener listener)
Function: removeListener Removes all occurances of the given listener from the list of listeners.


removeListener

public void removeListener(mxEventSource.mxIEventListener listener,
                           String eventName)
Function: removeListener Removes all occurances of the given listener from the list of listeners.


fireEvent

public void fireEvent(mxEventObject evt)
Dispatches the given event name with this object as the event source. fireEvent(new mxEventObject("eventName", key1, val1, .., keyN, valN))


fireEvent

public void fireEvent(mxEventObject evt,
                      Object sender)
Dispatches the given event name, passing all arguments after the given name to the registered listeners for the event.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxEventSource.mxIEventListener.html0000664000175000017500000002226312176166724031500 0ustar sylvestresylvestre mxEventSource.mxIEventListener (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Interface mxEventSource.mxIEventListener

Enclosing class:
mxEventSource

public static interface mxEventSource.mxIEventListener

Defines the requirements for an object that listens to an event source.


Method Summary
 void invoke(Object sender, mxEventObject evt)
          Called when the graph model has changed.
 

Method Detail

invoke

void invoke(Object sender,
            mxEventObject evt)
Called when the graph model has changed.

Parameters:
sender - Reference to the source of the event.
evt - Event object to be dispatched.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/0000775000175000017500000000000012176166726023333 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/ExtendedGeneralPath.html0000664000175000017500000014177512176166726030113 0ustar sylvestresylvestre ExtendedGeneralPath (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class ExtendedGeneralPath

java.lang.Object
  extended by com.mxgraph.util.svg.ExtendedGeneralPath
All Implemented Interfaces:
Shape, Cloneable

public class ExtendedGeneralPath
extends Object
implements Shape, Cloneable

The ExtendedGeneralPath class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc. This class delegates lines and curves to an enclosed GeneralPath. Elliptical arc is implemented using an Arc2D in float precision.

Warning : An elliptical arc may be composed of several path segments. For futher details, see the SVG Appendix F.6


Field Summary
protected  GeneralPath path
          The enclosed general path.
 
Constructor Summary
ExtendedGeneralPath()
          Constructs a new ExtendedGeneralPath.
ExtendedGeneralPath(int rule)
          Constructs a new ExtendedGeneralPath with the specified winding rule to control operations that require the interior of the path to be defined.
ExtendedGeneralPath(int rule, int initialCapacity)
          Constructs a new ExtendedGeneralPath object with the specified winding rule and the specified initial capacity to store path coordinates.
ExtendedGeneralPath(Shape s)
          Constructs a new ExtendedGeneralPath object from an arbitrary Shape object.
 
Method Summary
 void append(ExtendedPathIterator epi, boolean connect)
          Delegates to the enclosed GeneralPath.
 void append(PathIterator pi, boolean connect)
          Delegates to the enclosed GeneralPath.
 void append(Shape s, boolean connect)
          Delegates to the enclosed GeneralPath.
 void arcTo(float rx, float ry, float angle, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Adds an elliptical arc, defined by two radii, an angle from the x-axis, a flag to choose the large arc or not, a flag to indicate if we increase or decrease the angles and the final point of the arc.
protected  void checkMoveTo()
          Checks if previous command was a moveto command, skipping a close command (if present).
 Object clone()
          Delegates to the enclosed GeneralPath.
 void closePath()
          Delegates to the enclosed GeneralPath.
static Arc2D computeArc(double x0, double y0, double rx, double ry, double angle, boolean largeArcFlag, boolean sweepFlag, double x, double y)
          This constructs an unrotated Arc2D from the SVG specification of an Elliptical arc.
 boolean contains(double x, double y)
          Delegates to the enclosed GeneralPath.
 boolean contains(double x, double y, double w, double h)
          Delegates to the enclosed GeneralPath.
 boolean contains(Point2D p)
          Delegates to the enclosed GeneralPath.
 boolean contains(Rectangle2D r)
          Delegates to the enclosed GeneralPath.
 Shape createTransformedShape(AffineTransform at)
          Delegates to the enclosed GeneralPath.
 void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
          Delegates to the enclosed GeneralPath.
 Rectangle getBounds()
          Delegates to the enclosed GeneralPath.
 Rectangle2D getBounds2D()
          Delegates to the enclosed GeneralPath.
 Point2D getCurrentPoint()
          get the current position or null.
 ExtendedPathIterator getExtendedPathIterator()
          Delegates to the enclosed GeneralPath.
 PathIterator getPathIterator(AffineTransform at)
          Delegates to the enclosed GeneralPath.
 PathIterator getPathIterator(AffineTransform at, double flatness)
          Delegates to the enclosed GeneralPath.
 int getWindingRule()
          Delegates to the enclosed GeneralPath.
 boolean intersects(double x, double y, double w, double h)
          Delegates to the enclosed GeneralPath.
 boolean intersects(Rectangle2D r)
          Delegates to the enclosed GeneralPath.
 void lineTo(float x, float y)
          Delegates to the enclosed GeneralPath.
 void moveTo(float x, float y)
          Delegates to the enclosed GeneralPath.
 void quadTo(float x1, float y1, float x2, float y2)
          Delegates to the enclosed GeneralPath.
 void reset()
          Delegates to the enclosed GeneralPath.
 void setWindingRule(int rule)
          Delegates to the enclosed GeneralPath.
 void transform(AffineTransform at)
          Delegates to the enclosed GeneralPath.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected GeneralPath path
The enclosed general path.

Constructor Detail

ExtendedGeneralPath

public ExtendedGeneralPath()
Constructs a new ExtendedGeneralPath.


ExtendedGeneralPath

public ExtendedGeneralPath(int rule)
Constructs a new ExtendedGeneralPath with the specified winding rule to control operations that require the interior of the path to be defined.


ExtendedGeneralPath

public ExtendedGeneralPath(int rule,
                           int initialCapacity)
Constructs a new ExtendedGeneralPath object with the specified winding rule and the specified initial capacity to store path coordinates.


ExtendedGeneralPath

public ExtendedGeneralPath(Shape s)
Constructs a new ExtendedGeneralPath object from an arbitrary Shape object.

Method Detail

arcTo

public void arcTo(float rx,
                  float ry,
                  float angle,
                  boolean largeArcFlag,
                  boolean sweepFlag,
                  float x,
                  float y)
Adds an elliptical arc, defined by two radii, an angle from the x-axis, a flag to choose the large arc or not, a flag to indicate if we increase or decrease the angles and the final point of the arc.

Parameters:
rx - the x radius of the ellipse
ry - the y radius of the ellipse
angle - the angle from the x-axis of the current coordinate system to the x-axis of the ellipse in degrees.
largeArcFlag - the large arc flag. If true the arc spanning less than or equal to 180 degrees is chosen, otherwise the arc spanning greater than 180 degrees is chosen
sweepFlag - the sweep flag. If true the line joining center to arc sweeps through decreasing angles otherwise it sweeps through increasing angles
x - the absolute x coordinate of the final point of the arc.
y - the absolute y coordinate of the final point of the arc.

computeArc

public static Arc2D computeArc(double x0,
                               double y0,
                               double rx,
                               double ry,
                               double angle,
                               boolean largeArcFlag,
                               boolean sweepFlag,
                               double x,
                               double y)
This constructs an unrotated Arc2D from the SVG specification of an Elliptical arc. To get the final arc you need to apply a rotation transform such as: AffineTransform.getRotateInstance (angle, arc.getX()+arc.getWidth()/2, arc.getY()+arc.getHeight()/2);


moveTo

public void moveTo(float x,
                   float y)
Delegates to the enclosed GeneralPath.


lineTo

public void lineTo(float x,
                   float y)
Delegates to the enclosed GeneralPath.


quadTo

public void quadTo(float x1,
                   float y1,
                   float x2,
                   float y2)
Delegates to the enclosed GeneralPath.


curveTo

public void curveTo(float x1,
                    float y1,
                    float x2,
                    float y2,
                    float x3,
                    float y3)
Delegates to the enclosed GeneralPath.


closePath

public void closePath()
Delegates to the enclosed GeneralPath.


checkMoveTo

protected void checkMoveTo()
Checks if previous command was a moveto command, skipping a close command (if present).


append

public void append(Shape s,
                   boolean connect)
Delegates to the enclosed GeneralPath.


append

public void append(PathIterator pi,
                   boolean connect)
Delegates to the enclosed GeneralPath.


append

public void append(ExtendedPathIterator epi,
                   boolean connect)
Delegates to the enclosed GeneralPath.


getWindingRule

public int getWindingRule()
Delegates to the enclosed GeneralPath.


setWindingRule

public void setWindingRule(int rule)
Delegates to the enclosed GeneralPath.


getCurrentPoint

public Point2D getCurrentPoint()
get the current position or null.


reset

public void reset()
Delegates to the enclosed GeneralPath.


transform

public void transform(AffineTransform at)
Delegates to the enclosed GeneralPath.


createTransformedShape

public Shape createTransformedShape(AffineTransform at)
Delegates to the enclosed GeneralPath.


getBounds

public Rectangle getBounds()
Delegates to the enclosed GeneralPath.

Specified by:
getBounds in interface Shape

getBounds2D

public Rectangle2D getBounds2D()
Delegates to the enclosed GeneralPath.

Specified by:
getBounds2D in interface Shape

contains

public boolean contains(double x,
                        double y)
Delegates to the enclosed GeneralPath.

Specified by:
contains in interface Shape

contains

public boolean contains(Point2D p)
Delegates to the enclosed GeneralPath.

Specified by:
contains in interface Shape

contains

public boolean contains(double x,
                        double y,
                        double w,
                        double h)
Delegates to the enclosed GeneralPath.

Specified by:
contains in interface Shape

contains

public boolean contains(Rectangle2D r)
Delegates to the enclosed GeneralPath.

Specified by:
contains in interface Shape

intersects

public boolean intersects(double x,
                          double y,
                          double w,
                          double h)
Delegates to the enclosed GeneralPath.

Specified by:
intersects in interface Shape

intersects

public boolean intersects(Rectangle2D r)
Delegates to the enclosed GeneralPath.

Specified by:
intersects in interface Shape

getPathIterator

public PathIterator getPathIterator(AffineTransform at)
Delegates to the enclosed GeneralPath.

Specified by:
getPathIterator in interface Shape

getPathIterator

public PathIterator getPathIterator(AffineTransform at,
                                    double flatness)
Delegates to the enclosed GeneralPath.

Specified by:
getPathIterator in interface Shape

getExtendedPathIterator

public ExtendedPathIterator getExtendedPathIterator()
Delegates to the enclosed GeneralPath.


clone

public Object clone()
Delegates to the enclosed GeneralPath.

Overrides:
clone in class Object

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/AWTPolylineProducer.html0000664000175000017500000005772212176166726030111 0ustar sylvestresylvestre AWTPolylineProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class AWTPolylineProducer

java.lang.Object
  extended by com.mxgraph.util.svg.AWTPolylineProducer
All Implemented Interfaces:
PointsHandler, ShapeProducer
Direct Known Subclasses:
AWTPolygonProducer

public class AWTPolylineProducer
extends Object
implements PointsHandler, ShapeProducer

This class produces a polyline shape from a reader.


Field Summary
protected  boolean newPath
          Is the current path a new one?
protected  GeneralPath path
          The current path.
protected  int windingRule
          The winding rule to use to construct the path.
 
Constructor Summary
AWTPolylineProducer()
           
 
Method Summary
static Shape createShape(String text, int wr)
          Utility method for creating an ExtendedGeneralPath.
 void endPoints()
          Implements PointsHandler.endPoints().
 Shape getShape()
          Returns the Shape object initialized during the last parsing.
 int getWindingRule()
          Returns the current winding rule.
 void point(float x, float y)
          Implements PointsHandler.point(float,float).
 void setWindingRule(int i)
          Sets the winding rule used to construct the path.
 void startPoints()
          Implements PointsHandler.startPoints().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected GeneralPath path
The current path.


newPath

protected boolean newPath
Is the current path a new one?


windingRule

protected int windingRule
The winding rule to use to construct the path.

Constructor Detail

AWTPolylineProducer

public AWTPolylineProducer()
Method Detail

createShape

public static Shape createShape(String text,
                                int wr)
                         throws ParseException
Utility method for creating an ExtendedGeneralPath.

Parameters:
text - The text representation of the path specification.
wr - The winding rule to use for creating the path.
Throws:
ParseException

setWindingRule

public void setWindingRule(int i)
Sets the winding rule used to construct the path.

Specified by:
setWindingRule in interface ShapeProducer

getWindingRule

public int getWindingRule()
Returns the current winding rule.

Specified by:
getWindingRule in interface ShapeProducer

getShape

public Shape getShape()
Returns the Shape object initialized during the last parsing.

Specified by:
getShape in interface ShapeProducer
Returns:
the shape or null if this handler has not been used by a parser.

startPoints

public void startPoints()
                 throws ParseException
Implements PointsHandler.startPoints().

Specified by:
startPoints in interface PointsHandler
Throws:
ParseException - if an error occured while processing the points

point

public void point(float x,
                  float y)
           throws ParseException
Implements PointsHandler.point(float,float).

Specified by:
point in interface PointsHandler
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
Throws:
ParseException - if an error occured while processing the points

endPoints

public void endPoints()
               throws ParseException
Implements PointsHandler.endPoints().

Specified by:
endPoints in interface PointsHandler
Throws:
ParseException - if an error occured while processing the points

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/DefaultErrorHandler.html0000664000175000017500000003304212176166726030117 0ustar sylvestresylvestre DefaultErrorHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class DefaultErrorHandler

java.lang.Object
  extended by com.mxgraph.util.svg.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends Object
implements ErrorHandler

This class provides a default implementation of ErrorHandler.


Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
 void error(ParseException e)
          Implements ErrorHandler.error(ParseException).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

error

public void error(ParseException e)
           throws ParseException
Implements ErrorHandler.error(ParseException). Throws the given exception.

Specified by:
error in interface ErrorHandler
Throws:
ParseException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/PointsParser.html0000664000175000017500000005206012176166726026655 0ustar sylvestresylvestre PointsParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class PointsParser

java.lang.Object
  extended by com.mxgraph.util.svg.AbstractParser
      extended by com.mxgraph.util.svg.NumberParser
          extended by com.mxgraph.util.svg.PointsParser
All Implemented Interfaces:
Parser

public class PointsParser
extends NumberParser

This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).


Field Summary
protected  boolean eRead
          Whether the last character was a 'e' or 'E'.
protected  PointsHandler pointsHandler
          The points handler used to report parse events.
 
Fields inherited from class com.mxgraph.util.svg.AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, reader
 
Constructor Summary
PointsParser(PointsHandler handler)
          Creates a new PointsParser.
 
Method Summary
protected  void doParse()
          Parses the current stream.
 PointsHandler getPointsHandler()
          Returns the points handler in use.
 void setPointsHandler(PointsHandler handler)
          Allows an application to register a points handler.
 
Methods inherited from class com.mxgraph.util.svg.NumberParser
buildFloat, parseFloat
 
Methods inherited from class com.mxgraph.util.svg.AbstractParser
createErrorMessage, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointsHandler

protected PointsHandler pointsHandler
The points handler used to report parse events.


eRead

protected boolean eRead
Whether the last character was a 'e' or 'E'.

Constructor Detail

PointsParser

public PointsParser(PointsHandler handler)
Creates a new PointsParser.

Method Detail

setPointsHandler

public void setPointsHandler(PointsHandler handler)
Allows an application to register a points handler.

If the application does not register a handler, all events reported by the parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.

Parameters:
handler - The transform list handler.

getPointsHandler

public PointsHandler getPointsHandler()
Returns the points handler in use.


doParse

protected void doParse()
                throws ParseException,
                       IOException
Parses the current stream.

Specified by:
doParse in class AbstractParser
Throws:
ParseException
IOException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/AWTPolygonProducer.html0000664000175000017500000004315512176166726027740 0ustar sylvestresylvestre AWTPolygonProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class AWTPolygonProducer

java.lang.Object
  extended by com.mxgraph.util.svg.AWTPolylineProducer
      extended by com.mxgraph.util.svg.AWTPolygonProducer
All Implemented Interfaces:
PointsHandler, ShapeProducer

public class AWTPolygonProducer
extends AWTPolylineProducer

This class produces a polygon shape from a reader.


Field Summary
 
Fields inherited from class com.mxgraph.util.svg.AWTPolylineProducer
newPath, path, windingRule
 
Constructor Summary
AWTPolygonProducer()
           
 
Method Summary
static Shape createShape(String text, int wr)
          Utility method for creating an ExtendedGeneralPath.
 void endPoints()
          Implements PointsHandler.endPoints().
 
Methods inherited from class com.mxgraph.util.svg.AWTPolylineProducer
getShape, getWindingRule, point, setWindingRule, startPoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTPolygonProducer

public AWTPolygonProducer()
Method Detail

createShape

public static Shape createShape(String text,
                                int wr)
                         throws ParseException
Utility method for creating an ExtendedGeneralPath.

Parameters:
text - The text representation of the path specification.
wr - The winding rule to use for creating the path.
Throws:
ParseException

endPoints

public void endPoints()
               throws ParseException
Implements PointsHandler.endPoints().

Specified by:
endPoints in interface PointsHandler
Overrides:
endPoints in class AWTPolylineProducer
Throws:
ParseException - if an error occured while processing the points

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/ParseException.html0000664000175000017500000006010312176166726027152 0ustar sylvestresylvestre ParseException (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.mxgraph.util.svg.ParseException
All Implemented Interfaces:
Serializable

public class ParseException
extends RuntimeException

This class encapsulates a general parse error or warning.

This class can contain basic error or warning information from either the parser or the application.

If the application needs to pass through other types of exceptions, it must wrap those exceptions in a ParseException.

See Also:
Serialized Form

Field Summary
protected  int columnNumber
           
protected  Exception exception
           
protected  int lineNumber
           
 
Constructor Summary
ParseException(Exception e)
          Creates a new ParseException wrapping an existing exception.
ParseException(String message, Exception e)
          Creates a new ParseException from an existing exception.
ParseException(String message, int line, int column)
          Creates a new ParseException.
 
Method Summary
 int getColumnNumber()
          Returns the column of the last parsed character.
 Exception getException()
          Return the embedded exception, if any.
 int getLineNumber()
          Returns the line of the last parsed character.
 String getMessage()
          Return a detail message for this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

protected Exception exception

lineNumber

protected int lineNumber

columnNumber

protected int columnNumber
Constructor Detail

ParseException

public ParseException(String message,
                      int line,
                      int column)
Creates a new ParseException.

Parameters:
message - The error or warning message.
line - The line of the last parsed character.
column - The column of the last parsed character.

ParseException

public ParseException(Exception e)
Creates a new ParseException wrapping an existing exception.

The existing exception will be embedded in the new one, and its message will become the default message for the ParseException.

Parameters:
e - The exception to be wrapped in a ParseException.

ParseException

public ParseException(String message,
                      Exception e)
Creates a new ParseException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters:
message - The detail message.
e - The exception to be wrapped in a SAXException.
Method Detail

getMessage

public String getMessage()
Return a detail message for this exception.

If there is a embedded exception, and if the ParseException has no detail message of its own, this method will return the detail message from the embedded exception.

Overrides:
getMessage in class Throwable
Returns:
The error or warning message.

getException

public Exception getException()
Return the embedded exception, if any.

Returns:
The embedded exception, or null if there is none.

getLineNumber

public int getLineNumber()
Returns the line of the last parsed character.


getColumnNumber

public int getColumnNumber()
Returns the column of the last parsed character.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/AWTPathProducer.html0000664000175000017500000017034712176166726027211 0ustar sylvestresylvestre AWTPathProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class AWTPathProducer

java.lang.Object
  extended by com.mxgraph.util.svg.AWTPathProducer
All Implemented Interfaces:
PathHandler, ShapeProducer

public class AWTPathProducer
extends Object
implements PathHandler, ShapeProducer

This class provides an implementation of the PathHandler that initializes a Shape from the value of a path's 'd' attribute.


Field Summary
protected  float currentX
          The current x position.
protected  float currentY
          The current y position.
protected  ExtendedGeneralPath path
          The temporary value of extendedGeneralPath.
protected  int windingRule
          The winding rule to use to construct the path.
protected  float xCenter
          The reference x point for smooth arcs.
protected  float yCenter
          The reference y point for smooth arcs.
 
Constructor Summary
AWTPathProducer()
           
 
Method Summary
 void arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Implements PathHandler.arcAbs(float,float,float,boolean,boolean,float,float).
 void arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Implements PathHandler.arcRel(float,float,float,boolean,boolean,float,float).
 void closePath()
          Implements PathHandler.closePath().
static Shape createShape(String text, int wr)
          Utility method for creating an ExtendedGeneralPath.
 void curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicAbs(float,float,float,float,float,float).
 void curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicRel(float,float,float,float,float,float).
 void curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicSmoothAbs(float,float,float,float).
 void curvetoCubicSmoothRel(float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicSmoothRel(float,float,float,float).
 void curvetoQuadraticAbs(float x1, float y1, float x, float y)
          Implements PathHandler.curvetoQuadraticAbs(float,float,float,float).
 void curvetoQuadraticRel(float x1, float y1, float x, float y)
          Implements PathHandler.curvetoQuadraticRel(float,float,float,float).
 void curvetoQuadraticSmoothAbs(float x, float y)
          Implements PathHandler.curvetoQuadraticSmoothAbs(float,float).
 void curvetoQuadraticSmoothRel(float x, float y)
          Implements PathHandler.curvetoQuadraticSmoothRel(float,float).
 void endPath()
          Implements PathHandler.endPath().
 Shape getShape()
          Returns the Shape object initialized during the last parsing.
 int getWindingRule()
          Returns the current winding rule.
 void linetoAbs(float x, float y)
          Implements PathHandler.linetoAbs(float,float).
 void linetoHorizontalAbs(float x)
          Implements PathHandler.linetoHorizontalAbs(float).
 void linetoHorizontalRel(float x)
          Implements PathHandler.linetoHorizontalRel(float).
 void linetoRel(float x, float y)
          Implements PathHandler.linetoRel(float,float).
 void linetoVerticalAbs(float y)
          Implements PathHandler.linetoVerticalAbs(float).
 void linetoVerticalRel(float y)
          Implements PathHandler.linetoVerticalRel(float).
 void movetoAbs(float x, float y)
          Implements PathHandler.movetoAbs(float,float).
 void movetoRel(float x, float y)
          Implements PathHandler.movetoRel(float,float).
 void setWindingRule(int i)
          Sets the winding rule used to construct the path.
 void startPath()
          Implements PathHandler.startPath().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected ExtendedGeneralPath path
The temporary value of extendedGeneralPath.


currentX

protected float currentX
The current x position.


currentY

protected float currentY
The current y position.


xCenter

protected float xCenter
The reference x point for smooth arcs.


yCenter

protected float yCenter
The reference y point for smooth arcs.


windingRule

protected int windingRule
The winding rule to use to construct the path.

Constructor Detail

AWTPathProducer

public AWTPathProducer()
Method Detail

createShape

public static Shape createShape(String text,
                                int wr)
                         throws ParseException
Utility method for creating an ExtendedGeneralPath.

Parameters:
text - The text representation of the path specification.
wr - The winding rule to use for creating the path.
Throws:
ParseException

setWindingRule

public void setWindingRule(int i)
Sets the winding rule used to construct the path.

Specified by:
setWindingRule in interface ShapeProducer

getWindingRule

public int getWindingRule()
Returns the current winding rule.

Specified by:
getWindingRule in interface ShapeProducer

getShape

public Shape getShape()
Returns the Shape object initialized during the last parsing.

Specified by:
getShape in interface ShapeProducer
Returns:
the shape or null if this handler has not been used by a parser.

startPath

public void startPath()
               throws ParseException
Implements PathHandler.startPath().

Specified by:
startPath in interface PathHandler
Throws:
ParseException - if an error occured while processing the path

endPath

public void endPath()
             throws ParseException
Implements PathHandler.endPath().

Specified by:
endPath in interface PathHandler
Throws:
ParseException - if an error occured while processing the path

movetoRel

public void movetoRel(float x,
                      float y)
               throws ParseException
Implements PathHandler.movetoRel(float,float).

Specified by:
movetoRel in interface PathHandler
Parameters:
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

movetoAbs

public void movetoAbs(float x,
                      float y)
               throws ParseException
Implements PathHandler.movetoAbs(float,float).

Specified by:
movetoAbs in interface PathHandler
Parameters:
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

closePath

public void closePath()
               throws ParseException
Implements PathHandler.closePath().

Specified by:
closePath in interface PathHandler
Throws:
ParseException - if an error occured while processing the path

linetoRel

public void linetoRel(float x,
                      float y)
               throws ParseException
Implements PathHandler.linetoRel(float,float).

Specified by:
linetoRel in interface PathHandler
Parameters:
x - the relative x coordinates for the end point
y - the relative y coordinates for the end point
Throws:
ParseException - if an error occured while processing the path

linetoAbs

public void linetoAbs(float x,
                      float y)
               throws ParseException
Implements PathHandler.linetoAbs(float,float).

Specified by:
linetoAbs in interface PathHandler
Parameters:
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

linetoHorizontalRel

public void linetoHorizontalRel(float x)
                         throws ParseException
Implements PathHandler.linetoHorizontalRel(float).

Specified by:
linetoHorizontalRel in interface PathHandler
Parameters:
x - the relative X coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

linetoHorizontalAbs

public void linetoHorizontalAbs(float x)
                         throws ParseException
Implements PathHandler.linetoHorizontalAbs(float).

Specified by:
linetoHorizontalAbs in interface PathHandler
Parameters:
x - the absolute X coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

linetoVerticalRel

public void linetoVerticalRel(float y)
                       throws ParseException
Implements PathHandler.linetoVerticalRel(float).

Specified by:
linetoVerticalRel in interface PathHandler
Parameters:
y - the relative Y coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

linetoVerticalAbs

public void linetoVerticalAbs(float y)
                       throws ParseException
Implements PathHandler.linetoVerticalAbs(float).

Specified by:
linetoVerticalAbs in interface PathHandler
Parameters:
y - the absolute Y coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicRel

public void curvetoCubicRel(float x1,
                            float y1,
                            float x2,
                            float y2,
                            float x,
                            float y)
                     throws ParseException
Implements PathHandler.curvetoCubicRel(float,float,float,float,float,float).

Specified by:
curvetoCubicRel in interface PathHandler
Parameters:
x1 - the relative x coordinate for the first control point
y1 - the relative y coordinate for the first control point
x2 - the relative x coordinate for the second control point
y2 - the relative y coordinate for the second control point
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicAbs

public void curvetoCubicAbs(float x1,
                            float y1,
                            float x2,
                            float y2,
                            float x,
                            float y)
                     throws ParseException
Implements PathHandler.curvetoCubicAbs(float,float,float,float,float,float).

Specified by:
curvetoCubicAbs in interface PathHandler
Parameters:
x1 - the absolute x coordinate for the first control point
y1 - the absolute y coordinate for the first control point
x2 - the absolute x coordinate for the second control point
y2 - the absolute y coordinate for the second control point
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicSmoothRel

public void curvetoCubicSmoothRel(float x2,
                                  float y2,
                                  float x,
                                  float y)
                           throws ParseException
Implements PathHandler.curvetoCubicSmoothRel(float,float,float,float).

Specified by:
curvetoCubicSmoothRel in interface PathHandler
Parameters:
x2 - the relative x coordinate for the second control point
y2 - the relative y coordinate for the second control point
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicSmoothAbs

public void curvetoCubicSmoothAbs(float x2,
                                  float y2,
                                  float x,
                                  float y)
                           throws ParseException
Implements PathHandler.curvetoCubicSmoothAbs(float,float,float,float).

Specified by:
curvetoCubicSmoothAbs in interface PathHandler
Parameters:
x2 - the absolute x coordinate for the second control point
y2 - the absolute y coordinate for the second control point
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticRel

public void curvetoQuadraticRel(float x1,
                                float y1,
                                float x,
                                float y)
                         throws ParseException
Implements PathHandler.curvetoQuadraticRel(float,float,float,float).

Specified by:
curvetoQuadraticRel in interface PathHandler
Parameters:
x1 - the relative x coordinate for the control point
y1 - the relative y coordinate for the control point
x - the relative x coordinate for the end point
y - the relative x coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticAbs

public void curvetoQuadraticAbs(float x1,
                                float y1,
                                float x,
                                float y)
                         throws ParseException
Implements PathHandler.curvetoQuadraticAbs(float,float,float,float).

Specified by:
curvetoQuadraticAbs in interface PathHandler
Parameters:
x1 - the absolute x coordinate for the control point
y1 - the absolute y coordinate for the control point
x - the absolute x coordinate for the end point
y - the absolute x coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticSmoothRel

public void curvetoQuadraticSmoothRel(float x,
                                      float y)
                               throws ParseException
Implements PathHandler.curvetoQuadraticSmoothRel(float,float).

Specified by:
curvetoQuadraticSmoothRel in interface PathHandler
Parameters:
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticSmoothAbs

public void curvetoQuadraticSmoothAbs(float x,
                                      float y)
                               throws ParseException
Implements PathHandler.curvetoQuadraticSmoothAbs(float,float).

Specified by:
curvetoQuadraticSmoothAbs in interface PathHandler
Parameters:
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

arcRel

public void arcRel(float rx,
                   float ry,
                   float xAxisRotation,
                   boolean largeArcFlag,
                   boolean sweepFlag,
                   float x,
                   float y)
            throws ParseException
Implements PathHandler.arcRel(float,float,float,boolean,boolean,float,float).

Specified by:
arcRel in interface PathHandler
Parameters:
rx - the X axis radius for the ellipse
ry - the Y axis radius for the ellipse
xAxisRotation - the rotation angle in degrees for the ellipse's X-axis relative to the X-axis
largeArcFlag - the value of the large-arc-flag
sweepFlag - the value of the sweep-flag
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

arcAbs

public void arcAbs(float rx,
                   float ry,
                   float xAxisRotation,
                   boolean largeArcFlag,
                   boolean sweepFlag,
                   float x,
                   float y)
            throws ParseException
Implements PathHandler.arcAbs(float,float,float,boolean,boolean,float,float).

Specified by:
arcAbs in interface PathHandler
Parameters:
rx - the X axis radius for the ellipse
ry - the Y axis radius for the ellipse
xAxisRotation - the rotation angle in degrees for the ellipse's X-axis relative to the X-axis
largeArcFlag - the value of the large-arc-flag
sweepFlag - the value of the sweep-flag
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/Parser.html0000664000175000017500000002465612176166726025472 0ustar sylvestresylvestre Parser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface Parser

All Known Implementing Classes:
AbstractParser, NumberParser, PathParser, PointsParser

public interface Parser

This interface represents a parser.


Method Summary
 void parse(String s)
          Parses the given string
 void setErrorHandler(ErrorHandler handler)
          Allows an application to register an error event handler.
 

Method Detail

parse

void parse(String s)
           throws ParseException
Parses the given string

Throws:
ParseException

setErrorHandler

void setErrorHandler(ErrorHandler handler)
Allows an application to register an error event handler.

If the application does not register an error event handler, all error events reported by the parser will cause an exception to be thrown.

Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.

Parameters:
handler - The error handler.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/0000775000175000017500000000000012176166726025232 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/ExtendedGeneralPath.html0000664000175000017500000001763512176166726032007 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.ExtendedGeneralPath (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.ExtendedGeneralPath

Packages that use ExtendedGeneralPath
com.mxgraph.util.svg   
 

Uses of ExtendedGeneralPath in com.mxgraph.util.svg
 

Fields in com.mxgraph.util.svg declared as ExtendedGeneralPath
protected  ExtendedGeneralPath AWTPathProducer.path
          The temporary value of extendedGeneralPath.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/AWTPolylineProducer.html0000664000175000017500000001746112176166726032004 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.AWTPolylineProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.AWTPolylineProducer

Packages that use AWTPolylineProducer
com.mxgraph.util.svg   
 

Uses of AWTPolylineProducer in com.mxgraph.util.svg
 

Subclasses of AWTPolylineProducer in com.mxgraph.util.svg
 class AWTPolygonProducer
          This class produces a polygon shape from a reader.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/DefaultErrorHandler.html0000664000175000017500000001405712176166726032023 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.DefaultErrorHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.DefaultErrorHandler

No usage of com.mxgraph.util.svg.DefaultErrorHandler


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/PointsParser.html0000664000175000017500000001375112176166726030560 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.PointsParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.PointsParser

No usage of com.mxgraph.util.svg.PointsParser


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/AWTPolygonProducer.html0000664000175000017500000001404512176166726031633 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.AWTPolygonProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.AWTPolygonProducer

No usage of com.mxgraph.util.svg.AWTPolygonProducer


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/ParseException.html0000664000175000017500000014463512176166726031066 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.ParseException (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.ParseException

Packages that use ParseException
com.mxgraph.util.svg   
 

Uses of ParseException in com.mxgraph.util.svg
 

Methods in com.mxgraph.util.svg with parameters of type ParseException
 void DefaultErrorHandler.error(ParseException e)
          Implements ErrorHandler.error(ParseException).
 void ErrorHandler.error(ParseException e)
          Called when a parse error occurs.
 

Methods in com.mxgraph.util.svg that throw ParseException
protected  void PathParser._parsel(boolean expectNumber)
           
protected  void PathParser._parseL(boolean expectNumber)
           
 void PathHandler.arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Invoked when an absolute elliptical arc command has been parsed.
 void AWTPathProducer.arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Implements PathHandler.arcAbs(float,float,float,boolean,boolean,float,float).
 void PathHandler.arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Invoked when a relative elliptical arc command has been parsed.
 void AWTPathProducer.arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Implements PathHandler.arcRel(float,float,float,boolean,boolean,float,float).
 void PathHandler.closePath()
          Invoked when a closepath has been parsed.
 void AWTPathProducer.closePath()
          Implements PathHandler.closePath().
static Shape AWTPolygonProducer.createShape(String text, int wr)
          Utility method for creating an ExtendedGeneralPath.
static Shape AWTPathProducer.createShape(String text, int wr)
          Utility method for creating an ExtendedGeneralPath.
static Shape AWTPolylineProducer.createShape(String text, int wr)
          Utility method for creating an ExtendedGeneralPath.
 void PathHandler.curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y)
          Invoked when an absolute cubic bezier curve command has been parsed.
 void AWTPathProducer.curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicAbs(float,float,float,float,float,float).
 void PathHandler.curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
          Invoked when a relative cubic bezier curve command has been parsed.
 void AWTPathProducer.curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicRel(float,float,float,float,float,float).
 void PathHandler.curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
          Invoked when an absolute smooth cubic bezier curve command has been parsed.
 void AWTPathProducer.curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicSmoothAbs(float,float,float,float).
 void PathHandler.curvetoCubicSmoothRel(float x2, float y2, float x, float y)
          Invoked when a relative smooth cubic bezier curve command has been parsed.
 void AWTPathProducer.curvetoCubicSmoothRel(float x2, float y2, float x, float y)
          Implements PathHandler.curvetoCubicSmoothRel(float,float,float,float).
 void PathHandler.curvetoQuadraticAbs(float x1, float y1, float x, float y)
          Invoked when an absolute quadratic bezier curve command has been parsed.
 void AWTPathProducer.curvetoQuadraticAbs(float x1, float y1, float x, float y)
          Implements PathHandler.curvetoQuadraticAbs(float,float,float,float).
 void PathHandler.curvetoQuadraticRel(float x1, float y1, float x, float y)
          Invoked when a relative quadratic bezier curve command has been parsed.
 void AWTPathProducer.curvetoQuadraticRel(float x1, float y1, float x, float y)
          Implements PathHandler.curvetoQuadraticRel(float,float,float,float).
 void PathHandler.curvetoQuadraticSmoothAbs(float x, float y)
          Invoked when an absolute smooth quadratic bezier curve command has been parsed.
 void AWTPathProducer.curvetoQuadraticSmoothAbs(float x, float y)
          Implements PathHandler.curvetoQuadraticSmoothAbs(float,float).
 void PathHandler.curvetoQuadraticSmoothRel(float x, float y)
          Invoked when a relative smooth quadratic bezier curve command has been parsed.
 void AWTPathProducer.curvetoQuadraticSmoothRel(float x, float y)
          Implements PathHandler.curvetoQuadraticSmoothRel(float,float).
protected  void PointsParser.doParse()
          Parses the current stream.
protected  void PathParser.doParse()
           
protected abstract  void AbstractParser.doParse()
          Method responsible for actually parsing data after AbstractParser has initialized itself.
 void PathHandler.endPath()
          Invoked when the path ends.
 void AWTPathProducer.endPath()
          Implements PathHandler.endPath().
 void AWTPolygonProducer.endPoints()
          Implements PointsHandler.endPoints().
 void PointsHandler.endPoints()
          Invoked when the points attribute ends.
 void AWTPolylineProducer.endPoints()
          Implements PointsHandler.endPoints().
 void DefaultErrorHandler.error(ParseException e)
          Implements ErrorHandler.error(ParseException).
 void ErrorHandler.error(ParseException e)
          Called when a parse error occurs.
 void PathHandler.linetoAbs(float x, float y)
          Invoked when an absolute line command has been parsed.
 void AWTPathProducer.linetoAbs(float x, float y)
          Implements PathHandler.linetoAbs(float,float).
 void PathHandler.linetoHorizontalAbs(float x)
          Invoked when an horizontal absolute line command has been parsed.
 void AWTPathProducer.linetoHorizontalAbs(float x)
          Implements PathHandler.linetoHorizontalAbs(float).
 void PathHandler.linetoHorizontalRel(float x)
          Invoked when an horizontal relative line command has been parsed.
 void AWTPathProducer.linetoHorizontalRel(float x)
          Implements PathHandler.linetoHorizontalRel(float).
 void PathHandler.linetoRel(float x, float y)
          Invoked when a relative line command has been parsed.
 void AWTPathProducer.linetoRel(float x, float y)
          Implements PathHandler.linetoRel(float,float).
 void PathHandler.linetoVerticalAbs(float y)
          Invoked when a vertical absolute line command has been parsed.
 void AWTPathProducer.linetoVerticalAbs(float y)
          Implements PathHandler.linetoVerticalAbs(float).
 void PathHandler.linetoVerticalRel(float y)
          Invoked when a vertical relative line command has been parsed.
 void AWTPathProducer.linetoVerticalRel(float y)
          Implements PathHandler.linetoVerticalRel(float).
 void PathHandler.movetoAbs(float x, float y)
          Invoked when an absolute moveto command has been parsed.
 void AWTPathProducer.movetoAbs(float x, float y)
          Implements PathHandler.movetoAbs(float,float).
 void PathHandler.movetoRel(float x, float y)
          Invoked when a relative moveto command has been parsed.
 void AWTPathProducer.movetoRel(float x, float y)
          Implements PathHandler.movetoRel(float,float).
 void Parser.parse(String s)
          Parses the given string
 void AbstractParser.parse(String s)
          Parses the given string.
protected  void PathParser.parsea()
          Parses a 'a' command.
protected  void PathParser.parseA()
          Parses a 'A' command.
protected  void PathParser.parsec()
          Parses a 'c' command.
protected  void PathParser.parseC()
          Parses a 'C' command.
protected  float NumberParser.parseFloat()
          Parses the content of the buffer and converts it to a float.
protected  void PathParser.parseh()
          Parses a 'h' command.
protected  void PathParser.parseH()
          Parses a 'H' command.
protected  void PathParser.parsel()
          Parses a 'l' command.
protected  void PathParser.parseL()
          Parses a 'L' command.
protected  void PathParser.parsem()
          Parses a 'm' command.
protected  void PathParser.parseM()
          Parses a 'M' command.
protected  void PathParser.parseq()
          Parses a 'q' command.
protected  void PathParser.parseQ()
          Parses a 'Q' command.
protected  void PathParser.parses()
          Parses a 's' command.
protected  void PathParser.parseS()
          Parses a 'S' command.
protected  void PathParser.parset()
          Parses a 't' command.
protected  void PathParser.parseT()
          Parses a 'T' command.
protected  void PathParser.parsev()
          Parses a 'v' command.
protected  void PathParser.parseV()
          Parses a 'V' command.
 void PointsHandler.point(float x, float y)
          Invoked when a point has been parsed.
 void AWTPolylineProducer.point(float x, float y)
          Implements PointsHandler.point(float,float).
protected  void AbstractParser.reportError(String key, Object[] args)
          Signals an error to the error handler.
protected  void PathParser.reportUnexpected(int ch)
           
protected  void PathParser.skipSubPath()
          Skips a sub-path.
 void PathHandler.startPath()
          Invoked when the path starts.
 void AWTPathProducer.startPath()
          Implements PathHandler.startPath().
 void PointsHandler.startPoints()
          Invoked when the points attribute starts.
 void AWTPolylineProducer.startPoints()
          Implements PointsHandler.startPoints().
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/AWTPathProducer.html0000664000175000017500000001400712176166726031076 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.AWTPathProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.AWTPathProducer

No usage of com.mxgraph.util.svg.AWTPathProducer


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/Parser.html0000664000175000017500000002170312176166726027357 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.Parser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.Parser

Packages that use Parser
com.mxgraph.util.svg   
 

Uses of Parser in com.mxgraph.util.svg
 

Classes in com.mxgraph.util.svg that implement Parser
 class AbstractParser
          This class is the superclass of all parsers.
 class NumberParser
          This class represents a parser with support for numbers.
 class PathParser
          This class implements an event-based parser for the SVG path's d attribute values.
 class PointsParser
          This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/PointsHandler.html0000664000175000017500000002766312176166726030710 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.PointsHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.PointsHandler

Packages that use PointsHandler
com.mxgraph.util.svg   
 

Uses of PointsHandler in com.mxgraph.util.svg
 

Classes in com.mxgraph.util.svg that implement PointsHandler
 class AWTPolygonProducer
          This class produces a polygon shape from a reader.
 class AWTPolylineProducer
          This class produces a polyline shape from a reader.
 

Fields in com.mxgraph.util.svg declared as PointsHandler
protected  PointsHandler PointsParser.pointsHandler
          The points handler used to report parse events.
 

Methods in com.mxgraph.util.svg that return PointsHandler
 PointsHandler PointsParser.getPointsHandler()
          Returns the points handler in use.
 

Methods in com.mxgraph.util.svg with parameters of type PointsHandler
 void PointsParser.setPointsHandler(PointsHandler handler)
          Allows an application to register a points handler.
 

Constructors in com.mxgraph.util.svg with parameters of type PointsHandler
PointsParser(PointsHandler handler)
          Creates a new PointsParser.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/PathParser.html0000664000175000017500000001372512176166726030201 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.PathParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.PathParser

No usage of com.mxgraph.util.svg.PathParser


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/StringNormalizingReader.html0000664000175000017500000001412712176166726032730 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.StringNormalizingReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.StringNormalizingReader

No usage of com.mxgraph.util.svg.StringNormalizingReader


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/PathHandler.html0000664000175000017500000002674612176166726030331 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.PathHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.PathHandler

Packages that use PathHandler
com.mxgraph.util.svg   
 

Uses of PathHandler in com.mxgraph.util.svg
 

Classes in com.mxgraph.util.svg that implement PathHandler
 class AWTPathProducer
          This class provides an implementation of the PathHandler that initializes a Shape from the value of a path's 'd' attribute.
 

Fields in com.mxgraph.util.svg declared as PathHandler
protected  PathHandler PathParser.pathHandler
          The path handler used to report parse events.
 

Methods in com.mxgraph.util.svg that return PathHandler
 PathHandler PathParser.getPathHandler()
          Returns the path handler in use.
 

Methods in com.mxgraph.util.svg with parameters of type PathHandler
 void PathParser.setPathHandler(PathHandler handler)
          Allows an application to register a path handler.
 

Constructors in com.mxgraph.util.svg with parameters of type PathHandler
PathParser(PathHandler handler)
          Creates a new PathParser.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/AbstractParser.html0000664000175000017500000002117212176166726031043 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.AbstractParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.AbstractParser

Packages that use AbstractParser
com.mxgraph.util.svg   
 

Uses of AbstractParser in com.mxgraph.util.svg
 

Subclasses of AbstractParser in com.mxgraph.util.svg
 class NumberParser
          This class represents a parser with support for numbers.
 class PathParser
          This class implements an event-based parser for the SVG path's d attribute values.
 class PointsParser
          This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/ExtendedPathIterator.html0000664000175000017500000002211512176166726032210 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.ExtendedPathIterator (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.ExtendedPathIterator

Packages that use ExtendedPathIterator
com.mxgraph.util.svg   
 

Uses of ExtendedPathIterator in com.mxgraph.util.svg
 

Methods in com.mxgraph.util.svg that return ExtendedPathIterator
 ExtendedPathIterator ExtendedGeneralPath.getExtendedPathIterator()
          Delegates to the enclosed GeneralPath.
 

Methods in com.mxgraph.util.svg with parameters of type ExtendedPathIterator
 void ExtendedGeneralPath.append(ExtendedPathIterator epi, boolean connect)
          Delegates to the enclosed GeneralPath.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/CSSConstants.html0000664000175000017500000001377512176166726030462 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.CSSConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.CSSConstants

No usage of com.mxgraph.util.svg.CSSConstants


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/ShapeProducer.html0000664000175000017500000002122312176166726030664 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.ShapeProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.ShapeProducer

Packages that use ShapeProducer
com.mxgraph.util.svg   
 

Uses of ShapeProducer in com.mxgraph.util.svg
 

Classes in com.mxgraph.util.svg that implement ShapeProducer
 class AWTPathProducer
          This class provides an implementation of the PathHandler that initializes a Shape from the value of a path's 'd' attribute.
 class AWTPolygonProducer
          This class produces a polygon shape from a reader.
 class AWTPolylineProducer
          This class produces a polyline shape from a reader.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/ErrorHandler.html0000664000175000017500000002436412176166726030520 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.svg.ErrorHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.svg.ErrorHandler

Packages that use ErrorHandler
com.mxgraph.util.svg   
 

Uses of ErrorHandler in com.mxgraph.util.svg
 

Classes in com.mxgraph.util.svg that implement ErrorHandler
 class DefaultErrorHandler
          This class provides a default implementation of ErrorHandler.
 

Fields in com.mxgraph.util.svg declared as ErrorHandler
protected  ErrorHandler AbstractParser.errorHandler
          The error handler.
 

Methods in com.mxgraph.util.svg with parameters of type ErrorHandler
 void Parser.setErrorHandler(ErrorHandler handler)
          Allows an application to register an error event handler.
 void AbstractParser.setErrorHandler(ErrorHandler handler)
          Allow an application to register an error event handler.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/NumberParser.html0000664000175000017500000002027412176166726030532 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.NumberParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.NumberParser

Packages that use NumberParser
com.mxgraph.util.svg   
 

Uses of NumberParser in com.mxgraph.util.svg
 

Subclasses of NumberParser in com.mxgraph.util.svg
 class PathParser
          This class implements an event-based parser for the SVG path's d attribute values.
 class PointsParser
          This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/class-use/NormalizingReader.html0000664000175000017500000002133012176166726031533 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.svg.NormalizingReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.svg.NormalizingReader

Packages that use NormalizingReader
com.mxgraph.util.svg   
 

Uses of NormalizingReader in com.mxgraph.util.svg
 

Subclasses of NormalizingReader in com.mxgraph.util.svg
 class StringNormalizingReader
          This class represents a NormalizingReader which handles Strings.
 

Fields in com.mxgraph.util.svg declared as NormalizingReader
protected  NormalizingReader AbstractParser.reader
          The normalizing reader.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/package-frame.html0000664000175000017500000000651112176166726026707 0ustar sylvestresylvestre com.mxgraph.util.svg (JGraph X 2.1.0.7 API Specification) com.mxgraph.util.svg
Interfaces 
CSSConstants
ErrorHandler
ExtendedPathIterator
Parser
PathHandler
PointsHandler
ShapeProducer
Classes 
AbstractParser
AWTPathProducer
AWTPolygonProducer
AWTPolylineProducer
DefaultErrorHandler
ExtendedGeneralPath
NormalizingReader
NumberParser
PathParser
PointsParser
StringNormalizingReader
Exceptions 
ParseException
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/PointsHandler.html0000664000175000017500000002565312176166726027006 0ustar sylvestresylvestre PointsHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface PointsHandler

All Known Implementing Classes:
AWTPolygonProducer, AWTPolylineProducer

public interface PointsHandler

This interface must be implemented and then registred as the handler of a PointsParser instance in order to be notified of parsing events.


Method Summary
 void endPoints()
          Invoked when the points attribute ends.
 void point(float x, float y)
          Invoked when a point has been parsed.
 void startPoints()
          Invoked when the points attribute starts.
 

Method Detail

startPoints

void startPoints()
                 throws ParseException
Invoked when the points attribute starts.

Throws:
ParseException - if an error occured while processing the points

point

void point(float x,
           float y)
           throws ParseException
Invoked when a point has been parsed.

Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
Throws:
ParseException - if an error occured while processing the points

endPoints

void endPoints()
               throws ParseException
Invoked when the points attribute ends.

Throws:
ParseException - if an error occured while processing the points

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/PathParser.html0000664000175000017500000013526012176166726026301 0ustar sylvestresylvestre PathParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class PathParser

java.lang.Object
  extended by com.mxgraph.util.svg.AbstractParser
      extended by com.mxgraph.util.svg.NumberParser
          extended by com.mxgraph.util.svg.PathParser
All Implemented Interfaces:
Parser

public class PathParser
extends NumberParser

This class implements an event-based parser for the SVG path's d attribute values.


Field Summary
protected  PathHandler pathHandler
          The path handler used to report parse events.
 
Fields inherited from class com.mxgraph.util.svg.AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, reader
 
Constructor Summary
PathParser(PathHandler handler)
          Creates a new PathParser.
 
Method Summary
protected  void _parsel(boolean expectNumber)
           
protected  void _parseL(boolean expectNumber)
           
protected  void doParse()
          Method responsible for actually parsing data after AbstractParser has initialized itself.
 PathHandler getPathHandler()
          Returns the path handler in use.
protected  void parsea()
          Parses a 'a' command.
protected  void parseA()
          Parses a 'A' command.
protected  void parsec()
          Parses a 'c' command.
protected  void parseC()
          Parses a 'C' command.
protected  void parseh()
          Parses a 'h' command.
protected  void parseH()
          Parses a 'H' command.
protected  void parsel()
          Parses a 'l' command.
protected  void parseL()
          Parses a 'L' command.
protected  void parsem()
          Parses a 'm' command.
protected  void parseM()
          Parses a 'M' command.
protected  void parseq()
          Parses a 'q' command.
protected  void parseQ()
          Parses a 'Q' command.
protected  void parses()
          Parses a 's' command.
protected  void parseS()
          Parses a 'S' command.
protected  void parset()
          Parses a 't' command.
protected  void parseT()
          Parses a 'T' command.
protected  void parsev()
          Parses a 'v' command.
protected  void parseV()
          Parses a 'V' command.
protected  void reportUnexpected(int ch)
           
 void setPathHandler(PathHandler handler)
          Allows an application to register a path handler.
protected  boolean skipCommaSpaces2()
          Skips the whitespaces and an optional comma.
protected  void skipSubPath()
          Skips a sub-path.
 
Methods inherited from class com.mxgraph.util.svg.NumberParser
buildFloat, parseFloat
 
Methods inherited from class com.mxgraph.util.svg.AbstractParser
createErrorMessage, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathHandler

protected PathHandler pathHandler
The path handler used to report parse events.

Constructor Detail

PathParser

public PathParser(PathHandler handler)
Creates a new PathParser.

Method Detail

setPathHandler

public void setPathHandler(PathHandler handler)
Allows an application to register a path handler.

If the application does not register a handler, all events reported by the parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.

Parameters:
handler - The transform list handler.

getPathHandler

public PathHandler getPathHandler()
Returns the path handler in use.


doParse

protected void doParse()
                throws ParseException,
                       IOException
Description copied from class: AbstractParser
Method responsible for actually parsing data after AbstractParser has initialized itself.

Specified by:
doParse in class AbstractParser
Throws:
ParseException
IOException

parsem

protected void parsem()
               throws ParseException,
                      IOException
Parses a 'm' command.

Throws:
ParseException
IOException

parseM

protected void parseM()
               throws ParseException,
                      IOException
Parses a 'M' command.

Throws:
ParseException
IOException

parsel

protected void parsel()
               throws ParseException,
                      IOException
Parses a 'l' command.

Throws:
ParseException
IOException

_parsel

protected void _parsel(boolean expectNumber)
                throws ParseException,
                       IOException
Throws:
ParseException
IOException

parseL

protected void parseL()
               throws ParseException,
                      IOException
Parses a 'L' command.

Throws:
ParseException
IOException

_parseL

protected void _parseL(boolean expectNumber)
                throws ParseException,
                       IOException
Throws:
ParseException
IOException

parseh

protected void parseh()
               throws ParseException,
                      IOException
Parses a 'h' command.

Throws:
ParseException
IOException

parseH

protected void parseH()
               throws ParseException,
                      IOException
Parses a 'H' command.

Throws:
ParseException
IOException

parsev

protected void parsev()
               throws ParseException,
                      IOException
Parses a 'v' command.

Throws:
ParseException
IOException

parseV

protected void parseV()
               throws ParseException,
                      IOException
Parses a 'V' command.

Throws:
ParseException
IOException

parsec

protected void parsec()
               throws ParseException,
                      IOException
Parses a 'c' command.

Throws:
ParseException
IOException

parseC

protected void parseC()
               throws ParseException,
                      IOException
Parses a 'C' command.

Throws:
ParseException
IOException

parseq

protected void parseq()
               throws ParseException,
                      IOException
Parses a 'q' command.

Throws:
ParseException
IOException

parseQ

protected void parseQ()
               throws ParseException,
                      IOException
Parses a 'Q' command.

Throws:
ParseException
IOException

parses

protected void parses()
               throws ParseException,
                      IOException
Parses a 's' command.

Throws:
ParseException
IOException

parseS

protected void parseS()
               throws ParseException,
                      IOException
Parses a 'S' command.

Throws:
ParseException
IOException

parset

protected void parset()
               throws ParseException,
                      IOException
Parses a 't' command.

Throws:
ParseException
IOException

parseT

protected void parseT()
               throws ParseException,
                      IOException
Parses a 'T' command.

Throws:
ParseException
IOException

parsea

protected void parsea()
               throws ParseException,
                      IOException
Parses a 'a' command.

Throws:
ParseException
IOException

parseA

protected void parseA()
               throws ParseException,
                      IOException
Parses a 'A' command.

Throws:
ParseException
IOException

skipSubPath

protected void skipSubPath()
                    throws ParseException,
                           IOException
Skips a sub-path.

Throws:
ParseException
IOException

reportUnexpected

protected void reportUnexpected(int ch)
                         throws ParseException,
                                IOException
Throws:
ParseException
IOException

skipCommaSpaces2

protected boolean skipCommaSpaces2()
                            throws IOException
Skips the whitespaces and an optional comma.

Returns:
true if comma was skipped.
Throws:
IOException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/StringNormalizingReader.html0000664000175000017500000005673412176166726031043 0ustar sylvestresylvestre StringNormalizingReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class StringNormalizingReader

java.lang.Object
  extended by java.io.Reader
      extended by com.mxgraph.util.svg.NormalizingReader
          extended by com.mxgraph.util.svg.StringNormalizingReader
All Implemented Interfaces:
Closeable, Readable

public class StringNormalizingReader
extends NormalizingReader

This class represents a NormalizingReader which handles Strings.


Field Summary
protected  int column
          The current column in the stream.
protected  int length
          The length of the string.
protected  int line
          The current line in the stream.
protected  int next
          The index of the next character.
protected  String string
          The characters.
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
StringNormalizingReader(String s)
          Creates a new StringNormalizingReader.
 
Method Summary
 void close()
          Close the stream.
 int getColumn()
          Returns the current column in the stream.
 int getLine()
          Returns the current line in the stream.
 int read()
          Read a single character.
 
Methods inherited from class com.mxgraph.util.svg.NormalizingReader
read
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

string

protected String string
The characters.


length

protected int length
The length of the string.


next

protected int next
The index of the next character.


line

protected int line
The current line in the stream.


column

protected int column
The current column in the stream.

Constructor Detail

StringNormalizingReader

public StringNormalizingReader(String s)
Creates a new StringNormalizingReader.

Parameters:
s - The string to read.
Method Detail

read

public int read()
         throws IOException
Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.

Overrides:
read in class Reader
Throws:
IOException

getLine

public int getLine()
Returns the current line in the stream.

Specified by:
getLine in class NormalizingReader

getColumn

public int getColumn()
Returns the current column in the stream.

Specified by:
getColumn in class NormalizingReader

close

public void close()
           throws IOException
Close the stream.

Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/package-summary.html0000664000175000017500000003014412176166726027311 0ustar sylvestresylvestre com.mxgraph.util.svg (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.util.svg

Interface Summary
CSSConstants This interface defines constants for CSS.
ErrorHandler This interface must be implemented and then registred as the error handler in order to be notified of parsing errors.
ExtendedPathIterator The ExtendedPathIterator class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arcs.
Parser This interface represents a parser.
PathHandler This interface must be implemented and then registred as the handler of a PathParser instance in order to be notified of parsing events.
PointsHandler This interface must be implemented and then registred as the handler of a PointsParser instance in order to be notified of parsing events.
ShapeProducer This interface represents objects which creates Shape objects.
 

Class Summary
AbstractParser This class is the superclass of all parsers.
AWTPathProducer This class provides an implementation of the PathHandler that initializes a Shape from the value of a path's 'd' attribute.
AWTPolygonProducer This class produces a polygon shape from a reader.
AWTPolylineProducer This class produces a polyline shape from a reader.
DefaultErrorHandler This class provides a default implementation of ErrorHandler.
ExtendedGeneralPath The ExtendedGeneralPath class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc.
NormalizingReader This class represents a reader which normalizes the line break: \n, \r, \r\n are replaced by \n.
NumberParser This class represents a parser with support for numbers.
PathParser This class implements an event-based parser for the SVG path's d attribute values.
PointsParser This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
StringNormalizingReader This class represents a NormalizingReader which handles Strings.
 

Exception Summary
ParseException This class encapsulates a general parse error or warning.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/package-use.html0000664000175000017500000002510012176166726026404 0ustar sylvestresylvestre Uses of Package com.mxgraph.util.svg (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.util.svg

Packages that use com.mxgraph.util.svg
com.mxgraph.util.svg   
 

Classes in com.mxgraph.util.svg used by com.mxgraph.util.svg
AbstractParser
          This class is the superclass of all parsers.
AWTPolylineProducer
          This class produces a polyline shape from a reader.
ErrorHandler
          This interface must be implemented and then registred as the error handler in order to be notified of parsing errors.
ExtendedGeneralPath
          The ExtendedGeneralPath class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc.
ExtendedPathIterator
          The ExtendedPathIterator class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arcs.
NormalizingReader
          This class represents a reader which normalizes the line break: \n, \r, \r\n are replaced by \n.
NumberParser
          This class represents a parser with support for numbers.
ParseException
          This class encapsulates a general parse error or warning.
Parser
          This interface represents a parser.
PathHandler
          This interface must be implemented and then registred as the handler of a PathParser instance in order to be notified of parsing events.
PointsHandler
          This interface must be implemented and then registred as the handler of a PointsParser instance in order to be notified of parsing events.
ShapeProducer
          This interface represents objects which creates Shape objects.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/PathHandler.html0000664000175000017500000011125312176166726026416 0ustar sylvestresylvestre PathHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface PathHandler

All Known Implementing Classes:
AWTPathProducer

public interface PathHandler

This interface must be implemented and then registred as the handler of a PathParser instance in order to be notified of parsing events.


Method Summary
 void arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Invoked when an absolute elliptical arc command has been parsed.
 void arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
          Invoked when a relative elliptical arc command has been parsed.
 void closePath()
          Invoked when a closepath has been parsed.
 void curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y)
          Invoked when an absolute cubic bezier curve command has been parsed.
 void curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
          Invoked when a relative cubic bezier curve command has been parsed.
 void curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
          Invoked when an absolute smooth cubic bezier curve command has been parsed.
 void curvetoCubicSmoothRel(float x2, float y2, float x, float y)
          Invoked when a relative smooth cubic bezier curve command has been parsed.
 void curvetoQuadraticAbs(float x1, float y1, float x, float y)
          Invoked when an absolute quadratic bezier curve command has been parsed.
 void curvetoQuadraticRel(float x1, float y1, float x, float y)
          Invoked when a relative quadratic bezier curve command has been parsed.
 void curvetoQuadraticSmoothAbs(float x, float y)
          Invoked when an absolute smooth quadratic bezier curve command has been parsed.
 void curvetoQuadraticSmoothRel(float x, float y)
          Invoked when a relative smooth quadratic bezier curve command has been parsed.
 void endPath()
          Invoked when the path ends.
 void linetoAbs(float x, float y)
          Invoked when an absolute line command has been parsed.
 void linetoHorizontalAbs(float x)
          Invoked when an horizontal absolute line command has been parsed.
 void linetoHorizontalRel(float x)
          Invoked when an horizontal relative line command has been parsed.
 void linetoRel(float x, float y)
          Invoked when a relative line command has been parsed.
 void linetoVerticalAbs(float y)
          Invoked when a vertical absolute line command has been parsed.
 void linetoVerticalRel(float y)
          Invoked when a vertical relative line command has been parsed.
 void movetoAbs(float x, float y)
          Invoked when an absolute moveto command has been parsed.
 void movetoRel(float x, float y)
          Invoked when a relative moveto command has been parsed.
 void startPath()
          Invoked when the path starts.
 

Method Detail

startPath

void startPath()
               throws ParseException
Invoked when the path starts.

Throws:
ParseException - if an error occured while processing the path

endPath

void endPath()
             throws ParseException
Invoked when the path ends.

Throws:
ParseException - if an error occured while processing the path

movetoRel

void movetoRel(float x,
               float y)
               throws ParseException
Invoked when a relative moveto command has been parsed.

Command : m

Parameters:
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

movetoAbs

void movetoAbs(float x,
               float y)
               throws ParseException
Invoked when an absolute moveto command has been parsed.

Command : M

Parameters:
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

closePath

void closePath()
               throws ParseException
Invoked when a closepath has been parsed.

Command : z | Z

Throws:
ParseException - if an error occured while processing the path

linetoRel

void linetoRel(float x,
               float y)
               throws ParseException
Invoked when a relative line command has been parsed.

Command : l

Parameters:
x - the relative x coordinates for the end point
y - the relative y coordinates for the end point
Throws:
ParseException - if an error occured while processing the path

linetoAbs

void linetoAbs(float x,
               float y)
               throws ParseException
Invoked when an absolute line command has been parsed.

Command : L

Parameters:
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

linetoHorizontalRel

void linetoHorizontalRel(float x)
                         throws ParseException
Invoked when an horizontal relative line command has been parsed.

Command : h

Parameters:
x - the relative X coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

linetoHorizontalAbs

void linetoHorizontalAbs(float x)
                         throws ParseException
Invoked when an horizontal absolute line command has been parsed.

Command : H

Parameters:
x - the absolute X coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

linetoVerticalRel

void linetoVerticalRel(float y)
                       throws ParseException
Invoked when a vertical relative line command has been parsed.

Command : v

Parameters:
y - the relative Y coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

linetoVerticalAbs

void linetoVerticalAbs(float y)
                       throws ParseException
Invoked when a vertical absolute line command has been parsed.

Command : V

Parameters:
y - the absolute Y coordinate of the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicRel

void curvetoCubicRel(float x1,
                     float y1,
                     float x2,
                     float y2,
                     float x,
                     float y)
                     throws ParseException
Invoked when a relative cubic bezier curve command has been parsed.

Command : c

Parameters:
x1 - the relative x coordinate for the first control point
y1 - the relative y coordinate for the first control point
x2 - the relative x coordinate for the second control point
y2 - the relative y coordinate for the second control point
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicAbs

void curvetoCubicAbs(float x1,
                     float y1,
                     float x2,
                     float y2,
                     float x,
                     float y)
                     throws ParseException
Invoked when an absolute cubic bezier curve command has been parsed.

Command : C

Parameters:
x1 - the absolute x coordinate for the first control point
y1 - the absolute y coordinate for the first control point
x2 - the absolute x coordinate for the second control point
y2 - the absolute y coordinate for the second control point
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicSmoothRel

void curvetoCubicSmoothRel(float x2,
                           float y2,
                           float x,
                           float y)
                           throws ParseException
Invoked when a relative smooth cubic bezier curve command has been parsed. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point.

Command : s

Parameters:
x2 - the relative x coordinate for the second control point
y2 - the relative y coordinate for the second control point
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoCubicSmoothAbs

void curvetoCubicSmoothAbs(float x2,
                           float y2,
                           float x,
                           float y)
                           throws ParseException
Invoked when an absolute smooth cubic bezier curve command has been parsed. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point.

Command : S

Parameters:
x2 - the absolute x coordinate for the second control point
y2 - the absolute y coordinate for the second control point
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticRel

void curvetoQuadraticRel(float x1,
                         float y1,
                         float x,
                         float y)
                         throws ParseException
Invoked when a relative quadratic bezier curve command has been parsed.

Command : q

Parameters:
x1 - the relative x coordinate for the control point
y1 - the relative y coordinate for the control point
x - the relative x coordinate for the end point
y - the relative x coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticAbs

void curvetoQuadraticAbs(float x1,
                         float y1,
                         float x,
                         float y)
                         throws ParseException
Invoked when an absolute quadratic bezier curve command has been parsed.

Command : Q

Parameters:
x1 - the absolute x coordinate for the control point
y1 - the absolute y coordinate for the control point
x - the absolute x coordinate for the end point
y - the absolute x coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticSmoothRel

void curvetoQuadraticSmoothRel(float x,
                               float y)
                               throws ParseException
Invoked when a relative smooth quadratic bezier curve command has been parsed. The control point is assumed to be the reflection of the control point on the previous command relative to the current point.

Command : t

Parameters:
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

curvetoQuadraticSmoothAbs

void curvetoQuadraticSmoothAbs(float x,
                               float y)
                               throws ParseException
Invoked when an absolute smooth quadratic bezier curve command has been parsed. The control point is assumed to be the reflection of the control point on the previous command relative to the current point.

Command : T

Parameters:
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

arcRel

void arcRel(float rx,
            float ry,
            float xAxisRotation,
            boolean largeArcFlag,
            boolean sweepFlag,
            float x,
            float y)
            throws ParseException
Invoked when a relative elliptical arc command has been parsed.

Command : a

Parameters:
rx - the X axis radius for the ellipse
ry - the Y axis radius for the ellipse
xAxisRotation - the rotation angle in degrees for the ellipse's X-axis relative to the X-axis
largeArcFlag - the value of the large-arc-flag
sweepFlag - the value of the sweep-flag
x - the relative x coordinate for the end point
y - the relative y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

arcAbs

void arcAbs(float rx,
            float ry,
            float xAxisRotation,
            boolean largeArcFlag,
            boolean sweepFlag,
            float x,
            float y)
            throws ParseException
Invoked when an absolute elliptical arc command has been parsed.

Command : A

Parameters:
rx - the X axis radius for the ellipse
ry - the Y axis radius for the ellipse
xAxisRotation - the rotation angle in degrees for the ellipse's X-axis relative to the X-axis
largeArcFlag - the value of the large-arc-flag
sweepFlag - the value of the sweep-flag
x - the absolute x coordinate for the end point
y - the absolute y coordinate for the end point
Throws:
ParseException - if an error occured while processing the path

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/AbstractParser.html0000664000175000017500000007066512176166726027157 0ustar sylvestresylvestre AbstractParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class AbstractParser

java.lang.Object
  extended by com.mxgraph.util.svg.AbstractParser
All Implemented Interfaces:
Parser
Direct Known Subclasses:
NumberParser

public abstract class AbstractParser
extends Object
implements Parser

This class is the superclass of all parsers. It provides localization and error handling methods.


Field Summary
static String BUNDLE_CLASSNAME
          The default resource bundle base name.
protected  int current
          The current character.
protected  ErrorHandler errorHandler
          The error handler.
protected  NormalizingReader reader
          The normalizing reader.
 
Constructor Summary
AbstractParser()
           
 
Method Summary
protected  String createErrorMessage(String key, Object[] args)
          Returns a localized error message.
protected abstract  void doParse()
          Method responsible for actually parsing data after AbstractParser has initialized itself.
protected  String getBundleClassName()
          Returns the resource bundle base name.
 int getCurrent()
          Returns the current character value.
 void parse(String s)
          Parses the given string.
protected  void reportCharacterExpectedError(char expectedChar, int currentChar)
          simple api to call often reported error.
protected  void reportError(String key, Object[] args)
          Signals an error to the error handler.
protected  void reportUnexpectedCharacterError(int currentChar)
          simple api to call often reported error.
 void setErrorHandler(ErrorHandler handler)
          Allow an application to register an error event handler.
protected  void skipCommaSpaces()
          Skips the whitespaces and an optional comma.
protected  void skipSpaces()
          Skips the whitespaces in the current reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_CLASSNAME

public static final String BUNDLE_CLASSNAME
The default resource bundle base name.

See Also:
Constant Field Values

errorHandler

protected ErrorHandler errorHandler
The error handler.


reader

protected NormalizingReader reader
The normalizing reader.


current

protected int current
The current character.

Constructor Detail

AbstractParser

public AbstractParser()
Method Detail

getCurrent

public int getCurrent()
Returns the current character value.


setErrorHandler

public void setErrorHandler(ErrorHandler handler)
Allow an application to register an error event handler.

If the application does not register an error event handler, all error events reported by the parser will cause an exception to be thrown.

Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.

Specified by:
setErrorHandler in interface Parser
Parameters:
handler - The error handler.

parse

public void parse(String s)
           throws ParseException
Parses the given string.

Specified by:
parse in interface Parser
Throws:
ParseException

doParse

protected abstract void doParse()
                         throws ParseException,
                                IOException
Method responsible for actually parsing data after AbstractParser has initialized itself.

Throws:
ParseException
IOException

reportError

protected void reportError(String key,
                           Object[] args)
                    throws ParseException
Signals an error to the error handler.

Parameters:
key - The message key in the resource bundle.
args - The message arguments.
Throws:
ParseException

reportCharacterExpectedError

protected void reportCharacterExpectedError(char expectedChar,
                                            int currentChar)
simple api to call often reported error. Just a wrapper for reportError().

Parameters:
expectedChar - what caller expected
currentChar - what caller found

reportUnexpectedCharacterError

protected void reportUnexpectedCharacterError(int currentChar)
simple api to call often reported error. Just a wrapper for reportError().

Parameters:
currentChar - what the caller found and didnt expect

createErrorMessage

protected String createErrorMessage(String key,
                                    Object[] args)
Returns a localized error message.

Parameters:
key - The message key in the resource bundle.
args - The message arguments.

getBundleClassName

protected String getBundleClassName()
Returns the resource bundle base name.

Returns:
BUNDLE_CLASSNAME.

skipSpaces

protected void skipSpaces()
                   throws IOException
Skips the whitespaces in the current reader.

Throws:
IOException

skipCommaSpaces

protected void skipCommaSpaces()
                        throws IOException
Skips the whitespaces and an optional comma.

Throws:
IOException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/package-tree.html0000664000175000017500000002750112176166726026556 0ustar sylvestresylvestre com.mxgraph.util.svg Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.util.svg

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/ExtendedPathIterator.html0000664000175000017500000004740012176166726030315 0ustar sylvestresylvestre ExtendedPathIterator (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface ExtendedPathIterator


public interface ExtendedPathIterator

The ExtendedPathIterator class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arcs. This interface is identical to that of PathIterator except it can return SEG_ARCTO from currentSegment, also the array of values passed to currentSegment must be of length 7 or an error will be thrown. This does not extend PathIterator as it would break the interface contract for that class.


Field Summary
static int SEG_ARCTO
          The segment type constant for an elliptical arc.
static int SEG_CLOSE
          The segment type constant that specifies that the preceding subpath should be closed by appending a line segment back to the point corresponding to the most recent SEG_MOVETO.
static int SEG_CUBICTO
          The segment type constant for the set of 3 points that specify a cubic parametric curve to be drawn from the most recently specified point.
static int SEG_LINETO
          The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
static int SEG_MOVETO
          The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
static int SEG_QUADTO
          The segment type constant for the pair of points that specify a quadratic parametric curve to be drawn from the most recently specified point.
static int WIND_EVEN_ODD
          The winding rule constant for specifying an even-odd rule for determining the interior of a path.
static int WIND_NON_ZERO
          The winding rule constant for specifying a non-zero rule for determining the interior of a path.
 
Method Summary
 int currentSegment()
           
 int currentSegment(double[] coords)
           
 int currentSegment(float[] coords)
           
 int getWindingRule()
           
 boolean isDone()
           
 void next()
           
 

Field Detail

SEG_CLOSE

static final int SEG_CLOSE
The segment type constant that specifies that the preceding subpath should be closed by appending a line segment back to the point corresponding to the most recent SEG_MOVETO.

See Also:
Constant Field Values

SEG_MOVETO

static final int SEG_MOVETO
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.

See Also:
Constant Field Values

SEG_LINETO

static final int SEG_LINETO
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.

See Also:
Constant Field Values

SEG_QUADTO

static final int SEG_QUADTO
The segment type constant for the pair of points that specify a quadratic parametric curve to be drawn from the most recently specified point. The curve is interpolated by solving the parametric control equation in the range (t=[0..1]) using the most recently specified (current) point (CP), the first control point (P1), and the final interpolated control point (P2).

See Also:
Constant Field Values

SEG_CUBICTO

static final int SEG_CUBICTO
The segment type constant for the set of 3 points that specify a cubic parametric curve to be drawn from the most recently specified point. The curve is interpolated by solving the parametric control equation in the range (t=[0..1]) using the most recently specified (current) point (CP), the first control point (P1), the second control point (P2), and the final interpolated control point (P3).

See Also:
Constant Field Values

SEG_ARCTO

static final int SEG_ARCTO
The segment type constant for an elliptical arc. This consists of Seven values [rx, ry, angle, largeArcFlag, sweepFlag, x, y]. rx, ry are the radious of the ellipse. angle is angle of the x axis of the ellipse. largeArcFlag is zero if the smaller of the two arcs are to be used. sweepFlag is zero if the 'left' branch is taken one otherwise. x and y are the destination for the ellipse.

See Also:
Constant Field Values

WIND_EVEN_ODD

static final int WIND_EVEN_ODD
The winding rule constant for specifying an even-odd rule for determining the interior of a path. The even-odd rule specifies that a point lies inside the path if a ray drawn in any direction from that point to infinity is crossed by path segments an odd number of times.

See Also:
Constant Field Values

WIND_NON_ZERO

static final int WIND_NON_ZERO
The winding rule constant for specifying a non-zero rule for determining the interior of a path. The non-zero rule specifies that a point lies inside the path if a ray drawn in any direction from that point to infinity is crossed by path segments a different number of times in the counter-clockwise direction than the clockwise direction.

See Also:
Constant Field Values
Method Detail

currentSegment

int currentSegment()

currentSegment

int currentSegment(double[] coords)

currentSegment

int currentSegment(float[] coords)

getWindingRule

int getWindingRule()

isDone

boolean isDone()

next

void next()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/CSSConstants.html0000664000175000017500000002464212176166726026556 0ustar sylvestresylvestre CSSConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface CSSConstants


public interface CSSConstants

This interface defines constants for CSS. Important: Constants must not contain uppercase characters.


Field Summary
static String CSS_FILL_PROPERTY
           
static String CSS_NONE_VALUE
           
static String CSS_STROKE_PROPERTY
           
 

Field Detail

CSS_STROKE_PROPERTY

static final String CSS_STROKE_PROPERTY
See Also:
Constant Field Values

CSS_FILL_PROPERTY

static final String CSS_FILL_PROPERTY
See Also:
Constant Field Values

CSS_NONE_VALUE

static final String CSS_NONE_VALUE
See Also:
Constant Field Values

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/ShapeProducer.html0000664000175000017500000002425312176166726026773 0ustar sylvestresylvestre ShapeProducer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface ShapeProducer

All Known Implementing Classes:
AWTPathProducer, AWTPolygonProducer, AWTPolylineProducer

public interface ShapeProducer

This interface represents objects which creates Shape objects.


Method Summary
 Shape getShape()
          Returns the Shape object initialized during the last parsing.
 int getWindingRule()
          Returns the current winding rule.
 void setWindingRule(int i)
          Sets the winding rule used to construct the path.
 

Method Detail

getShape

Shape getShape()
Returns the Shape object initialized during the last parsing.

Returns:
the shape or null if this handler has not been used to parse a path.

setWindingRule

void setWindingRule(int i)
Sets the winding rule used to construct the path.


getWindingRule

int getWindingRule()
Returns the current winding rule.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/ErrorHandler.html0000664000175000017500000002176212176166726026620 0ustar sylvestresylvestre ErrorHandler (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Interface ErrorHandler

All Known Implementing Classes:
DefaultErrorHandler

public interface ErrorHandler

This interface must be implemented and then registred as the error handler in order to be notified of parsing errors.


Method Summary
 void error(ParseException e)
          Called when a parse error occurs.
 

Method Detail

error

void error(ParseException e)
           throws ParseException
Called when a parse error occurs.

Throws:
ParseException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/NumberParser.html0000664000175000017500000004172212176166726026634 0ustar sylvestresylvestre NumberParser (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class NumberParser

java.lang.Object
  extended by com.mxgraph.util.svg.AbstractParser
      extended by com.mxgraph.util.svg.NumberParser
All Implemented Interfaces:
Parser
Direct Known Subclasses:
PathParser, PointsParser

public abstract class NumberParser
extends AbstractParser

This class represents a parser with support for numbers.


Field Summary
 
Fields inherited from class com.mxgraph.util.svg.AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, reader
 
Constructor Summary
NumberParser()
           
 
Method Summary
static float buildFloat(int mant, int exp)
          Computes a float from mantissa and exponent.
protected  float parseFloat()
          Parses the content of the buffer and converts it to a float.
 
Methods inherited from class com.mxgraph.util.svg.AbstractParser
createErrorMessage, doParse, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberParser

public NumberParser()
Method Detail

parseFloat

protected float parseFloat()
                    throws ParseException,
                           IOException
Parses the content of the buffer and converts it to a float.

Throws:
ParseException
IOException

buildFloat

public static float buildFloat(int mant,
                               int exp)
Computes a float from mantissa and exponent.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/svg/NormalizingReader.html0000664000175000017500000004413012176166726027637 0ustar sylvestresylvestre NormalizingReader (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.svg
Class NormalizingReader

java.lang.Object
  extended by java.io.Reader
      extended by com.mxgraph.util.svg.NormalizingReader
All Implemented Interfaces:
Closeable, Readable
Direct Known Subclasses:
StringNormalizingReader

public abstract class NormalizingReader
extends Reader

This class represents a reader which normalizes the line break: \n, \r, \r\n are replaced by \n. The methods of this reader are not synchronized. The input is buffered.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
NormalizingReader()
           
 
Method Summary
abstract  int getColumn()
          Returns the current column in the stream.
abstract  int getLine()
          Returns the current line in the stream.
 int read(char[] cbuf, int off, int len)
          Read characters into a portion of an array.
 
Methods inherited from class java.io.Reader
close, mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizingReader

public NormalizingReader()
Method Detail

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Read characters into a portion of an array.

Specified by:
read in class Reader
Parameters:
cbuf - Destination buffer
off - Offset at which to start writing characters
len - Maximum number of characters to read
Returns:
The number of characters read, or -1 if the end of the stream has been reached
Throws:
IOException

getLine

public abstract int getLine()
Returns the current line in the stream.


getColumn

public abstract int getColumn()
Returns the current column in the stream.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxRectangle.html0000664000175000017500000007517412176166726025711 0ustar sylvestresylvestre mxRectangle (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxRectangle

java.lang.Object
  extended by com.mxgraph.util.mxPoint
      extended by com.mxgraph.util.mxRectangle
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
mxCellState, mxGeometry

public class mxRectangle
extends mxPoint

Implements a 2-dimensional rectangle with double precision coordinates.

See Also:
Serialized Form

Field Summary
protected  double height
          Holds the width and the height.
protected  double width
          Holds the width and the height.
 
Fields inherited from class com.mxgraph.util.mxPoint
x, y
 
Constructor Summary
mxRectangle()
          Constructs a new rectangle at (0, 0) with the width and height set to 0.
mxRectangle(double x, double y, double width, double height)
          Constructs a rectangle using the given parameters.
mxRectangle(mxRectangle rect)
          Constructs a copy of the given rectangle.
mxRectangle(Rectangle2D rect)
          Constructs a copy of the given rectangle.
 
Method Summary
 void add(mxRectangle rect)
          Adds the given rectangle to this rectangle.
 Object clone()
          Returns a new instance of the same rectangle.
 boolean contains(double x, double y)
          Returns true if the given point is contained in the rectangle.
 boolean equals(Object obj)
          Returns true if the given object equals this rectangle.
 double getCenterX()
          Returns the x-coordinate of the center.
 double getCenterY()
          Returns the y-coordinate of the center.
 double getHeight()
          Returns the height of the rectangle.
 Rectangle getRectangle()
          Returns the bounds as a new rectangle.
 double getWidth()
          Returns the width of the rectangle.
 void grow(double amount)
          Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.
 mxPoint intersectLine(double x0, double y0, double x1, double y1)
          Returns the point at which the specified point intersects the perimeter of this rectangle or null if there is no intersection.
 void setHeight(double value)
          Sets the height of the rectangle.
 void setRect(double x, double y, double w, double h)
          Sets this rectangle to the specified values
 void setWidth(double value)
          Sets the width of the rectangle.
 String toString()
          Returns the String representation of this mxRectangle.
 
Methods inherited from class com.mxgraph.util.mxPoint
getPoint, getX, getY, setX, setY
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

protected double width
Holds the width and the height. Default is 0.


height

protected double height
Holds the width and the height. Default is 0.

Constructor Detail

mxRectangle

public mxRectangle()
Constructs a new rectangle at (0, 0) with the width and height set to 0.


mxRectangle

public mxRectangle(Rectangle2D rect)
Constructs a copy of the given rectangle.

Parameters:
rect - Rectangle to construct a copy of.

mxRectangle

public mxRectangle(mxRectangle rect)
Constructs a copy of the given rectangle.

Parameters:
rect - Rectangle to construct a copy of.

mxRectangle

public mxRectangle(double x,
                   double y,
                   double width,
                   double height)
Constructs a rectangle using the given parameters.

Parameters:
x - X-coordinate of the new rectangle.
y - Y-coordinate of the new rectangle.
width - Width of the new rectangle.
height - Height of the new rectangle.
Method Detail

getWidth

public double getWidth()
Returns the width of the rectangle.

Returns:
Returns the width.

setWidth

public void setWidth(double value)
Sets the width of the rectangle.

Parameters:
value - Double that specifies the new width.

getHeight

public double getHeight()
Returns the height of the rectangle.

Returns:
Returns the height.

setHeight

public void setHeight(double value)
Sets the height of the rectangle.

Parameters:
value - Double that specifies the new height.

setRect

public void setRect(double x,
                    double y,
                    double w,
                    double h)
Sets this rectangle to the specified values

Parameters:
x - the new x-axis position
y - the new y-axis position
w - the new width of the rectangle
h - the new height of the rectangle

add

public void add(mxRectangle rect)
Adds the given rectangle to this rectangle.


getCenterX

public double getCenterX()
Returns the x-coordinate of the center.

Returns:
Returns the x-coordinate of the center.

getCenterY

public double getCenterY()
Returns the y-coordinate of the center.

Returns:
Returns the y-coordinate of the center.

grow

public void grow(double amount)
Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.

Parameters:
amount - Amount by which the rectangle should be grown.

contains

public boolean contains(double x,
                        double y)
Returns true if the given point is contained in the rectangle.

Parameters:
x - X-coordinate of the point.
y - Y-coordinate of the point.
Returns:
Returns true if the point is contained in the rectangle.

intersectLine

public mxPoint intersectLine(double x0,
                             double y0,
                             double x1,
                             double y1)
Returns the point at which the specified point intersects the perimeter of this rectangle or null if there is no intersection.

Parameters:
x0 - the x co-ordinate of the first point of the line
y0 - the y co-ordinate of the first point of the line
x1 - the x co-ordinate of the second point of the line
y1 - the y co-ordinate of the second point of the line
Returns:
the point at which the line intersects this rectangle, or null if there is no intersection

getRectangle

public Rectangle getRectangle()
Returns the bounds as a new rectangle.

Returns:
Returns a new rectangle for the bounds.

equals

public boolean equals(Object obj)
Returns true if the given object equals this rectangle.

Overrides:
equals in class mxPoint

clone

public Object clone()
Returns a new instance of the same rectangle.

Overrides:
clone in class mxPoint

toString

public String toString()
Returns the String representation of this mxRectangle.

Overrides:
toString in class mxPoint
Returns:
a String representing this mxRectangle.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxDomUtils.html0000664000175000017500000003563412176166724025540 0ustar sylvestresylvestre mxDomUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxDomUtils

java.lang.Object
  extended by com.mxgraph.util.mxDomUtils

public class mxDomUtils
extends Object

Contains various DOM API helper methods for use with mxGraph.


Constructor Summary
mxDomUtils()
           
 
Method Summary
static Document createDocument()
          Returns a new, empty DOM document.
static Document createHtmlDocument()
          Returns a document with a HTML node containing a HEAD and BODY node.
static Document createSvgDocument(int width, int height)
          Creates a new SVG document for the given width and height.
static Document createVmlDocument()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxDomUtils

public mxDomUtils()
Method Detail

createDocument

public static Document createDocument()
Returns a new, empty DOM document.

Returns:
Returns a new DOM document.

createSvgDocument

public static Document createSvgDocument(int width,
                                         int height)
Creates a new SVG document for the given width and height.


createVmlDocument

public static Document createVmlDocument()

createHtmlDocument

public static Document createHtmlDocument()
Returns a document with a HTML node containing a HEAD and BODY node.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxLightweightLabel.html0000664000175000017500000035115512176166726027220 0ustar sylvestresylvestre mxLightweightLabel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxLightweightLabel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JLabel
                  extended by com.mxgraph.util.mxLightweightLabel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class mxLightweightLabel
extends JLabel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JLabel
JLabel.AccessibleJLabel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected static mxLightweightLabel sharedInstance
           
 
Fields inherited from class javax.swing.JLabel
labelFor
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mxLightweightLabel()
           
 
Method Summary
 void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, byte oldValue, byte newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, char oldValue, char newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, double oldValue, double newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, float oldValue, float newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, int oldValue, int newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, long oldValue, long newValue)
          Overridden for performance reasons.
protected  void firePropertyChange(String propertyName, Object oldValue, Object newValue)
          Overridden for performance reasons.
 void firePropertyChange(String propertyName, short oldValue, short newValue)
          Overridden for performance reasons.
static mxLightweightLabel getSharedInstance()
           
 void repaint(long tm, int x, int y, int width, int height)
          Overridden for performance reasons.
 void repaint(Rectangle r)
          Overridden for performance reasons.
 void revalidate()
          Overridden for performance reasons.
 void validate()
          Overridden for performance reasons.
 
Methods inherited from class javax.swing.JLabel
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sharedInstance

protected static mxLightweightLabel sharedInstance
Constructor Detail

mxLightweightLabel

public mxLightweightLabel()
Method Detail

getSharedInstance

public static mxLightweightLabel getSharedInstance()

validate

public void validate()
Overridden for performance reasons.

Overrides:
validate in class Container

revalidate

public void revalidate()
Overridden for performance reasons.

Overrides:
revalidate in class JComponent

repaint

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
Overridden for performance reasons.

Overrides:
repaint in class JComponent

repaint

public void repaint(Rectangle r)
Overridden for performance reasons.

Overrides:
repaint in class JComponent

firePropertyChange

protected void firePropertyChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class Component

firePropertyChange

public void firePropertyChange(String propertyName,
                               byte oldValue,
                               byte newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class Component

firePropertyChange

public void firePropertyChange(String propertyName,
                               char oldValue,
                               char newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class JComponent

firePropertyChange

public void firePropertyChange(String propertyName,
                               short oldValue,
                               short newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class Component

firePropertyChange

public void firePropertyChange(String propertyName,
                               int oldValue,
                               int newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class JComponent

firePropertyChange

public void firePropertyChange(String propertyName,
                               long oldValue,
                               long newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class Component

firePropertyChange

public void firePropertyChange(String propertyName,
                               float oldValue,
                               float newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class Component

firePropertyChange

public void firePropertyChange(String propertyName,
                               double oldValue,
                               double newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class Component

firePropertyChange

public void firePropertyChange(String propertyName,
                               boolean oldValue,
                               boolean newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class JComponent

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/0000775000175000017500000000000012176166726024433 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxConstants.html0000664000175000017500000001360412176166726027646 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxConstants

No usage of com.mxgraph.util.mxConstants


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxLine.html0000664000175000017500000003114212176166726026556 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxLine (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxLine

Packages that use mxLine
com.mxgraph.shape   
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
 

Uses of mxLine in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxLine
 mxLine mxCurveLabelShape.LabelGlyphCache.glyphGeometry
          A line parallel to the curve segment at which the element is to be drawn
 

Methods in com.mxgraph.shape that return mxLine
protected  mxLine mxConnectorShape.getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
          Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
protected  mxLine mxCurveShape.getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
          Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
 

Uses of mxLine in com.mxgraph.util
 

Fields in com.mxgraph.util declared as mxLine
static mxLine mxCurve.INVALID_POSITION
          Indicates that an invalid position on a curve was requested
 

Methods in com.mxgraph.util that return mxLine
 mxLine mxCurve.getCurveParallel(String index, double distance)
          Returns a unit vector parallel to the curve at the specified distance along the curve.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxEventSource.html0000664000175000017500000005351112176166726030135 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxEventSource (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxEventSource

Packages that use mxEventSource
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxEventSource in com.mxgraph.model
 

Subclasses of mxEventSource in com.mxgraph.model
 class mxGraphModel
          Extends mxEventSource to implement a graph model.
 

Uses of mxEventSource in com.mxgraph.sharing
 

Subclasses of mxEventSource in com.mxgraph.sharing
 class mxSharedGraphModel
          Implements a diagram that may be shared among multiple sessions.
 class mxSharedState
          Implements a diagram that may be shared among multiple sessions.
 

Uses of mxEventSource in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxEventSource
protected  mxEventSource mxGraphComponent.eventSource
           
 

Uses of mxEventSource in com.mxgraph.swing.handler
 

Subclasses of mxEventSource in com.mxgraph.swing.handler
 class mxConnectPreview
          Connection handler creates new connections between cells.
 class mxMovePreview
          Connection handler creates new connections between cells.
 

Fields in com.mxgraph.swing.handler declared as mxEventSource
protected  mxEventSource mxInsertHandler.eventSource
           
protected  mxEventSource mxConnectionHandler.eventSource
          Holds the event source.
protected  mxEventSource mxCellMarker.eventSource
          Holds the event source.
 

Uses of mxEventSource in com.mxgraph.swing.util
 

Subclasses of mxEventSource in com.mxgraph.swing.util
 class mxAnimation
          Baseclass for all timer-based animations.
 class mxMorphing
          Provides animation effects.
 

Uses of mxEventSource in com.mxgraph.util
 

Subclasses of mxEventSource in com.mxgraph.util
 class mxUndoManager
          Implements an undo history.
 

Uses of mxEventSource in com.mxgraph.view
 

Subclasses of mxEventSource in com.mxgraph.view
 class mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 class mxGraphSelectionModel
          Implements the selection model for a graph.
 class mxGraphView
          Implements a view for the graph.
 class mxLayoutManager
          Implements a layout manager that updates the layout for a given transaction.
 class mxSpaceManager
           
 class mxSwimlaneManager
          Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if siblings is true, and its ancestors, if bubbling is true.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxEventSource.mxIEventListener.html0000664000175000017500000010266012176166726033401 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.mxEventSource.mxIEventListener (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.mxEventSource.mxIEventListener

Packages that use mxEventSource.mxIEventListener
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxEventSource.mxIEventListener in com.mxgraph.model
 

Methods in com.mxgraph.model with parameters of type mxEventSource.mxIEventListener
 void mxIGraphModel.addListener(String eventName, mxEventSource.mxIEventListener listener)
          Binds the specified function to the given event name.
 void mxIGraphModel.removeListener(mxEventSource.mxIEventListener listener)
          Function: removeListener Removes the given listener from the list of listeners.
 void mxIGraphModel.removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Function: removeListener Removes the given listener from the list of listeners.
 

Uses of mxEventSource.mxIEventListener in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxEventSource.mxIEventListener
protected  mxEventSource.mxIEventListener mxGraphComponent.repaintHandler
           
protected  mxEventSource.mxIEventListener mxGraphOutline.repaintHandler
           
protected  mxEventSource.mxIEventListener mxGraphComponent.scaleHandler
          Resets the zoom policy if the scale is changed manually.
protected  mxEventSource.mxIEventListener mxGraphComponent.updateHandler
          Updates the heavyweight component structure after any changes.
 

Methods in com.mxgraph.swing with parameters of type mxEventSource.mxIEventListener
 void mxGraphComponent.addListener(String eventName, mxEventSource.mxIEventListener listener)
           
 void mxGraphComponent.removeListener(mxEventSource.mxIEventListener listener)
           
 void mxGraphComponent.removeListener(mxEventSource.mxIEventListener listener, String eventName)
           
 

Uses of mxEventSource.mxIEventListener in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxEventSource.mxIEventListener
protected  mxEventSource.mxIEventListener mxSelectionCellsHandler.refreshHandler
           
protected  mxEventSource.mxIEventListener mxConnectionHandler.resetHandler
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxEventSource.mxIEventListener
 void mxInsertHandler.addListener(String eventName, mxEventSource.mxIEventListener listener)
           
 void mxConnectionHandler.addListener(String eventName, mxEventSource.mxIEventListener listener)
          Adds the given event listener.
 void mxCellMarker.addListener(String eventName, mxEventSource.mxIEventListener listener)
          Adds the given event listener.
 void mxInsertHandler.removeListener(mxEventSource.mxIEventListener listener)
           
 void mxConnectionHandler.removeListener(mxEventSource.mxIEventListener listener)
          Removes the given event listener.
 void mxCellMarker.removeListener(mxEventSource.mxIEventListener listener)
          Removes the given event listener.
 void mxInsertHandler.removeListener(mxEventSource.mxIEventListener listener, String eventName)
           
 void mxConnectionHandler.removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Removes the given event listener for the specified event name.
 void mxCellMarker.removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Removes the given event listener for the specified event name.
 

Uses of mxEventSource.mxIEventListener in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxEventSource.mxIEventListener
 void mxEventSource.addListener(String eventName, mxEventSource.mxIEventListener listener)
          Binds the specified function to the given event name.
 void mxEventSource.removeListener(mxEventSource.mxIEventListener listener)
          Function: removeListener Removes all occurances of the given listener from the list of listeners.
 void mxEventSource.removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Function: removeListener Removes all occurances of the given listener from the list of listeners.
 

Uses of mxEventSource.mxIEventListener in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxEventSource.mxIEventListener
protected  mxEventSource.mxIEventListener mxSwimlaneManager.addHandler
           
protected  mxEventSource.mxIEventListener mxGraph.fullRepaintHandler
          Fires repaint events for full repaints.
protected  mxEventSource.mxIEventListener mxGraph.graphModelChangeHandler
          Fires repaint events for model changes.
protected  mxEventSource.mxIEventListener mxLayoutManager.moveHandler
           
protected  mxEventSource.mxIEventListener mxSpaceManager.resizeHandler
           
protected  mxEventSource.mxIEventListener mxSwimlaneManager.resizeHandler
           
protected  mxEventSource.mxIEventListener mxLayoutManager.undoHandler
           
protected  mxEventSource.mxIEventListener mxGraph.updateOriginHandler
          Fires repaint events for full repaints.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxRectangle.html0000664000175000017500000036610712176166726027607 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxRectangle (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxRectangle

Packages that use mxRectangle
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.layout This package contains various graph layouts. 
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxRectangle in com.mxgraph.canvas
 

Methods in com.mxgraph.canvas with parameters of type mxRectangle
 Paint mxGraphics2DCanvas.createFillPaint(mxRectangle bounds, Map<String,Object> style)
           
 Graphics2D mxGraphics2DCanvas.createTemporaryGraphics(Map<String,Object> style, float opacity, mxRectangle bounds)
           
 

Uses of mxRectangle in com.mxgraph.layout
 

Methods in com.mxgraph.layout that return mxRectangle
protected  mxRectangle mxCompactTreeLayout.apply(mxCompactTreeLayout.TreeNode node, mxRectangle bounds)
           
 mxRectangle mxStackLayout.getContainerSize()
          Hook for subclassers to return the container size.
 mxRectangle mxPartitionLayout.getContainerSize()
          Hook for subclassers to return the container size.
 mxRectangle mxGraphLayout.getVertexBounds(Object vertex)
          Returns an that defines the bounds of the given cell or the bounding box if is true.
protected  mxRectangle mxCompactTreeLayout.horizontalLayout(mxCompactTreeLayout.TreeNode node, double x0, double y0, mxRectangle bounds)
           
 mxRectangle mxGraphLayout.setVertexLocation(Object vertex, double x, double y)
          Sets the new position of the given cell taking into account the size of the bounding box if is true.
protected  mxRectangle mxCompactTreeLayout.verticalLayout(mxCompactTreeLayout.TreeNode node, Object parent, double x0, double y0, mxRectangle bounds)
           
 

Methods in com.mxgraph.layout with parameters of type mxRectangle
protected  mxRectangle mxCompactTreeLayout.apply(mxCompactTreeLayout.TreeNode node, mxRectangle bounds)
           
protected  mxRectangle mxCompactTreeLayout.horizontalLayout(mxCompactTreeLayout.TreeNode node, double x0, double y0, mxRectangle bounds)
           
protected  mxRectangle mxCompactTreeLayout.verticalLayout(mxCompactTreeLayout.TreeNode node, Object parent, double x0, double y0, mxRectangle bounds)
           
 

Uses of mxRectangle in com.mxgraph.model
 

Subclasses of mxRectangle in com.mxgraph.model
 class mxGeometry
          Represents the geometry of a cell.
 

Fields in com.mxgraph.model declared as mxRectangle
protected  mxRectangle mxGeometry.alternateBounds
          Stores alternate values for x, y, width and height in a rectangle.
 

Methods in com.mxgraph.model that return mxRectangle
 mxRectangle mxGeometry.getAlternateBounds()
          Returns the alternate bounds.
 

Methods in com.mxgraph.model with parameters of type mxRectangle
 void mxGeometry.setAlternateBounds(mxRectangle rect)
          Sets the alternate bounds to the given rectangle.
 

Uses of mxRectangle in com.mxgraph.reader
 

Fields in com.mxgraph.reader declared as mxRectangle
protected  mxRectangle mxGraphViewImageReader.clip
          Defines the clip to be drawn.
 

Methods in com.mxgraph.reader that return mxRectangle
 mxRectangle mxGraphViewImageReader.getClip()
           
 

Methods in com.mxgraph.reader with parameters of type mxRectangle
 void mxGraphViewImageReader.setClip(mxRectangle value)
           
 

Uses of mxRectangle in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxRectangle
 mxRectangle mxCurveLabelShape.LabelGlyphCache.drawingBounds
          The un-rotated rectangle that just bounds this character
static mxRectangle mxCurveLabelShape.INVALID_GLYPH_BOUNDS
          Indicates that a glyph does not have valid drawing bounds, usually because it is not visible
protected  mxRectangle mxCurveLabelShape.labelBounds
          Cache of the bounds of the label
 mxRectangle mxCurveLabelShape.LabelGlyphCache.labelGlyphBounds
          Cache of the bounds of the individual element of the label of this edge.
 

Methods in com.mxgraph.shape that return mxRectangle
protected  mxRectangle mxStencil.computeAspect(mxCellState state, mxRectangle bounds, String direction)
          Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.
 mxRectangle mxCurveLabelShape.getCenterVisiblePosition()
          Returns the drawing bounds of the central indexed visible glyph
protected  mxRectangle mxBasicShape.getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  mxRectangle mxSwimlaneShape.getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 mxRectangle mxCurveLabelShape.getLabelBounds()
           
 mxRectangle mxCurveLabelShape.updateLabelBounds(String label, Map<String,Object> style)
          Updates the cached position and size of each glyph in the edge label.
 

Methods in com.mxgraph.shape with parameters of type mxRectangle
protected  mxRectangle mxStencil.computeAspect(mxCellState state, mxRectangle bounds, String direction)
          Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.
protected  void mxStencil.drawElement(mxGraphicsCanvas2D canvas, mxCellState state, Element node, mxRectangle aspect)
          Drawsthe given element.
protected  void mxStencil.drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled)
          Draws the shadow.
 boolean mxStencil.drawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, boolean background)
          Draws this stencil inside the given bounds.
 

Uses of mxRectangle in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxRectangle
protected  mxRectangle mxGraphOutline.repaintClip
          Clip of the triple buffer to be repainted.
 

Methods in com.mxgraph.swing that return mxRectangle
 mxRectangle mxGraphComponent.getLayoutAreaSize()
          Returns the size of the area that layouts can operate in.
 

Uses of mxRectangle in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxRectangle
protected  mxRectangle mxGraphHandler.bbox
          Scaled, translated bounding box of the selection cells.
protected  mxRectangle mxGraphHandler.cellBounds
          Scaled, translated bounds of the selection cells.
protected  mxRectangle mxInsertHandler.current
           
protected  mxRectangle mxMovePreview.lastDirty
           
protected  mxRectangle mxGraphHandler.transferBounds
          Unscaled, untranslated bounding box of the selection cells.
 

Methods in com.mxgraph.swing.handler that return mxRectangle
protected  mxRectangle mxMovePreview.getPlaceholderBounds(mxCellState startState)
           
protected  mxRectangle mxVertexHandler.union(mxRectangle bounds, double dx, double dy, int index)
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxRectangle
 mxGraphTransferable mxGraphTransferHandler.createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, mxRectangle bounds, ImageIcon icon)
           
protected  Rectangle mxConnectPreview.getDirtyRect(mxRectangle dirty)
           
 Object mxInsertHandler.insertCell(mxRectangle bounds)
           
protected  void mxMovePreview.repaint(mxRectangle dirty)
           
protected  mxRectangle mxVertexHandler.union(mxRectangle bounds, double dx, double dy, int index)
           
 

Uses of mxRectangle in com.mxgraph.swing.util
 

Fields in com.mxgraph.swing.util declared as mxRectangle
protected  mxRectangle mxGraphTransferable.bounds
           
protected  mxRectangle mxMorphing.dirty
           
 

Methods in com.mxgraph.swing.util that return mxRectangle
 mxRectangle mxGraphTransferable.getBounds()
          Returns the unscaled, untranslated bounding box of the cells.
 mxRectangle mxCellOverlay.getBounds(mxCellState state)
           
 mxRectangle mxICellOverlay.getBounds(mxCellState state)
           
 

Constructors in com.mxgraph.swing.util with parameters of type mxRectangle
mxGraphTransferable(Object[] cells, mxRectangle bounds)
           
mxGraphTransferable(Object[] cells, mxRectangle bounds, ImageIcon image)
           
 

Uses of mxRectangle in com.mxgraph.swing.view
 

Methods in com.mxgraph.swing.view that return mxRectangle
protected  mxRectangle mxCellStatePreview.revalidateState(mxCellState parentState, mxCellState state, double dx, double dy)
           
 mxRectangle mxCellStatePreview.show()
          Returns a dirty rectangle to be repainted in mxGraphControl.
 

Uses of mxRectangle in com.mxgraph.util
 

Methods in com.mxgraph.util that return mxRectangle
static mxRectangle mxUtils.getBoundingBox(mxRectangle rect, double rotation)
          Returns the bounding box for the rotated rectangle.
 mxRectangle mxCurve.getBounds()
           
static mxRectangle mxUtils.getLabelPaintBounds(String label, Map<String,Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)
          Returns the paint bounds for the given label.
static mxRectangle mxUtils.getLabelSize(String label, Map<String,Object> style, boolean isHtml, double scale)
          Returns the size for the given label.
static mxRectangle mxUtils.getLabelSize(String label, Map<String,Object> style, boolean isHtml, double scale, double htmlWrapWidth)
          Returns the size for the given label.
 mxRectangle mxCurve.getRelativeFromAbsPoint(mxPoint absPoint, String index)
          Calculates the position of an absolute in terms relative to this curve.
static mxRectangle mxUtils.getScaledLabelBounds(double x, double y, mxRectangle size, double outerWidth, double outerHeight, Map<String,Object> style, double scale)
          Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label.
static mxRectangle mxUtils.getSizeForHtml(String markup, Map<String,Object> style, double scale, double wrapWidth)
          Returns an mxRectangle with the size (width and height in pixels) of the given HTML markup.
static mxRectangle mxUtils.getSizeForString(String text, Font font, double scale)
          Returns an with the size (width and height in pixels) of the given string.
 

Methods in com.mxgraph.util with parameters of type mxRectangle
 void mxRectangle.add(mxRectangle rect)
          Adds the given rectangle to this rectangle.
 mxPoint mxCurve.collisionMove(String index, mxRectangle rect, double buffer)
          Returns a point to move the input rectangle to, in order to attempt to place the rectangle away from the curve.
static BufferedImage mxCellRenderer.createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip)
           
static BufferedImage mxCellRenderer.createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas)
           
static Document mxCellRenderer.createHtmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static Document mxCellRenderer.createSvgDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static Document mxCellRenderer.createVmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static mxICanvas mxCellRenderer.drawCells(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)
          Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
static mxRectangle mxUtils.getBoundingBox(mxRectangle rect, double rotation)
          Returns the bounding box for the rotated rectangle.
static mxRectangle mxUtils.getLabelPaintBounds(String label, Map<String,Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)
          Returns the paint bounds for the given label.
static mxRectangle mxUtils.getScaledLabelBounds(double x, double y, mxRectangle size, double outerWidth, double outerHeight, Map<String,Object> style, double scale)
          Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label.
protected  mxPoint mxCurve.intersectRectPerimeterPoint(String curveIndex, mxRectangle rect, int indexSeg)
          Returns the point at which this curve segment intersects the boundary of the given rectangle, if it does so.
protected  int mxCurve.intersectRectPerimeterSeg(String index, mxRectangle rect)
          Utility method to determine within which segment the specified rectangle intersects the specified curve
protected  int mxCurve.intersectRectPerimeterSeg(String index, mxRectangle rect, int startSegment)
          Utility method to determine within which segment the specified rectangle intersects the specified curve.
 mxPoint mxCurve.intersectsRectPerimeter(String index, mxRectangle rect)
          Returns the point at which this curve intersects the boundary of the given rectangle, if it does so.
 double mxCurve.intersectsRectPerimeterDist(String index, mxRectangle rect)
          Returns the distance from the start of the curve at which this curve intersects the boundary of the given rectangle, if it does so.
 

Constructors in com.mxgraph.util with parameters of type mxRectangle
mxRectangle(mxRectangle rect)
          Constructs a copy of the given rectangle.
 

Uses of mxRectangle in com.mxgraph.view
 

Subclasses of mxRectangle in com.mxgraph.view
 class mxCellState
          Represents the current state of a cell in a given graph view.
 

Fields in com.mxgraph.view declared as mxRectangle
protected  mxRectangle mxCellState.boundingBox
          Holds the largest rectangle which contains all rendering for this cell.
protected  mxRectangle mxGraphView.graphBounds
          Caches the current bounds of the graph.
protected  mxRectangle mxCellState.labelBounds
          Holds the rectangle which contains the label.
protected  mxRectangle mxGraph.maximumGraphBounds
           that specifies the area in which all cells in the diagram should be placed.
protected  mxRectangle mxGraph.minimumGraphSize
          mxRectangle that specifies the minimum size of the graph canvas inside the scrollpane.
protected  mxRectangle mxTemporaryCellStates.oldBounds
           
 

Methods in com.mxgraph.view that return mxRectangle
 mxRectangle mxCellState.getBoundingBox()
          Returns the bounding box.
 mxRectangle mxGraph.getBoundingBox(Object cell)
          Returns the bounds of the given cell.
 mxRectangle mxGraphView.getBoundingBox(Object[] cells)
          Returns the bounding box for an array of cells or null, if no cells are specified.
 mxRectangle mxGraph.getBoundingBox(Object cell, boolean includeEdges)
          Returns the bounding box of the given cell including all connected edges if includeEdge is true.
 mxRectangle mxGraph.getBoundingBox(Object cell, boolean includeEdges, boolean includeDescendants)
          Returns the bounding box of the given cell including all connected edges if includeEdge is true.
 mxRectangle mxGraph.getBoundingBoxFromGeometry(Object[] cells)
          Returns the bounding box for the geometries of the vertices in the given array of cells.
 mxRectangle mxGraphView.getBounds(Object[] cells)
          Returns the bounding box for an array of cells or null, if no cells are specified.
 mxRectangle mxGraphView.getBounds(Object[] cells, boolean boundingBox)
          Returns the bounding box for an array of cells or null, if no cells are specified.
 mxRectangle mxGraph.getBoundsForCells(Object[] cells, boolean includeEdges, boolean includeDescendants, boolean boundingBox)
          Returns the bounds for the given cells.
 mxRectangle mxGraph.getBoundsForGroup(Object group, Object[] children, double border)
          Returns the bounds to be used for the given group and children.
 mxRectangle mxGraph.getCellBounds(Object cell)
          Returns the bounds of the given cell.
 mxRectangle mxGraph.getCellBounds(Object cell, boolean includeEdges)
          Returns the bounds of the given cell including all connected edges if includeEdge is true.
 mxRectangle mxGraph.getCellBounds(Object cell, boolean includeEdges, boolean includeDescendants)
          Returns the bounds of the given cell including all connected edges if includeEdge is true.
 mxRectangle mxGraph.getCellBounds(Object cell, boolean includeEdges, boolean includeDescendants, boolean boundingBox)
          Returns the bounds of the given cell including all connected edges if includeEdge is true.
 mxRectangle mxGraph.getCellContainmentArea(Object cell)
          Returns the mxRectangle inside which a cell is to be kept.
 mxRectangle mxGraphView.getGraphBounds()
          Returns the cached diagram bounds.
 mxRectangle mxGraph.getGraphBounds()
          Returns the bounds of the visible graph.
 mxRectangle mxCellState.getLabelBounds()
          Returns the label bounds.
 mxRectangle mxGraph.getMaximumGraphBounds()
           
 mxRectangle mxGraph.getMinimumGraphSize()
          Returns the minimum size of the diagram.
 mxRectangle mxGraph.getPaintBounds(Object[] cells)
          Returns the bounding box of the given cells and their descendants.
 mxRectangle mxCellState.getPerimeterBounds()
          Returns the rectangle that should be used as the perimeter of the cell.
 mxRectangle mxCellState.getPerimeterBounds(double border)
          Returns the rectangle that should be used as the perimeter of the cell.
 mxRectangle mxGraphView.getPerimeterBounds(mxCellState terminal, double border)
          Returns the perimeter bounds for the given terminal, edge pair.
 mxRectangle mxGraph.getPreferredSizeForCell(Object cell)
          Returns the preferred width and height of the given as an .
 mxRectangle mxGraph.getStartSize(Object swimlane)
          Returns the start size of the given swimlane, that is, the width or height of the part that contains the title, depending on the horizontal style.
 mxRectangle mxGraph.graphModelChanged(mxIGraphModel sender, List<mxUndoableEdit.mxUndoableChange> changes)
          Called when the graph model changes.
 mxRectangle mxGraph.processChange(mxUndoableEdit.mxUndoableChange change, boolean invalidate, boolean ignoreDirty)
          Processes the given change and invalidates the respective cached data in .
 mxRectangle mxGraph.processChanges(List<mxUndoableEdit.mxUndoableChange> changes, boolean invalidate, boolean ignoreDirty)
          Processes the changes and returns the minimal rectangle to be repainted in the buffer.
 mxRectangle mxGraphView.updateBoundingBox(mxCellState state)
          Updates the bounding box in the given cell state.
 mxRectangle mxGraphView.validatePoints(mxCellState parentState, Object cell)
          Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle.
 

Methods in com.mxgraph.view with parameters of type mxRectangle
 mxPoint mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)
          Implements a perimeter function.
 void mxGraph.cellsResized(Object[] cells, mxRectangle[] bounds)
          Sets the bounds of the given cells and fires a event.
 void mxGraph.repaint(mxRectangle region)
          Fires a repaint event.
 Object mxGraph.resizeCell(Object cell, mxRectangle bounds)
          Sets the bounds of the given cell using resizeCells.
 Object[] mxGraph.resizeCells(Object[] cells, mxRectangle[] bounds)
          Sets the bounds of the given cells and fires a mxEvent.RESIZE_CELLS event.
 void mxCellState.setBoundingBox(mxRectangle boundingBox)
          Sets the bounding box.
 void mxGraphView.setGraphBounds(mxRectangle value)
          Sets the graph bounds.
 void mxCellState.setLabelBounds(mxRectangle labelBounds)
          Sets the label bounds.
 void mxGraph.setMaximumGraphBounds(mxRectangle value)
           
 void mxGraph.setMinimumGraphSize(mxRectangle value)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxDomUtils.html0000664000175000017500000001357212176166726027436 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxDomUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxDomUtils

No usage of com.mxgraph.util.mxDomUtils


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxLightweightLabel.html0000664000175000017500000002141212176166726031105 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxLightweightLabel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxLightweightLabel

Packages that use mxLightweightLabel
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
 

Uses of mxLightweightLabel in com.mxgraph.util
 

Fields in com.mxgraph.util declared as mxLightweightLabel
protected static mxLightweightLabel mxLightweightLabel.sharedInstance
           
 

Methods in com.mxgraph.util that return mxLightweightLabel
static mxLightweightLabel mxLightweightLabel.getSharedInstance()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxUndoManager.html0000664000175000017500000001363012176166726030071 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxUndoManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxUndoManager

No usage of com.mxgraph.util.mxUndoManager


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxBase64.html0000664000175000017500000001354612176166726026723 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxBase64 (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxBase64

No usage of com.mxgraph.util.mxBase64


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxStyleUtils.html0000664000175000017500000001361612176166726030016 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxStyleUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxStyleUtils

No usage of com.mxgraph.util.mxStyleUtils


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxUndoableEdit.mxUndoableChange.html0000664000175000017500000006047212176166726033441 0ustar sylvestresylvestre Uses of Interface com.mxgraph.util.mxUndoableEdit.mxUndoableChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.util.mxUndoableEdit.mxUndoableChange

Packages that use mxUndoableEdit.mxUndoableChange
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxUndoableEdit.mxUndoableChange in com.mxgraph.model
 

Classes in com.mxgraph.model that implement mxUndoableEdit.mxUndoableChange
static class mxGraphModel.mxChildChange
           
static class mxGraphModel.mxCollapseChange
           
static class mxGraphModel.mxGeometryChange
           
static class mxGraphModel.mxRootChange
           
static class mxGraphModel.mxStyleChange
           
static class mxGraphModel.mxTerminalChange
           
static class mxGraphModel.mxValueChange
           
static class mxGraphModel.mxVisibleChange
           
static class mxIGraphModel.mxAtomicGraphModelChange
          Defines the interface for an atomic change of the graph model.
 

Uses of mxUndoableEdit.mxUndoableChange in com.mxgraph.util
 

Fields in com.mxgraph.util with type parameters of type mxUndoableEdit.mxUndoableChange
protected  List<mxUndoableEdit.mxUndoableChange> mxUndoableEdit.changes
          Holds the list of changes that make up this undoable edit.
 

Methods in com.mxgraph.util that return types with arguments of type mxUndoableEdit.mxUndoableChange
 List<mxUndoableEdit.mxUndoableChange> mxUndoableEdit.getChanges()
           
 

Methods in com.mxgraph.util with parameters of type mxUndoableEdit.mxUndoableChange
 void mxUndoableEdit.add(mxUndoableEdit.mxUndoableChange change)
          Adds the specified change to this edit.
 

Uses of mxUndoableEdit.mxUndoableChange in com.mxgraph.view
 

Classes in com.mxgraph.view that implement mxUndoableEdit.mxUndoableChange
static class mxGraphSelectionModel.mxSelectionChange
           
static class mxGraphView.mxCurrentRootChange
          Action to change the current root in a view.
 

Methods in com.mxgraph.view with parameters of type mxUndoableEdit.mxUndoableChange
protected  Collection<Object> mxLayoutManager.getCellsForChange(mxUndoableEdit.mxUndoableChange change)
           
 mxRectangle mxGraph.processChange(mxUndoableEdit.mxUndoableChange change, boolean invalidate, boolean ignoreDirty)
          Processes the given change and invalidates the respective cached data in .
 

Method parameters in com.mxgraph.view with type arguments of type mxUndoableEdit.mxUndoableChange
protected  Collection<Object> mxLayoutManager.getCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
           
 Object[] mxGraph.getRemovedCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
          Returns the cells that have been removed from the model.
 Object[] mxGraph.getSelectionCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
          Returns the cells to be selected for the given list of changes.
 mxRectangle mxGraph.graphModelChanged(mxIGraphModel sender, List<mxUndoableEdit.mxUndoableChange> changes)
          Called when the graph model changes.
 mxRectangle mxGraph.processChanges(List<mxUndoableEdit.mxUndoableChange> changes, boolean invalidate, boolean ignoreDirty)
          Processes the changes and returns the minimal rectangle to be repainted in the buffer.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxPoint.html0000664000175000017500000037663312176166726027001 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxPoint (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxPoint

Packages that use mxPoint
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.layout This package contains various graph layouts. 
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxPoint in com.mxgraph.canvas
 

Methods in com.mxgraph.canvas that return mxPoint
 mxPoint mxSvgCanvas.drawMarker(Element parent, Object type, mxPoint p0, mxPoint pe, float size, float strokeWidth, String color)
          Draws the specified marker as a child path in the given parent.
 

Methods in com.mxgraph.canvas with parameters of type mxPoint
 mxPoint mxSvgCanvas.drawMarker(Element parent, Object type, mxPoint p0, mxPoint pe, float size, float strokeWidth, String color)
          Draws the specified marker as a child path in the given parent.
 void mxGraphics2DCanvas.paintPolyline(mxPoint[] points, boolean rounded)
           
 

Method parameters in com.mxgraph.canvas with type arguments of type mxPoint
 void mxHtmlCanvas.drawLine(List<mxPoint> pts, Map<String,Object> style)
          Draws the given lines as segments between all points of the given list of mxPoints.
 Element mxSvgCanvas.drawLine(List<mxPoint> pts, Map<String,Object> style)
          Draws the given lines as segments between all points of the given list of mxPoints.
 Element mxVmlCanvas.drawLine(List<mxPoint> pts, Map<String,Object> style)
          Draws the given lines as segments between all points of the given list of mxPoints.
 

Uses of mxPoint in com.mxgraph.layout
 

Methods in com.mxgraph.layout that return mxPoint
 mxPoint mxGraphLayout.getParentOffset(Object parent)
           
 

Method parameters in com.mxgraph.layout with type arguments of type mxPoint
 void mxGraphLayout.setEdgePoints(Object edge, List<mxPoint> points)
          Sets the control points of the given edge to the given list of mxPoints.
 

Uses of mxPoint in com.mxgraph.model
 

Subclasses of mxPoint in com.mxgraph.model
 class mxGeometry
          Represents the geometry of a cell.
 

Fields in com.mxgraph.model declared as mxPoint
protected  mxPoint mxGeometry.offset
          Holds the offset of the label for edges.
protected  mxPoint mxGeometry.sourcePoint
          Defines the source- and target-point of the edge.
protected  mxPoint mxGeometry.targetPoint
          Defines the source- and target-point of the edge.
 

Fields in com.mxgraph.model with type parameters of type mxPoint
protected  List<mxPoint> mxGeometry.points
          List of mxPoints which specifies the control points along the edge.
 

Methods in com.mxgraph.model that return mxPoint
 mxPoint mxGeometry.getOffset()
          Returns the offset.
 mxPoint mxGraphModel.getOrigin(Object cell)
          Returns the absolute, accumulated origin for the children inside the given parent.
 mxPoint mxGeometry.getSourcePoint()
          Returns the source point.
 mxPoint mxGeometry.getTargetPoint()
          Returns the target point.
 mxPoint mxGeometry.getTerminalPoint(boolean isSource)
          Returns the point representing the source or target point of this edge.
 mxPoint mxGeometry.setTerminalPoint(mxPoint point, boolean isSource)
          Sets the sourcePoint or targetPoint to the given point and returns the new point.
 

Methods in com.mxgraph.model that return types with arguments of type mxPoint
 List<mxPoint> mxGeometry.getPoints()
          Returns the list of control points.
 

Methods in com.mxgraph.model with parameters of type mxPoint
 void mxGeometry.setOffset(mxPoint offset)
          Sets the offset to the given point.
 void mxGeometry.setSourcePoint(mxPoint sourcePoint)
          Sets the source point.
 void mxGeometry.setTargetPoint(mxPoint targetPoint)
          Sets the target point.
 mxPoint mxGeometry.setTerminalPoint(mxPoint point, boolean isSource)
          Sets the sourcePoint or targetPoint to the given point and returns the new point.
 

Method parameters in com.mxgraph.model with type arguments of type mxPoint
 void mxGeometry.setPoints(List<mxPoint> value)
          Sets the list of control points to the given list.
 

Uses of mxPoint in com.mxgraph.reader
 

Methods in com.mxgraph.reader that return types with arguments of type mxPoint
static List<mxPoint> mxGraphViewReader.parsePoints(String pts)
          Parses the list of points into an object-oriented representation.
 

Uses of mxPoint in com.mxgraph.shape
 

Fields in com.mxgraph.shape with type parameters of type mxPoint
protected  List<mxPoint> mxCurveLabelShape.lastPoints
          Cache of the last set of guide points that this label was calculated for
 

Methods in com.mxgraph.shape that return mxPoint
 mxPoint[] mxLineShape.createPoints(mxGraphics2DCanvas canvas, mxCellState state)
           
 mxPoint mxConnectorShape.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, boolean source)
          Draws the marker for the given edge.
 mxPoint mxIMarker.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, String type, mxPoint pe, double nx, double ny, double size, boolean source)
           
 

Methods in com.mxgraph.shape with parameters of type mxPoint
 mxPoint mxIMarker.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, String type, mxPoint pe, double nx, double ny, double size, boolean source)
           
 

Method parameters in com.mxgraph.shape with type arguments of type mxPoint
protected  mxLine mxConnectorShape.getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
          Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
protected  mxLine mxCurveShape.getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
          Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
protected  void mxConnectorShape.paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
           
protected  void mxCurveShape.paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
           
 void mxCurveShape.validateCurve(List<mxPoint> points, double scale, Map<String,Object> style)
          Forces underlying curve to a valid state
 

Uses of mxPoint in com.mxgraph.swing
 

Methods in com.mxgraph.swing that return mxPoint
protected  mxPoint mxGraphComponent.getPageTranslate(double scale)
          Should be called by a hook inside mxGraphView/mxGraph
 mxPoint mxGraphComponent.getPointForEvent(MouseEvent e)
          Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.
 mxPoint mxGraphComponent.getPointForEvent(MouseEvent e, boolean addOffset)
          Returns an mxPoint representing the given event in the unscaled, non-translated coordinate space and applies the grid.
 mxPoint mxGraphComponent.snapScaledPoint(mxPoint pt)
           
 mxPoint mxGraphComponent.snapScaledPoint(mxPoint pt, double dx, double dy)
           
 

Methods in com.mxgraph.swing with parameters of type mxPoint
 mxPoint mxGraphComponent.snapScaledPoint(mxPoint pt)
           
 mxPoint mxGraphComponent.snapScaledPoint(mxPoint pt, double dx, double dy)
           
 

Uses of mxPoint in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxPoint
protected  mxPoint mxConnectPreview.startPoint
           
 

Methods in com.mxgraph.swing.handler that return mxPoint
protected  mxPoint mxEdgeHandler.convertPoint(mxPoint point, boolean gridEnabled)
           
 mxPoint mxConnectPreview.getStartPoint()
           
protected  mxPoint mxConnectPreview.transformScreenPoint(double x, double y)
           
 

Methods in com.mxgraph.swing.handler with parameters of type mxPoint
protected  mxPoint mxEdgeHandler.convertPoint(mxPoint point, boolean gridEnabled)
           
protected  void mxEdgeHandler.movePoint(Object edge, int pointIndex, mxPoint point)
          Moves the edges control point with the given index to the given point.
 

Uses of mxPoint in com.mxgraph.swing.util
 

Fields in com.mxgraph.swing.util with type parameters of type mxPoint
protected  Map<Object,mxPoint> mxMorphing.origins
          Maps from cells to origins.
 

Methods in com.mxgraph.swing.util that return mxPoint
protected  mxPoint mxMorphing.getDelta(mxCellState state)
          Returns the vector between the current rendered state and the future location of the state after the display will be updated.
protected  mxPoint mxMorphing.getOriginForCell(Object cell)
          Returns the top, left corner of the given cell.
 

Methods in com.mxgraph.swing.util with parameters of type mxPoint
protected  boolean mxMorphing.stopRecursion(mxCellState state, mxPoint delta)
          Returns true if the animation should not recursively find more deltas for children if the given parent state has been animated.
 

Uses of mxPoint in com.mxgraph.swing.view
 

Fields in com.mxgraph.swing.view with type parameters of type mxPoint
protected  Map<mxCellState,mxPoint> mxCellStatePreview.deltas
           
 

Methods in com.mxgraph.swing.view that return mxPoint
 mxPoint mxCellStatePreview.moveState(mxCellState state, double dx, double dy)
           
 mxPoint mxCellStatePreview.moveState(mxCellState state, double dx, double dy, boolean add, boolean includeEdges)
           
 

Methods in com.mxgraph.swing.view that return types with arguments of type mxPoint
 Map<mxCellState,mxPoint> mxCellStatePreview.getDeltas()
           
 

Uses of mxPoint in com.mxgraph.util
 

Subclasses of mxPoint in com.mxgraph.util
 class mxLine
          Implements a line with double precision coordinates.
 class mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Fields in com.mxgraph.util declared as mxPoint
protected  mxPoint mxLine.endPoint
          The end point of the line
 

Fields in com.mxgraph.util with type parameters of type mxPoint
 List<mxPoint> mxCurve.guidePoints
          The points this curve is drawn through.
 

Methods in com.mxgraph.util that return mxPoint
 mxPoint mxCurve.collisionMove(String index, mxRectangle rect, double buffer)
          Returns a point to move the input rectangle to, in order to attempt to place the rectangle away from the curve.
protected  mxPoint[] mxCurve.getBaseLabelCurve()
          Returns the curve the label curve is too be based on
 mxPoint[] mxCurve.getCurvePoints(String index)
          Obtains the points that make up the curve for the specified curve index.
 mxPoint[] mxCurve.getCurveSection(String index, double start, double end)
          Returns a section of the curve as an array of points
 mxPoint mxLine.getEndPoint()
          Returns the end point of the line.
 mxPoint mxSpline.getPoint(double t)
           
static mxPoint mxUtils.getRotatedPoint(mxPoint pt, double cos, double sin)
          Rotates the given point by the given cos and sin.
static mxPoint mxUtils.getRotatedPoint(mxPoint pt, double cos, double sin, mxPoint c)
          Rotates the given point by the given cos and sin.
static mxPoint mxUtils.intersection(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
          Returns the intersection of two lines as an mxPoint.
 mxPoint mxRectangle.intersectLine(double x0, double y0, double x1, double y1)
          Returns the point at which the specified point intersects the perimeter of this rectangle or null if there is no intersection.
protected  mxPoint mxCurve.intersectRectPerimeterPoint(String curveIndex, mxRectangle rect, int indexSeg)
          Returns the point at which this curve segment intersects the boundary of the given rectangle, if it does so.
 mxPoint mxCurve.intersectsRectPerimeter(String index, mxRectangle rect)
          Returns the point at which this curve intersects the boundary of the given rectangle, if it does so.
 

Methods in com.mxgraph.util that return types with arguments of type mxPoint
 List<mxPoint> mxCurve.getGuidePoints()
           
static List<mxPoint> mxUtils.translatePoints(List<mxPoint> pts, double dx, double dy)
          Creates a new list of new points obtained by translating the points in the given list by the given vector.
 

Methods in com.mxgraph.util with parameters of type mxPoint
static mxRectangle mxUtils.getLabelPaintBounds(String label, Map<String,Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)
          Returns the paint bounds for the given label.
 mxRectangle mxCurve.getRelativeFromAbsPoint(mxPoint absPoint, String index)
          Calculates the position of an absolute in terms relative to this curve.
static mxPoint mxUtils.getRotatedPoint(mxPoint pt, double cos, double sin)
          Rotates the given point by the given cos and sin.
static mxPoint mxUtils.getRotatedPoint(mxPoint pt, double cos, double sin, mxPoint c)
          Rotates the given point by the given cos and sin.
 double mxLine.ptLineDistSq(mxPoint pt)
          Returns the square of the shortest distance from a point to this line.
 double mxLine.ptSegDistSq(mxPoint pt)
          Returns the square of the shortest distance from a point to this line segment.
 void mxLine.setEndPoint(mxPoint value)
          Sets the end point of the rectangle.
 void mxLine.setPoints(mxPoint startPt, mxPoint endPt)
          Sets the start and end points.
 

Method parameters in com.mxgraph.util with type arguments of type mxPoint
static List<mxPoint> mxUtils.translatePoints(List<mxPoint> pts, double dx, double dy)
          Creates a new list of new points obtained by translating the points in the given list by the given vector.
 void mxCurve.updateCurve(List<mxPoint> newPoints)
          Updates the existing curve using the points passed in.
 

Constructors in com.mxgraph.util with parameters of type mxPoint
mxLine(double startPtX, double startPtY, mxPoint endPt)
          Creates a new line
mxLine(mxPoint startPt, mxPoint endPt)
          Creates a new line
mxPoint(mxPoint point)
          Constructs a new point at the location of the given point.
 

Constructor parameters in com.mxgraph.util with type arguments of type mxPoint
mxCurve(List<mxPoint> points)
           
mxSpline(List<mxPoint> points)
           
 

Uses of mxPoint in com.mxgraph.view
 

Subclasses of mxPoint in com.mxgraph.view
 class mxCellState
          Represents the current state of a cell in a given graph view.
 

Fields in com.mxgraph.view declared as mxPoint
protected  mxPoint mxCellState.absoluteOffset
          Holds the absolute offset.
protected  mxPoint mxCellState.origin
          Holds the origin for all child cells.
protected  mxPoint mxGraph.origin
          Holds the current automatic origin.
protected  mxPoint mxConnectionConstraint.point
          Point that specifies the fixed location of the connection point.
protected  mxPoint mxGraphView.translate
          Point that specifies the current translation.
 

Fields in com.mxgraph.view with type parameters of type mxPoint
protected  List<mxPoint> mxCellState.absolutePoints
          List of mxPoints that represent the absolute points of an edge.
 

Methods in com.mxgraph.view that return mxPoint
 mxPoint mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)
          Implements a perimeter function.
 mxPoint mxCellState.getAbsoluteOffset()
          Returns the absolute offset.
 mxPoint mxCellState.getAbsolutePoint(int index)
          Returns the absolute point at the given index.
 mxPoint mxGraph.getChildOffsetForCell(Object cell)
          Returns the offset to be used for the cells inside the given cell.
 mxPoint mxGraph.getConnectionPoint(mxCellState vertex, mxConnectionConstraint constraint)
          Sets the connection constraint that describes the given connection point.
 mxPoint mxGraphView.getNextPoint(mxCellState edge, mxCellState opposite, boolean source)
          Returns the nearest point in the list of absolute points or the center of the opposite terminal.
 mxPoint mxCellState.getOrigin()
          Returns the origin for the children.
 mxPoint mxGraph.getOrigin()
          Returns origin.
 mxPoint mxGraphView.getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint mxGraphView.getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal, double border)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint mxConnectionConstraint.getPoint()
          Returns the point.
 mxPoint mxGraphView.getPoint(mxCellState state)
          Returns the absolute center point along the given edge.
 mxPoint mxGraphView.getPoint(mxCellState state, mxGeometry geometry)
          Returns the absolute point on the edge for the given relative geometry as a point.
 mxPoint mxGraphView.getRelativePoint(mxCellState edgeState, double x, double y)
          Gets the relative point that describes the given, absolute label position for the given edge state.
 mxPoint mxGraphView.getTranslate()
          Returns the current translation.
 mxPoint mxGraph.getTranslateForRoot(Object cell)
          Returns the translation to be used if the given cell is the root cell as an .
 mxPoint mxCellState.setAbsolutePoint(int index, mxPoint point)
          Returns the absolute point at the given index.
 mxPoint mxGraphView.transformControlPoint(mxCellState state, mxPoint pt)
          Transforms the given control point to an absolute point.
 

Methods in com.mxgraph.view that return types with arguments of type mxPoint
 List<mxPoint> mxCellState.getAbsolutePoints()
          Returns the absolute points.
 

Methods in com.mxgraph.view with parameters of type mxPoint
 mxPoint mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)
          Implements a perimeter function.
 mxPoint mxGraphView.getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint mxGraphView.getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal, double border)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 void mxCellState.setAbsoluteOffset(mxPoint absoluteOffset)
          Returns the absolute offset.
 mxPoint mxCellState.setAbsolutePoint(int index, mxPoint point)
          Returns the absolute point at the given index.
 void mxCellState.setAbsoluteTerminalPoint(mxPoint point, boolean isSource)
          Sets the first or last point in the list of points depending on isSource.
 void mxCellState.setOrigin(mxPoint origin)
          Sets the origin for the children.
 void mxGraph.setOrigin(mxPoint value)
           
 void mxConnectionConstraint.setPoint(mxPoint value)
          Sets the point.
 void mxGraphView.setTranslate(mxPoint value)
          Sets the current translation and invalidates the view.
 mxPoint mxGraphView.transformControlPoint(mxCellState state, mxPoint pt)
          Transforms the given control point to an absolute point.
 

Method parameters in com.mxgraph.view with type arguments of type mxPoint
 void mxEdgeStyle.mxEdgeStyleFunction.apply(mxCellState state, mxCellState source, mxCellState target, List<mxPoint> points, List<mxPoint> result)
          Implements an edge style function.
 void mxEdgeStyle.mxEdgeStyleFunction.apply(mxCellState state, mxCellState source, mxCellState target, List<mxPoint> points, List<mxPoint> result)
          Implements an edge style function.
 mxEdgeStyle.mxEdgeStyleFunction mxGraphView.getEdgeStyle(mxCellState edge, List<mxPoint> points, Object source, Object target)
          Returns the edge style function to be used to compute the absolute points for the given state, control points and terminals.
 void mxCellState.setAbsolutePoints(List<mxPoint> absolutePoints)
          Returns the absolute points.
 void mxGraphView.updatePoints(mxCellState edge, List<mxPoint> points, mxCellState source, mxCellState target)
          Updates the absolute points in the given state using the specified array of points as the relative points.
 

Constructors in com.mxgraph.view with parameters of type mxPoint
mxConnectionConstraint(mxPoint point)
          Constructs a connection constraint for the given point.
mxConnectionConstraint(mxPoint point, boolean perimeter)
          Constructs a new connection constraint for the given point and boolean arguments.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxImage.html0000664000175000017500000001353412176166726026716 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxImage (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxImage

No usage of com.mxgraph.util.mxImage


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxSpline.html0000664000175000017500000001354612176166726027131 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxSpline (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxSpline

No usage of com.mxgraph.util.mxSpline


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxResources.html0000664000175000017500000001360412176166726027644 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxResources (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxResources

No usage of com.mxgraph.util.mxResources


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxUtils.html0000664000175000017500000001353412176166726026774 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxUtils

No usage of com.mxgraph.util.mxUtils


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxCellRenderer.html0000664000175000017500000001364212176166726030242 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxCellRenderer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxCellRenderer

No usage of com.mxgraph.util.mxCellRenderer


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxXmlUtils.html0000664000175000017500000001357212176166726027457 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxXmlUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxXmlUtils

No usage of com.mxgraph.util.mxXmlUtils


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxHtmlColor.html0000664000175000017500000001360412176166726027575 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxHtmlColor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxHtmlColor

No usage of com.mxgraph.util.mxHtmlColor


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxEventObject.html0000664000175000017500000002260712176166726030105 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxEventObject (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxEventObject

Packages that use mxEventObject
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
 

Uses of mxEventObject in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxEventObject
 void mxEventSource.fireEvent(mxEventObject evt)
          Dispatches the given event name with this object as the event source.
 void mxEventSource.fireEvent(mxEventObject evt, Object sender)
          Dispatches the given event name, passing all arguments after the given name to the registered listeners for the event.
 void mxEventSource.mxIEventListener.invoke(Object sender, mxEventObject evt)
          Called when the graph model has changed.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxEvent.html0000664000175000017500000001353412176166726026755 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxEvent (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxEvent

No usage of com.mxgraph.util.mxEvent


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxImageBundle.html0000664000175000017500000002664512176166726030057 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxImageBundle (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxImageBundle

Packages that use mxImageBundle
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxImageBundle in com.mxgraph.view
 

Fields in com.mxgraph.view with type parameters of type mxImageBundle
protected static List<mxImageBundle> mxGraph.imageBundles
          Holds the list of bundles.
 

Methods in com.mxgraph.view that return types with arguments of type mxImageBundle
 List<mxImageBundle> mxGraph.getImageBundles()
          Returns the image bundles
 

Methods in com.mxgraph.view with parameters of type mxImageBundle
 void mxGraph.addImageBundle(mxImageBundle bundle)
          Adds the specified bundle.
 void mxGraph.removeImageBundle(mxImageBundle bundle)
          Removes the specified bundle.
 

Method parameters in com.mxgraph.view with type arguments of type mxImageBundle
 void mxGraph.getImageBundles(List<mxImageBundle> value)
          Returns the image bundles
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxSpline1D.html0000664000175000017500000002020012176166726027277 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxSpline1D (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxSpline1D

Packages that use mxSpline1D
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
 

Uses of mxSpline1D in com.mxgraph.util
 

Methods in com.mxgraph.util that return mxSpline1D
 mxSpline1D mxSpline.getSplineX()
           
 mxSpline1D mxSpline.getSplineY()
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxUndoableEdit.html0000664000175000017500000003557612176166726030245 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxUndoableEdit (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxUndoableEdit

Packages that use mxUndoableEdit
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxUndoableEdit in com.mxgraph.model
 

Fields in com.mxgraph.model declared as mxUndoableEdit
protected  mxUndoableEdit mxGraphModel.currentEdit
          Holds the changes for the current transaction.
 

Methods in com.mxgraph.model that return mxUndoableEdit
protected  mxUndoableEdit mxGraphModel.createUndoableEdit()
          Creates a new undoable edit.
 

Uses of mxUndoableEdit in com.mxgraph.sharing
 

Methods in com.mxgraph.sharing that return mxUndoableEdit
protected  mxUndoableEdit mxSharedGraphModel.createUndoableEdit(mxIGraphModel.mxAtomicGraphModelChange[] changes)
          Creates a new mxUndoableEdit that implements the notify function to fire a change and notify event via the model.
 

Uses of mxUndoableEdit in com.mxgraph.util
 

Fields in com.mxgraph.util with type parameters of type mxUndoableEdit
protected  List<mxUndoableEdit> mxUndoManager.history
          List that contains the steps of the command history.
 

Methods in com.mxgraph.util with parameters of type mxUndoableEdit
 void mxUndoManager.undoableEditHappened(mxUndoableEdit undoableEdit)
          Method to be called to add new undoable edits to the history.
 

Uses of mxUndoableEdit in com.mxgraph.view
 

Methods in com.mxgraph.view with parameters of type mxUndoableEdit
protected  void mxLayoutManager.beforeUndo(mxUndoableEdit edit)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxCurve.html0000664000175000017500000003060612176166726026757 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxCurve (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxCurve

Packages that use mxCurve
com.mxgraph.shape   
 

Uses of mxCurve in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxCurve
protected  mxCurve mxCurveLabelShape.curve
          Cache of the points between which drawing straight lines views as a curve
protected  mxCurve mxCurveShape.curve
          Cache of the points between which drawing straight lines views as a curve
 

Methods in com.mxgraph.shape that return mxCurve
 mxCurve mxCurveLabelShape.getCurve()
           
 mxCurve mxCurveShape.getCurve()
           
 

Methods in com.mxgraph.shape with parameters of type mxCurve
protected  void mxCurveLabelShape.postprocessGlyph(mxCurve curve, String label, int j, double currentPos)
          Hook for sub-classers to perform additional processing on each glyph
 void mxCurveLabelShape.setCurve(mxCurve curve)
           
 

Constructors in com.mxgraph.shape with parameters of type mxCurve
mxCurveLabelShape(mxCellState state, mxCurve value)
           
mxCurveShape(mxCurve curve)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/class-use/mxCellRenderer.CanvasFactory.html0000664000175000017500000002146212176166726033003 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.mxCellRenderer.CanvasFactory (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.mxCellRenderer.CanvasFactory

Packages that use mxCellRenderer.CanvasFactory
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
 

Uses of mxCellRenderer.CanvasFactory in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxCellRenderer.CanvasFactory
static mxICanvas mxCellRenderer.drawCells(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)
          Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/package-frame.html0000664000175000017500000000722312176166726026111 0ustar sylvestresylvestre com.mxgraph.util (JGraph X 2.1.0.7 API Specification) com.mxgraph.util
Interfaces 
mxEventSource.mxIEventListener
mxUndoableEdit.mxUndoableChange
Classes 
mxBase64
mxCellRenderer
mxCellRenderer.CanvasFactory
mxConstants
mxCurve
mxDomUtils
mxEvent
mxEventObject
mxEventSource
mxHtmlColor
mxImage
mxImageBundle
mxLightweightLabel
mxLine
mxPoint
mxRectangle
mxResources
mxSpline
mxSpline1D
mxStyleUtils
mxUndoableEdit
mxUndoManager
mxUtils
mxXmlUtils
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxUndoManager.html0000664000175000017500000005646612176166726026210 0ustar sylvestresylvestre mxUndoManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxUndoManager

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.util.mxUndoManager

public class mxUndoManager
extends mxEventSource

Implements an undo history. This class fires the following events: mxEvent.CLEAR fires after clear was executed. The event has no properties. mxEvent.UNDO fires afer a significant edit was undone in undo. The edit property contains the mxUndoableEdit that was undone. mxEvent.REDO fires afer a significant edit was redone in redo. The edit property contains the mxUndoableEdit that was redone. mxEvent.ADD fires after an undoable edit was added to the history. The edit property contains the mxUndoableEdit that was added.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  List<mxUndoableEdit> history
          List that contains the steps of the command history.
protected  int indexOfNextAdd
          Index of the element to be added next.
protected  int size
          Maximum command history size.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxUndoManager()
          Constructs a new undo manager with a default history size.
mxUndoManager(int size)
          Constructs a new undo manager for the specified size.
 
Method Summary
 boolean canRedo()
          Returns true if a redo is possible.
 boolean canUndo()
          Returns true if an undo is possible.
 void clear()
          Clears the command history.
 boolean isEmpty()
           
 void redo()
          Redoes the last change.
protected  void trim()
          Removes all pending steps after indexOfNextAdd from the history, invoking die on each edit.
 void undo()
          Undoes the last change.
 void undoableEditHappened(mxUndoableEdit undoableEdit)
          Method to be called to add new undoable edits to the history.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size
Maximum command history size. 0 means unlimited history. Default is 100.


history

protected List<mxUndoableEdit> history
List that contains the steps of the command history.


indexOfNextAdd

protected int indexOfNextAdd
Index of the element to be added next.

Constructor Detail

mxUndoManager

public mxUndoManager()
Constructs a new undo manager with a default history size.


mxUndoManager

public mxUndoManager(int size)
Constructs a new undo manager for the specified size.

Method Detail

isEmpty

public boolean isEmpty()

clear

public void clear()
Clears the command history.


canUndo

public boolean canUndo()
Returns true if an undo is possible.


undo

public void undo()
Undoes the last change.


canRedo

public boolean canRedo()
Returns true if a redo is possible.


redo

public void redo()
Redoes the last change.


undoableEditHappened

public void undoableEditHappened(mxUndoableEdit undoableEdit)
Method to be called to add new undoable edits to the history.


trim

protected void trim()
Removes all pending steps after indexOfNextAdd from the history, invoking die on each edit. This is called from undoableEditHappened.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxBase64.html0000664000175000017500000006523212176166724025021 0ustar sylvestresylvestre mxBase64 (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxBase64

java.lang.Object
  extended by com.mxgraph.util.mxBase64

public class mxBase64
extends Object

A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.

On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared to sun.misc.Encoder()/Decoder().

On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays. This implementation is about twice as fast on very small arrays (< 30 bytes). If source/destination is a String this version is about three times as fast due to the fact that the Commons Codec result has to be recoded to a String from byte[], which is very expensive.

This encode/decode algorithm doesn't create any temporary arrays as many other codecs do, it only allocates the resulting array. This produces less garbage and it is possible to handle arrays twice as large as algorithms that create a temporary array. (E.g. Jakarta Commons Codec). It is unknown whether Sun's sun.misc.Encoder()/Decoder() produce temporary arrays but since performance is quite low it probably does.

The encoder produces the same output as the Sun one except that the Sun's encoder appends a trailing line separator if the last character isn't a pad. Unclear why but it only adds to the length and is probably a side effect. Both are in conformance with RFC 2045 though.
Commons codec seem to always att a trailing line separator.

Note! The encode/decode method pairs (types) come in three versions with the exact same algorithm and thus a lot of code redundancy. This is to not create any temporary arrays for transcoding to/from different format types. The methods not used can simply be commented out.

There is also a "fast" version of all decode methods that works the same way as the normal ones, but har a few demands on the decoded input. Normally though, these fast verions should be used if the source if the input is known and it hasn't bee tampered with.

If you find the code useful or you find a bug, please send me a note at base64 @ miginfocom . com. Licence (BSD): ============== Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (base64 @ miginfocom . com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the MiG InfoCom AB nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Constructor Summary
mxBase64()
           
 
Method Summary
static byte[] decode(byte[] sArr)
          Decodes a BASE64 encoded byte array.
static byte[] decode(char[] sArr)
          Decodes a BASE64 encoded char array.
static byte[] decode(String str)
          Decodes a BASE64 encoded String.
static byte[] decodeFast(byte[] sArr)
          Decodes a BASE64 encoded byte array that is known to be resonably well formatted.
static byte[] decodeFast(char[] sArr)
          Decodes a BASE64 encoded char array that is known to be resonably well formatted.
static byte[] decodeFast(String s)
          Decodes a BASE64 encoded string that is known to be resonably well formatted.
static byte[] encodeToByte(byte[] sArr, boolean lineSep)
          Encodes a raw byte array into a BASE64 byte[] representation i accordance with RFC 2045.
static char[] encodeToChar(byte[] sArr, boolean lineSep)
          Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.
static String encodeToString(byte[] sArr, boolean lineSep)
          Encodes a raw byte array into a BASE64 String representation i accordance with RFC 2045.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxBase64

public mxBase64()
Method Detail

encodeToChar

public static final char[] encodeToChar(byte[] sArr,
                                        boolean lineSep)
Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.

Parameters:
sArr - The bytes to convert. If null or length 0 an empty array will be returned.
lineSep - Optional "\r\n" after 76 characters, unless end of file.
No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a little faster.
Returns:
A BASE64 encoded array. Never null.

decode

public static final byte[] decode(char[] sArr)
Decodes a BASE64 encoded char array. All illegal characters will be ignored and can handle both arrays with and without line separators.

Parameters:
sArr - The source array. null or length 0 will return an empty array.
Returns:
The decoded array of bytes. May be of length 0. Will be null if the legal characters (including '=') isn't divideable by 4. (I.e. definitely corrupted).

decodeFast

public static final byte[] decodeFast(char[] sArr)
Decodes a BASE64 encoded char array that is known to be resonably well formatted. The method is about twice as fast as decode(char[]). The preconditions are:
+ The array must have a line length of 76 chars OR no line separators at all (one line).
+ Line separator must be "\r\n", as specified in RFC 2045 + The array must not contain illegal characters within the encoded string
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.

Parameters:
sArr - The source array. Length 0 will return an empty array. null will throw an exception.
Returns:
The decoded array of bytes. May be of length 0.

encodeToByte

public static final byte[] encodeToByte(byte[] sArr,
                                        boolean lineSep)
Encodes a raw byte array into a BASE64 byte[] representation i accordance with RFC 2045.

Parameters:
sArr - The bytes to convert. If null or length 0 an empty array will be returned.
lineSep - Optional "\r\n" after 76 characters, unless end of file.
No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a little faster.
Returns:
A BASE64 encoded array. Never null.

decode

public static final byte[] decode(byte[] sArr)
Decodes a BASE64 encoded byte array. All illegal characters will be ignored and can handle both arrays with and without line separators.

Parameters:
sArr - The source array. Length 0 will return an empty array. null will throw an exception.
Returns:
The decoded array of bytes. May be of length 0. Will be null if the legal characters (including '=') isn't divideable by 4. (I.e. definitely corrupted).

decodeFast

public static final byte[] decodeFast(byte[] sArr)
Decodes a BASE64 encoded byte array that is known to be resonably well formatted. The method is about twice as fast as decode(byte[]). The preconditions are:
+ The array must have a line length of 76 chars OR no line separators at all (one line).
+ Line separator must be "\r\n", as specified in RFC 2045 + The array must not contain illegal characters within the encoded string
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.

Parameters:
sArr - The source array. Length 0 will return an empty array. null will throw an exception.
Returns:
The decoded array of bytes. May be of length 0.

encodeToString

public static final String encodeToString(byte[] sArr,
                                          boolean lineSep)
Encodes a raw byte array into a BASE64 String representation i accordance with RFC 2045.

Parameters:
sArr - The bytes to convert. If null or length 0 an empty array will be returned.
lineSep - Optional "\r\n" after 76 characters, unless end of file.
No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a little faster.
Returns:
A BASE64 encoded array. Never null.

decode

public static final byte[] decode(String str)
Decodes a BASE64 encoded String. All illegal characters will be ignored and can handle both strings with and without line separators.
Note! It can be up to about 2x the speed to call decode(str.toCharArray()) instead. That will create a temporary array though. This version will use str.charAt(i) to iterate the string.

Parameters:
str - The source string. null or length 0 will return an empty array.
Returns:
The decoded array of bytes. May be of length 0. Will be null if the legal characters (including '=') isn't divideable by 4. (I.e. definitely corrupted).

decodeFast

public static final byte[] decodeFast(String s)
Decodes a BASE64 encoded string that is known to be resonably well formatted. The method is about twice as fast as decode(String). The preconditions are:
+ The array must have a line length of 76 chars OR no line separators at all (one line).
+ Line separator must be "\r\n", as specified in RFC 2045 + The array must not contain illegal characters within the encoded string
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.

Parameters:
s - The source string. Length 0 will return an empty array. null will throw an exception.
Returns:
The decoded array of bytes. May be of length 0.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/0000775000175000017500000000000012176166726023320 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngSuggestedPaletteEntry.html0000664000175000017500000004103012176166726031511 0ustar sylvestresylvestre mxPngSuggestedPaletteEntry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngSuggestedPaletteEntry

java.lang.Object
  extended by com.mxgraph.util.png.mxPngSuggestedPaletteEntry
All Implemented Interfaces:
Serializable

public class mxPngSuggestedPaletteEntry
extends Object
implements Serializable

A class representing the fields of a PNG suggested palette entry.

This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.

See Also:
Serialized Form

Field Summary
 int alpha
          The alpha opacity value of the entry.
 int blue
          The blue color value of the entry.
 int frequency
          The probable frequency of the color in the image.
 int green
          The green color value of the entry.
 String name
          The name of the entry.
 int red
          The red color value of the entry.
 int sampleDepth
          The depth of the color samples.
 
Constructor Summary
mxPngSuggestedPaletteEntry()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name
The name of the entry.


sampleDepth

public int sampleDepth
The depth of the color samples.


red

public int red
The red color value of the entry.


green

public int green
The green color value of the entry.


blue

public int blue
The blue color value of the entry.


alpha

public int alpha
The alpha opacity value of the entry.


frequency

public int frequency
The probable frequency of the color in the image.

Constructor Detail

mxPngSuggestedPaletteEntry

public mxPngSuggestedPaletteEntry()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/0000775000175000017500000000000012176166726025217 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngSuggestedPaletteEntry.html0000664000175000017500000002023112176166726033410 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngSuggestedPaletteEntry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngSuggestedPaletteEntry

Packages that use mxPngSuggestedPaletteEntry
com.mxgraph.util.png   
 

Uses of mxPngSuggestedPaletteEntry in com.mxgraph.util.png
 

Methods in com.mxgraph.util.png with parameters of type mxPngSuggestedPaletteEntry
 void mxPngEncodeParam.setSuggestedPalette(mxPngSuggestedPaletteEntry[] palette)
          Sets the suggested palette information to be stored with this image.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngEncodeParam.Palette.html0000664000175000017500000001414112176166726032673 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngEncodeParam.Palette (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngEncodeParam.Palette

No usage of com.mxgraph.util.png.mxPngEncodeParam.Palette


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngEncodeParam.RGB.html0000664000175000017500000001407112176166726031711 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngEncodeParam.RGB (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngEncodeParam.RGB

No usage of com.mxgraph.util.png.mxPngEncodeParam.RGB


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngImageEncoder.html0000664000175000017500000001403312176166726031442 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngImageEncoder (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngImageEncoder

No usage of com.mxgraph.util.png.mxPngImageEncoder


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngEncodeParam.Gray.html0000664000175000017500000001410312176166726032175 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngEncodeParam.Gray (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngEncodeParam.Gray

No usage of com.mxgraph.util.png.mxPngEncodeParam.Gray


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngTextDecoder.html0000664000175000017500000001402112176166726031327 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngTextDecoder (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngTextDecoder

No usage of com.mxgraph.util.png.mxPngTextDecoder


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/class-use/mxPngEncodeParam.html0000664000175000017500000003047112176166726031302 0ustar sylvestresylvestre Uses of Class com.mxgraph.util.png.mxPngEncodeParam (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.util.png.mxPngEncodeParam

Packages that use mxPngEncodeParam
com.mxgraph.util.png   
 

Uses of mxPngEncodeParam in com.mxgraph.util.png
 

Subclasses of mxPngEncodeParam in com.mxgraph.util.png
static class mxPngEncodeParam.Gray
           
static class mxPngEncodeParam.Palette
           
static class mxPngEncodeParam.RGB
           
 

Methods in com.mxgraph.util.png that return mxPngEncodeParam
static mxPngEncodeParam mxPngEncodeParam.getDefaultEncodeParam(RenderedImage im)
          Returns an instance of PNGEncodeParam.Palette, PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate for encoding the given image.
 mxPngEncodeParam mxPngImageEncoder.getParam()
           
 

Methods in com.mxgraph.util.png with parameters of type mxPngEncodeParam
 void mxPngImageEncoder.setParam(mxPngEncodeParam param)
           
 

Constructors in com.mxgraph.util.png with parameters of type mxPngEncodeParam
mxPngImageEncoder(OutputStream output, mxPngEncodeParam param)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/package-frame.html0000664000175000017500000000321012176166726026665 0ustar sylvestresylvestre com.mxgraph.util.png (JGraph X 2.1.0.7 API Specification) com.mxgraph.util.png
Classes 
mxPngEncodeParam
mxPngEncodeParam.Gray
mxPngEncodeParam.Palette
mxPngEncodeParam.RGB
mxPngImageEncoder
mxPngSuggestedPaletteEntry
mxPngTextDecoder
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngEncodeParam.Palette.html0000664000175000017500000010016512176166726030776 0ustar sylvestresylvestre mxPngEncodeParam.Palette (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngEncodeParam.Palette

java.lang.Object
  extended by com.mxgraph.util.png.mxPngEncodeParam
      extended by com.mxgraph.util.png.mxPngEncodeParam.Palette
Enclosing class:
mxPngEncodeParam

public static class mxPngEncodeParam.Palette
extends mxPngEncodeParam


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.png.mxPngEncodeParam
mxPngEncodeParam.Gray, mxPngEncodeParam.Palette, mxPngEncodeParam.RGB
 
Field Summary
 
Fields inherited from class com.mxgraph.util.png.mxPngEncodeParam
bitDepth, bitDepthSet, INTENT_ABSOLUTE, INTENT_PERCEPTUAL, INTENT_RELATIVE, INTENT_SATURATION, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP
 
Constructor Summary
mxPngEncodeParam.Palette()
          Constructs an instance of PNGEncodeParam.Palette.
 
Method Summary
 int getBackgroundPaletteIndex()
          Returns the palette index of the suggested background color.
 int[] getPalette()
          Returns the current RGB palette.
 byte[] getPaletteTransparency()
          Returns the alpha values associated with each palette entry.
 boolean isBackgroundSet()
          Returns true if a 'bKGD' chunk will be output.
 boolean isPaletteSet()
          Returns true if a 'PLTE' chunk will be output.
 void setBackgroundPaletteIndex(int index)
          Sets the palette index of the suggested background color.
 void setBitDepth(int bitDepth)
          Sets the desired bit depth for a palette image.
 void setPalette(int[] rgb)
          Sets the RGB palette of the image to be encoded.
 void setPaletteTransparency(byte[] alpha)
          Sets the alpha values associated with each palette entry.
 void unsetBackground()
          Suppresses the 'bKGD' chunk from being output.
 void unsetPalette()
          Suppresses the 'PLTE' chunk from being output.
 
Methods inherited from class com.mxgraph.util.png.mxPngEncodeParam
addPrivateChunk, filterRow, getBitDepth, getChromaticity, getCompressedText, getDefaultEncodeParam, getGamma, getICCProfileData, getInterlacing, getModificationTime, getNumPrivateChunks, getPaletteHistogram, getPhysicalDimension, getPrivateChunkData, getPrivateChunkType, getSignificantBits, getSRGBIntent, getText, isChromaticitySet, isCompressedTextSet, isGammaSet, isICCProfileDataSet, isModificationTimeSet, isPaletteHistogramSet, isPhysicalDimensionSet, isSignificantBitsSet, isSRGBIntentSet, isSuggestedPaletteSet, isTextSet, isTransparencySet, paethPredictor, removeAllPrivateChunks, removeUnsafeToCopyPrivateChunks, setChromaticity, setChromaticity, setCompressedText, setGamma, setICCProfileData, setInterlacing, setModificationTime, setPaletteHistogram, setPhysicalDimension, setPhysicalDimension, setSignificantBits, setSRGBIntent, setSuggestedPalette, setText, unsetBitDepth, unsetChromaticity, unsetCompressedText, unsetGamma, unsetICCProfileData, unsetModificationTime, unsetPaletteHistogram, unsetPhysicalDimension, unsetSignificantBits, unsetSRGBIntent, unsetSuggestedPalette, unsetText, unsetTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxPngEncodeParam.Palette

public mxPngEncodeParam.Palette()
Constructs an instance of PNGEncodeParam.Palette.

Method Detail

unsetBackground

public void unsetBackground()
Suppresses the 'bKGD' chunk from being output.

Overrides:
unsetBackground in class mxPngEncodeParam

isBackgroundSet

public boolean isBackgroundSet()
Returns true if a 'bKGD' chunk will be output.

Overrides:
isBackgroundSet in class mxPngEncodeParam

setBitDepth

public void setBitDepth(int bitDepth)
Sets the desired bit depth for a palette image. The bit depth must be one of 1, 2, 4, or 8, or else an IllegalArgumentException will be thrown.

Specified by:
setBitDepth in class mxPngEncodeParam

setPalette

public void setPalette(int[] rgb)
Sets the RGB palette of the image to be encoded. The rgb parameter contains alternating R, G, B values for each color index used in the image. The number of elements must be a multiple of 3 between 3 and 3*256.

The 'PLTE' chunk will encode this information.

Parameters:
rgb - An array of ints.

getPalette

public int[] getPalette()
Returns the current RGB palette.

If the palette has not previously been set, or has been unset, an IllegalStateException will be thrown.

Returns:
An array of ints.
Throws:
IllegalStateException - if the palette is not set.

unsetPalette

public void unsetPalette()
Suppresses the 'PLTE' chunk from being output.


isPaletteSet

public boolean isPaletteSet()
Returns true if a 'PLTE' chunk will be output.


setBackgroundPaletteIndex

public void setBackgroundPaletteIndex(int index)
Sets the palette index of the suggested background color.

The 'bKGD' chunk will encode this information.


getBackgroundPaletteIndex

public int getBackgroundPaletteIndex()
Returns the palette index of the suggested background color.

If the background palette index has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the palette index is not set.

setPaletteTransparency

public void setPaletteTransparency(byte[] alpha)
Sets the alpha values associated with each palette entry. The alpha parameter should have as many entries as there are RGB triples in the palette.

The 'tRNS' chunk will encode this information.


getPaletteTransparency

public byte[] getPaletteTransparency()
Returns the alpha values associated with each palette entry.

If the palette transparency has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the palette transparency is not set.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngEncodeParam.RGB.html0000664000175000017500000007143512176166726030021 0ustar sylvestresylvestre mxPngEncodeParam.RGB (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngEncodeParam.RGB

java.lang.Object
  extended by com.mxgraph.util.png.mxPngEncodeParam
      extended by com.mxgraph.util.png.mxPngEncodeParam.RGB
Enclosing class:
mxPngEncodeParam

public static class mxPngEncodeParam.RGB
extends mxPngEncodeParam


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.png.mxPngEncodeParam
mxPngEncodeParam.Gray, mxPngEncodeParam.Palette, mxPngEncodeParam.RGB
 
Field Summary
 
Fields inherited from class com.mxgraph.util.png.mxPngEncodeParam
bitDepth, bitDepthSet, INTENT_ABSOLUTE, INTENT_PERCEPTUAL, INTENT_RELATIVE, INTENT_SATURATION, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP
 
Constructor Summary
mxPngEncodeParam.RGB()
          Constructs an instance of PNGEncodeParam.RGB.
 
Method Summary
 int[] getBackgroundRGB()
          Returns the RGB value of the suggested background color.
 int[] getTransparentRGB()
          Returns the RGB value to be used to denote transparency.
 boolean isBackgroundSet()
          Returns true if a 'bKGD' chunk will be output.
 void setBackgroundRGB(int[] rgb)
          Sets the RGB value of the suggested background color.
 void setBitDepth(int bitDepth)
          Sets the desired bit depth for an RGB image.
 void setTransparentRGB(int[] transparentRGB)
          Sets the RGB value to be used to denote transparency.
 void unsetBackground()
          Suppresses the 'bKGD' chunk from being output.
 
Methods inherited from class com.mxgraph.util.png.mxPngEncodeParam
addPrivateChunk, filterRow, getBitDepth, getChromaticity, getCompressedText, getDefaultEncodeParam, getGamma, getICCProfileData, getInterlacing, getModificationTime, getNumPrivateChunks, getPaletteHistogram, getPhysicalDimension, getPrivateChunkData, getPrivateChunkType, getSignificantBits, getSRGBIntent, getText, isChromaticitySet, isCompressedTextSet, isGammaSet, isICCProfileDataSet, isModificationTimeSet, isPaletteHistogramSet, isPhysicalDimensionSet, isSignificantBitsSet, isSRGBIntentSet, isSuggestedPaletteSet, isTextSet, isTransparencySet, paethPredictor, removeAllPrivateChunks, removeUnsafeToCopyPrivateChunks, setChromaticity, setChromaticity, setCompressedText, setGamma, setICCProfileData, setInterlacing, setModificationTime, setPaletteHistogram, setPhysicalDimension, setPhysicalDimension, setSignificantBits, setSRGBIntent, setSuggestedPalette, setText, unsetBitDepth, unsetChromaticity, unsetCompressedText, unsetGamma, unsetICCProfileData, unsetModificationTime, unsetPaletteHistogram, unsetPhysicalDimension, unsetSignificantBits, unsetSRGBIntent, unsetSuggestedPalette, unsetText, unsetTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxPngEncodeParam.RGB

public mxPngEncodeParam.RGB()
Constructs an instance of PNGEncodeParam.RGB.

Method Detail

unsetBackground

public void unsetBackground()
Suppresses the 'bKGD' chunk from being output.

Overrides:
unsetBackground in class mxPngEncodeParam

isBackgroundSet

public boolean isBackgroundSet()
Returns true if a 'bKGD' chunk will be output.

Overrides:
isBackgroundSet in class mxPngEncodeParam

setBitDepth

public void setBitDepth(int bitDepth)
Sets the desired bit depth for an RGB image. The bit depth must be 8 or 16.

Specified by:
setBitDepth in class mxPngEncodeParam

setBackgroundRGB

public void setBackgroundRGB(int[] rgb)
Sets the RGB value of the suggested background color. The rgb parameter should have 3 entries.

The 'bKGD' chunk will encode this information.


getBackgroundRGB

public int[] getBackgroundRGB()
Returns the RGB value of the suggested background color.

If the background color has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the background color is not set.

setTransparentRGB

public void setTransparentRGB(int[] transparentRGB)
Sets the RGB value to be used to denote transparency.

Setting this attribute will cause the alpha channel of the input image to be ignored.

The 'tRNS' chunk will encode this information.


getTransparentRGB

public int[] getTransparentRGB()
Returns the RGB value to be used to denote transparency.

If the transparent color has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the transparent color is not set.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/package-summary.html0000664000175000017500000001754712176166726027312 0ustar sylvestresylvestre com.mxgraph.util.png (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.util.png

Class Summary
mxPngEncodeParam An instance of ImageEncodeParam for encoding images in the PNG format.
mxPngEncodeParam.Gray  
mxPngEncodeParam.Palette  
mxPngEncodeParam.RGB  
mxPngImageEncoder An ImageEncoder for the PNG file format.
mxPngSuggestedPaletteEntry A class representing the fields of a PNG suggested palette entry.
mxPngTextDecoder Utility class to extract the compression text portion of a PNG
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/package-use.html0000664000175000017500000001623112176166726026376 0ustar sylvestresylvestre Uses of Package com.mxgraph.util.png (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.util.png

Packages that use com.mxgraph.util.png
com.mxgraph.util.png   
 

Classes in com.mxgraph.util.png used by com.mxgraph.util.png
mxPngEncodeParam
          An instance of ImageEncodeParam for encoding images in the PNG format.
mxPngSuggestedPaletteEntry
          A class representing the fields of a PNG suggested palette entry.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngImageEncoder.html0000664000175000017500000004330412176166726027546 0ustar sylvestresylvestre mxPngImageEncoder (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngImageEncoder

java.lang.Object
  extended by com.mxgraph.util.png.mxPngImageEncoder

public class mxPngImageEncoder
extends Object

An ImageEncoder for the PNG file format.

Since:
EA4

Field Summary
protected  OutputStream output
          The OutputStream associcted with this ImageEncoder.
 
Constructor Summary
mxPngImageEncoder(OutputStream output, mxPngEncodeParam param)
           
 
Method Summary
 void encode(RenderedImage im)
          This method encodes a RenderedImage into PNG.
 OutputStream getOutputStream()
          Returns the OutputStream associated with this ImageEncoder.
 mxPngEncodeParam getParam()
           
 void setParam(mxPngEncodeParam param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

protected OutputStream output
The OutputStream associcted with this ImageEncoder.

Constructor Detail

mxPngImageEncoder

public mxPngImageEncoder(OutputStream output,
                         mxPngEncodeParam param)
Method Detail

getParam

public mxPngEncodeParam getParam()

setParam

public void setParam(mxPngEncodeParam param)

getOutputStream

public OutputStream getOutputStream()
Returns the OutputStream associated with this ImageEncoder.


encode

public void encode(RenderedImage im)
            throws IOException
This method encodes a RenderedImage into PNG. The stream into which the PNG is dumped is not closed at the end of the operation, this should be done if needed by the caller of this method.

Throws:
IOException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngEncodeParam.Gray.html0000664000175000017500000010117612176166726030305 0ustar sylvestresylvestre mxPngEncodeParam.Gray (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngEncodeParam.Gray

java.lang.Object
  extended by com.mxgraph.util.png.mxPngEncodeParam
      extended by com.mxgraph.util.png.mxPngEncodeParam.Gray
Enclosing class:
mxPngEncodeParam

public static class mxPngEncodeParam.Gray
extends mxPngEncodeParam


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.png.mxPngEncodeParam
mxPngEncodeParam.Gray, mxPngEncodeParam.Palette, mxPngEncodeParam.RGB
 
Field Summary
 
Fields inherited from class com.mxgraph.util.png.mxPngEncodeParam
bitDepth, bitDepthSet, INTENT_ABSOLUTE, INTENT_PERCEPTUAL, INTENT_RELATIVE, INTENT_SATURATION, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP
 
Constructor Summary
mxPngEncodeParam.Gray()
          Constructs an instance of PNGEncodeParam.Gray.
 
Method Summary
 int getBackgroundGray()
          Returns the suggested gray level of the background.
 int getBitShift()
          Returns the desired bit shift for a grayscale image.
 int getTransparentGray()
          Returns the gray value to be used to denote transparency.
 boolean isBackgroundSet()
          Returns true if a 'bKGD' chunk will be output.
 boolean isBitDepthSet()
          Returns true if the bit depth has been set.
 boolean isBitShiftSet()
          Returns true if the bit shift has been set.
 void setBackgroundGray(int gray)
          Sets the suggested gray level of the background.
 void setBitDepth(int bitDepth)
          Sets the desired bit depth for a grayscale image.
 void setBitShift(int bitShift)
          Sets the desired bit shift for a grayscale image.
 void setTransparentGray(int transparentGray)
          Sets the gray value to be used to denote transparency.
 void unsetBackground()
          Suppresses the 'bKGD' chunk from being output.
 void unsetBitShift()
          Suppresses the setting of the bit shift of a grayscale image.
 
Methods inherited from class com.mxgraph.util.png.mxPngEncodeParam
addPrivateChunk, filterRow, getBitDepth, getChromaticity, getCompressedText, getDefaultEncodeParam, getGamma, getICCProfileData, getInterlacing, getModificationTime, getNumPrivateChunks, getPaletteHistogram, getPhysicalDimension, getPrivateChunkData, getPrivateChunkType, getSignificantBits, getSRGBIntent, getText, isChromaticitySet, isCompressedTextSet, isGammaSet, isICCProfileDataSet, isModificationTimeSet, isPaletteHistogramSet, isPhysicalDimensionSet, isSignificantBitsSet, isSRGBIntentSet, isSuggestedPaletteSet, isTextSet, isTransparencySet, paethPredictor, removeAllPrivateChunks, removeUnsafeToCopyPrivateChunks, setChromaticity, setChromaticity, setCompressedText, setGamma, setICCProfileData, setInterlacing, setModificationTime, setPaletteHistogram, setPhysicalDimension, setPhysicalDimension, setSignificantBits, setSRGBIntent, setSuggestedPalette, setText, unsetBitDepth, unsetChromaticity, unsetCompressedText, unsetGamma, unsetICCProfileData, unsetModificationTime, unsetPaletteHistogram, unsetPhysicalDimension, unsetSignificantBits, unsetSRGBIntent, unsetSuggestedPalette, unsetText, unsetTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxPngEncodeParam.Gray

public mxPngEncodeParam.Gray()
Constructs an instance of PNGEncodeParam.Gray.

Method Detail

unsetBackground

public void unsetBackground()
Suppresses the 'bKGD' chunk from being output.

Overrides:
unsetBackground in class mxPngEncodeParam

isBackgroundSet

public boolean isBackgroundSet()
Returns true if a 'bKGD' chunk will be output.

Overrides:
isBackgroundSet in class mxPngEncodeParam

setBitDepth

public void setBitDepth(int bitDepth)
Sets the desired bit depth for a grayscale image. The bit depth must be one of 1, 2, 4, 8, or 16.

When encoding a source image of a greater bit depth, pixel values will be clamped to the smaller range after shifting by the value given by getBitShift(). When encoding a source image of a smaller bit depth, pixel values will be shifted and left-filled with zeroes.

Specified by:
setBitDepth in class mxPngEncodeParam

setBackgroundGray

public void setBackgroundGray(int gray)
Sets the suggested gray level of the background.

The 'bKGD' chunk will encode this information.


getBackgroundGray

public int getBackgroundGray()
Returns the suggested gray level of the background.

If the background gray level has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the background gray level is not set.

setTransparentGray

public void setTransparentGray(int transparentGray)
Sets the gray value to be used to denote transparency.

Setting this attribute will cause the alpha channel of the input image to be ignored.

The 'tRNS' chunk will encode this information.


getTransparentGray

public int getTransparentGray()
Returns the gray value to be used to denote transparency.

If the transparent gray value has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the transparent gray value is not set.

setBitShift

public void setBitShift(int bitShift)
Sets the desired bit shift for a grayscale image. Pixels in the source image will be shifted right by the given amount prior to being clamped to the maximum value given by the encoded image's bit depth.


getBitShift

public int getBitShift()
Returns the desired bit shift for a grayscale image.

If the bit shift has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the bit shift is not set.

unsetBitShift

public void unsetBitShift()
Suppresses the setting of the bit shift of a grayscale image. Pixels in the source image will not be shifted prior to encoding.


isBitShiftSet

public boolean isBitShiftSet()
Returns true if the bit shift has been set.


isBitDepthSet

public boolean isBitDepthSet()
Returns true if the bit depth has been set.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/package-tree.html0000664000175000017500000001702712176166726026545 0ustar sylvestresylvestre com.mxgraph.util.png Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.util.png

Package Hierarchies:
All Packages

Class Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngTextDecoder.html0000664000175000017500000003612012176166726027434 0ustar sylvestresylvestre mxPngTextDecoder (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngTextDecoder

java.lang.Object
  extended by com.mxgraph.util.png.mxPngTextDecoder

public class mxPngTextDecoder
extends Object

Utility class to extract the compression text portion of a PNG


Field Summary
static int PNG_CHUNK_IEND
           
static int PNG_CHUNK_ZTXT
           
 
Constructor Summary
mxPngTextDecoder()
           
 
Method Summary
static Map<String,String> decodeCompressedText(InputStream stream)
          Decodes the zTXt chunk of the given PNG image stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PNG_CHUNK_ZTXT

public static final int PNG_CHUNK_ZTXT
See Also:
Constant Field Values

PNG_CHUNK_IEND

public static final int PNG_CHUNK_IEND
See Also:
Constant Field Values
Constructor Detail

mxPngTextDecoder

public mxPngTextDecoder()
Method Detail

decodeCompressedText

public static Map<String,String> decodeCompressedText(InputStream stream)
Decodes the zTXt chunk of the given PNG image stream.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/png/mxPngEncodeParam.html0000664000175000017500000023102112176166726027375 0ustar sylvestresylvestre mxPngEncodeParam (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util.png
Class mxPngEncodeParam

java.lang.Object
  extended by com.mxgraph.util.png.mxPngEncodeParam
Direct Known Subclasses:
mxPngEncodeParam.Gray, mxPngEncodeParam.Palette, mxPngEncodeParam.RGB

public abstract class mxPngEncodeParam
extends Object

An instance of ImageEncodeParam for encoding images in the PNG format.

This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.


Nested Class Summary
static class mxPngEncodeParam.Gray
           
static class mxPngEncodeParam.Palette
           
static class mxPngEncodeParam.RGB
           
 
Field Summary
protected  int bitDepth
           
protected  boolean bitDepthSet
           
static int INTENT_ABSOLUTE
          Constant for use with the sRGB chunk.
static int INTENT_PERCEPTUAL
          Constant for use with the sRGB chunk.
static int INTENT_RELATIVE
          Constant for use with the sRGB chunk.
static int INTENT_SATURATION
          Constant for use with the sRGB chunk.
static int PNG_FILTER_AVERAGE
          Constant for use in filtering.
static int PNG_FILTER_NONE
          Constant for use in filtering.
static int PNG_FILTER_PAETH
          Constant for use in filtering.
static int PNG_FILTER_SUB
          Constant for use in filtering.
static int PNG_FILTER_UP
          Constant for use in filtering.
 
Constructor Summary
mxPngEncodeParam()
           
 
Method Summary
 void addPrivateChunk(String type, byte[] data)
          Adds a private chunk, in binary form, to the list of chunks to be stored with this image.
 int filterRow(byte[] currRow, byte[] prevRow, byte[][] scratchRows, int bytesPerRow, int bytesPerPixel)
          Performs filtering on a row of an image.
 int getBitDepth()
          Returns the desired bit depth for a grayscale image.
 float[] getChromaticity()
          Returns the white point and primary chromaticities in CIE (x, y) space.
 String[] getCompressedText()
          Returns the text strings to be stored in compressed form with this image as an array of Strings.
static mxPngEncodeParam getDefaultEncodeParam(RenderedImage im)
          Returns an instance of PNGEncodeParam.Palette, PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate for encoding the given image.
 float getGamma()
          Returns the file gamma value for the image.
 byte[] getICCProfileData()
          Returns the ICC profile data to be stored with this image.
 boolean getInterlacing()
          Returns true if Adam7 interlacing will be used.
 Date getModificationTime()
          Returns the modification time to be stored with this image.
 int getNumPrivateChunks()
          Returns the number of private chunks to be written to the output file.
 int[] getPaletteHistogram()
          Returns the palette histogram to be stored with this image.
 int[] getPhysicalDimension()
          Returns the physical dimension information to be stored with this image.
 byte[] getPrivateChunkData(int index)
          Returns the data associated of the private chunk at a given index, as an array of bytes.
 String getPrivateChunkType(int index)
          Returns the type of the private chunk at a given index, as a 4-character String.
 int[] getSignificantBits()
          Returns the number of significant bits for each band of the image.
 int getSRGBIntent()
          Returns the sRGB rendering intent to be stored with this image.
 String[] getText()
          Returns the text strings to be stored in uncompressed form with this image as an array of Strings.
 boolean isBackgroundSet()
          Returns true if a 'bKGD' chunk will be output.
 boolean isChromaticitySet()
          Returns true if a 'cHRM' chunk will be output.
 boolean isCompressedTextSet()
          Returns true if a 'zTXT' chunk will be output.
 boolean isGammaSet()
          Returns true if a 'gAMA' chunk will be output.
 boolean isICCProfileDataSet()
          Returns true if a 'iCCP' chunk will be output.
 boolean isModificationTimeSet()
          Returns true if a 'tIME' chunk will be output.
 boolean isPaletteHistogramSet()
          Returns true if a 'hIST' chunk will be output.
 boolean isPhysicalDimensionSet()
          Returns true if a 'pHYS' chunk will be output.
 boolean isSignificantBitsSet()
          Returns true if an 'sBIT' chunk will be output.
 boolean isSRGBIntentSet()
          Returns true if an 'sRGB' chunk will be output.
 boolean isSuggestedPaletteSet()
          Returns true if a 'sPLT' chunk will be output.
 boolean isTextSet()
          Returns true if a 'tEXt' chunk will be output.
 boolean isTransparencySet()
          Returns true if a 'tRNS' chunk will be output.
static int paethPredictor(int a, int b, int c)
          The Paeth predictor routine used in PNG encoding.
 void removeAllPrivateChunks()
          Remove all private chunks associated with this parameter instance.
 void removeUnsafeToCopyPrivateChunks()
          Remove all private chunks associated with this parameter instance whose 'safe-to-copy' bit is not set.
abstract  void setBitDepth(int bitDepth)
          Sets the desired bit depth of an image.
 void setChromaticity(float[] chromaticity)
          Sets the white point and primary chromaticities in CIE (x, y) space.
 void setChromaticity(float whitePointX, float whitePointY, float redX, float redY, float greenX, float greenY, float blueX, float blueY)
          A convenience method that calls the array version.
 void setCompressedText(String[] text)
          Sets the text strings to be stored in compressed form with this image.
 void setGamma(float gamma)
          Sets the file gamma value for the image.
 void setICCProfileData(byte[] ICCProfileData)
          Sets the ICC profile data to be stored with this image.
 void setInterlacing(boolean useInterlacing)
          Turns Adam7 interlacing on or off.
 void setModificationTime(Date modificationTime)
          Sets the modification time, as a Date, to be stored with this image.
 void setPaletteHistogram(int[] paletteHistogram)
          Sets the palette histogram to be stored with this image.
 void setPhysicalDimension(int[] physicalDimension)
          Sets the physical dimension information to be stored with this image.
 void setPhysicalDimension(int xPixelsPerUnit, int yPixelsPerUnit, int unitSpecifier)
          A convenience method that calls the array version.
 void setSignificantBits(int[] significantBits)
          Sets the number of significant bits for each band of the image.
 void setSRGBIntent(int SRGBIntent)
          Sets the sRGB rendering intent to be stored with this image.
 void setSuggestedPalette(mxPngSuggestedPaletteEntry[] palette)
          Sets the suggested palette information to be stored with this image.
 void setText(String[] text)
          Sets the textual data to be stored in uncompressed form with this image.
 void unsetBackground()
          Suppresses the 'bKGD' chunk from being output.
 void unsetBitDepth()
          Suppresses the setting of the bit depth of a grayscale image.
 void unsetChromaticity()
          Suppresses the 'cHRM' chunk from being output.
 void unsetCompressedText()
          Suppresses the 'zTXt' chunk from being output.
 void unsetGamma()
          Suppresses the 'gAMA' chunk from being output.
 void unsetICCProfileData()
          Suppresses the 'iCCP' chunk from being output.
 void unsetModificationTime()
          Suppresses the 'tIME' chunk from being output.
 void unsetPaletteHistogram()
          Suppresses the 'hIST' chunk from being output.
 void unsetPhysicalDimension()
          Suppresses the 'pHYS' chunk from being output.
 void unsetSignificantBits()
          Suppresses the 'sBIT' chunk from being output.
 void unsetSRGBIntent()
          Suppresses the 'sRGB' chunk from being output.
 void unsetSuggestedPalette()
          Suppresses the 'sPLT' chunk from being output.
 void unsetText()
          Suppresses the 'tEXt' chunk from being output.
 void unsetTransparency()
          Suppresses the 'tRNS' chunk from being output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTENT_PERCEPTUAL

public static final int INTENT_PERCEPTUAL
Constant for use with the sRGB chunk.

See Also:
Constant Field Values

INTENT_RELATIVE

public static final int INTENT_RELATIVE
Constant for use with the sRGB chunk.

See Also:
Constant Field Values

INTENT_SATURATION

public static final int INTENT_SATURATION
Constant for use with the sRGB chunk.

See Also:
Constant Field Values

INTENT_ABSOLUTE

public static final int INTENT_ABSOLUTE
Constant for use with the sRGB chunk.

See Also:
Constant Field Values

PNG_FILTER_NONE

public static final int PNG_FILTER_NONE
Constant for use in filtering.

See Also:
Constant Field Values

PNG_FILTER_SUB

public static final int PNG_FILTER_SUB
Constant for use in filtering.

See Also:
Constant Field Values

PNG_FILTER_UP

public static final int PNG_FILTER_UP
Constant for use in filtering.

See Also:
Constant Field Values

PNG_FILTER_AVERAGE

public static final int PNG_FILTER_AVERAGE
Constant for use in filtering.

See Also:
Constant Field Values

PNG_FILTER_PAETH

public static final int PNG_FILTER_PAETH
Constant for use in filtering.

See Also:
Constant Field Values

bitDepth

protected int bitDepth

bitDepthSet

protected boolean bitDepthSet
Constructor Detail

mxPngEncodeParam

public mxPngEncodeParam()
Method Detail

getDefaultEncodeParam

public static mxPngEncodeParam getDefaultEncodeParam(RenderedImage im)
Returns an instance of PNGEncodeParam.Palette, PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate for encoding the given image.

If the image has an IndexColorModel, an instance of PNGEncodeParam.Palette is returned. Otherwise, if the image has 1 or 2 bands an instance of PNGEncodeParam.Gray is returned. In all other cases an instance of PNGEncodeParam.RGB is returned.

Note that this method does not provide any guarantee that the given image will be successfully encoded by the PNG encoder, as it only performs a very superficial analysis of the image structure.


setBitDepth

public abstract void setBitDepth(int bitDepth)
Sets the desired bit depth of an image.


getBitDepth

public int getBitDepth()
Returns the desired bit depth for a grayscale image.

If the bit depth has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the bit depth is not set.

unsetBitDepth

public void unsetBitDepth()
Suppresses the setting of the bit depth of a grayscale image. The depth of the encoded image will be inferred from the source image bit depth, rounded up to the next power of 2 between 1 and 16.


setInterlacing

public void setInterlacing(boolean useInterlacing)
Turns Adam7 interlacing on or off.


getInterlacing

public boolean getInterlacing()
Returns true if Adam7 interlacing will be used.


unsetBackground

public void unsetBackground()
Suppresses the 'bKGD' chunk from being output. For API compatibility with JAI 1.0, the superclass defines this method to throw a RuntimeException; accordingly, subclasses must provide their own implementations.


isBackgroundSet

public boolean isBackgroundSet()
Returns true if a 'bKGD' chunk will be output. For API compatibility with JAI 1.0, the superclass defines this method to throw a RuntimeException; accordingly, subclasses must provide their own implementations.


setChromaticity

public void setChromaticity(float[] chromaticity)
Sets the white point and primary chromaticities in CIE (x, y) space.

The chromaticity parameter should be a float array of length 8 containing the white point X and Y, red X and Y, green X and Y, and blue X and Y values in order.

The 'cHRM' chunk will encode this information.


setChromaticity

public void setChromaticity(float whitePointX,
                            float whitePointY,
                            float redX,
                            float redY,
                            float greenX,
                            float greenY,
                            float blueX,
                            float blueY)
A convenience method that calls the array version.


getChromaticity

public float[] getChromaticity()
Returns the white point and primary chromaticities in CIE (x, y) space.

See the documentation for the setChromaticity method for the format of the returned data.

If the chromaticity has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the chromaticity is not set.

unsetChromaticity

public void unsetChromaticity()
Suppresses the 'cHRM' chunk from being output.


isChromaticitySet

public boolean isChromaticitySet()
Returns true if a 'cHRM' chunk will be output.


setGamma

public void setGamma(float gamma)
Sets the file gamma value for the image.

The 'gAMA' chunk will encode this information.


getGamma

public float getGamma()
Returns the file gamma value for the image.

If the file gamma has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the gamma is not set.

unsetGamma

public void unsetGamma()
Suppresses the 'gAMA' chunk from being output.


isGammaSet

public boolean isGammaSet()
Returns true if a 'gAMA' chunk will be output.


setPaletteHistogram

public void setPaletteHistogram(int[] paletteHistogram)
Sets the palette histogram to be stored with this image. The histogram consists of an array of integers, one per palette entry.

The 'hIST' chunk will encode this information.


getPaletteHistogram

public int[] getPaletteHistogram()
Returns the palette histogram to be stored with this image.

If the histogram has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the histogram is not set.

unsetPaletteHistogram

public void unsetPaletteHistogram()
Suppresses the 'hIST' chunk from being output.


isPaletteHistogramSet

public boolean isPaletteHistogramSet()
Returns true if a 'hIST' chunk will be output.


setICCProfileData

public void setICCProfileData(byte[] ICCProfileData)
Sets the ICC profile data to be stored with this image. The profile is represented in raw binary form.

The 'iCCP' chunk will encode this information.


getICCProfileData

public byte[] getICCProfileData()
Returns the ICC profile data to be stored with this image.

If the ICC profile has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the ICC profile is not set.

unsetICCProfileData

public void unsetICCProfileData()
Suppresses the 'iCCP' chunk from being output.


isICCProfileDataSet

public boolean isICCProfileDataSet()
Returns true if a 'iCCP' chunk will be output.


setPhysicalDimension

public void setPhysicalDimension(int[] physicalDimension)
Sets the physical dimension information to be stored with this image. The physicalDimension parameter should be a 3-entry array containing the number of pixels per unit in the X direction, the number of pixels per unit in the Y direction, and the unit specifier (0 = unknown, 1 = meters).

The 'pHYS' chunk will encode this information.


setPhysicalDimension

public void setPhysicalDimension(int xPixelsPerUnit,
                                 int yPixelsPerUnit,
                                 int unitSpecifier)
A convenience method that calls the array version.


getPhysicalDimension

public int[] getPhysicalDimension()
Returns the physical dimension information to be stored with this image.

If the physical dimension information has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the physical dimension information is not set.

unsetPhysicalDimension

public void unsetPhysicalDimension()
Suppresses the 'pHYS' chunk from being output.


isPhysicalDimensionSet

public boolean isPhysicalDimensionSet()
Returns true if a 'pHYS' chunk will be output.


setSuggestedPalette

public void setSuggestedPalette(mxPngSuggestedPaletteEntry[] palette)
Sets the suggested palette information to be stored with this image. The information is passed to this method as an array of PNGSuggestedPaletteEntry objects.

The 'sPLT' chunk will encode this information.


unsetSuggestedPalette

public void unsetSuggestedPalette()
Suppresses the 'sPLT' chunk from being output.


isSuggestedPaletteSet

public boolean isSuggestedPaletteSet()
Returns true if a 'sPLT' chunk will be output.


setSignificantBits

public void setSignificantBits(int[] significantBits)
Sets the number of significant bits for each band of the image.

The number of entries in the significantBits array must be equal to the number of output bands in the image: 1 for a gray image, 2 for gray+alpha, 3 for index or truecolor, and 4 for truecolor+alpha.

The 'sBIT' chunk will encode this information.


getSignificantBits

public int[] getSignificantBits()
Returns the number of significant bits for each band of the image.

If the significant bits values have not previously been set, or have been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the significant bits values are not set.

unsetSignificantBits

public void unsetSignificantBits()
Suppresses the 'sBIT' chunk from being output.


isSignificantBitsSet

public boolean isSignificantBitsSet()
Returns true if an 'sBIT' chunk will be output.


setSRGBIntent

public void setSRGBIntent(int SRGBIntent)
Sets the sRGB rendering intent to be stored with this image. The legal values are 0 = Perceptual, 1 = Relative Colorimetric, 2 = Saturation, and 3 = Absolute Colorimetric. Refer to the PNG specification for information on these values.

The 'sRGB' chunk will encode this information.


getSRGBIntent

public int getSRGBIntent()
Returns the sRGB rendering intent to be stored with this image.

If the sRGB intent has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the sRGB intent is not set.

unsetSRGBIntent

public void unsetSRGBIntent()
Suppresses the 'sRGB' chunk from being output.


isSRGBIntentSet

public boolean isSRGBIntentSet()
Returns true if an 'sRGB' chunk will be output.


setText

public void setText(String[] text)
Sets the textual data to be stored in uncompressed form with this image. The data is passed to this method as an array of Strings.

The 'tEXt' chunk will encode this information.


getText

public String[] getText()
Returns the text strings to be stored in uncompressed form with this image as an array of Strings.

If the text strings have not previously been set, or have been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the text strings are not set.

unsetText

public void unsetText()
Suppresses the 'tEXt' chunk from being output.


isTextSet

public boolean isTextSet()
Returns true if a 'tEXt' chunk will be output.


setModificationTime

public void setModificationTime(Date modificationTime)
Sets the modification time, as a Date, to be stored with this image. The internal storage format will use UTC regardless of how the modificationTime parameter was created.

The 'tIME' chunk will encode this information.


getModificationTime

public Date getModificationTime()
Returns the modification time to be stored with this image.

If the bit depth has not previously been set, or has been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the bit depth is not set.

unsetModificationTime

public void unsetModificationTime()
Suppresses the 'tIME' chunk from being output.


isModificationTimeSet

public boolean isModificationTimeSet()
Returns true if a 'tIME' chunk will be output.


unsetTransparency

public void unsetTransparency()
Suppresses the 'tRNS' chunk from being output.


isTransparencySet

public boolean isTransparencySet()
Returns true if a 'tRNS' chunk will be output.


setCompressedText

public void setCompressedText(String[] text)
Sets the text strings to be stored in compressed form with this image. The data is passed to this method as an array of Strings.

The 'zTXt' chunk will encode this information.


getCompressedText

public String[] getCompressedText()
Returns the text strings to be stored in compressed form with this image as an array of Strings.

If the compressed text strings have not previously been set, or have been unset, an IllegalStateException will be thrown.

Throws:
IllegalStateException - if the compressed text strings are not set.

unsetCompressedText

public void unsetCompressedText()
Suppresses the 'zTXt' chunk from being output.


isCompressedTextSet

public boolean isCompressedTextSet()
Returns true if a 'zTXT' chunk will be output.


addPrivateChunk

public void addPrivateChunk(String type,
                            byte[] data)
Adds a private chunk, in binary form, to the list of chunks to be stored with this image.

Parameters:
type - a 4-character String giving the chunk type name.
data - an array of bytes containing the chunk data.

getNumPrivateChunks

public int getNumPrivateChunks()
Returns the number of private chunks to be written to the output file.


getPrivateChunkType

public String getPrivateChunkType(int index)
Returns the type of the private chunk at a given index, as a 4-character String. The index must be smaller than the return value of getNumPrivateChunks.


getPrivateChunkData

public byte[] getPrivateChunkData(int index)
Returns the data associated of the private chunk at a given index, as an array of bytes. The index must be smaller than the return value of getNumPrivateChunks.


removeUnsafeToCopyPrivateChunks

public void removeUnsafeToCopyPrivateChunks()
Remove all private chunks associated with this parameter instance whose 'safe-to-copy' bit is not set. This may be advisable when transcoding PNG images.


removeAllPrivateChunks

public void removeAllPrivateChunks()
Remove all private chunks associated with this parameter instance.


paethPredictor

public static final int paethPredictor(int a,
                                       int b,
                                       int c)
The Paeth predictor routine used in PNG encoding. This routine is included as a convenience to subclasses that override the filterRow method.


filterRow

public int filterRow(byte[] currRow,
                     byte[] prevRow,
                     byte[][] scratchRows,
                     int bytesPerRow,
                     int bytesPerPixel)
Performs filtering on a row of an image. This method may be overridden in order to provide a custom algorithm for choosing the filter type for a given row.

The method is supplied with the current and previous rows of the image. For the first row of the image, or of an interlacing pass, the previous row array will be filled with zeros as required by the PNG specification.

The method is also supplied with five scratch arrays. These arrays may be used within the method for any purpose. At method exit, the array at the index given by the return value of the method should contain the filtered data. The return value will also be used as the filter type.

The default implementation of the method performs a trial encoding with each of the filter types, and computes the sum of absolute values of the differences between the raw bytes of the current row and the predicted values. The index of the filter producing the smallest result is returned.

As an example, to perform only 'sub' filtering, this method could be implemented (non-optimally) as follows:

 for (int i = bytesPerPixel; i < bytesPerRow + bytesPerPixel; i++) {
     int curr = currRow[i] & 0xff;
     int left = currRow[i - bytesPerPixel] & 0xff;
     scratchRow[PNG_FILTER_SUB][i] = (byte)(curr - left);
 }
 return PNG_FILTER_SUB;
 

Parameters:
currRow - The current row as an array of bytes of length at least bytesPerRow + bytesPerPixel. The pixel data starts at index bytesPerPixel; the initial bytesPerPixel bytes are zero.
prevRow - The current row as an array of bytes The pixel data starts at index bytesPerPixel; the initial bytesPerPixel bytes are zero.
scratchRows - An array of 5 byte arrays of length at least bytesPerRow + bytesPerPixel, useable to hold temporary results. The filtered row will be returned as one of the entries of this array. The returned filtered data should start at index bytesPerPixel; The initial bytesPerPixel bytes are not used.
bytesPerRow - The number of bytes in the image row. This value will always be greater than 0.
bytesPerPixel - The number of bytes representing a single pixel, rounded up to an integer. This is the 'bpp' parameter described in the PNG specification.
Returns:
The filter type to be used. The entry of scratchRows[] at this index holds the filtered data.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxStyleUtils.html0000664000175000017500000007527212176166726026125 0ustar sylvestresylvestre mxStyleUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxStyleUtils

java.lang.Object
  extended by com.mxgraph.util.mxStyleUtils

public class mxStyleUtils
extends Object

Contains various style helper methods for use with mxGraph.


Constructor Summary
mxStyleUtils()
           
 
Method Summary
static String addStylename(String style, String stylename)
          Adds the specified stylename to the given style if it does not already contain the stylename.
static String getStylename(String style)
          Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename.
static String[] getStylenames(String style)
          Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.
static int indexOfStylename(String style, String stylename)
          Returns the index of the given stylename in the given style.
static String removeAllStylenames(String style)
          Removes all stylenames from the given style and returns the updated style.
static String removeStylename(String style, String stylename)
          Removes all occurrences of the specified stylename in the given style and returns the updated style.
static void setCellStyleFlags(mxIGraphModel model, Object[] cells, String key, int flag, Boolean value)
          Sets or toggles the flag bit for the given key in the cell's styles.
static void setCellStyles(mxIGraphModel model, Object[] cells, String key, String value)
          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 String setStyle(String style, String key, String value)
          Adds or removes the given key, value pair to the style and returns the new style.
static String setStyleFlag(String style, String key, int flag, Boolean value)
          Sets or removes the given key from the specified style and returns the new style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxStyleUtils

public mxStyleUtils()
Method Detail

getStylename

public static String getStylename(String style)
Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename.

Parameters:
style - String of the form stylename[;key=value].
Returns:
Returns the stylename from the given formatted string.

getStylenames

public static String[] getStylenames(String style)
Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.

Parameters:
style - String of the form stylename[;stylename][;key=value].
Returns:
Returns the stylename from the given formatted string.

indexOfStylename

public static int indexOfStylename(String style,
                                   String stylename)
Returns the index of the given stylename in the given style. This returns -1 if the given stylename does not occur (as a stylename) in the given style, otherwise it returns the index of the first character.


addStylename

public static String addStylename(String style,
                                  String stylename)
Adds the specified stylename to the given style if it does not already contain the stylename.


removeStylename

public static String removeStylename(String style,
                                     String stylename)
Removes all occurrences of the specified stylename in the given style and returns the updated style. Trailing semicolons are preserved.


removeAllStylenames

public static String removeAllStylenames(String style)
Removes all stylenames from the given style and returns the updated style.


setCellStyles

public static void setCellStyles(mxIGraphModel model,
                                 Object[] cells,
                                 String key,
                                 String value)
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.

Parameters:
model - Model to execute the transaction in.
cells - Array of cells to be updated.
key - Key of the style to be changed.
value - New value for the given key.

setStyle

public static String setStyle(String style,
                              String key,
                              String value)
Adds or removes the given key, value pair to the style and returns the new style. If value is null or zero length then the key is removed from the style.

Parameters:
style - String of the form stylename[;key=value].
key - Key of the style to be changed.
value - New value for the given key.
Returns:
Returns the new style.

setCellStyleFlags

public static void setCellStyleFlags(mxIGraphModel model,
                                     Object[] cells,
                                     String key,
                                     int flag,
                                     Boolean value)
Sets or toggles the flag bit for the given key in the cell's styles. If value is null then the flag is toggled. mxUtils.setCellStyleFlags(graph.getModel(), cells, mxConstants.STYLE_FONTSTYLE, mxConstants.FONT_BOLD, null); Toggles the bold font style.

Parameters:
model - Model that contains the cells.
cells - Array of cells to change the style for.
key - Key of the style to be changed.
flag - Integer for the bit to be changed.
value - Optional boolean value for the flag.

setStyleFlag

public static String setStyleFlag(String style,
                                  String key,
                                  int flag,
                                  Boolean value)
Sets or removes the given key from the specified style and returns the new style. If value is null then the flag is toggled.

Parameters:
style - String of the form stylename[;key=value].
key - Key of the style to be changed.
flag - Integer for the bit to be changed.
value - Optional boolean value for the given flag.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxUndoableEdit.mxUndoableChange.html0000664000175000017500000002401712176166726031535 0ustar sylvestresylvestre mxUndoableEdit.mxUndoableChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Interface mxUndoableEdit.mxUndoableChange

All Known Implementing Classes:
mxGraphModel.mxChildChange, mxGraphModel.mxCollapseChange, mxGraphModel.mxGeometryChange, mxGraphModel.mxRootChange, mxGraphModel.mxStyleChange, mxGraphModel.mxTerminalChange, mxGraphModel.mxValueChange, mxGraphModel.mxVisibleChange, mxGraphSelectionModel.mxSelectionChange, mxGraphView.mxCurrentRootChange, mxIGraphModel.mxAtomicGraphModelChange
Enclosing class:
mxUndoableEdit

public static interface mxUndoableEdit.mxUndoableChange

Defines the requirements for an undoable change.


Method Summary
 void execute()
          Undoes or redoes the change depending on its undo state.
 

Method Detail

execute

void execute()
Undoes or redoes the change depending on its undo state.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxPoint.html0000664000175000017500000005572412176166726025075 0ustar sylvestresylvestre mxPoint (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxPoint

java.lang.Object
  extended by com.mxgraph.util.mxPoint
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
mxLine, mxRectangle

public class mxPoint
extends Object
implements Serializable, Cloneable

Implements a 2-dimensional point with double precision coordinates.

See Also:
Serialized Form

Field Summary
protected  double x
          Holds the x- and y-coordinates of the point.
protected  double y
          Holds the x- and y-coordinates of the point.
 
Constructor Summary
mxPoint()
          Constructs a new point at (0, 0).
mxPoint(double x, double y)
          Constructs a new point at (x, y).
mxPoint(mxPoint point)
          Constructs a new point at the location of the given point.
mxPoint(Point2D point)
          Constructs a new point at the location of the given point.
 
Method Summary
 Object clone()
          Returns a new instance of the same point.
 boolean equals(Object obj)
          Returns true if the given object equals this rectangle.
 Point getPoint()
          Returns the coordinates as a new point.
 double getX()
          Returns the x-coordinate of the point.
 double getY()
          Returns the x-coordinate of the point.
 void setX(double value)
          Sets the x-coordinate of the point.
 void setY(double value)
          Sets the y-coordinate of the point.
 String toString()
          Returns a String that represents the value of this mxPoint.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

protected double x
Holds the x- and y-coordinates of the point. Default is 0.


y

protected double y
Holds the x- and y-coordinates of the point. Default is 0.

Constructor Detail

mxPoint

public mxPoint()
Constructs a new point at (0, 0).


mxPoint

public mxPoint(Point2D point)
Constructs a new point at the location of the given point.

Parameters:
point - Point that specifies the location.

mxPoint

public mxPoint(mxPoint point)
Constructs a new point at the location of the given point.

Parameters:
point - Point that specifies the location.

mxPoint

public mxPoint(double x,
               double y)
Constructs a new point at (x, y).

Parameters:
x - X-coordinate of the point to be created.
y - Y-coordinate of the point to be created.
Method Detail

getX

public double getX()
Returns the x-coordinate of the point.

Returns:
Returns the x-coordinate.

setX

public void setX(double value)
Sets the x-coordinate of the point.

Parameters:
value - Double that specifies the new x-coordinate.

getY

public double getY()
Returns the x-coordinate of the point.

Returns:
Returns the x-coordinate.

setY

public void setY(double value)
Sets the y-coordinate of the point.

Parameters:
value - Double that specifies the new x-coordinate.

getPoint

public Point getPoint()
Returns the coordinates as a new point.

Returns:
Returns a new point for the location.

equals

public boolean equals(Object obj)
Returns true if the given object equals this rectangle.

Overrides:
equals in class Object

clone

public Object clone()
Returns a new instance of the same point.

Overrides:
clone in class Object

toString

public String toString()
Returns a String that represents the value of this mxPoint.

Overrides:
toString in class Object
Returns:
a string representation of this mxPoint.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxImage.html0000664000175000017500000004531712176166724025021 0ustar sylvestresylvestre mxImage (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxImage

java.lang.Object
  extended by com.mxgraph.util.mxImage
All Implemented Interfaces:
Serializable, Cloneable

public class mxImage
extends Object
implements Serializable, Cloneable

Implements a 2-dimensional point with double precision coordinates.

See Also:
Serialized Form

Field Summary
protected  int height
          Holds the image width and height.
protected  String src
          Holds the path or URL for the image.
protected  int width
          Holds the image width and height.
 
Constructor Summary
mxImage(String src, int width, int height)
          Constructs a new point at (0, 0).
 
Method Summary
 int getHeight()
           
 String getSrc()
           
 int getWidth()
           
 void setHeight(int height)
           
 void setSrc(String src)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

protected String src
Holds the path or URL for the image.


width

protected int width
Holds the image width and height.


height

protected int height
Holds the image width and height.

Constructor Detail

mxImage

public mxImage(String src,
               int width,
               int height)
Constructs a new point at (0, 0).

Method Detail

getSrc

public String getSrc()
Returns:
the src

setSrc

public void setSrc(String src)
Parameters:
src - the src to set

getWidth

public int getWidth()
Returns:
the width

setWidth

public void setWidth(int width)
Parameters:
width - the width to set

getHeight

public int getHeight()
Returns:
the height

setHeight

public void setHeight(int height)
Parameters:
height - the height to set

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxSpline.html0000664000175000017500000004152012176166726025223 0ustar sylvestresylvestre mxSpline (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxSpline

java.lang.Object
  extended by com.mxgraph.util.mxSpline

public class mxSpline
extends Object


Constructor Summary
mxSpline(List<mxPoint> points)
           
 
Method Summary
 boolean checkValues()
          Used to check the correctness of this spline
 double getDx(double t)
           
 double getDy(double t)
           
 double getLength()
           
 mxPoint getPoint(double t)
           
 mxSpline1D getSplineX()
           
 mxSpline1D getSplineY()
           
protected  void init(double[] x, double[] y)
           
 void Spline2D(double[] x, double[] y)
          Creates a new mxSpline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxSpline

public mxSpline(List<mxPoint> points)
Method Detail

Spline2D

public void Spline2D(double[] x,
                     double[] y)
Creates a new mxSpline.

Parameters:
x -
y -

init

protected void init(double[] x,
                    double[] y)

getPoint

public mxPoint getPoint(double t)
Parameters:
t - 0 <= t <= 1

checkValues

public boolean checkValues()
Used to check the correctness of this spline


getDx

public double getDx(double t)

getDy

public double getDy(double t)

getSplineX

public mxSpline1D getSplineX()

getSplineY

public mxSpline1D getSplineY()

getLength

public double getLength()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxResources.html0000664000175000017500000006244212176166726025751 0ustar sylvestresylvestre mxResources (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxResources

java.lang.Object
  extended by com.mxgraph.util.mxResources

public class mxResources
extends Object


Field Summary
protected static LinkedList<ResourceBundle> bundles
          Ordered list of the inserted resource bundles.
 
Constructor Summary
mxResources()
           
 
Method Summary
static void add(String basename)
          Adds a resource bundle.
static void add(String basename, Locale locale)
          Adds a resource bundle.
static String get(String key)
           
static String get(String key, String defaultValue)
           
static String get(String key, String[] params)
          Returns the value for the specified resource key.
static String get(String key, String[] params, String defaultValue)
          Returns the value for the specified resource key.
static LinkedList<ResourceBundle> getBundles()
          Returns the bundles.
protected static String getResource(String key)
          Returns the value for key by searching the resource bundles in inverse order or null if no value can be found for key.
static void setBundles(LinkedList<ResourceBundle> value)
          Sets the bundles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundles

protected static LinkedList<ResourceBundle> bundles
Ordered list of the inserted resource bundles.

Constructor Detail

mxResources

public mxResources()
Method Detail

getBundles

public static LinkedList<ResourceBundle> getBundles()
Returns the bundles.

Returns:
Returns the bundles.

setBundles

public static void setBundles(LinkedList<ResourceBundle> value)
Sets the bundles.

Parameters:
value - The bundles to set.

add

public static void add(String basename)
Adds a resource bundle. This may throw a MissingResourceException that should be handled in the calling code.

Parameters:
basename - The basename of the resource bundle to add.

add

public static void add(String basename,
                       Locale locale)
Adds a resource bundle. This may throw a MissingResourceException that should be handled in the calling code.

Parameters:
basename - The basename of the resource bundle to add.

get

public static String get(String key)

get

public static String get(String key,
                         String defaultValue)

get

public static String get(String key,
                         String[] params)
Returns the value for the specified resource key.


get

public static String get(String key,
                         String[] params,
                         String defaultValue)
Returns the value for the specified resource key.


getResource

protected static String getResource(String key)
Returns the value for key by searching the resource bundles in inverse order or null if no value can be found for key.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/package-summary.html0000664000175000017500000003240112176166726026510 0ustar sylvestresylvestre com.mxgraph.util (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.util

This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history.

See:
          Description

Interface Summary
mxEventSource.mxIEventListener Defines the requirements for an object that listens to an event source.
mxUndoableEdit.mxUndoableChange Defines the requirements for an undoable change.
 

Class Summary
mxBase64 A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.

On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared to sun.misc.Encoder()/Decoder().

On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays.
mxCellRenderer  
mxCellRenderer.CanvasFactory  
mxConstants Contains all global constants.
mxCurve  
mxDomUtils Contains various DOM API helper methods for use with mxGraph.
mxEvent Contains all global constants.
mxEventObject Base class for objects that dispatch named events.
mxEventSource Base class for objects that dispatch named events.
mxHtmlColor Contains various helper methods for use with mxGraph.
mxImage Implements a 2-dimensional point with double precision coordinates.
mxImageBundle Maps from keys to base64 encoded images or file locations.
mxLightweightLabel  
mxLine Implements a line with double precision coordinates.
mxPoint Implements a 2-dimensional point with double precision coordinates.
mxRectangle Implements a 2-dimensional rectangle with double precision coordinates.
mxResources  
mxSpline  
mxSpline1D One dimension of a spline curve
mxStyleUtils Contains various style helper methods for use with mxGraph.
mxUndoableEdit Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoManager Implements an undo history.
mxUtils Contains various helper methods for use with mxGraph.
mxXmlUtils Contains various XML helper methods for use with mxGraph.
 

Package com.mxgraph.util Description

This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/package-use.html0000664000175000017500000007031412176166726025614 0ustar sylvestresylvestre Uses of Package com.mxgraph.util (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.util

Packages that use com.mxgraph.util
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.layout This package contains various graph layouts. 
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Classes in com.mxgraph.util used by com.mxgraph.canvas
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.layout
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.model
mxEventSource
          Base class for objects that dispatch named events.
mxEventSource.mxIEventListener
          Defines the requirements for an object that listens to an event source.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoableEdit
          Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoableEdit.mxUndoableChange
          Defines the requirements for an undoable change.
 

Classes in com.mxgraph.util used by com.mxgraph.reader
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.shape
mxCurve
           
mxLine
          Implements a line with double precision coordinates.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.sharing
mxEventSource
          Base class for objects that dispatch named events.
mxUndoableEdit
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.swing
mxEventSource
          Base class for objects that dispatch named events.
mxEventSource.mxIEventListener
          Defines the requirements for an object that listens to an event source.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.swing.handler
mxEventSource
          Base class for objects that dispatch named events.
mxEventSource.mxIEventListener
          Defines the requirements for an object that listens to an event source.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.swing.util
mxEventSource
          Base class for objects that dispatch named events.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.swing.view
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
 

Classes in com.mxgraph.util used by com.mxgraph.util
mxCellRenderer.CanvasFactory
           
mxEventObject
          Base class for objects that dispatch named events.
mxEventSource
          Base class for objects that dispatch named events.
mxEventSource.mxIEventListener
          Defines the requirements for an object that listens to an event source.
mxLightweightLabel
           
mxLine
          Implements a line with double precision coordinates.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
mxSpline1D
          One dimension of a spline curve
mxUndoableEdit
          Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoableEdit.mxUndoableChange
          Defines the requirements for an undoable change.
 

Classes in com.mxgraph.util used by com.mxgraph.view
mxEventSource
          Base class for objects that dispatch named events.
mxEventSource.mxIEventListener
          Defines the requirements for an object that listens to an event source.
mxImageBundle
          Maps from keys to base64 encoded images or file locations.
mxPoint
          Implements a 2-dimensional point with double precision coordinates.
mxRectangle
          Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoableEdit
          Implements a 2-dimensional rectangle with double precision coordinates.
mxUndoableEdit.mxUndoableChange
          Defines the requirements for an undoable change.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxUtils.html0000664000175000017500000052726412176166726025107 0ustar sylvestresylvestre mxUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxUtils

java.lang.Object
  extended by com.mxgraph.util.mxUtils

public class mxUtils
extends Object

Contains various helper methods for use with mxGraph.


Field Summary
protected static Graphics fontGraphics
          Static Graphics used for Font Metrics.
static boolean IS_LINUX
          True if the machine is running a linux kernel.
static boolean IS_MAC
          True if the machine is a Mac.
 
Constructor Summary
mxUtils()
           
 
Method Summary
static double[] arcToCurves(double x0, double y0, double r1, double r2, double angle, double largeArcFlag, double sweepFlag, double x, double y)
          Function: arcToCurves Converts the given arc to a series of curves.
static void clearRect(Graphics2D g, Rectangle rect, Color background)
          Clears the given area of the specified graphics object with the given color or makes the region transparent.
static boolean contains(Object[] array, Object obj)
          Returns true if the given array contains the given object.
static BufferedImage createBufferedImage(int w, int h, Color background)
          Creates a buffered image for the given parameters.
static Document createDocument()
          Deprecated. Use mxDomUtils.createDocument (Jan 2012)
static Document createHtmlDocument()
          Deprecated. Use mxDomUtils.createHtmlDocument (Jan 2012)
static String createHtmlDocument(Map<String,Object> style, String text)
          Returns a new, empty DOM document.
static String createHtmlDocument(Map<String,Object> style, String text, double scale)
          Returns a new, empty DOM document.
static String createHtmlDocument(Map<String,Object> style, String text, double scale, int width)
          Returns a new, empty DOM document.
static String createHtmlDocument(Map<String,Object> style, String text, double scale, int width, String head)
          Returns a new, empty DOM document.
static HTMLDocument createHtmlDocumentObject(Map<String,Object> style, double scale)
          Returns a new, empty DOM document.
static Document createSvgDocument(int width, int height)
          Deprecated. Use mxDomUtils.createSvgDocument(int, int) (Jan 2012)
static Element createTable(Document document, String text, int x, int y, int w, int h, double scale, Map<String,Object> style)
          Creates a table for the given text using the given document to create the DOM nodes.
static Document createVmlDocument()
          Deprecated. Use mxDomUtils.createVmlDocument (Jan 2012)
static void drawImageClip(Graphics g, BufferedImage image, ImageObserver observer)
          Draws the image inside the clip bounds to the given graphics object.
static Object eval(String expression)
          Evaluates a Java expression as a class member using mxCodecRegistry.
static void fillClippedRect(Graphics g, int x, int y, int width, int height)
           
static int findNearestSegment(mxCellState state, double x, double y)
          Finds the index of the nearest segment on the given cell state for the specified coordinate pair.
static Node findNode(Node node, String attr, String value)
          Returns the first node where attr equals value.
static int firstCharAt(String text, int inputChar, int fromIndex)
          Find the first character matching the input character in the given string where the character has no letter preceding it.
static String getBodyMarkup(String markup, boolean replaceLinefeeds)
          Returns the body part of the given HTML markup.
static mxRectangle getBoundingBox(mxRectangle rect, double rotation)
          Returns the bounding box for the rotated rectangle.
static Color getColor(Map<String,Object> dict, String key)
          Returns the value for key in dictionary as a color or null if no value is defined for the key.
static Color getColor(Map<String,Object> dict, String key, Color defaultValue)
          Returns the value for key in dictionary as a color or the given default value if no value is defined for the key.
static double getDouble(Map<String,Object> dict, String key)
          Returns the value for key in dictionary as a double or 0 if no value is defined for the key.
static double getDouble(Map<String,Object> dict, String key, double defaultValue)
          Returns the value for key in dictionary as a double or the given default value if no value is defined for the key.
static float getFloat(Map<String,Object> dict, String key)
          Returns the value for key in dictionary as a float or 0 if no value is defined for the key.
static float getFloat(Map<String,Object> dict, String key, float defaultValue)
          Returns the value for key in dictionary as a float or the given default value if no value is defined for the key.
static float[] getFloatArray(Map<String,Object> dict, String key, float[] defaultValue)
          Returns the value for key in dictionary as a float array or the given default value if no value is defined for the key.
static float[] getFloatArray(Map<String,Object> dict, String key, float[] defaultValue, String separator)
          Returns the value for key in dictionary as a float array or the given default value if no value is defined for the key.
static Font getFont(Map<String,Object> style)
           
static Font getFont(Map<String,Object> style, double scale)
           
static FontMetrics getFontMetrics(Font font)
          Returns the font metrics of the static font graphics instance
static String getHexColorString(Color color)
          Returns a hex representation for the given color.
static int getInt(Map<String,Object> dict, String key)
          Returns the value for key in dictionary as an int or 0 if no value is defined for the key.
static int getInt(Map<String,Object> dict, String key, int defaultValue)
          Returns the value for key in dictionary as an int or the given default value if no value is defined for the key.
static mxRectangle getLabelPaintBounds(String label, Map<String,Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)
          Returns the paint bounds for the given label.
static mxRectangle getLabelSize(String label, Map<String,Object> style, boolean isHtml, double scale)
          Returns the size for the given label.
static mxRectangle getLabelSize(String label, Map<String,Object> style, boolean isHtml, double scale, double htmlWrapWidth)
          Returns the size for the given label.
static String getMd5Hash(String text)
          Returns the Md5 hash for the given text.
static int getPortConstraints(mxCellState terminal, mxCellState edge, boolean source)
          Returns an integer mask of the port constraints of the given map
static int getPortConstraints(mxCellState terminal, mxCellState edge, boolean source, int defaultValue)
          Returns an integer mask of the port constraints of the given map
static String getPrettyXml(Node node)
          Returns a pretty-printed XML string for the given node.
static String getPrettyXml(Node node, String tab, String indent)
          Returns a pretty-printed XML string for the given node.
static mxPoint getRotatedPoint(mxPoint pt, double cos, double sin)
          Rotates the given point by the given cos and sin.
static mxPoint getRotatedPoint(mxPoint pt, double cos, double sin, mxPoint c)
          Rotates the given point by the given cos and sin.
static mxRectangle getScaledLabelBounds(double x, double y, mxRectangle size, double outerWidth, double outerHeight, Map<String,Object> style, double scale)
          Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label.
static mxRectangle getSizeForHtml(String markup, Map<String,Object> style, double scale, double wrapWidth)
          Returns an mxRectangle with the size (width and height in pixels) of the given HTML markup.
static mxRectangle getSizeForString(String text, Font font, double scale)
          Returns an with the size (width and height in pixels) of the given string.
static String getString(Map<String,Object> dict, String key)
          Returns the value for key in dictionary as a string or null if no value is defined for the key.
static String getString(Map<String,Object> dict, String key, String defaultValue)
          Returns the value for key in dictionary as a string or the given default value if no value is defined for the key.
static String getStylename(String style)
          Deprecated. Use mxStyleUtils.getStylename(String) (Jan 2012)
static String[] getStylenames(String style)
          Deprecated. Use mxStyleUtils.getStylenames(String) (Jan 2012)
static String getXml(Node node)
          Deprecated. Use mxXmlUtils.getXml(Node) (Jan 2012)
static String hexString(Color color)
           
static String htmlEntities(String text)
          Converts the ampersand, quote, prime, less-than and greater-than characters to their corresponding HTML entities in the given string.
static int indexOf(Object[] array, Object obj)
          Returns the index of the given object in the given array of -1 if the object is not contained in the array.
static int indexOfStylename(String style, String stylename)
          Deprecated. Use mxStyleUtils.indexOfStylename(String, String) (Jan 2012)
static mxPoint intersection(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
          Returns the intersection of two lines as an mxPoint.
static boolean intersectsHotspot(mxCellState state, int x, int y, double hotspot)
           
static boolean intersectsHotspot(mxCellState state, int x, int y, double hotspot, int min, int max)
          Returns true if the given coordinate pair intersects the hotspot of the given state.
static boolean isNode(Object value, String nodeName)
          Returns true if the user object is an XML node with the specified type and and the optional attribute has the specified value or is not specified.
static boolean isNode(Object value, String nodeName, String attributeName, String attributeValue)
          Returns true if the given value is an XML node with the node name and if the optional attribute has the specified value.
static boolean isTrue(Map<String,Object> dict, String key)
          Returns true if the dictionary contains true for the given key or false if no value is defined for the key.
static boolean isTrue(Map<String,Object> dict, String key, boolean defaultValue)
          Returns true if the dictionary contains true for the given key or the given default value if no value is defined for the key.
static Document loadDocument(String uri)
          Returns a new DOM document for the given URI.
static BufferedImage loadImage(String url)
          Loads an image from the local filesystem, a data URI or any other URL.
static Color parseColor(String colorString)
          Convert a string representing a 24/32bit hex color value into a Color object.
static Document parseXml(String xml)
          Deprecated. Use mxXmlUtils.parseXml (Jan 2012)
static String readFile(String filename)
          Reads the given filename into a string.
static String readInputStream(InputStream stream)
          Reads the given filename into a string.
static String removeAllStylenames(String style)
          Deprecated. Use mxStyleUtils.removeAllStylenames(String) (Jan 2012)
static int reversePortConstraints(int constraint)
           
static Node selectSingleNode(Document doc, String expression)
          Returns a single node that matches the given XPath expression.
static void setAntiAlias(Graphics2D g, boolean antiAlias, boolean textAntiAlias)
           
static void setCellStyleFlags(mxIGraphModel model, Object[] cells, String key, int flag, Boolean value)
          Deprecated. Use mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean) (Jan 2012)
static void setCellStyles(mxIGraphModel model, Object[] cells, String key, String value)
          Deprecated. Use mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String) (Jan 2012)
static String setStyle(String style, String key, String value)
          Deprecated. Use mxStyleUtils.setStyle(String, String, String) (Jan 2012)
static String setStyleFlag(String style, String key, int flag, Boolean value)
          Deprecated. Use mxStyleUtils.setStyleFlag(String, String, int, Boolean) (Jan 2012)
static Collection<Object> sortCells(Collection<Object> cells, boolean ascending)
          Sorts the given cells according to the order in the cell hierarchy.
static Object[] sortCells(Object[] cells, boolean ascending)
          Sorts the given cells according to the order in the cell hierarchy.
static List<mxPoint> translatePoints(List<mxPoint> pts, double dx, double dy)
          Creates a new list of new points obtained by translating the points in the given list by the given vector.
static String[] wordWrap(String text, FontMetrics metrics, double width)
          Returns the specified text in lines that fit within the specified width when the specified font metrics are applied to the text
static void writeFile(String contents, String filename)
          Writes the given string into the given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_MAC

public static boolean IS_MAC
True if the machine is a Mac.


IS_LINUX

public static boolean IS_LINUX
True if the machine is running a linux kernel.


fontGraphics

protected static transient Graphics fontGraphics
Static Graphics used for Font Metrics.

Constructor Detail

mxUtils

public mxUtils()
Method Detail

getLabelSize

public static mxRectangle getLabelSize(String label,
                                       Map<String,Object> style,
                                       boolean isHtml,
                                       double scale)
Returns the size for the given label. If isHtml is true then any HTML markup in the label is computed as HTML and all newlines inside the HTML body are converted into linebreaks.


getLabelSize

public static mxRectangle getLabelSize(String label,
                                       Map<String,Object> style,
                                       boolean isHtml,
                                       double scale,
                                       double htmlWrapWidth)
Returns the size for the given label. If isHtml is true then any HTML markup in the label is computed as HTML and all newlines inside the HTML body are converted into linebreaks.


getBodyMarkup

public static String getBodyMarkup(String markup,
                                   boolean replaceLinefeeds)
Returns the body part of the given HTML markup.


getLabelPaintBounds

public static mxRectangle getLabelPaintBounds(String label,
                                              Map<String,Object> style,
                                              boolean isHtml,
                                              mxPoint offset,
                                              mxRectangle vertexBounds,
                                              double scale)
Returns the paint bounds for the given label.


getScaledLabelBounds

public static mxRectangle getScaledLabelBounds(double x,
                                               double y,
                                               mxRectangle size,
                                               double outerWidth,
                                               double outerHeight,
                                               Map<String,Object> style,
                                               double scale)
Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. (For edge labels this width and height is 0.) The scale is used to scale the given size and the spacings in the specified style.


getFontMetrics

public static FontMetrics getFontMetrics(Font font)
Returns the font metrics of the static font graphics instance

Parameters:
font - The font whose metrics are to be returned
Returns:
the font metrics of the specified font

getSizeForString

public static mxRectangle getSizeForString(String text,
                                           Font font,
                                           double scale)
Returns an with the size (width and height in pixels) of the given string.

Parameters:
text - String whose size should be returned.
font - Font to be used for the computation.

wordWrap

public static String[] wordWrap(String text,
                                FontMetrics metrics,
                                double width)
Returns the specified text in lines that fit within the specified width when the specified font metrics are applied to the text

Parameters:
text - the text to wrap
metrics - the font metrics to calculate the text size for
width - the width that the text must fit within
Returns:
the input text split in lines that fit the specified width

getSizeForHtml

public static mxRectangle getSizeForHtml(String markup,
                                         Map<String,Object> style,
                                         double scale,
                                         double wrapWidth)
Returns an mxRectangle with the size (width and height in pixels) of the given HTML markup.

Parameters:
markup - HTML markup whose size should be returned.

arcToCurves

public static double[] arcToCurves(double x0,
                                   double y0,
                                   double r1,
                                   double r2,
                                   double angle,
                                   double largeArcFlag,
                                   double sweepFlag,
                                   double x,
                                   double y)
Function: arcToCurves Converts the given arc to a series of curves.


getBoundingBox

public static mxRectangle getBoundingBox(mxRectangle rect,
                                         double rotation)
Returns the bounding box for the rotated rectangle.


firstCharAt

public static int firstCharAt(String text,
                              int inputChar,
                              int fromIndex)
Find the first character matching the input character in the given string where the character has no letter preceding it.

Parameters:
text - the string to test for the presence of the input character
inputChar - the test character
fromIndex - the index position of the string to start from
Returns:
the position of the first character matching the input character in the given string where the character has no letter preceding it.

getRotatedPoint

public static mxPoint getRotatedPoint(mxPoint pt,
                                      double cos,
                                      double sin)
Rotates the given point by the given cos and sin.


findNearestSegment

public static int findNearestSegment(mxCellState state,
                                     double x,
                                     double y)
Finds the index of the nearest segment on the given cell state for the specified coordinate pair.


getRotatedPoint

public static mxPoint getRotatedPoint(mxPoint pt,
                                      double cos,
                                      double sin,
                                      mxPoint c)
Rotates the given point by the given cos and sin.


getPortConstraints

public static int getPortConstraints(mxCellState terminal,
                                     mxCellState edge,
                                     boolean source)
Returns an integer mask of the port constraints of the given map

Parameters:
terminal - the cached cell state of the cell to determine the port constraints for
edge - the edge connected to the constrained terminal
source - whether or not the edge specified is connected to the terminal specified at its source end
Returns:
the mask of port constraint directions

getPortConstraints

public static int getPortConstraints(mxCellState terminal,
                                     mxCellState edge,
                                     boolean source,
                                     int defaultValue)
Returns an integer mask of the port constraints of the given map

Parameters:
terminal - the cached cell state of the cell to determine the port constraints for
edge - the edge connected to the constrained terminal
source - whether or not the edge specified is connected to the terminal specified at its source end
defaultValue - Default value to return if the key is undefined.
Returns:
the mask of port constraint directions

reversePortConstraints

public static int reversePortConstraints(int constraint)

drawImageClip

public static void drawImageClip(Graphics g,
                                 BufferedImage image,
                                 ImageObserver observer)
Draws the image inside the clip bounds to the given graphics object.


fillClippedRect

public static void fillClippedRect(Graphics g,
                                   int x,
                                   int y,
                                   int width,
                                   int height)

translatePoints

public static List<mxPoint> translatePoints(List<mxPoint> pts,
                                            double dx,
                                            double dy)
Creates a new list of new points obtained by translating the points in the given list by the given vector. Elements that are not mxPoints are added to the result as-is.


intersection

public static mxPoint intersection(double x0,
                                   double y0,
                                   double x1,
                                   double y1,
                                   double x2,
                                   double y2,
                                   double x3,
                                   double y3)
Returns the intersection of two lines as an mxPoint.

Parameters:
x0 - X-coordinate of the first line's startpoint.
y0 - Y-coordinate of the first line's startpoint.
x1 - X-coordinate of the first line's endpoint.
y1 - Y-coordinate of the first line's endpoint.
x2 - X-coordinate of the second line's startpoint.
y2 - Y-coordinate of the second line's startpoint.
x3 - X-coordinate of the second line's endpoint.
y3 - Y-coordinate of the second line's endpoint.
Returns:
Returns the intersection between the two lines.

sortCells

public static Object[] sortCells(Object[] cells,
                                 boolean ascending)
Sorts the given cells according to the order in the cell hierarchy.


sortCells

public static Collection<Object> sortCells(Collection<Object> cells,
                                           boolean ascending)
Sorts the given cells according to the order in the cell hierarchy.


contains

public static boolean contains(Object[] array,
                               Object obj)
Returns true if the given array contains the given object.


indexOf

public static int indexOf(Object[] array,
                          Object obj)
Returns the index of the given object in the given array of -1 if the object is not contained in the array.


getStylename

public static String getStylename(String style)
Deprecated. Use mxStyleUtils.getStylename(String) (Jan 2012)

Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename.

Parameters:
style - String of the form stylename[;key=value].
Returns:
Returns the stylename from the given formatted string.

getStylenames

public static String[] getStylenames(String style)
Deprecated. Use mxStyleUtils.getStylenames(String) (Jan 2012)

Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.

Parameters:
style - String of the form stylename[;stylename][;key=value].
Returns:
Returns the stylename from the given formatted string.

indexOfStylename

public static int indexOfStylename(String style,
                                   String stylename)
Deprecated. Use mxStyleUtils.indexOfStylename(String, String) (Jan 2012)

Returns the index of the given stylename in the given style. This returns -1 if the given stylename does not occur (as a stylename) in the given style, otherwise it returns the index of the first character.


removeAllStylenames

public static String removeAllStylenames(String style)
Deprecated. Use mxStyleUtils.removeAllStylenames(String) (Jan 2012)

Removes all stylenames from the given style and returns the updated style.


setCellStyles

public static void setCellStyles(mxIGraphModel model,
                                 Object[] cells,
                                 String key,
                                 String value)
Deprecated. Use mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String) (Jan 2012)

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.

Parameters:
model - Model to execute the transaction in.
cells - Array of cells to be updated.
key - Key of the style to be changed.
value - New value for the given key.

setStyle

public static String setStyle(String style,
                              String key,
                              String value)
Deprecated. Use mxStyleUtils.setStyle(String, String, String) (Jan 2012)

Adds or removes the given key, value pair to the style and returns the new style. If value is null or zero length then the key is removed from the style.

Parameters:
style - String of the form stylename[;key=value].
key - Key of the style to be changed.
value - New value for the given key.
Returns:
Returns the new style.

setCellStyleFlags

public static void setCellStyleFlags(mxIGraphModel model,
                                     Object[] cells,
                                     String key,
                                     int flag,
                                     Boolean value)
Deprecated. Use mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean) (Jan 2012)

Sets or toggles the flag bit for the given key in the cell's styles. If value is null then the flag is toggled. mxUtils.setCellStyleFlags(graph.getModel(), cells, mxConstants.STYLE_FONTSTYLE, mxConstants.FONT_BOLD, null); Toggles the bold font style.

Parameters:
model - Model that contains the cells.
cells - Array of cells to change the style for.
key - Key of the style to be changed.
flag - Integer for the bit to be changed.
value - Optional boolean value for the flag.

setStyleFlag

public static String setStyleFlag(String style,
                                  String key,
                                  int flag,
                                  Boolean value)
Deprecated. Use mxStyleUtils.setStyleFlag(String, String, int, Boolean) (Jan 2012)

Sets or removes the given key from the specified style and returns the new style. If value is null then the flag is toggled.

Parameters:
style - String of the form stylename[;key=value].
key - Key of the style to be changed.
flag - Integer for the bit to be changed.
value - Optional boolean value for the given flag.

intersectsHotspot

public static boolean intersectsHotspot(mxCellState state,
                                        int x,
                                        int y,
                                        double hotspot)

intersectsHotspot

public static boolean intersectsHotspot(mxCellState state,
                                        int x,
                                        int y,
                                        double hotspot,
                                        int min,
                                        int max)
Returns true if the given coordinate pair intersects the hotspot of the given state.


isTrue

public static boolean isTrue(Map<String,Object> dict,
                             String key)
Returns true if the dictionary contains true for the given key or false if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
Returns:
Returns the boolean value for key in dict.

isTrue

public static boolean isTrue(Map<String,Object> dict,
                             String key,
                             boolean defaultValue)
Returns true if the dictionary contains true for the given key or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the boolean value for key in dict.

getInt

public static int getInt(Map<String,Object> dict,
                         String key)
Returns the value for key in dictionary as an int or 0 if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
Returns:
Returns the integer value for key in dict.

getInt

public static int getInt(Map<String,Object> dict,
                         String key,
                         int defaultValue)
Returns the value for key in dictionary as an int or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the integer value for key in dict.

getFloat

public static float getFloat(Map<String,Object> dict,
                             String key)
Returns the value for key in dictionary as a float or 0 if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
Returns:
Returns the float value for key in dict.

getFloat

public static float getFloat(Map<String,Object> dict,
                             String key,
                             float defaultValue)
Returns the value for key in dictionary as a float or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the float value for key in dict.

getFloatArray

public static float[] getFloatArray(Map<String,Object> dict,
                                    String key,
                                    float[] defaultValue)
Returns the value for key in dictionary as a float array or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the float array value for key in dict.

getFloatArray

public static float[] getFloatArray(Map<String,Object> dict,
                                    String key,
                                    float[] defaultValue,
                                    String separator)
Returns the value for key in dictionary as a float array or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the float array value for key in dict.

getDouble

public static double getDouble(Map<String,Object> dict,
                               String key)
Returns the value for key in dictionary as a double or 0 if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
Returns:
Returns the double value for key in dict.

getDouble

public static double getDouble(Map<String,Object> dict,
                               String key,
                               double defaultValue)
Returns the value for key in dictionary as a double or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the double value for key in dict.

getString

public static String getString(Map<String,Object> dict,
                               String key)
Returns the value for key in dictionary as a string or null if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
Returns:
Returns the string value for key in dict.

getString

public static String getString(Map<String,Object> dict,
                               String key,
                               String defaultValue)
Returns the value for key in dictionary as a string or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the string value for key in dict.

getColor

public static Color getColor(Map<String,Object> dict,
                             String key)
Returns the value for key in dictionary as a color or null if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
Returns:
Returns the color value for key in dict.

getColor

public static Color getColor(Map<String,Object> dict,
                             String key,
                             Color defaultValue)
Returns the value for key in dictionary as a color or the given default value if no value is defined for the key.

Parameters:
dict - Dictionary that contains the key, value pairs.
key - Key whose value should be returned.
defaultValue - Default value to return if the key is undefined.
Returns:
Returns the color value for key in dict.

getFont

public static Font getFont(Map<String,Object> style)

getFont

public static Font getFont(Map<String,Object> style,
                           double scale)

hexString

public static String hexString(Color color)

parseColor

public static Color parseColor(String colorString)
                        throws NumberFormatException
Convert a string representing a 24/32bit hex color value into a Color object. The following color names are also supported: white, black, red, green, blue, orange, yellow, pink, turquoise, gray and none (null). Examples of possible hex color values are: #C3D9FF, #6482B9 and #774400, but note that you do not include the "#" in the string passed in

Parameters:
colorString - the 24/32bit hex string value (ARGB)
Returns:
java.awt.Color (24bit RGB on JDK 1.1, 24/32bit ARGB on JDK1.2)
Throws:
NumberFormatException - if the specified string cannot be interpreted as a hexidecimal integer

getHexColorString

public static String getHexColorString(Color color)
Returns a hex representation for the given color.

Parameters:
color - Color to return the hex string for.
Returns:
Returns a hex string for the given color.

readFile

public static String readFile(String filename)
                       throws IOException
Reads the given filename into a string.

Parameters:
filename - Name of the file to be read.
Returns:
Returns a string representing the file contents.
Throws:
IOException

readInputStream

public static String readInputStream(InputStream stream)
                              throws IOException
Reads the given filename into a string.

Parameters:
filename - Name of the file to be read.
Returns:
Returns a string representing the file contents.
Throws:
IOException

writeFile

public static void writeFile(String contents,
                             String filename)
                      throws IOException
Writes the given string into the given file.

Parameters:
contents - String representing the file contents.
filename - Name of the file to be written.
Throws:
IOException

getMd5Hash

public static String getMd5Hash(String text)
Returns the Md5 hash for the given text.

Parameters:
text - String whose Md5 hash should be returned.
Returns:
Returns the Md5 hash for the given text.

isNode

public static boolean isNode(Object value,
                             String nodeName)
Returns true if the user object is an XML node with the specified type and and the optional attribute has the specified value or is not specified.

Parameters:
value - Object that should be examined as a node.
nodeName - String that specifies the node name.
Returns:
Returns true if the node name of the user object is equal to the given type.

isNode

public static boolean isNode(Object value,
                             String nodeName,
                             String attributeName,
                             String attributeValue)
Returns true if the given value is an XML node with the node name and if the optional attribute has the specified value.

Parameters:
value - Object that should be examined as a node.
nodeName - String that specifies the node name.
attributeName - Optional attribute name to check.
attributeValue - Optional attribute value to check.
Returns:
Returns true if the value matches the given conditions.

setAntiAlias

public static void setAntiAlias(Graphics2D g,
                                boolean antiAlias,
                                boolean textAntiAlias)
Parameters:
g -
antiAlias -
textAntiAlias -

clearRect

public static void clearRect(Graphics2D g,
                             Rectangle rect,
                             Color background)
Clears the given area of the specified graphics object with the given color or makes the region transparent.


createBufferedImage

public static BufferedImage createBufferedImage(int w,
                                                int h,
                                                Color background)
Creates a buffered image for the given parameters. If there is not enough memory to create the image then a OutOfMemoryError is thrown.


loadImage

public static BufferedImage loadImage(String url)
Loads an image from the local filesystem, a data URI or any other URL.


createTable

public static Element createTable(Document document,
                                  String text,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  double scale,
                                  Map<String,Object> style)
Creates a table for the given text using the given document to create the DOM nodes. Returns the outermost table node.


createDocument

public static Document createDocument()
Deprecated. Use mxDomUtils.createDocument (Jan 2012)

Returns a new, empty DOM document.

Returns:
Returns a new DOM document.

createSvgDocument

public static Document createSvgDocument(int width,
                                         int height)
Deprecated. Use mxDomUtils.createSvgDocument(int, int) (Jan 2012)

Creates a new SVG document for the given width and height.


createVmlDocument

public static Document createVmlDocument()
Deprecated. Use mxDomUtils.createVmlDocument (Jan 2012)


createHtmlDocument

public static Document createHtmlDocument()
Deprecated. Use mxDomUtils.createHtmlDocument (Jan 2012)

Returns a document with a HTML node containing a HEAD and BODY node.


createHtmlDocument

public static String createHtmlDocument(Map<String,Object> style,
                                        String text)
Returns a new, empty DOM document.

Returns:
Returns a new DOM document.

createHtmlDocument

public static String createHtmlDocument(Map<String,Object> style,
                                        String text,
                                        double scale)
Returns a new, empty DOM document.

Returns:
Returns a new DOM document.

createHtmlDocument

public static String createHtmlDocument(Map<String,Object> style,
                                        String text,
                                        double scale,
                                        int width)
Returns a new, empty DOM document.

Returns:
Returns a new DOM document.

createHtmlDocument

public static String createHtmlDocument(Map<String,Object> style,
                                        String text,
                                        double scale,
                                        int width,
                                        String head)
Returns a new, empty DOM document. The head argument can be used to provide an optional HEAD section without the HEAD tags as follows:
 mxUtils.createHtmlDocument(style,  text, 1, 0, "")
 

Returns:
Returns a new DOM document.

createHtmlDocumentObject

public static HTMLDocument createHtmlDocumentObject(Map<String,Object> style,
                                                    double scale)
Returns a new, empty DOM document.

Returns:
Returns a new DOM document.

loadDocument

public static Document loadDocument(String uri)
Returns a new DOM document for the given URI.

Parameters:
uri - URI to parse into the document.
Returns:
Returns a new DOM document for the given URI.

parseXml

public static Document parseXml(String xml)
Deprecated. Use mxXmlUtils.parseXml (Jan 2012)

Returns a new document for the given XML string.

Parameters:
xml - String that represents the XML data.
Returns:
Returns a new XML document.

eval

public static Object eval(String expression)
Evaluates a Java expression as a class member using mxCodecRegistry. The range of supported expressions is limited to static class members such as mxEdgeStyle.ElbowConnector.


findNode

public static Node findNode(Node node,
                            String attr,
                            String value)
Returns the first node where attr equals value. This implementation does not use XPath.


selectSingleNode

public static Node selectSingleNode(Document doc,
                                    String expression)
Returns a single node that matches the given XPath expression.

Parameters:
doc - Document that contains the nodes.
expression - XPath expression to be matched.
Returns:
Returns a single node matching the given expression.

htmlEntities

public static String htmlEntities(String text)
Converts the ampersand, quote, prime, less-than and greater-than characters to their corresponding HTML entities in the given string.


getXml

public static String getXml(Node node)
Deprecated. Use mxXmlUtils.getXml(Node) (Jan 2012)

Returns a string that represents the given node.

Parameters:
node - Node to return the XML for.
Returns:
Returns an XML string.

getPrettyXml

public static String getPrettyXml(Node node)
Returns a pretty-printed XML string for the given node.

Parameters:
node - Node to return the XML for.
Returns:
Returns a formatted XML string.

getPrettyXml

public static String getPrettyXml(Node node,
                                  String tab,
                                  String indent)
Returns a pretty-printed XML string for the given node. Note that this string should only be used for humans to read (eg. debug output) but not for further processing as it does not use built-in mechanisms.

Parameters:
node - Node to return the XML for.
tab - String to be used for indentation of inner nodes.
indent - Current indentation for the node.
Returns:
Returns a formatted XML string.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxCellRenderer.html0000664000175000017500000006363412176166724026347 0ustar sylvestresylvestre mxCellRenderer (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxCellRenderer

java.lang.Object
  extended by com.mxgraph.util.mxCellRenderer

public class mxCellRenderer
extends Object


Nested Class Summary
static class mxCellRenderer.CanvasFactory
           
 
Method Summary
static BufferedImage createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip)
           
static BufferedImage createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas)
           
static Document createHtmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static Document createSvgDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static Document createVmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static mxICanvas drawCells(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)
          Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

drawCells

public static mxICanvas drawCells(mxGraph graph,
                                  Object[] cells,
                                  double scale,
                                  mxRectangle clip,
                                  mxCellRenderer.CanvasFactory factory)
Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.

Parameters:
graph - Graph to be painted onto the canvas.
Returns:
Returns the image that represents the canvas.

createBufferedImage

public static BufferedImage createBufferedImage(mxGraph graph,
                                                Object[] cells,
                                                double scale,
                                                Color background,
                                                boolean antiAlias,
                                                mxRectangle clip)

createBufferedImage

public static BufferedImage createBufferedImage(mxGraph graph,
                                                Object[] cells,
                                                double scale,
                                                Color background,
                                                boolean antiAlias,
                                                mxRectangle clip,
                                                mxGraphics2DCanvas graphicsCanvas)

createHtmlDocument

public static Document createHtmlDocument(mxGraph graph,
                                          Object[] cells,
                                          double scale,
                                          Color background,
                                          mxRectangle clip)

createSvgDocument

public static Document createSvgDocument(mxGraph graph,
                                         Object[] cells,
                                         double scale,
                                         Color background,
                                         mxRectangle clip)

createVmlDocument

public static Document createVmlDocument(mxGraph graph,
                                         Object[] cells,
                                         double scale,
                                         Color background,
                                         mxRectangle clip)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/package-tree.html0000664000175000017500000003065112176166726025757 0ustar sylvestresylvestre com.mxgraph.util Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.util

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxXmlUtils.html0000664000175000017500000003320012176166726025546 0ustar sylvestresylvestre mxXmlUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxXmlUtils

java.lang.Object
  extended by com.mxgraph.util.mxXmlUtils

public class mxXmlUtils
extends Object

Contains various XML helper methods for use with mxGraph.


Constructor Summary
mxXmlUtils()
           
 
Method Summary
static String getXml(Node node)
          Returns a string that represents the given node.
static Document parseXml(String xml)
          Returns a new document for the given XML string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxXmlUtils

public mxXmlUtils()
Method Detail

parseXml

public static Document parseXml(String xml)
Returns a new document for the given XML string.

Parameters:
xml - String that represents the XML data.
Returns:
Returns a new XML document.

getXml

public static String getXml(Node node)
Returns a string that represents the given node.

Parameters:
node - Node to return the XML for.
Returns:
Returns an XML string.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxHtmlColor.html0000664000175000017500000004367712176166724025711 0ustar sylvestresylvestre mxHtmlColor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxHtmlColor

java.lang.Object
  extended by com.mxgraph.util.mxHtmlColor

public class mxHtmlColor
extends Object

Contains various helper methods for use with mxGraph.


Field Summary
protected static HashMap<String,Color> htmlColors
          HTML color lookup table.
 
Constructor Summary
mxHtmlColor()
           
 
Method Summary
static String getHexColorString(Color color)
          Returns a hex representation for the given color.
static String hexString(Color color)
           
static Color parseColor(String str)
          Convert a string representing a 24/32bit hex color value into a Color object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

htmlColors

protected static HashMap<String,Color> htmlColors
HTML color lookup table. Supports the 147 CSS color names.

Constructor Detail

mxHtmlColor

public mxHtmlColor()
Method Detail

hexString

public static String hexString(Color color)

getHexColorString

public static String getHexColorString(Color color)
Returns a hex representation for the given color.

Parameters:
color - Color to return the hex string for.
Returns:
Returns a hex string for the given color.

parseColor

public static Color parseColor(String str)
                        throws NumberFormatException
Convert a string representing a 24/32bit hex color value into a Color object. All 147 CSS color names and none are also supported. None returns null. Examples of possible hex color values are: #C3D9FF, #6482B9 and #774400, but note that you do not include the "#" in the string passed in

Parameters:
str - the 24/32bit hex string value (ARGB)
Returns:
java.awt.Color (24bit RGB on JDK 1.1, 24/32bit ARGB on JDK1.2)
Throws:
NumberFormatException - if the specified string cannot be interpreted as a hexidecimal integer

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxEventObject.html0000664000175000017500000005127012176166724026202 0ustar sylvestresylvestre mxEventObject (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxEventObject

java.lang.Object
  extended by com.mxgraph.util.mxEventObject

public class mxEventObject
extends Object

Base class for objects that dispatch named events.


Field Summary
protected  boolean consumed
          Holds the consumed state of the event.
protected  String name
          Holds the name of the event.
protected  Map<String,Object> properties
          Holds the properties of the event.
 
Constructor Summary
mxEventObject(String name)
          Constructs a new event for the given name.
mxEventObject(String name, Object... args)
          Constructs a new event for the given name and properties.
 
Method Summary
 void consume()
          Consumes the event.
 String getName()
          Returns the name of the event.
 Map<String,Object> getProperties()
           
 Object getProperty(String key)
           
 boolean isConsumed()
          Returns true if the event has been consumed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
Holds the name of the event.


properties

protected Map<String,Object> properties
Holds the properties of the event.


consumed

protected boolean consumed
Holds the consumed state of the event. Default is false.

Constructor Detail

mxEventObject

public mxEventObject(String name)
Constructs a new event for the given name.


mxEventObject

public mxEventObject(String name,
                     Object... args)
Constructs a new event for the given name and properties. The optional properties are specified using a sequence of keys and values, eg. new mxEventObject("eventName", key1, val1, .., keyN, valN))

Method Detail

getName

public String getName()
Returns the name of the event.


getProperties

public Map<String,Object> getProperties()

getProperty

public Object getProperty(String key)

isConsumed

public boolean isConsumed()
Returns true if the event has been consumed.


consume

public void consume()
Consumes the event.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxEvent.html0000664000175000017500000017242712176166724025063 0ustar sylvestresylvestre mxEvent (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxEvent

java.lang.Object
  extended by com.mxgraph.util.mxEvent

public class mxEvent
extends Object

Contains all global constants.


Field Summary
static String ADD
           
static String ADD_CELLS
           
static String ADD_OVERLAY
           
static String AFTER_PAINT
           
static String ALIGN_CELLS
           
static String BEFORE_PAINT
           
static String BEFORE_UNDO
          Holds the name for the beforeUndo event.
static String BEGIN_UPDATE
          Holds the name for the beginUpdate event.
static String CELL_CONNECTED
           
static String CELLS_ADDED
           
static String CELLS_FOLDED
           
static String CELLS_MOVED
           
static String CELLS_ORDERED
           
static String CELLS_REMOVED
           
static String CELLS_RESIZED
           
static String CELLS_TOGGLED
           
static String CHANGE
          Holds the name for the change event.
static String CLEAR
           
static String CONNECT
           
static String CONNECT_CELL
           
static String CONTINUE
           
static String DONE
           
static String DOWN
           
static String END_UPDATE
          Holds the name for the endUpdate event.
static String EXECUTE
          Holds the name for the execute event.
static String FIRED
           
static String FLIP_EDGE
           
static String FOLD_CELLS
           
static String GROUP_CELLS
           
static String INSERT
           
static String LABEL_CHANGED
           
static String LAYOUT_CELLS
           
static String MARK
          Holds the name for the mark event, which fires after a cell has been marked.
static String MOVE_CELLS
           
static String NOTIFY
          Holds the name for the norify event.
static String ORDER_CELLS
           
static String PAINT
           
static String REDO
           
static String REMOVE_CELLS
           
static String REMOVE_CELLS_FROM_PARENT
           
static String REMOVE_OVERLAY
           
static String REPAINT
           
static String RESIZE_CELLS
           
static String ROOT
           
static String SCALE
           
static String SCALE_AND_TRANSLATE
           
static String SELECT
           
static String SPLIT_EDGE
           
static String START
           
static String START_EDITING
           
static String STOP
           
static String TOGGLE_CELLS
           
static String TRANSLATE
           
static String UNDO
           
static String UNGROUP_CELLS
           
static String UP
           
static String UPDATE_CELL_SIZE
           
 
Constructor Summary
mxEvent()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DONE

public static final String DONE
See Also:
Constant Field Values

ADD_CELLS

public static final String ADD_CELLS
See Also:
Constant Field Values

CELLS_ADDED

public static final String CELLS_ADDED
See Also:
Constant Field Values

ALIGN_CELLS

public static final String ALIGN_CELLS
See Also:
Constant Field Values

CONNECT_CELL

public static final String CONNECT_CELL
See Also:
Constant Field Values

CONNECT

public static final String CONNECT
See Also:
Constant Field Values

CELL_CONNECTED

public static final String CELL_CONNECTED
See Also:
Constant Field Values

FLIP_EDGE

public static final String FLIP_EDGE
See Also:
Constant Field Values

FOLD_CELLS

public static final String FOLD_CELLS
See Also:
Constant Field Values

CELLS_FOLDED

public static final String CELLS_FOLDED
See Also:
Constant Field Values

GROUP_CELLS

public static final String GROUP_CELLS
See Also:
Constant Field Values

UNGROUP_CELLS

public static final String UNGROUP_CELLS
See Also:
Constant Field Values

REMOVE_CELLS_FROM_PARENT

public static final String REMOVE_CELLS_FROM_PARENT
See Also:
Constant Field Values

MOVE_CELLS

public static final String MOVE_CELLS
See Also:
Constant Field Values

CELLS_MOVED

public static final String CELLS_MOVED
See Also:
Constant Field Values

ORDER_CELLS

public static final String ORDER_CELLS
See Also:
Constant Field Values

CELLS_ORDERED

public static final String CELLS_ORDERED
See Also:
Constant Field Values

REMOVE_CELLS

public static final String REMOVE_CELLS
See Also:
Constant Field Values

CELLS_REMOVED

public static final String CELLS_REMOVED
See Also:
Constant Field Values

REPAINT

public static final String REPAINT
See Also:
Constant Field Values

RESIZE_CELLS

public static final String RESIZE_CELLS
See Also:
Constant Field Values

CELLS_RESIZED

public static final String CELLS_RESIZED
See Also:
Constant Field Values

SPLIT_EDGE

public static final String SPLIT_EDGE
See Also:
Constant Field Values

TOGGLE_CELLS

public static final String TOGGLE_CELLS
See Also:
Constant Field Values

CELLS_TOGGLED

public static final String CELLS_TOGGLED
See Also:
Constant Field Values

UPDATE_CELL_SIZE

public static final String UPDATE_CELL_SIZE
See Also:
Constant Field Values

LABEL_CHANGED

public static final String LABEL_CHANGED
See Also:
Constant Field Values

ADD_OVERLAY

public static final String ADD_OVERLAY
See Also:
Constant Field Values

REMOVE_OVERLAY

public static final String REMOVE_OVERLAY
See Also:
Constant Field Values

BEFORE_PAINT

public static final String BEFORE_PAINT
See Also:
Constant Field Values

PAINT

public static final String PAINT
See Also:
Constant Field Values

AFTER_PAINT

public static final String AFTER_PAINT
See Also:
Constant Field Values

START_EDITING

public static final String START_EDITING
See Also:
Constant Field Values

UNDO

public static final String UNDO
See Also:
Constant Field Values

REDO

public static final String REDO
See Also:
Constant Field Values

UP

public static final String UP
See Also:
Constant Field Values

DOWN

public static final String DOWN
See Also:
Constant Field Values

SCALE

public static final String SCALE
See Also:
Constant Field Values

TRANSLATE

public static final String TRANSLATE
See Also:
Constant Field Values

SCALE_AND_TRANSLATE

public static final String SCALE_AND_TRANSLATE
See Also:
Constant Field Values

CHANGE

public static final String CHANGE
Holds the name for the change event. First and only argument in the argument array is the list of mxAtomicGraphChanges that have been executed on the model.

See Also:
Constant Field Values

EXECUTE

public static final String EXECUTE
Holds the name for the execute event. First and only argument in the argument array is the mxAtomicGraphChange that has been executed on the model. This event fires before the change event.

See Also:
Constant Field Values

BEFORE_UNDO

public static final String BEFORE_UNDO
Holds the name for the beforeUndo event. First and only argument in the argument array is the current edit that is currently in progress in the model. This event fires before notify is called on the currentEdit in the model.

See Also:
Constant Field Values

NOTIFY

public static final String NOTIFY
Holds the name for the norify event. First and only argument in the argument array is the list of mxAtomicGraphChanges that have been executed on the model. This event fires after the change event.

See Also:
Constant Field Values

BEGIN_UPDATE

public static final String BEGIN_UPDATE
Holds the name for the beginUpdate event. This event has no arguments and fires after the updateLevel has been changed in model.

See Also:
Constant Field Values

END_UPDATE

public static final String END_UPDATE
Holds the name for the endUpdate event. This event has no arguments and fires after the updateLevel has been changed in the model. First argument is the currentEdit.

See Also:
Constant Field Values

INSERT

public static final String INSERT
See Also:
Constant Field Values

ADD

public static final String ADD
See Also:
Constant Field Values

CLEAR

public static final String CLEAR
See Also:
Constant Field Values

FIRED

public static final String FIRED
See Also:
Constant Field Values

SELECT

public static final String SELECT
See Also:
Constant Field Values

MARK

public static String MARK
Holds the name for the mark event, which fires after a cell has been marked. First and only argument in the array is the cell state that has been marked or null, if no state has been marked. To add a mark listener to the cell marker: addListener( mxEvent.MARK, new mxEventListener() { public void invoke(Object source, Object[] args) { cellMarked((mxCellMarker) source, (mxCellState) args[0]); } });


ROOT

public static String ROOT

LAYOUT_CELLS

public static String LAYOUT_CELLS

START

public static String START

CONTINUE

public static String CONTINUE

STOP

public static String STOP
Constructor Detail

mxEvent

public mxEvent()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxImageBundle.html0000664000175000017500000004454312176166724026153 0ustar sylvestresylvestre mxImageBundle (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxImageBundle

java.lang.Object
  extended by com.mxgraph.util.mxImageBundle

public class mxImageBundle
extends Object

Maps from keys to base64 encoded images or file locations. All values must be URLs or use the format data:image/format followed by a comma and the base64 encoded image data, eg. "data:image/gif,XYZ", where XYZ is the base64 encoded image data. To add a new image bundle to an existing graph, the following code is used: mxImageBundle bundle = new mxImageBundle(); bundle.PutImage("myImage", "data:image/gif,R0lGODlhEAAQAMIGAAAAAICAAICAgP" + "//AOzp2O3r2////////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgAHACwAAAAA" + "EAAQAAADTXi63AowynnAMDfjPUDlnAAJhmeBFxAEloliKltWmiYCQvfVr6lBPB1ggxN1hi" + "laSSASFQpIV5HJBDyHpqK2ejVRm2AAgZCdmCGO9CIBADs="); graph.addImageBundle(bundle); The image can then be referenced in any cell style using image=myImage. If you are using mxOutline, you should use the same image bundles in the graph that renders the outline. To convert a given BufferedImage to a base64 encoded String, the following code can be used: ByteArrayOutputStream bos = new ByteArrayOutputStream(); ImageIO.write(image, "png", bos); System.out.println("base64=" + mxBase64.encodeToString( bos.toByteArray(), false)); The value is decoded in mxUtils.loadImage. The keys for images are resolved and the short format above is converted to a data URI in mxGraph.postProcessCellStyle.


Field Summary
protected  Map<String,String> images
          Maps from keys to images.
 
Constructor Summary
mxImageBundle()
           
 
Method Summary
 String getImage(String key)
          Returns the value for the given key.
 Map<String,String> getImages()
          Returns the images.
 void putImage(String key, String value)
          Adds the specified entry to the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

images

protected Map<String,String> images
Maps from keys to images.

Constructor Detail

mxImageBundle

public mxImageBundle()
Method Detail

getImages

public Map<String,String> getImages()
Returns the images.


putImage

public void putImage(String key,
                     String value)
Adds the specified entry to the map.


getImage

public String getImage(String key)
Returns the value for the given key.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxSpline1D.html0000664000175000017500000004524412176166726025417 0ustar sylvestresylvestre mxSpline1D (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxSpline1D

java.lang.Object
  extended by com.mxgraph.util.mxSpline1D

public class mxSpline1D
extends Object

One dimension of a spline curve


Field Summary
protected  double[] a
           
protected  double[] b
           
protected  double[] c
           
protected  double[] d
           
protected  double[] len
           
protected  double[] pos1D
           
 
Constructor Summary
mxSpline1D(double[] controlPointProportions, double[] positions1D)
          Creates a new Spline.
 
Method Summary
 double getDx(double x)
          Returns the first derivation at x.
 double getFastValue(double x)
          Returns an interpolated value.
 double getValue(double x)
          Returns an interpolated value.
 void setValues(double[] controlPointProportions, double[] positions1D)
          Set values for this Spline.
 void solve(double[][] A, double[] b)
          Solves Ax=b and stores the solution in b.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

len

protected double[] len

pos1D

protected double[] pos1D

a

protected double[] a

b

protected double[] b

c

protected double[] c

d

protected double[] d
Constructor Detail

mxSpline1D

public mxSpline1D(double[] controlPointProportions,
                  double[] positions1D)
Creates a new Spline.

Parameters:
controlPointProportions - the proportion along the curve, from 0->1 that each control point lies on
positions1D - the co-ordinate position in the current dimension that each control point lies on
Method Detail

setValues

public void setValues(double[] controlPointProportions,
                      double[] positions1D)
Set values for this Spline.

Parameters:
controlPointProportions - the proportion along the curve, from 0->1 that each control point lies on
positions1D - the co-ordinate position in the current dimension that each control point lies on

getValue

public double getValue(double x)
Returns an interpolated value.

Parameters:
x -
Returns:
the interpolated value

getFastValue

public double getFastValue(double x)
Returns an interpolated value. To be used when a long sequence of values are required in order, but ensure checkValues() is called beforehand to ensure the boundary checks from getValue() are made

Parameters:
x -
Returns:
the interpolated value

getDx

public double getDx(double x)
Returns the first derivation at x.

Parameters:
x -
Returns:
the first derivation at x

solve

public void solve(double[][] A,
                  double[] b)
Solves Ax=b and stores the solution in b.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxUndoableEdit.html0000664000175000017500000006145212176166726026336 0ustar sylvestresylvestre mxUndoableEdit (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxUndoableEdit

java.lang.Object
  extended by com.mxgraph.util.mxUndoableEdit

public class mxUndoableEdit
extends Object

Implements a 2-dimensional rectangle with double precision coordinates.


Nested Class Summary
static interface mxUndoableEdit.mxUndoableChange
          Defines the requirements for an undoable change.
 
Field Summary
protected  List<mxUndoableEdit.mxUndoableChange> changes
          Holds the list of changes that make up this undoable edit.
protected  boolean redone
          Specifies the state of the undoable edit.
protected  boolean significant
          Specifies this undoable edit is significant.
protected  Object source
          Holds the source of the undoable edit.
protected  boolean undone
          Specifies the state of the undoable edit.
 
Constructor Summary
mxUndoableEdit(Object source)
          Constructs a new undoable edit for the given source.
mxUndoableEdit(Object source, boolean significant)
          Constructs a new undoable edit for the given source.
 
Method Summary
 void add(mxUndoableEdit.mxUndoableChange change)
          Adds the specified change to this edit.
 void die()
          Hook to free resources after the edit has been removed from the command history.
 void dispatch()
          Hook to notify any listeners of the changes after an undo or redo has been carried out.
 List<mxUndoableEdit.mxUndoableChange> getChanges()
           
 Object getSource()
           
 boolean isEmpty()
          Returns true if the this edit contains no changes.
 boolean isRedone()
           
 boolean isSignificant()
           
 boolean isUndone()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Object source
Holds the source of the undoable edit.


changes

protected List<mxUndoableEdit.mxUndoableChange> changes
Holds the list of changes that make up this undoable edit.


significant

protected boolean significant
Specifies this undoable edit is significant. Default is true.


undone

protected boolean undone
Specifies the state of the undoable edit.


redone

protected boolean redone
Specifies the state of the undoable edit.

Constructor Detail

mxUndoableEdit

public mxUndoableEdit(Object source)
Constructs a new undoable edit for the given source.


mxUndoableEdit

public mxUndoableEdit(Object source,
                      boolean significant)
Constructs a new undoable edit for the given source.

Method Detail

dispatch

public void dispatch()
Hook to notify any listeners of the changes after an undo or redo has been carried out. This implementation is empty.


die

public void die()
Hook to free resources after the edit has been removed from the command history. This implementation is empty.


getSource

public Object getSource()
Returns:
the source

getChanges

public List<mxUndoableEdit.mxUndoableChange> getChanges()
Returns:
the changes

isSignificant

public boolean isSignificant()
Returns:
the significant

isUndone

public boolean isUndone()
Returns:
the undone

isRedone

public boolean isRedone()
Returns:
the redone

isEmpty

public boolean isEmpty()
Returns true if the this edit contains no changes.


add

public void add(mxUndoableEdit.mxUndoableChange change)
Adds the specified change to this edit. The change is an object that is expected to either have an undo and redo, or an execute function.


undo

public void undo()

redo

public void redo()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxCurve.html0000664000175000017500000015522312176166724025061 0ustar sylvestresylvestre mxCurve (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxCurve

java.lang.Object
  extended by com.mxgraph.util.mxCurve

public class mxCurve
extends Object


Field Summary
static String CORE_CURVE
          Defines the key for the central curve index
protected  Map<String,Double> curveLengths
          The curve lengths of the curves
 List<mxPoint> guidePoints
          The points this curve is drawn through.
protected  Map<String,double[]> intervals
          An array of arrays of intervals.
static mxLine INVALID_POSITION
          Indicates that an invalid position on a curve was requested
static String LABEL_CURVE
          Defines the key for the label curve index
protected  double labelBuffer
          Offset of the label curve from the curve the label curve is based on.
protected  double maxXBounds
           
protected  double maxYBounds
           
protected  double minXBounds
           
protected  double minYBounds
           
protected  Map<String,mxPoint[]> points
          A collection of arrays of curve points
protected  boolean valid
          Whether or not the curve currently holds valid values
 
Constructor Summary
mxCurve()
           
mxCurve(List<mxPoint> points)
           
 
Method Summary
 mxPoint collisionMove(String index, mxRectangle rect, double buffer)
          Returns a point to move the input rectangle to, in order to attempt to place the rectangle away from the curve.
protected  void createCoreCurve()
          Creates the core curve that is based on the guide points passed into this class instance
protected  void createLabelCurve()
           
protected  mxPoint[] getBaseLabelCurve()
          Returns the curve the label curve is too be based on
 mxRectangle getBounds()
           
 double getCurveLength(String index)
           
 mxLine getCurveParallel(String index, double distance)
          Returns a unit vector parallel to the curve at the specified distance along the curve.
 mxPoint[] getCurvePoints(String index)
          Obtains the points that make up the curve for the specified curve index.
 mxPoint[] getCurveSection(String index, double start, double end)
          Returns a section of the curve as an array of points
 List<mxPoint> getGuidePoints()
           
 double[] getIntervals(String index)
           
protected  int getLowerIndexOfSegment(String index, double distance)
          Calculates the index of the lower point on the segment that contains the point distance along the
 mxRectangle getRelativeFromAbsPoint(mxPoint absPoint, String index)
          Calculates the position of an absolute in terms relative to this curve.
protected  mxPoint intersectRectPerimeterPoint(String curveIndex, mxRectangle rect, int indexSeg)
          Returns the point at which this curve segment intersects the boundary of the given rectangle, if it does so.
protected  int intersectRectPerimeterSeg(String index, mxRectangle rect)
          Utility method to determine within which segment the specified rectangle intersects the specified curve
protected  int intersectRectPerimeterSeg(String index, mxRectangle rect, int startSegment)
          Utility method to determine within which segment the specified rectangle intersects the specified curve.
 boolean intersectsRect(Rectangle rect)
          Returns whether or not the rectangle passed in hits any part of this curve.
 mxPoint intersectsRectPerimeter(String index, mxRectangle rect)
          Returns the point at which this curve intersects the boundary of the given rectangle, if it does so.
 double intersectsRectPerimeterDist(String index, mxRectangle rect)
          Returns the distance from the start of the curve at which this curve intersects the boundary of the given rectangle, if it does so.
 boolean isLabelReversed()
          Whether or not the label curve starts from the end target and traces to the start of the branch
protected  void populateIntervals(String index)
           
 void setLabelBuffer(double buffer)
           
protected  void updateBounds(double pointX, double pointY)
          Updates the total bounds of this curve, increasing any dimensions, if necessary, to fit in the specified point
 void updateCurve(List<mxPoint> newPoints)
          Updates the existing curve using the points passed in.
protected  boolean validateCurve()
          Method must be called before any attempt to access curve information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

protected Map<String,mxPoint[]> points
A collection of arrays of curve points


minXBounds

protected double minXBounds

maxXBounds

protected double maxXBounds

minYBounds

protected double minYBounds

maxYBounds

protected double maxYBounds

intervals

protected Map<String,double[]> intervals
An array of arrays of intervals. These intervals define the distance along the edge (0 to 1) that each point lies


curveLengths

protected Map<String,Double> curveLengths
The curve lengths of the curves


CORE_CURVE

public static String CORE_CURVE
Defines the key for the central curve index


LABEL_CURVE

public static String LABEL_CURVE
Defines the key for the label curve index


INVALID_POSITION

public static mxLine INVALID_POSITION
Indicates that an invalid position on a curve was requested


labelBuffer

protected double labelBuffer
Offset of the label curve from the curve the label curve is based on. If you wish to set this value, do so directly after creation of the curve. The first time the curve is used the label curve will be created with whatever value is contained in this variable. Changes to it after that point will have no effect.


guidePoints

public List<mxPoint> guidePoints
The points this curve is drawn through. These are typically control points and are at distances from each other that straight lines between them do not describe a smooth curve. This class takes these guiding points and creates a finer set of internal points that visually appears to be a curve when linked by straight lines


valid

protected boolean valid
Whether or not the curve currently holds valid values

Constructor Detail

mxCurve

public mxCurve()

mxCurve

public mxCurve(List<mxPoint> points)
Method Detail

setLabelBuffer

public void setLabelBuffer(double buffer)

getBounds

public mxRectangle getBounds()

getLowerIndexOfSegment

protected int getLowerIndexOfSegment(String index,
                                     double distance)
Calculates the index of the lower point on the segment that contains the point distance along the


getCurveParallel

public mxLine getCurveParallel(String index,
                               double distance)
Returns a unit vector parallel to the curve at the specified distance along the curve. To obtain the angle the vector makes with (1,0) perform Math.atan(segVectorY/segVectorX).

Parameters:
index - the curve index specifying the curve to analyse
distance - the distance from start to end of curve (0.0...1.0)
Returns:
a unit vector at the specified point on the curve represented as a line, parallel with the curve. If the distance or curve is invalid, mxCurve.INVALID_POSITION is returned

getCurveSection

public mxPoint[] getCurveSection(String index,
                                 double start,
                                 double end)
Returns a section of the curve as an array of points

Parameters:
index - the curve index specifying the curve to analyse
start - the start position of the curve segment (0.0...1.0)
end - the end position of the curve segment (0.0...1.0)
Returns:
a sequence of point representing the curve section or null if it cannot be calculated

intersectsRect

public boolean intersectsRect(Rectangle rect)
Returns whether or not the rectangle passed in hits any part of this curve.

Parameters:
rect - the rectangle to detect for a hit
Returns:
whether or not the rectangle hits this curve

intersectsRectPerimeter

public mxPoint intersectsRectPerimeter(String index,
                                       mxRectangle rect)
Returns the point at which this curve intersects the boundary of the given rectangle, if it does so. If it does not intersect, null is returned. If it intersects multiple times, the first intersection from the start end of the curve is returned.

Parameters:
index - the curve index specifying the curve to analyse
rect - the whose boundary is to be tested for intersection with this curve
Returns:
the point at which this curve intersects the boundary of the given rectangle, if it does so. If it does not intersect, null is returned.

intersectsRectPerimeterDist

public double intersectsRectPerimeterDist(String index,
                                          mxRectangle rect)
Returns the distance from the start of the curve at which this curve intersects the boundary of the given rectangle, if it does so. If it does not intersect, -1 is returned. If it intersects multiple times, the first intersection from the start end of the curve is returned.

Parameters:
index - the curve index specifying the curve to analyse
rect - the whose boundary is to be tested for intersection with this curve
Returns:
the distance along the curve from the start at which the intersection occurs

collisionMove

public mxPoint collisionMove(String index,
                             mxRectangle rect,
                             double buffer)
Returns a point to move the input rectangle to, in order to attempt to place the rectangle away from the curve. NOTE: Curves are scaled, the input rectangle should be also.

Parameters:
index - the curve index specifying the curve to analyse
rect - the rectangle that is to be moved
buffer - the amount by which the rectangle is to be moved, beyond the dimensions of the rect
Returns:
the point to move the top left of the input rect to , otherwise null if no point can be determined

intersectRectPerimeterSeg

protected int intersectRectPerimeterSeg(String index,
                                        mxRectangle rect)
Utility method to determine within which segment the specified rectangle intersects the specified curve

Parameters:
index - the curve index specifying the curve to analyse
rect - the whose boundary is to be tested for intersection with this curve
Returns:
the point at which this curve intersects the boundary of the given rectangle, if it does so. If it does not intersect, -1 is returned

intersectRectPerimeterSeg

protected int intersectRectPerimeterSeg(String index,
                                        mxRectangle rect,
                                        int startSegment)
Utility method to determine within which segment the specified rectangle intersects the specified curve. This method specifies which segment to start searching at.

Parameters:
index - the curve index specifying the curve to analyse
rect - the whose boundary is to be tested for intersection with this curve
startSegment - the segment to start searching at. To start at the beginning of the curve, use 1, not 0.
Returns:
the point at which this curve intersects the boundary of the given rectangle, if it does so. If it does not intersect, -1 is returned

intersectRectPerimeterPoint

protected mxPoint intersectRectPerimeterPoint(String curveIndex,
                                              mxRectangle rect,
                                              int indexSeg)
Returns the point at which this curve segment intersects the boundary of the given rectangle, if it does so. If it does not intersect, null is returned.

Parameters:
curveIndex - the curve index specifying the curve to analyse
rect - the whose boundary is to be tested for intersection with this curve
indexSeg - the segments on this curve being checked
Returns:
the point at which this curve segment intersects the boundary of the given rectangle, if it does so. If it does not intersect, null is returned.

getRelativeFromAbsPoint

public mxRectangle getRelativeFromAbsPoint(mxPoint absPoint,
                                           String index)
Calculates the position of an absolute in terms relative to this curve.

Parameters:
absPoint - the point whose relative point is to calculated
index - the index of the curve whom the relative position is to be calculated from
Returns:
an mxRectangle where the x is the distance along the curve (0 to 1), y is the orthogonal offset from the closest segment on the curve and (width, height) is an additional Cartesian offset applied after the other calculations

createCoreCurve

protected void createCoreCurve()
Creates the core curve that is based on the guide points passed into this class instance


isLabelReversed

public boolean isLabelReversed()
Whether or not the label curve starts from the end target and traces to the start of the branch

Returns:
whether the label curve is reversed

createLabelCurve

protected void createLabelCurve()

getBaseLabelCurve

protected mxPoint[] getBaseLabelCurve()
Returns the curve the label curve is too be based on


populateIntervals

protected void populateIntervals(String index)

updateCurve

public void updateCurve(List<mxPoint> newPoints)
Updates the existing curve using the points passed in.

Parameters:
newPoints - the new guide points

getCurvePoints

public mxPoint[] getCurvePoints(String index)
Obtains the points that make up the curve for the specified curve index. If that curve, or the core curve that other curves are based on have not yet been created, then they are lazily created. If creation is impossible, null is returned

Parameters:
index - the key specifying the curve
Returns:
the points making up that curve, or null

getIntervals

public double[] getIntervals(String index)

getCurveLength

public double getCurveLength(String index)

validateCurve

protected boolean validateCurve()
Method must be called before any attempt to access curve information

Returns:
whether or not the curve may be used

updateBounds

protected void updateBounds(double pointX,
                            double pointY)
Updates the total bounds of this curve, increasing any dimensions, if necessary, to fit in the specified point


getGuidePoints

public List<mxPoint> getGuidePoints()
Returns:
the guidePoints

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/util/mxCellRenderer.CanvasFactory.html0000664000175000017500000003136112176166724031101 0ustar sylvestresylvestre mxCellRenderer.CanvasFactory (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.util
Class mxCellRenderer.CanvasFactory

java.lang.Object
  extended by com.mxgraph.util.mxCellRenderer.CanvasFactory
Enclosing class:
mxCellRenderer

public abstract static class mxCellRenderer.CanvasFactory
extends Object


Constructor Summary
mxCellRenderer.CanvasFactory()
           
 
Method Summary
abstract  mxICanvas createCanvas(int width, int height)
          Separates the creation of the canvas from its initialization, when the size of the required graphics buffer / document / container is known.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxCellRenderer.CanvasFactory

public mxCellRenderer.CanvasFactory()
Method Detail

createCanvas

public abstract mxICanvas createCanvas(int width,
                                       int height)
Separates the creation of the canvas from its initialization, when the size of the required graphics buffer / document / container is known.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/0000775000175000017500000000000012176166726023212 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html0000664000175000017500000002262412176166722033402 0ustar sylvestresylvestre mxSharedState.mxDiagramChangeListener (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.sharing
Interface mxSharedState.mxDiagramChangeListener

All Known Implementing Classes:
mxSession
Enclosing class:
mxSharedState

public static interface mxSharedState.mxDiagramChangeListener

Defines the requirements for an object that listens to changes on the shared diagram.


Method Summary
 void diagramChanged(Object sender, String edits)
          Fires when the shared diagram was changed.
 

Method Detail

diagramChanged

void diagramChanged(Object sender,
                    String edits)
Fires when the shared diagram was changed.

Parameters:
sender - Session where the change was received from.
edits - String that represents the edits.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/mxSharedState.html0000664000175000017500000006746512176166722026672 0ustar sylvestresylvestre mxSharedState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.sharing
Class mxSharedState

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.sharing.mxSharedState
Direct Known Subclasses:
mxSharedGraphModel

public class mxSharedState
extends mxEventSource

Implements a diagram that may be shared among multiple sessions. This implementation is based only on string, it does not have a model instance. The diagram is represented by its initial state and the sequence of edits as applied to the diagram.


Nested Class Summary
static interface mxSharedState.mxDiagramChangeListener
          Defines the requirements for an object that listens to changes on the shared diagram.
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  StringBuffer delta
          Holds the history of all changes of initial state.
protected  List<mxSharedState.mxDiagramChangeListener> diagramChangeListeners
          Holds a list of diagram change listeners.
protected  String state
          Holds the initial state of the diagram.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxSharedState(String state)
          Constructs a new diagram with the given state.
 
Method Summary
 void addDelta(String xml)
           
 void addDiagramChangeListener(mxSharedState.mxDiagramChangeListener listener)
          Adds the given listener to the list of diagram change listeners.
 String getDelta()
          Returns the history of all changes as a string.
 String getState()
          Returns the initial state of the diagram.
 void processDelta(Object sender, Node delta)
          Appends the given string to the history and dispatches the change to all sessions that are listening to this shared diagram.
protected  String processEdit(Node node)
           
 void removeDiagramChangeListener(mxSharedState.mxDiagramChangeListener listener)
          Removes the given listener from the list of diagram change listeners.
 void resetDelta()
          Clears the history of all changes.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diagramChangeListeners

protected List<mxSharedState.mxDiagramChangeListener> diagramChangeListeners
Holds a list of diagram change listeners.


state

protected String state
Holds the initial state of the diagram.


delta

protected StringBuffer delta
Holds the history of all changes of initial state.

Constructor Detail

mxSharedState

public mxSharedState(String state)
Constructs a new diagram with the given state.

Parameters:
state - Initial state of the diagram.
Method Detail

getState

public String getState()
Returns the initial state of the diagram.


getDelta

public String getDelta()
Returns the history of all changes as a string.


processDelta

public void processDelta(Object sender,
                         Node delta)
Appends the given string to the history and dispatches the change to all sessions that are listening to this shared diagram.

Parameters:
sender - Session where the change originated from.
delta - XML that represents the change.

processEdit

protected String processEdit(Node node)

addDelta

public void addDelta(String xml)

resetDelta

public void resetDelta()
Clears the history of all changes.


addDiagramChangeListener

public void addDiagramChangeListener(mxSharedState.mxDiagramChangeListener listener)
Adds the given listener to the list of diagram change listeners.

Parameters:
listener - Diagram change listener to be added.

removeDiagramChangeListener

public void removeDiagramChangeListener(mxSharedState.mxDiagramChangeListener listener)
Removes the given listener from the list of diagram change listeners.

Parameters:
listener - Diagram change listener to be removed.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/class-use/0000775000175000017500000000000012176166726025111 5ustar sylvestresylvestre././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/class-use/mxSharedState.mxDiagramChangeListener.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/class-use/mxSharedState.mxDiagramChangeListener0000664000175000017500000002615612176166726034346 0ustar sylvestresylvestre Uses of Interface com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener

Packages that use mxSharedState.mxDiagramChangeListener
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Uses of mxSharedState.mxDiagramChangeListener in com.mxgraph.sharing
 

Classes in com.mxgraph.sharing that implement mxSharedState.mxDiagramChangeListener
 class mxSession
          Implements a session that may be attached to a shared diagram.
 

Fields in com.mxgraph.sharing with type parameters of type mxSharedState.mxDiagramChangeListener
protected  List<mxSharedState.mxDiagramChangeListener> mxSharedState.diagramChangeListeners
          Holds a list of diagram change listeners.
 

Methods in com.mxgraph.sharing with parameters of type mxSharedState.mxDiagramChangeListener
 void mxSharedState.addDiagramChangeListener(mxSharedState.mxDiagramChangeListener listener)
          Adds the given listener to the list of diagram change listeners.
 void mxSharedState.removeDiagramChangeListener(mxSharedState.mxDiagramChangeListener listener)
          Removes the given listener from the list of diagram change listeners.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/class-use/mxSharedState.html0000664000175000017500000002321712176166726030560 0ustar sylvestresylvestre Uses of Class com.mxgraph.sharing.mxSharedState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.sharing.mxSharedState

Packages that use mxSharedState
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Uses of mxSharedState in com.mxgraph.sharing
 

Subclasses of mxSharedState in com.mxgraph.sharing
 class mxSharedGraphModel
          Implements a diagram that may be shared among multiple sessions.
 

Fields in com.mxgraph.sharing declared as mxSharedState
protected  mxSharedState mxSession.diagram
          Reference to the shared diagram.
 

Constructors in com.mxgraph.sharing with parameters of type mxSharedState
mxSession(String id, mxSharedState diagram)
          Constructs a new session with the given ID.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/class-use/mxSession.html0000664000175000017500000001361612176166726027776 0ustar sylvestresylvestre Uses of Class com.mxgraph.sharing.mxSession (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.sharing.mxSession

No usage of com.mxgraph.sharing.mxSession


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/class-use/mxSharedGraphModel.html0000664000175000017500000001375012176166726031523 0ustar sylvestresylvestre Uses of Class com.mxgraph.sharing.mxSharedGraphModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.sharing.mxSharedGraphModel

No usage of com.mxgraph.sharing.mxSharedGraphModel


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/package-frame.html0000664000175000017500000000270312176166726026565 0ustar sylvestresylvestre com.mxgraph.sharing (JGraph X 2.1.0.7 API Specification) com.mxgraph.sharing
Interfaces 
mxSharedState.mxDiagramChangeListener
Classes 
mxSession
mxSharedGraphModel
mxSharedState
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/mxSession.html0000664000175000017500000006575112176166722026102 0ustar sylvestresylvestre mxSession (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.sharing
Class mxSession

java.lang.Object
  extended by com.mxgraph.sharing.mxSession
All Implemented Interfaces:
mxSharedState.mxDiagramChangeListener

public class mxSession
extends Object
implements mxSharedState.mxDiagramChangeListener

Implements a session that may be attached to a shared diagram. The session contains a synchronized buffer which is used to hold the pending edits which are to be sent to a specific client. The update mechnism between the server and the client uses HTTP requests (polling). The request is kept on the server for an amount of time or wakes up / returns immediately if the buffer is no longer empty.


Field Summary
protected  StringBuffer buffer
          Holds the send buffer for this session.
static int DEFAULT_TIMEOUT
          Default timeout is 10000 ms.
protected  mxSharedState diagram
          Reference to the shared diagram.
protected  String id
          Holds the session ID.
protected  long lastTimeMillis
          Holds the last active time millis.
 
Constructor Summary
mxSession(String id, mxSharedState diagram)
          Constructs a new session with the given ID.
 
Method Summary
 void destroy()
          Destroys the session and removes its listener from the shared diagram.
 void diagramChanged(Object sender, String edits)
          Fires when the shared diagram was changed.
 String getId()
          Returns the session ID.
 String getInitialMessage()
          Returns an XML string that represents the current state of the session and the shared diagram.
 long inactiveTimeMillis()
          Returns the number of milliseconds this session has been inactive.
 String init()
          Initializes the session buffer and returns a string that represents the state of the session.
 String poll()
          Returns the changes received by other sessions for the shared diagram.
 String poll(long timeout)
          Returns the changes received by other sessions for the shared diagram.
 void receive(Node message)
          Posts the change represented by the given XML string to the shared diagram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static int DEFAULT_TIMEOUT
Default timeout is 10000 ms.


id

protected String id
Holds the session ID.


diagram

protected mxSharedState diagram
Reference to the shared diagram.


buffer

protected StringBuffer buffer
Holds the send buffer for this session.


lastTimeMillis

protected long lastTimeMillis
Holds the last active time millis.

Constructor Detail

mxSession

public mxSession(String id,
                 mxSharedState diagram)
Constructs a new session with the given ID.

Parameters:
id - Specifies the session ID to be used.
diagram - Reference to the shared diagram.
Method Detail

getId

public String getId()
Returns the session ID.


init

public String init()
Initializes the session buffer and returns a string that represents the state of the session.

Returns:
Returns the initial state of the session.

getInitialMessage

public String getInitialMessage()
Returns an XML string that represents the current state of the session and the shared diagram. A globally unique ID is used as the session's namespace, which is used on the client side to prefix IDs of newly created cells.


receive

public void receive(Node message)
Posts the change represented by the given XML string to the shared diagram.

Parameters:
message - XML that represents the change.

poll

public String poll()
            throws InterruptedException
Returns the changes received by other sessions for the shared diagram. The method returns an empty XML node if no change was received within 10 seconds.

Returns:
Returns a string representing the changes to the shared diagram.
Throws:
InterruptedException

poll

public String poll(long timeout)
            throws InterruptedException
Returns the changes received by other sessions for the shared diagram. The method returns an empty XML node if no change was received within the given timeout.

Parameters:
timeout - Time in milliseconds to wait for changes.
Returns:
Returns a string representing the changes to the shared diagram.
Throws:
InterruptedException

diagramChanged

public void diagramChanged(Object sender,
                           String edits)
Description copied from interface: mxSharedState.mxDiagramChangeListener
Fires when the shared diagram was changed.

Specified by:
diagramChanged in interface mxSharedState.mxDiagramChangeListener
Parameters:
sender - Session where the change was received from.
edits - String that represents the edits.

inactiveTimeMillis

public long inactiveTimeMillis()
Returns the number of milliseconds this session has been inactive.


destroy

public void destroy()
Destroys the session and removes its listener from the shared diagram.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/package-summary.html0000664000175000017500000001745012176166726027175 0ustar sylvestresylvestre com.mxgraph.sharing (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.sharing

This package contains all classes required for concurrent diagram editing by multiple clients.

See:
          Description

Interface Summary
mxSharedState.mxDiagramChangeListener Defines the requirements for an object that listens to changes on the shared diagram.
 

Class Summary
mxSession Implements a session that may be attached to a shared diagram.
mxSharedGraphModel Implements a diagram that may be shared among multiple sessions.
mxSharedState Implements a diagram that may be shared among multiple sessions.
 

Package com.mxgraph.sharing Description

This package contains all classes required for concurrent diagram editing by multiple clients.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/package-use.html0000664000175000017500000001626612176166726026300 0ustar sylvestresylvestre Uses of Package com.mxgraph.sharing (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.sharing

Packages that use com.mxgraph.sharing
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Classes in com.mxgraph.sharing used by com.mxgraph.sharing
mxSharedState
          Implements a diagram that may be shared among multiple sessions.
mxSharedState.mxDiagramChangeListener
          Defines the requirements for an object that listens to changes on the shared diagram.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/mxSharedGraphModel.html0000664000175000017500000007417312176166722027626 0ustar sylvestresylvestre mxSharedGraphModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.sharing
Class mxSharedGraphModel

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.sharing.mxSharedState
          extended by com.mxgraph.sharing.mxSharedGraphModel

public class mxSharedGraphModel
extends mxSharedState

Implements a diagram that may be shared among multiple sessions.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.sharing.mxSharedState
mxSharedState.mxDiagramChangeListener
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  mxCodec codec
           
protected  mxGraphModel model
           
protected  boolean significantRemoteChanges
          Whether remote changes should be significant in the local command history.
 
Fields inherited from class com.mxgraph.sharing.mxSharedState
delta, diagramChangeListeners, state
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxSharedGraphModel(mxGraphModel model)
          Constructs a new diagram with the given model.
 
Method Summary
 void addDelta(String edits)
           
 void cellRemoved(Object cell)
          Adds removed cells to the codec object lookup for references to the removed cells after this point in time.
protected  mxUndoableEdit createUndoableEdit(mxIGraphModel.mxAtomicGraphModelChange[] changes)
          Creates a new mxUndoableEdit that implements the notify function to fire a change and notify event via the model.
protected  mxIGraphModel.mxAtomicGraphModelChange[] decodeChanges(Node node)
          Adds removed cells to the codec object lookup for references to the removed cells after this point in time.
 mxGraphModel getModel()
           
 String getState()
          Returns the initial state of the diagram.
 boolean isSignificantRemoteChanges()
           
protected  String processEdit(Node node)
           
 void setSignificantRemoteChanges(boolean significantRemoteChanges)
           
 
Methods inherited from class com.mxgraph.sharing.mxSharedState
addDiagramChangeListener, getDelta, processDelta, removeDiagramChangeListener, resetDelta
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected mxGraphModel model

codec

protected mxCodec codec

significantRemoteChanges

protected boolean significantRemoteChanges
Whether remote changes should be significant in the local command history. Default is true.

Constructor Detail

mxSharedGraphModel

public mxSharedGraphModel(mxGraphModel model)
Constructs a new diagram with the given model.

Parameters:
model - Initial model of the diagram.
Method Detail

getModel

public mxGraphModel getModel()
Returns:
the model

isSignificantRemoteChanges

public boolean isSignificantRemoteChanges()
Returns:
the significantRemoteChanges

setSignificantRemoteChanges

public void setSignificantRemoteChanges(boolean significantRemoteChanges)
Parameters:
significantRemoteChanges - the significantRemoteChanges to set

getState

public String getState()
Returns the initial state of the diagram.

Overrides:
getState in class mxSharedState

addDelta

public void addDelta(String edits)
Overrides:
addDelta in class mxSharedState

processEdit

protected String processEdit(Node node)
Overrides:
processEdit in class mxSharedState

createUndoableEdit

protected mxUndoableEdit createUndoableEdit(mxIGraphModel.mxAtomicGraphModelChange[] changes)
Creates a new mxUndoableEdit that implements the notify function to fire a change and notify event via the model.


decodeChanges

protected mxIGraphModel.mxAtomicGraphModelChange[] decodeChanges(Node node)
Adds removed cells to the codec object lookup for references to the removed cells after this point in time.


cellRemoved

public void cellRemoved(Object cell)
Adds removed cells to the codec object lookup for references to the removed cells after this point in time.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/sharing/package-tree.html0000664000175000017500000001620212176166726026431 0ustar sylvestresylvestre com.mxgraph.sharing Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.sharing

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/0000775000175000017500000000000012176166726022657 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxIMarker.html0000664000175000017500000002330512176166722025443 0ustar sylvestresylvestre mxIMarker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Interface mxIMarker


public interface mxIMarker


Method Summary
 mxPoint paintMarker(mxGraphics2DCanvas canvas, mxCellState state, String type, mxPoint pe, double nx, double ny, double size, boolean source)
           
 

Method Detail

paintMarker

mxPoint paintMarker(mxGraphics2DCanvas canvas,
                    mxCellState state,
                    String type,
                    mxPoint pe,
                    double nx,
                    double ny,
                    double size,
                    boolean source)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxTriangleShape.html0000664000175000017500000003522312176166722026641 0ustar sylvestresylvestre mxTriangleShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxTriangleShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxTriangleShape
All Implemented Interfaces:
mxIShape

public class mxTriangleShape
extends mxBasicShape


Constructor Summary
mxTriangleShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxTriangleShape

public mxTriangleShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxLineShape.html0000664000175000017500000004014712176166722025764 0ustar sylvestresylvestre mxLineShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxLineShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxLineShape
All Implemented Interfaces:
mxIShape

public class mxLineShape
extends mxBasicShape


Constructor Summary
mxLineShape()
           
 
Method Summary
 mxPoint[] createPoints(mxGraphics2DCanvas canvas, mxCellState state)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxLineShape

public mxLineShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

createPoints

public mxPoint[] createPoints(mxGraphics2DCanvas canvas,
                              mxCellState state)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxCurveLabelShape.LabelGlyphCache.html0000664000175000017500000004160612176166722032070 0ustar sylvestresylvestre mxCurveLabelShape.LabelGlyphCache (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxCurveLabelShape.LabelGlyphCache

java.lang.Object
  extended by com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache
Enclosing class:
mxCurveLabelShape

public class mxCurveLabelShape.LabelGlyphCache
extends Object

Utility class to describe the characteristics of each glyph of a branch branch label. Each instance represents one glyph


Field Summary
 mxRectangle drawingBounds
          The un-rotated rectangle that just bounds this character
 String glyph
          The glyph being drawn
 mxLine glyphGeometry
          A line parallel to the curve segment at which the element is to be drawn
 Shape glyphShape
          The cached shape of the glyph
 mxRectangle labelGlyphBounds
          Cache of the bounds of the individual element of the label of this edge.
 boolean visible
          Whether or not the glyph should be drawn
 
Constructor Summary
mxCurveLabelShape.LabelGlyphCache()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

labelGlyphBounds

public mxRectangle labelGlyphBounds
Cache of the bounds of the individual element of the label of this edge. Note that these are the unrotated values used to determine the width of each glyph.


drawingBounds

public mxRectangle drawingBounds
The un-rotated rectangle that just bounds this character


glyph

public String glyph
The glyph being drawn


glyphGeometry

public mxLine glyphGeometry
A line parallel to the curve segment at which the element is to be drawn


glyphShape

public Shape glyphShape
The cached shape of the glyph


visible

public boolean visible
Whether or not the glyph should be drawn

Constructor Detail

mxCurveLabelShape.LabelGlyphCache

public mxCurveLabelShape.LabelGlyphCache()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxLabelShape.html0000664000175000017500000005754612176166722026127 0ustar sylvestresylvestre mxLabelShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxLabelShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxRectangleShape
          extended by com.mxgraph.shape.mxImageShape
              extended by com.mxgraph.shape.mxLabelShape
All Implemented Interfaces:
mxIShape

public class mxLabelShape
extends mxImageShape


Constructor Summary
mxLabelShape()
           
 
Method Summary
static void drawGlassEffect(mxGraphics2DCanvas canvas, mxCellState state)
          Draws the glass effect
 Color getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Rectangle getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxImageShape
getImageForStyle
 
Methods inherited from class com.mxgraph.shape.mxRectangleShape
getArcSize
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getGradientBounds, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxLabelShape

public mxLabelShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxImageShape

drawGlassEffect

public static void drawGlassEffect(mxGraphics2DCanvas canvas,
                                   mxCellState state)
Draws the glass effect


getImageBounds

public Rectangle getImageBounds(mxGraphics2DCanvas canvas,
                                mxCellState state)
Overrides:
getImageBounds in class mxImageShape

getFillColor

public Color getFillColor(mxGraphics2DCanvas canvas,
                          mxCellState state)
Overrides:
getFillColor in class mxImageShape

getStrokeColor

public Color getStrokeColor(mxGraphics2DCanvas canvas,
                            mxCellState state)
Overrides:
getStrokeColor in class mxImageShape

hasGradient

public boolean hasGradient(mxGraphics2DCanvas canvas,
                           mxCellState state)
Overrides:
hasGradient in class mxImageShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxImageShape.html0000664000175000017500000005622712176166722026125 0ustar sylvestresylvestre mxImageShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxImageShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxRectangleShape
          extended by com.mxgraph.shape.mxImageShape
All Implemented Interfaces:
mxIShape
Direct Known Subclasses:
mxLabelShape

public class mxImageShape
extends mxRectangleShape

A rectangular shape that contains a single image


Constructor Summary
mxImageShape()
           
 
Method Summary
 Color getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Rectangle getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 String getImageForStyle(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxRectangleShape
getArcSize
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getGradientBounds, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxImageShape

public mxImageShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxRectangleShape

getImageBounds

public Rectangle getImageBounds(mxGraphics2DCanvas canvas,
                                mxCellState state)

hasGradient

public boolean hasGradient(mxGraphics2DCanvas canvas,
                           mxCellState state)
Overrides:
hasGradient in class mxBasicShape

getImageForStyle

public String getImageForStyle(mxGraphics2DCanvas canvas,
                               mxCellState state)

getFillColor

public Color getFillColor(mxGraphics2DCanvas canvas,
                          mxCellState state)
Overrides:
getFillColor in class mxBasicShape

getStrokeColor

public Color getStrokeColor(mxGraphics2DCanvas canvas,
                            mxCellState state)
Overrides:
getStrokeColor in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxITextShape.html0000664000175000017500000002443612176166722026135 0ustar sylvestresylvestre mxITextShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Interface mxITextShape

All Known Implementing Classes:
mxCurveLabelShape, mxDefaultTextShape, mxHtmlTextShape

public interface mxITextShape


Method Summary
 void paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 

Method Detail

paintShape

void paintShape(mxGraphics2DCanvas canvas,
                String text,
                mxCellState state,
                Map<String,Object> style)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxMarkerRegistry.html0000664000175000017500000003662112176166722027070 0ustar sylvestresylvestre mxMarkerRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxMarkerRegistry

java.lang.Object
  extended by com.mxgraph.shape.mxMarkerRegistry

public class mxMarkerRegistry
extends Object


Field Summary
protected static Map<String,mxIMarker> markers
           
 
Constructor Summary
mxMarkerRegistry()
           
 
Method Summary
static mxIMarker getMarker(String name)
           
static void registerMarker(String name, mxIMarker marker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

markers

protected static Map<String,mxIMarker> markers
Constructor Detail

mxMarkerRegistry

public mxMarkerRegistry()
Method Detail

getMarker

public static mxIMarker getMarker(String name)

registerMarker

public static void registerMarker(String name,
                                  mxIMarker marker)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxEllipseShape.html0000664000175000017500000003601412176166722026470 0ustar sylvestresylvestre mxEllipseShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxEllipseShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxEllipseShape
All Implemented Interfaces:
mxIShape
Direct Known Subclasses:
mxDoubleEllipseShape

public class mxEllipseShape
extends mxBasicShape


Constructor Summary
mxEllipseShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxEllipseShape

public mxEllipseShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxActorShape.html0000664000175000017500000003512712176166722026147 0ustar sylvestresylvestre mxActorShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxActorShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxActorShape
All Implemented Interfaces:
mxIShape

public class mxActorShape
extends mxBasicShape


Constructor Summary
mxActorShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxActorShape

public mxActorShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxStencilRegistry.html0000664000175000017500000003676712176166722027263 0ustar sylvestresylvestre mxStencilRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxStencilRegistry

java.lang.Object
  extended by com.mxgraph.shape.mxStencilRegistry

public class mxStencilRegistry
extends Object


Field Summary
protected static Map<String,mxStencil> stencils
           
 
Constructor Summary
mxStencilRegistry()
           
 
Method Summary
static void addStencil(String name, mxStencil stencil)
          Adds the given stencil.
static mxStencil getStencil(String name)
          Returns the stencil for the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stencils

protected static Map<String,mxStencil> stencils
Constructor Detail

mxStencilRegistry

public mxStencilRegistry()
Method Detail

addStencil

public static void addStencil(String name,
                              mxStencil stencil)
Adds the given stencil.


getStencil

public static mxStencil getStencil(String name)
Returns the stencil for the given name.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxIShape.html0000664000175000017500000002521212176166722025261 0ustar sylvestresylvestre mxIShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Interface mxIShape

All Known Implementing Classes:
mxActorShape, mxArrowShape, mxBasicShape, mxCloudShape, mxConnectorShape, mxCurveShape, mxCylinderShape, mxDoubleEllipseShape, mxEllipseShape, mxHexagonShape, mxImageShape, mxLabelShape, mxLineShape, mxRectangleShape, mxRhombusShape, mxStencil, mxStencilShape, mxSwimlaneShape, mxTriangleShape

public interface mxIShape


Method Summary
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 

Method Detail

paintShape

void paintShape(mxGraphics2DCanvas canvas,
                mxCellState state)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxStencilShape.svgShape.html0000664000175000017500000005003512176166722030252 0ustar sylvestresylvestre mxStencilShape.svgShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxStencilShape.svgShape

java.lang.Object
  extended by com.mxgraph.shape.mxStencilShape.svgShape
Enclosing class:
mxStencilShape

protected class mxStencilShape.svgShape
extends Object


Field Summary
protected  double currentXScale
          Holds the current value to which the shape is scaled in X
protected  double currentYScale
          Holds the current value to which the shape is scaled in Y
 Shape shape
           
protected  Map<String,Object> style
          Contains an array of key, value pairs that represent the style of the cell.
 List<mxStencilShape.svgShape> subShapes
           
 
Constructor Summary
mxStencilShape.svgShape(Shape shape, Map<String,Object> style)
           
 
Method Summary
 double getCurrentXScale()
           
 double getCurrentYScale()
           
 void setCurrentXScale(double currentXScale)
           
 void setCurrentYScale(double currentYScale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shape

public Shape shape

style

protected Map<String,Object> style
Contains an array of key, value pairs that represent the style of the cell.


subShapes

public List<mxStencilShape.svgShape> subShapes

currentXScale

protected double currentXScale
Holds the current value to which the shape is scaled in X


currentYScale

protected double currentYScale
Holds the current value to which the shape is scaled in Y

Constructor Detail

mxStencilShape.svgShape

public mxStencilShape.svgShape(Shape shape,
                               Map<String,Object> style)
Method Detail

getCurrentXScale

public double getCurrentXScale()

setCurrentXScale

public void setCurrentXScale(double currentXScale)

getCurrentYScale

public double getCurrentYScale()

setCurrentYScale

public void setCurrentYScale(double currentYScale)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/0000775000175000017500000000000012176166726024556 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxIMarker.html0000664000175000017500000002406512176166726027352 0ustar sylvestresylvestre Uses of Interface com.mxgraph.shape.mxIMarker (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.shape.mxIMarker

Packages that use mxIMarker
com.mxgraph.shape   
 

Uses of mxIMarker in com.mxgraph.shape
 

Fields in com.mxgraph.shape with type parameters of type mxIMarker
protected static Map<String,mxIMarker> mxMarkerRegistry.markers
           
 

Methods in com.mxgraph.shape that return mxIMarker
static mxIMarker mxMarkerRegistry.getMarker(String name)
           
 

Methods in com.mxgraph.shape with parameters of type mxIMarker
static void mxMarkerRegistry.registerMarker(String name, mxIMarker marker)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxTriangleShape.html0000664000175000017500000001366612176166726030553 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxTriangleShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxTriangleShape

No usage of com.mxgraph.shape.mxTriangleShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxLineShape.html0000664000175000017500000001361612176166726027670 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxLineShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxLineShape

No usage of com.mxgraph.shape.mxLineShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxCurveLabelShape.LabelGlyphCache.html0000664000175000017500000002007712176166726033772 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxCurveLabelShape.LabelGlyphCache

Packages that use mxCurveLabelShape.LabelGlyphCache
com.mxgraph.shape   
 

Uses of mxCurveLabelShape.LabelGlyphCache in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxCurveLabelShape.LabelGlyphCache
protected  mxCurveLabelShape.LabelGlyphCache[] mxCurveLabelShape.labelGlyphs
          Cache of information describing characteristics relating to drawing each glyph of this label
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxLabelShape.html0000664000175000017500000001363012176166726030014 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxLabelShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxLabelShape

No usage of com.mxgraph.shape.mxLabelShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxImageShape.html0000664000175000017500000001700312176166726030015 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxImageShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxImageShape

Packages that use mxImageShape
com.mxgraph.shape   
 

Uses of mxImageShape in com.mxgraph.shape
 

Subclasses of mxImageShape in com.mxgraph.shape
 class mxLabelShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxITextShape.html0000664000175000017500000003153312176166726030034 0ustar sylvestresylvestre Uses of Interface com.mxgraph.shape.mxITextShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.shape.mxITextShape

Packages that use mxITextShape
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.shape   
 

Uses of mxITextShape in com.mxgraph.canvas
 

Fields in com.mxgraph.canvas with type parameters of type mxITextShape
protected static Map<String,mxITextShape> mxGraphics2DCanvas.textShapes
          Maps from names to mxITextShape instances.
 

Methods in com.mxgraph.canvas that return mxITextShape
 mxITextShape mxGraphics2DCanvas.getTextShape(Map<String,Object> style, boolean html)
           
 

Methods in com.mxgraph.canvas with parameters of type mxITextShape
static void mxGraphics2DCanvas.putTextShape(String name, mxITextShape shape)
           
 

Uses of mxITextShape in com.mxgraph.shape
 

Classes in com.mxgraph.shape that implement mxITextShape
 class mxCurveLabelShape
          Draws the edge label along a curve derived from the curve describing the edge's path
 class mxDefaultTextShape
           
 class mxHtmlTextShape
          To set global CSS for all HTML labels, use the following code:
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxMarkerRegistry.html0000664000175000017500000001370012176166726030764 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxMarkerRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxMarkerRegistry

No usage of com.mxgraph.shape.mxMarkerRegistry


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxEllipseShape.html0000664000175000017500000001706112176166726030374 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxEllipseShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxEllipseShape

Packages that use mxEllipseShape
com.mxgraph.shape   
 

Uses of mxEllipseShape in com.mxgraph.shape
 

Subclasses of mxEllipseShape in com.mxgraph.shape
 class mxDoubleEllipseShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxActorShape.html0000664000175000017500000001363012176166726030045 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxActorShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxActorShape

No usage of com.mxgraph.shape.mxActorShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxStencilRegistry.html0000664000175000017500000001371212176166726031147 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxStencilRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxStencilRegistry

No usage of com.mxgraph.shape.mxStencilRegistry


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxIShape.html0000664000175000017500000004444712176166726027177 0ustar sylvestresylvestre Uses of Interface com.mxgraph.shape.mxIShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.shape.mxIShape

Packages that use mxIShape
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.shape   
 

Uses of mxIShape in com.mxgraph.canvas
 

Fields in com.mxgraph.canvas with type parameters of type mxIShape
protected static Map<String,mxIShape> mxGraphics2DCanvas.shapes
          Maps from names to mxIVertexShape instances.
 

Methods in com.mxgraph.canvas that return mxIShape
 mxIShape mxGraphics2DCanvas.getShape(Map<String,Object> style)
           
 

Methods in com.mxgraph.canvas with parameters of type mxIShape
static void mxGraphics2DCanvas.putShape(String name, mxIShape shape)
           
 

Uses of mxIShape in com.mxgraph.shape
 

Classes in com.mxgraph.shape that implement mxIShape
 class mxActorShape
           
 class mxArrowShape
           
 class mxBasicShape
           
 class mxCloudShape
           
 class mxConnectorShape
           
 class mxCurveShape
           
 class mxCylinderShape
           
 class mxDoubleEllipseShape
           
 class mxEllipseShape
           
 class mxHexagonShape
           
 class mxImageShape
          A rectangular shape that contains a single image
 class mxLabelShape
           
 class mxLineShape
           
 class mxRectangleShape
           
 class mxRhombusShape
           
 class mxStencil
          Implements a stencil for the given XML definition.
 class mxStencilShape
          Stencil shape drawing that takes an XML definition of the shape and renders it.
 class mxSwimlaneShape
           
 class mxTriangleShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxStencilShape.svgShape.html0000664000175000017500000003017712176166726032162 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxStencilShape.svgShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxStencilShape.svgShape

Packages that use mxStencilShape.svgShape
com.mxgraph.shape   
 

Uses of mxStencilShape.svgShape in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxStencilShape.svgShape
protected  mxStencilShape.svgShape mxStencilShape.rootShape
           
 

Fields in com.mxgraph.shape with type parameters of type mxStencilShape.svgShape
 List<mxStencilShape.svgShape> mxStencilShape.svgShape.subShapes
           
 

Methods in com.mxgraph.shape that return mxStencilShape.svgShape
 mxStencilShape.svgShape mxStencilShape.createElement(Node root)
          Forms an internal representation of the specified SVG element and returns that representation
 

Methods in com.mxgraph.shape with parameters of type mxStencilShape.svgShape
 void mxStencilShape.createShape(Node root, mxStencilShape.svgShape shape)
           
 void mxStencilShape.paintNode(mxGraphics2DCanvas canvas, mxCellState state, mxStencilShape.svgShape shape, double widthRatio, double heightRatio)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxHexagonShape.html0000664000175000017500000001365412176166726030374 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxHexagonShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxHexagonShape

No usage of com.mxgraph.shape.mxHexagonShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxConnectorShape.html0000664000175000017500000001707712176166726030740 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxConnectorShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxConnectorShape

Packages that use mxConnectorShape
com.mxgraph.shape   
 

Uses of mxConnectorShape in com.mxgraph.shape
 

Subclasses of mxConnectorShape in com.mxgraph.shape
 class mxCurveShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxBasicShape.html0000664000175000017500000003240712176166726030021 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxBasicShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxBasicShape

Packages that use mxBasicShape
com.mxgraph.shape   
 

Uses of mxBasicShape in com.mxgraph.shape
 

Subclasses of mxBasicShape in com.mxgraph.shape
 class mxActorShape
           
 class mxArrowShape
           
 class mxCloudShape
           
 class mxConnectorShape
           
 class mxCurveShape
           
 class mxCylinderShape
           
 class mxDoubleEllipseShape
           
 class mxEllipseShape
           
 class mxHexagonShape
           
 class mxImageShape
          A rectangular shape that contains a single image
 class mxLabelShape
           
 class mxLineShape
           
 class mxRectangleShape
           
 class mxRhombusShape
           
 class mxStencilShape
          Stencil shape drawing that takes an XML definition of the shape and renders it.
 class mxSwimlaneShape
           
 class mxTriangleShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxArrowShape.html0000664000175000017500000001363012176166726030067 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxArrowShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxArrowShape

No usage of com.mxgraph.shape.mxArrowShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxHtmlTextShape.html0000664000175000017500000001366612176166726030557 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxHtmlTextShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxHtmlTextShape

No usage of com.mxgraph.shape.mxHtmlTextShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxRhombusShape.html0000664000175000017500000001365412176166726030422 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxRhombusShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxRhombusShape

No usage of com.mxgraph.shape.mxRhombusShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxRectangleShape.html0000664000175000017500000001771612176166726030712 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxRectangleShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxRectangleShape

Packages that use mxRectangleShape
com.mxgraph.shape   
 

Uses of mxRectangleShape in com.mxgraph.shape
 

Subclasses of mxRectangleShape in com.mxgraph.shape
 class mxImageShape
          A rectangular shape that contains a single image
 class mxLabelShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxDefaultTextShape.html0000664000175000017500000001372412176166726031232 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxDefaultTextShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxDefaultTextShape

No usage of com.mxgraph.shape.mxDefaultTextShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxCylinderShape.html0000664000175000017500000001366612176166726030557 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxCylinderShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxCylinderShape

No usage of com.mxgraph.shape.mxCylinderShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxCurveLabelShape.LabelPosition.html0000664000175000017500000001776112176166726033575 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxCurveLabelShape.LabelPosition (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxCurveLabelShape.LabelPosition

Packages that use mxCurveLabelShape.LabelPosition
com.mxgraph.shape   
 

Uses of mxCurveLabelShape.LabelPosition in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxCurveLabelShape.LabelPosition
protected  mxCurveLabelShape.LabelPosition mxCurveLabelShape.labelPosition
          ADT to encapsulate label positioning information
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxDoubleEllipseShape.html0000664000175000017500000001375012176166726031530 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxDoubleEllipseShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxDoubleEllipseShape

No usage of com.mxgraph.shape.mxDoubleEllipseShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxSwimlaneShape.html0000664000175000017500000001366612176166726030565 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxSwimlaneShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxSwimlaneShape

No usage of com.mxgraph.shape.mxSwimlaneShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxCurveShape.html0000664000175000017500000001363012176166726030061 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxCurveShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxCurveShape

No usage of com.mxgraph.shape.mxCurveShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxCurveLabelShape.html0000664000175000017500000001371212176166726031022 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxCurveLabelShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxCurveLabelShape

No usage of com.mxgraph.shape.mxCurveLabelShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxCloudShape.html0000664000175000017500000001363012176166726030043 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxCloudShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxCloudShape

No usage of com.mxgraph.shape.mxCloudShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxStencilShape.html0000664000175000017500000001365412176166726030404 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxStencilShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxStencilShape

No usage of com.mxgraph.shape.mxStencilShape


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/class-use/mxStencil.html0000664000175000017500000002406212176166726027416 0ustar sylvestresylvestre Uses of Class com.mxgraph.shape.mxStencil (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.shape.mxStencil

Packages that use mxStencil
com.mxgraph.shape   
 

Uses of mxStencil in com.mxgraph.shape
 

Fields in com.mxgraph.shape with type parameters of type mxStencil
protected static Map<String,mxStencil> mxStencilRegistry.stencils
           
 

Methods in com.mxgraph.shape that return mxStencil
static mxStencil mxStencilRegistry.getStencil(String name)
          Returns the stencil for the given name.
 

Methods in com.mxgraph.shape with parameters of type mxStencil
static void mxStencilRegistry.addStencil(String name, mxStencil stencil)
          Adds the given stencil.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/package-frame.html0000664000175000017500000000753212176166726026237 0ustar sylvestresylvestre com.mxgraph.shape (JGraph X 2.1.0.7 API Specification) com.mxgraph.shape
Interfaces 
mxIMarker
mxIShape
mxITextShape
Classes 
mxActorShape
mxArrowShape
mxBasicShape
mxCloudShape
mxConnectorShape
mxCurveLabelShape
mxCurveShape
mxCylinderShape
mxDefaultTextShape
mxDoubleEllipseShape
mxEllipseShape
mxHexagonShape
mxHtmlTextShape
mxImageShape
mxLabelShape
mxLineShape
mxMarkerRegistry
mxRectangleShape
mxRhombusShape
mxStencil
mxStencilRegistry
mxStencilShape
mxSwimlaneShape
mxTriangleShape
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxHexagonShape.html0000664000175000017500000003551712176166722026473 0ustar sylvestresylvestre mxHexagonShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxHexagonShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxHexagonShape
All Implemented Interfaces:
mxIShape

public class mxHexagonShape
extends mxBasicShape


Constructor Summary
mxHexagonShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxHexagonShape

public mxHexagonShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxConnectorShape.html0000664000175000017500000005453012176166722027030 0ustar sylvestresylvestre mxConnectorShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxConnectorShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxConnectorShape
All Implemented Interfaces:
mxIShape
Direct Known Subclasses:
mxCurveShape

public class mxConnectorShape
extends mxBasicShape


Constructor Summary
mxConnectorShape()
           
 
Method Summary
protected  mxLine getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
          Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
 boolean isRounded(Map<String,Object> style)
           
 mxPoint paintMarker(mxGraphics2DCanvas canvas, mxCellState state, boolean source)
          Draws the marker for the given edge.
protected  void paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxConnectorShape

public mxConnectorShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

paintPolyline

protected void paintPolyline(mxGraphics2DCanvas canvas,
                             List<mxPoint> points,
                             Map<String,Object> style)

isRounded

public boolean isRounded(Map<String,Object> style)

paintMarker

public mxPoint paintMarker(mxGraphics2DCanvas canvas,
                           mxCellState state,
                           boolean source)
Draws the marker for the given edge.

Returns:
the offset of the marker from the end of the line

getMarkerVector

protected mxLine getMarkerVector(List<mxPoint> points,
                                 boolean source,
                                 double markerSize)
Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points

Parameters:
points - the guide points of the connector
source - whether the marker is at the source end
markerSize - the scaled maximum length of the marker
Returns:
a line describing the vector the marker should be drawn along

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxBasicShape.html0000664000175000017500000006000412176166722026110 0ustar sylvestresylvestre mxBasicShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxBasicShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
All Implemented Interfaces:
mxIShape
Direct Known Subclasses:
mxActorShape, mxArrowShape, mxCloudShape, mxConnectorShape, mxCylinderShape, mxEllipseShape, mxHexagonShape, mxLineShape, mxRectangleShape, mxRhombusShape, mxStencilShape, mxSwimlaneShape, mxTriangleShape

public class mxBasicShape
extends Object
implements mxIShape


Constructor Summary
mxBasicShape()
           
 
Method Summary
protected  boolean configureGraphics(mxGraphics2DCanvas canvas, mxCellState state, boolean background)
          Configures the graphics object ready to paint.
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  mxRectangle getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean hasShadow(mxGraphics2DCanvas canvas, mxCellState state)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxBasicShape

public mxBasicShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)

configureGraphics

protected boolean configureGraphics(mxGraphics2DCanvas canvas,
                                    mxCellState state,
                                    boolean background)
Configures the graphics object ready to paint.

Parameters:
canvas - the canvas to be painted to
state - the state of cell to be painted
background - whether or not this is the background stage of the shape paint
Returns:
whether or not the shape is ready to be drawn

getGradientBounds

protected mxRectangle getGradientBounds(mxGraphics2DCanvas canvas,
                                        mxCellState state)

hasGradient

public boolean hasGradient(mxGraphics2DCanvas canvas,
                           mxCellState state)

hasShadow

public boolean hasShadow(mxGraphics2DCanvas canvas,
                         mxCellState state)

getFillColor

public Color getFillColor(mxGraphics2DCanvas canvas,
                          mxCellState state)

getStrokeColor

public Color getStrokeColor(mxGraphics2DCanvas canvas,
                            mxCellState state)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxArrowShape.html0000664000175000017500000003544112176166722026170 0ustar sylvestresylvestre mxArrowShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxArrowShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxArrowShape
All Implemented Interfaces:
mxIShape

public class mxArrowShape
extends mxBasicShape


Constructor Summary
mxArrowShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxArrowShape

public mxArrowShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/package-summary.html0000664000175000017500000002764712176166726026653 0ustar sylvestresylvestre com.mxgraph.shape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.shape

Interface Summary
mxIMarker  
mxIShape  
mxITextShape  
 

Class Summary
mxActorShape  
mxArrowShape  
mxBasicShape  
mxCloudShape  
mxConnectorShape  
mxCurveLabelShape Draws the edge label along a curve derived from the curve describing the edge's path
mxCurveShape  
mxCylinderShape  
mxDefaultTextShape  
mxDoubleEllipseShape  
mxEllipseShape  
mxHexagonShape  
mxHtmlTextShape To set global CSS for all HTML labels, use the following code:
mxImageShape A rectangular shape that contains a single image
mxLabelShape  
mxLineShape  
mxMarkerRegistry  
mxRectangleShape  
mxRhombusShape  
mxStencil Implements a stencil for the given XML definition.
mxStencilRegistry  
mxStencilShape Stencil shape drawing that takes an XML definition of the shape and renders it.
mxSwimlaneShape  
mxTriangleShape  
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxHtmlTextShape.html0000664000175000017500000004712712176166722026653 0ustar sylvestresylvestre mxHtmlTextShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxHtmlTextShape

java.lang.Object
  extended by com.mxgraph.shape.mxHtmlTextShape
All Implemented Interfaces:
mxITextShape

public class mxHtmlTextShape
extends Object
implements mxITextShape

To set global CSS for all HTML labels, use the following code:

 mxGraphics2DCanvas.putTextShape(mxGraphics2DCanvas.TEXT_SHAPE_HTML,
   new mxHtmlTextShape()
   {
     protected String createHtmlDocument(Map style, String text)
     {
       return mxUtils.createHtmlDocument(style, text, 1, 0,
           "");
     }
   }
 );
 


Field Summary
protected  boolean replaceHtmlLinefeeds
          Specifies if linefeeds should be replaced with breaks in HTML markup.
 
Constructor Summary
mxHtmlTextShape()
           
 
Method Summary
protected  String createHtmlDocument(Map<String,Object> style, String text)
           
 boolean isReplaceHtmlLinefeeds()
          Returns replaceHtmlLinefeeds
 void paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void setReplaceHtmlLinefeeds(boolean value)
          Returns replaceHtmlLinefeeds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

replaceHtmlLinefeeds

protected boolean replaceHtmlLinefeeds
Specifies if linefeeds should be replaced with breaks in HTML markup. Default is true.

Constructor Detail

mxHtmlTextShape

public mxHtmlTextShape()
Method Detail

isReplaceHtmlLinefeeds

public boolean isReplaceHtmlLinefeeds()
Returns replaceHtmlLinefeeds


setReplaceHtmlLinefeeds

public void setReplaceHtmlLinefeeds(boolean value)
Returns replaceHtmlLinefeeds


createHtmlDocument

protected String createHtmlDocument(Map<String,Object> style,
                                    String text)

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       String text,
                       mxCellState state,
                       Map<String,Object> style)
Specified by:
paintShape in interface mxITextShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/package-use.html0000664000175000017500000002540112176166726025734 0ustar sylvestresylvestre Uses of Package com.mxgraph.shape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.shape

Packages that use com.mxgraph.shape
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.shape   
 

Classes in com.mxgraph.shape used by com.mxgraph.canvas
mxIShape
           
mxITextShape
           
 

Classes in com.mxgraph.shape used by com.mxgraph.shape
mxBasicShape
           
mxConnectorShape
           
mxCurveLabelShape.LabelGlyphCache
          Utility class to describe the characteristics of each glyph of a branch branch label.
mxCurveLabelShape.LabelPosition
          Utility class that stores details of how the label is positioned on the curve
mxEllipseShape
           
mxImageShape
          A rectangular shape that contains a single image
mxIMarker
           
mxIShape
           
mxITextShape
           
mxRectangleShape
           
mxStencil
          Implements a stencil for the given XML definition.
mxStencilShape.svgShape
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxRhombusShape.html0000664000175000017500000003550712176166722026520 0ustar sylvestresylvestre mxRhombusShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxRhombusShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxRhombusShape
All Implemented Interfaces:
mxIShape

public class mxRhombusShape
extends mxBasicShape


Constructor Summary
mxRhombusShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxRhombusShape

public mxRhombusShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxRectangleShape.html0000664000175000017500000003757212176166722027011 0ustar sylvestresylvestre mxRectangleShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxRectangleShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxRectangleShape
All Implemented Interfaces:
mxIShape
Direct Known Subclasses:
mxImageShape

public class mxRectangleShape
extends mxBasicShape


Constructor Summary
mxRectangleShape()
           
 
Method Summary
 int getArcSize(int w, int h)
          Computes the arc size for the given dimension.
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxRectangleShape

public mxRectangleShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

getArcSize

public int getArcSize(int w,
                      int h)
Computes the arc size for the given dimension.

Parameters:
w - Width of the rectangle.
h - Height of the rectangle.
Returns:
Returns the arc size for the given dimension.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxDefaultTextShape.html0000664000175000017500000004217212176166722027326 0ustar sylvestresylvestre mxDefaultTextShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxDefaultTextShape

java.lang.Object
  extended by com.mxgraph.shape.mxDefaultTextShape
All Implemented Interfaces:
mxITextShape

public class mxDefaultTextShape
extends Object
implements mxITextShape


Constructor Summary
mxDefaultTextShape()
           
 
Method Summary
 void paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
protected  void postProcessLine(String text, String line, FontMetrics fm, mxGraphics2DCanvas canvas, int x, int y)
          Hook to add functionality after a line has been drawn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxDefaultTextShape

public mxDefaultTextShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       String text,
                       mxCellState state,
                       Map<String,Object> style)
Specified by:
paintShape in interface mxITextShape

postProcessLine

protected void postProcessLine(String text,
                               String line,
                               FontMetrics fm,
                               mxGraphics2DCanvas canvas,
                               int x,
                               int y)
Hook to add functionality after a line has been drawn

Parameters:
text - the entire label text
line - the line at the specified location
fm - the text font metrics
canvas - the canvas object currently being painted to
x - the x co-ord of the baseline of the text line
y - the y co-ord of the baseline of the text line

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxCylinderShape.html0000664000175000017500000003572512176166722026654 0ustar sylvestresylvestre mxCylinderShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxCylinderShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxCylinderShape
All Implemented Interfaces:
mxIShape

public class mxCylinderShape
extends mxBasicShape


Constructor Summary
mxCylinderShape()
           
 
Method Summary
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
          Draws a cylinder for the given parameters.
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxCylinderShape

public mxCylinderShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Draws a cylinder for the given parameters.

Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxCurveLabelShape.LabelPosition.html0000664000175000017500000003326112176166722031663 0ustar sylvestresylvestre mxCurveLabelShape.LabelPosition (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxCurveLabelShape.LabelPosition

java.lang.Object
  extended by com.mxgraph.shape.mxCurveLabelShape.LabelPosition
Enclosing class:
mxCurveLabelShape

public class mxCurveLabelShape.LabelPosition
extends Object

Utility class that stores details of how the label is positioned on the curve


Field Summary
 double defaultInterGlyphSpace
           
 double endBuffer
           
 double startBuffer
           
 
Constructor Summary
mxCurveLabelShape.LabelPosition()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startBuffer

public double startBuffer

endBuffer

public double endBuffer

defaultInterGlyphSpace

public double defaultInterGlyphSpace
Constructor Detail

mxCurveLabelShape.LabelPosition

public mxCurveLabelShape.LabelPosition()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/package-tree.html0000664000175000017500000002662712176166726026112 0ustar sylvestresylvestre com.mxgraph.shape Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.shape

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxDoubleEllipseShape.html0000664000175000017500000003722412176166722027627 0ustar sylvestresylvestre mxDoubleEllipseShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxDoubleEllipseShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxEllipseShape
          extended by com.mxgraph.shape.mxDoubleEllipseShape
All Implemented Interfaces:
mxIShape

public class mxDoubleEllipseShape
extends mxEllipseShape


Constructor Summary
mxDoubleEllipseShape()
           
 
Method Summary
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxEllipseShape
createShape
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxDoubleEllipseShape

public mxDoubleEllipseShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxSwimlaneShape.html0000664000175000017500000004070212176166722026651 0ustar sylvestresylvestre mxSwimlaneShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxSwimlaneShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxSwimlaneShape
All Implemented Interfaces:
mxIShape

public class mxSwimlaneShape
extends mxBasicShape


Constructor Summary
mxSwimlaneShape()
           
 
Method Summary
protected  mxRectangle getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxSwimlaneShape

public mxSwimlaneShape()
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

getGradientBounds

protected mxRectangle getGradientBounds(mxGraphics2DCanvas canvas,
                                        mxCellState state)
Overrides:
getGradientBounds in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxCurveShape.html0000664000175000017500000006332712176166722026166 0ustar sylvestresylvestre mxCurveShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxCurveShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxConnectorShape
          extended by com.mxgraph.shape.mxCurveShape
All Implemented Interfaces:
mxIShape

public class mxCurveShape
extends mxConnectorShape


Field Summary
protected  mxCurve curve
          Cache of the points between which drawing straight lines views as a curve
 
Constructor Summary
mxCurveShape()
           
mxCurveShape(mxCurve curve)
           
 
Method Summary
 mxCurve getCurve()
           
protected  mxLine getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
          Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
protected  void paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void validateCurve(List<mxPoint> points, double scale, Map<String,Object> style)
          Forces underlying curve to a valid state
 
Methods inherited from class com.mxgraph.shape.mxConnectorShape
isRounded, paintMarker
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

curve

protected mxCurve curve
Cache of the points between which drawing straight lines views as a curve

Constructor Detail

mxCurveShape

public mxCurveShape()

mxCurveShape

public mxCurveShape(mxCurve curve)
Method Detail

getCurve

public mxCurve getCurve()

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxConnectorShape

paintPolyline

protected void paintPolyline(mxGraphics2DCanvas canvas,
                             List<mxPoint> points,
                             Map<String,Object> style)
Overrides:
paintPolyline in class mxConnectorShape

validateCurve

public void validateCurve(List<mxPoint> points,
                          double scale,
                          Map<String,Object> style)
Forces underlying curve to a valid state

Parameters:
points -

getMarkerVector

protected mxLine getMarkerVector(List<mxPoint> points,
                                 boolean source,
                                 double markerSize)
Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points

Overrides:
getMarkerVector in class mxConnectorShape
Parameters:
points - the guide points of the connector
source - whether the marker is at the source end
markerSize - the scaled maximum length of the marker
Returns:
a line describing the vector the marker should be drawn along

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxCurveLabelShape.html0000664000175000017500000012311212176166722027113 0ustar sylvestresylvestre mxCurveLabelShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxCurveLabelShape

java.lang.Object
  extended by com.mxgraph.shape.mxCurveLabelShape
All Implemented Interfaces:
mxITextShape

public class mxCurveLabelShape
extends Object
implements mxITextShape

Draws the edge label along a curve derived from the curve describing the edge's path


Nested Class Summary
 class mxCurveLabelShape.LabelGlyphCache
          Utility class to describe the characteristics of each glyph of a branch branch label.
 class mxCurveLabelShape.LabelPosition
          Utility class that stores details of how the label is positioned on the curve
 
Field Summary
 int centerVisibleIndex
          The index of the central glyph of the label that is visible
protected  mxCurve curve
          Cache of the points between which drawing straight lines views as a curve
static double CURVE_TEXT_STRETCH_FACTOR
          Factor by which text on the inside of curve is stretched
static Object FONT_FRACTIONALMETRICS
          Specifies if image aspect should be preserved in drawImage.
static FontRenderContext frc
          Shared FRC for font size calculations
static mxRectangle INVALID_GLYPH_BOUNDS
          Indicates that a glyph does not have valid drawing bounds, usually because it is not visible
static double LABEL_BUFFER
          Buffer at both ends of the label
protected  mxRectangle labelBounds
          Cache of the bounds of the label
protected  mxCurveLabelShape.LabelGlyphCache[] labelGlyphs
          Cache of information describing characteristics relating to drawing each glyph of this label
protected  mxCurveLabelShape.LabelPosition labelPosition
          ADT to encapsulate label positioning information
protected  double labelSize
          Cache of the total length of the branch label
protected  Font lastFont
          Cache of the label font
protected  List<mxPoint> lastPoints
          Cache of the last set of guide points that this label was calculated for
protected  String lastValue
          Cache of the label text
protected  boolean rotationEnabled
           
 GlyphVector[] rtlGlyphVectors
          Cache of BIDI glyph vectors
protected  mxCellState state
          Cache the state associated with this shape
 
Constructor Summary
mxCurveLabelShape(mxCellState state, mxCurve value)
           
 
Method Summary
protected  void calculationLabelPosition(Map<String,Object> style, String label)
          Hook method to override how the label is positioned on the curve
 mxRectangle getCenterVisiblePosition()
          Returns the drawing bounds of the central indexed visible glyph
 mxCurve getCurve()
           
 mxRectangle getLabelBounds()
           
 boolean getRotationEnabled()
           
 boolean intersectsRect(Rectangle rect)
          Returns whether or not the rectangle passed in hits any part of this curve.
 void paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
protected  void postprocessGlyph(mxCurve curve, String label, int j, double currentPos)
          Hook for sub-classers to perform additional processing on each glyph
 void setCurve(mxCurve curve)
           
 void setRotationEnabled(boolean value)
           
 mxRectangle updateLabelBounds(String label, Map<String,Object> style)
          Updates the cached position and size of each glyph in the edge label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastValue

protected String lastValue
Cache of the label text


lastFont

protected Font lastFont
Cache of the label font


lastPoints

protected List<mxPoint> lastPoints
Cache of the last set of guide points that this label was calculated for


curve

protected mxCurve curve
Cache of the points between which drawing straight lines views as a curve


state

protected mxCellState state
Cache the state associated with this shape


labelGlyphs

protected mxCurveLabelShape.LabelGlyphCache[] labelGlyphs
Cache of information describing characteristics relating to drawing each glyph of this label


labelSize

protected double labelSize
Cache of the total length of the branch label


labelBounds

protected mxRectangle labelBounds
Cache of the bounds of the label


labelPosition

protected mxCurveLabelShape.LabelPosition labelPosition
ADT to encapsulate label positioning information


LABEL_BUFFER

public static double LABEL_BUFFER
Buffer at both ends of the label


CURVE_TEXT_STRETCH_FACTOR

public static double CURVE_TEXT_STRETCH_FACTOR
Factor by which text on the inside of curve is stretched


INVALID_GLYPH_BOUNDS

public static mxRectangle INVALID_GLYPH_BOUNDS
Indicates that a glyph does not have valid drawing bounds, usually because it is not visible


centerVisibleIndex

public int centerVisibleIndex
The index of the central glyph of the label that is visible


FONT_FRACTIONALMETRICS

public static Object FONT_FRACTIONALMETRICS
Specifies if image aspect should be preserved in drawImage. Default is true.


rtlGlyphVectors

public GlyphVector[] rtlGlyphVectors
Cache of BIDI glyph vectors


frc

public static FontRenderContext frc
Shared FRC for font size calculations


rotationEnabled

protected boolean rotationEnabled
Constructor Detail

mxCurveLabelShape

public mxCurveLabelShape(mxCellState state,
                         mxCurve value)
Method Detail

getRotationEnabled

public boolean getRotationEnabled()

setRotationEnabled

public void setRotationEnabled(boolean value)

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       String text,
                       mxCellState state,
                       Map<String,Object> style)
Specified by:
paintShape in interface mxITextShape

updateLabelBounds

public mxRectangle updateLabelBounds(String label,
                                     Map<String,Object> style)
Updates the cached position and size of each glyph in the edge label.

Parameters:
label - the entire string of the label.
style - the edge style

postprocessGlyph

protected void postprocessGlyph(mxCurve curve,
                                String label,
                                int j,
                                double currentPos)
Hook for sub-classers to perform additional processing on each glyph

Parameters:
curve - The curve object holding the label curve
label - the text label of the curve
j - the index of the label
currentPos - the distance along the label curve the glyph is

intersectsRect

public boolean intersectsRect(Rectangle rect)
Returns whether or not the rectangle passed in hits any part of this curve.

Parameters:
rect - the rectangle to detect for a hit
Returns:
whether or not the rectangle hits this curve

calculationLabelPosition

protected void calculationLabelPosition(Map<String,Object> style,
                                        String label)
Hook method to override how the label is positioned on the curve

Parameters:
style - the style of the curve
label - the string label to be displayed on the curve

getCurve

public mxCurve getCurve()
Returns:
the curve

setCurve

public void setCurve(mxCurve curve)
Parameters:
curve - the curve to set

getLabelBounds

public mxRectangle getLabelBounds()

getCenterVisiblePosition

public mxRectangle getCenterVisiblePosition()
Returns the drawing bounds of the central indexed visible glyph

Returns:
the centerVisibleIndex

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxCloudShape.html0000664000175000017500000003545112176166722026145 0ustar sylvestresylvestre mxCloudShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxCloudShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxCloudShape
All Implemented Interfaces:
mxIShape

public class mxCloudShape
extends mxBasicShape


Constructor Summary
mxCloudShape()
           
 
Method Summary
 Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow, paintShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxCloudShape

public mxCloudShape()
Method Detail

createShape

public Shape createShape(mxGraphics2DCanvas canvas,
                         mxCellState state)
Overrides:
createShape in class mxBasicShape

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxStencilShape.html0000664000175000017500000011060112176166722026467 0ustar sylvestresylvestre mxStencilShape (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxStencilShape

java.lang.Object
  extended by com.mxgraph.shape.mxBasicShape
      extended by com.mxgraph.shape.mxStencilShape
All Implemented Interfaces:
mxIShape

public class mxStencilShape
extends mxBasicShape

Stencil shape drawing that takes an XML definition of the shape and renders it. See http://projects.gnome.org/dia/custom-shapes for specs. See http://dia-installer.de/shapes_de.html for shapes.


Nested Class Summary
protected  class mxStencilShape.svgShape
           
 
Field Summary
protected  Rectangle2D boundingBox
           
protected  AffineTransform cachedTransform
          Transform cached to save instance created.
protected  String iconPath
           
protected  String name
           
protected  Node root
          Reference to the root node of the Dia shape description.
protected  mxStencilShape.svgShape rootShape
           
protected  GeneralPath shapePath
           
 
Constructor Summary
mxStencilShape()
           
mxStencilShape(Document document)
           
mxStencilShape(String shapeXml)
          Constructs a new stencil for the given Dia shape description.
 
Method Summary
 mxStencilShape.svgShape createElement(Node root)
          Forms an internal representation of the specified SVG element and returns that representation
 void createShape(Node root, mxStencilShape.svgShape shape)
           
 Rectangle2D getBoundingBox()
           
 String getIconPath()
           
 String getName()
           
protected static Map<String,Object> getStylenames(String style)
          Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.
 void paintNode(mxGraphics2DCanvas canvas, mxCellState state, mxStencilShape.svgShape shape, double widthRatio, double heightRatio)
           
 void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void setBoundingBox(Rectangle2D boundingBox)
           
 void setIconPath(String iconPath)
           
 void setName(String name)
           
protected  void transformShape(Shape shape, double transX, double transY, double widthRatio, double heightRatio)
          Scales the points composing this shape by the x and y ratios specified
 
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shapePath

protected GeneralPath shapePath

root

protected Node root
Reference to the root node of the Dia shape description.


rootShape

protected mxStencilShape.svgShape rootShape

boundingBox

protected Rectangle2D boundingBox

name

protected String name

iconPath

protected String iconPath

cachedTransform

protected AffineTransform cachedTransform
Transform cached to save instance created. Used to scale the internal path of shapes where possible

Constructor Detail

mxStencilShape

public mxStencilShape()

mxStencilShape

public mxStencilShape(String shapeXml)
Constructs a new stencil for the given Dia shape description.


mxStencilShape

public mxStencilShape(Document document)
Method Detail

paintShape

public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
Specified by:
paintShape in interface mxIShape
Overrides:
paintShape in class mxBasicShape

paintNode

public void paintNode(mxGraphics2DCanvas canvas,
                      mxCellState state,
                      mxStencilShape.svgShape shape,
                      double widthRatio,
                      double heightRatio)

transformShape

protected void transformShape(Shape shape,
                              double transX,
                              double transY,
                              double widthRatio,
                              double heightRatio)
Scales the points composing this shape by the x and y ratios specified

Parameters:
shape - the shape to scale
transX - the x translation
transY - the y translation
widthRatio - the x co-ordinate scale
heightRatio - the y co-ordinate scale

createShape

public void createShape(Node root,
                        mxStencilShape.svgShape shape)

createElement

public mxStencilShape.svgShape createElement(Node root)
Forms an internal representation of the specified SVG element and returns that representation

Parameters:
root - the SVG element to represent
Returns:
the internal representation of the element, or null if an error occurs

getStylenames

protected static Map<String,Object> getStylenames(String style)
Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.

Parameters:
style - String of the form stylename[;stylename][;key=value].
Returns:
Returns the stylename from the given formatted string.

getName

public String getName()

setName

public void setName(String name)

getIconPath

public String getIconPath()

setIconPath

public void setIconPath(String iconPath)

getBoundingBox

public Rectangle2D getBoundingBox()

setBoundingBox

public void setBoundingBox(Rectangle2D boundingBox)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/shape/mxStencil.html0000664000175000017500000011742012176166722025514 0ustar sylvestresylvestre mxStencil (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.shape
Class mxStencil

java.lang.Object
  extended by com.mxgraph.shape.mxStencil
All Implemented Interfaces:
mxIShape

public class mxStencil
extends Object
implements mxIShape

Implements a stencil for the given XML definition. This class implements the mxGraph stencil schema.


Field Summary
protected  String aspect
          Holds the aspect of the shape.
protected  Element bgNode
          Holds the XML node with the stencil description.
protected  Element desc
          Holds the top-level node of the stencil definition.
protected  Element fgNode
          Holds the XML node with the stencil description.
protected  double h0
          Holds the height of the shape.
protected  double lastMoveX
          Holds the last x-position of the cursor.
protected  double lastMoveY
          Holds the last y-position of the cursor.
protected  String strokewidth
          Holds the strokewidth direction from the description.
protected  double w0
          Holds the width of the shape.
 
Constructor Summary
mxStencil(Element description)
          Constructs a new stencil for the given mxGraph shape description.
 
Method Summary
protected  mxRectangle computeAspect(mxCellState state, mxRectangle bounds, String direction)
          Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.
protected  mxGraphicsCanvas2D createCanvas(mxGraphics2DCanvas gc)
          Creates the canvas for rendering the stencil.
protected  void drawElement(mxGraphicsCanvas2D canvas, mxCellState state, Element node, mxRectangle aspect)
          Drawsthe given element.
protected  void drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled)
          Draws the shadow.
 boolean drawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, boolean background)
          Draws this stencil inside the given bounds.
 String evaluateAttribute(Element elt, String attribute, mxCellState state)
          Gets the attribute for the given name from the given node.
 Element getDescription()
          Returns the description.
protected  double getDouble(Element elt, String attribute)
          Returns the given attribute or 0.
protected  double getDouble(Element elt, String attribute, double defaultValue)
          Returns the given attribute or the default value.
protected  int getInt(Element elt, String attribute, int defaultValue)
          Returns the given attribute or the default value.
protected  String getString(Element elt, String attribute, String defaultValue)
          Returns the given attribute or the default value.
 void paintShape(mxGraphics2DCanvas gc, mxCellState state)
          Paints the stencil for the given state.
protected  void parseDescription()
          Parses the description of this shape.
 void setDescription(Element value)
          Sets the description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc

protected Element desc
Holds the top-level node of the stencil definition.


aspect

protected String aspect
Holds the aspect of the shape. Default is "auto".


w0

protected double w0
Holds the width of the shape. Default is 100.


h0

protected double h0
Holds the height of the shape. Default is 100.


bgNode

protected Element bgNode
Holds the XML node with the stencil description.


fgNode

protected Element fgNode
Holds the XML node with the stencil description.


strokewidth

protected String strokewidth
Holds the strokewidth direction from the description.


lastMoveX

protected double lastMoveX
Holds the last x-position of the cursor.


lastMoveY

protected double lastMoveY
Holds the last y-position of the cursor.

Constructor Detail

mxStencil

public mxStencil(Element description)
Constructs a new stencil for the given mxGraph shape description.

Method Detail

getDescription

public Element getDescription()
Returns the description.


setDescription

public void setDescription(Element value)
Sets the description.


createCanvas

protected mxGraphicsCanvas2D createCanvas(mxGraphics2DCanvas gc)
Creates the canvas for rendering the stencil.


paintShape

public void paintShape(mxGraphics2DCanvas gc,
                       mxCellState state)
Paints the stencil for the given state.

Specified by:
paintShape in interface mxIShape

drawShadow

protected void drawShadow(mxGraphicsCanvas2D canvas,
                          mxCellState state,
                          double rotation,
                          boolean flipH,
                          boolean flipV,
                          mxRectangle bounds,
                          double alpha,
                          boolean filled)
Draws the shadow.


drawShape

public boolean drawShape(mxGraphicsCanvas2D canvas,
                         mxCellState state,
                         mxRectangle bounds,
                         boolean background)
Draws this stencil inside the given bounds.


computeAspect

protected mxRectangle computeAspect(mxCellState state,
                                    mxRectangle bounds,
                                    String direction)
Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.


drawElement

protected void drawElement(mxGraphicsCanvas2D canvas,
                           mxCellState state,
                           Element node,
                           mxRectangle aspect)
Drawsthe given element.


getInt

protected int getInt(Element elt,
                     String attribute,
                     int defaultValue)
Returns the given attribute or the default value.


getDouble

protected double getDouble(Element elt,
                           String attribute)
Returns the given attribute or 0.


getDouble

protected double getDouble(Element elt,
                           String attribute,
                           double defaultValue)
Returns the given attribute or the default value.


getString

protected String getString(Element elt,
                           String attribute,
                           String defaultValue)
Returns the given attribute or the default value.


parseDescription

protected void parseDescription()
Parses the description of this shape.


evaluateAttribute

public String evaluateAttribute(Element elt,
                                String attribute,
                                mxCellState state)
Gets the attribute for the given name from the given node. If the attribute does not exist then the text content of the node is evaluated and if it is a function it is invoked with as the only argument and the return value is used as the attribute value to be returned.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/0000775000175000017500000000000012176166726022531 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxGraphSelectionModel.html0000664000175000017500000010636112176166726027663 0ustar sylvestresylvestre mxGraphSelectionModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxGraphSelectionModel

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.view.mxGraphSelectionModel

public class mxGraphSelectionModel
extends mxEventSource

Implements the selection model for a graph. This class fires the following events: mxEvent.UNDO fires after the selection was changed in changeSelection. The edit property contains the mxUndoableEdit which contains the mxSelectionChange. mxEvent.CHANGE fires after the selection changes by executing an mxSelectionChange. The added and removed properties contain Collections of cells that have been added to or removed from the selection, respectively. To add a change listener to the graph selection model: addListener( mxEvent.CHANGE, new mxIEventListener() { public void invoke(Object sender, mxEventObject evt) { mxGraphSelectionModel model = (mxSelectionModel) sender; Collection added = (Collection) evt.getProperty("added"); Collection removed = (Collection) evt.getProperty("removed"); selectionChanged(model, added, removed); } });


Nested Class Summary
static class mxGraphSelectionModel.mxSelectionChange
           
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  Set<Object> cells
          Holds the selection cells.
protected  mxGraph graph
          Reference to the enclosing graph.
protected  boolean singleSelection
          Specifies if only one selected item at a time is allowed.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxGraphSelectionModel(mxGraph graph)
          Constructs a new selection model for the specified graph.
 
Method Summary
 void addCell(Object cell)
          Adds the given cell to the selection.
 void addCells(Object[] cells)
           
protected  void cellAdded(Object cell)
           
protected  void cellRemoved(Object cell)
           
protected  void changeSelection(Collection<Object> added, Collection<Object> removed)
           
 void clear()
          Clears the selection.
 Object getCell()
          Returns the first selected cell.
 Object[] getCells()
          Returns the selection cells.
protected  Object getFirstSelectableCell(Object[] cells)
          Returns the first selectable cell in the given array of cells.
 boolean isEmpty()
          Returns true if no cells are selected.
 boolean isSelected(Object cell)
          Returns true if the given cell is selected.
 boolean isSingleSelection()
           
 void removeCell(Object cell)
          Removes the given cell from the selection.
 void removeCells(Object[] cells)
           
 void setCell(Object cell)
          Clears the selection and adds the given cell to the selection.
 void setCells(Object[] cells)
          Clears the selection and adds the given cells.
 void setSingleSelection(boolean singleSelection)
           
 int size()
          Returns the number of selected cells.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected mxGraph graph
Reference to the enclosing graph.


singleSelection

protected boolean singleSelection
Specifies if only one selected item at a time is allowed. Default is false.


cells

protected Set<Object> cells
Holds the selection cells.

Constructor Detail

mxGraphSelectionModel

public mxGraphSelectionModel(mxGraph graph)
Constructs a new selection model for the specified graph.

Parameters:
graph -
Method Detail

isSingleSelection

public boolean isSingleSelection()
Returns:
the singleSelection

setSingleSelection

public void setSingleSelection(boolean singleSelection)
Parameters:
singleSelection - the singleSelection to set

isSelected

public boolean isSelected(Object cell)
Returns true if the given cell is selected.

Parameters:
cell -
Returns:
Returns true if the given cell is selected.

isEmpty

public boolean isEmpty()
Returns true if no cells are selected.


size

public int size()
Returns the number of selected cells.


clear

public void clear()
Clears the selection.


getCell

public Object getCell()
Returns the first selected cell.


getCells

public Object[] getCells()
Returns the selection cells.


setCell

public void setCell(Object cell)
Clears the selection and adds the given cell to the selection.


setCells

public void setCells(Object[] cells)
Clears the selection and adds the given cells.


getFirstSelectableCell

protected Object getFirstSelectableCell(Object[] cells)
Returns the first selectable cell in the given array of cells.

Parameters:
cells - Array of cells to return the first selectable cell for.
Returns:
Returns the first cell that may be selected.

addCell

public void addCell(Object cell)
Adds the given cell to the selection.


addCells

public void addCells(Object[] cells)

removeCell

public void removeCell(Object cell)
Removes the given cell from the selection.


removeCells

public void removeCells(Object[] cells)

changeSelection

protected void changeSelection(Collection<Object> added,
                               Collection<Object> removed)

cellAdded

protected void cellAdded(Object cell)

cellRemoved

protected void cellRemoved(Object cell)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxEdgeStyle.mxEdgeStyleFunction.html0000664000175000017500000002634012176166726031615 0ustar sylvestresylvestre mxEdgeStyle.mxEdgeStyleFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Interface mxEdgeStyle.mxEdgeStyleFunction

Enclosing class:
mxEdgeStyle

public static interface mxEdgeStyle.mxEdgeStyleFunction

Defines the requirements for an edge style function.


Method Summary
 void apply(mxCellState state, mxCellState source, mxCellState target, List<mxPoint> points, List<mxPoint> result)
          Implements an edge style function.
 

Method Detail

apply

void apply(mxCellState state,
           mxCellState source,
           mxCellState target,
           List<mxPoint> points,
           List<mxPoint> result)
Implements an edge style function. At the time the function is called, the result array contains a placeholder (null) for the first absolute point, that is, the point where the edge and source terminal are connected. The implementation of the style then adds all intermediate waypoints except for the last point, that is, the connection point between the edge and the target terminal. The first ant the last point in the result array are then replaced with mxPoints that take into account the terminal's perimeter and next point on the edge.

Parameters:
state - Cell state that represents the edge to be updated.
source - Cell state that represents the source terminal.
target - Cell state that represents the target terminal.
points - List of relative control points.
result - Array of points that represent the actual points of the edge.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxMultiplicity.html0000664000175000017500000010731212176166726026460 0ustar sylvestresylvestre mxMultiplicity (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxMultiplicity

java.lang.Object
  extended by com.mxgraph.view.mxMultiplicity

public class mxMultiplicity
extends Object


Field Summary
protected  String attr
          Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
protected  String countError
          Holds the localized error message to be displayed if the number of connections for which the rule applies is smaller than min or greater than max.
protected  String max
          Defines the maximum number of connections for which this rule applies.
protected  int min
          Defines the minimum number of connections for which this rule applies.
protected  boolean source
          Boolean that specifies if the rule is applied to the source or target terminal of an edge.
protected  String type
          Defines the type of the source or target terminal.
protected  String typeError
          Holds the localized error message to be displayed if the type of the neighbor for a connection does not match the rule.
protected  Collection<String> validNeighbors
          Holds an array of strings that specify the type of neighbor for which this rule applies.
protected  boolean validNeighborsAllowed
          Boolean indicating if the list of validNeighbors are those that are allowed for this rule or those that are not allowed for this rule.
protected  String value
          Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
 
Constructor Summary
mxMultiplicity(boolean source, String type, String attr, String value, int min, String max, Collection<String> validNeighbors, String countError, String typeError, boolean validNeighborsAllowed)
           
 
Method Summary
 String check(mxGraph graph, Object edge, Object source, Object target, int sourceOut, int targetIn)
          Function: check Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply.
 boolean checkNeighbors(mxGraph graph, Object edge, Object source, Object target)
          Checks the type of the given value.
 boolean checkTerminal(mxGraph graph, Object terminal, Object edge)
          Checks the type of the given value.
 boolean checkType(mxGraph graph, Object value, String type)
          Checks the type of the given value.
 boolean checkType(mxGraph graph, Object value, String type, String attr, String attrValue)
          Checks the type of the given value.
 int getMaxValue()
          Returns the numeric value of max.
 boolean isUnlimited()
          Returns true if max is "n" (unlimited).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected String type
Defines the type of the source or target terminal. The type is a string passed to mxUtils.isNode together with the source or target vertex value as the first argument.


attr

protected String attr
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.


value

protected String value
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.


source

protected boolean source
Boolean that specifies if the rule is applied to the source or target terminal of an edge.


min

protected int min
Defines the minimum number of connections for which this rule applies. Default is 0.


max

protected String max
Defines the maximum number of connections for which this rule applies. A value of 'n' means unlimited times. Default is 'n'.


validNeighbors

protected Collection<String> validNeighbors
Holds an array of strings that specify the type of neighbor for which this rule applies. The strings are used in mxCell.is on the opposite terminal to check if the rule applies to the connection.


validNeighborsAllowed

protected boolean validNeighborsAllowed
Boolean indicating if the list of validNeighbors are those that are allowed for this rule or those that are not allowed for this rule.


countError

protected String countError
Holds the localized error message to be displayed if the number of connections for which the rule applies is smaller than min or greater than max.


typeError

protected String typeError
Holds the localized error message to be displayed if the type of the neighbor for a connection does not match the rule.

Constructor Detail

mxMultiplicity

public mxMultiplicity(boolean source,
                      String type,
                      String attr,
                      String value,
                      int min,
                      String max,
                      Collection<String> validNeighbors,
                      String countError,
                      String typeError,
                      boolean validNeighborsAllowed)
Method Detail

check

public String check(mxGraph graph,
                    Object edge,
                    Object source,
                    Object target,
                    int sourceOut,
                    int targetIn)
Function: check Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply. Parameters: graph - Reference to the enclosing graph instance. edge - Cell that represents the edge to validate. source - Cell that represents the source terminal. target - Cell that represents the target terminal. sourceOut - Number of outgoing edges from the source terminal. targetIn - Number of incoming edges for the target terminal.


checkNeighbors

public boolean checkNeighbors(mxGraph graph,
                              Object edge,
                              Object source,
                              Object target)
Checks the type of the given value.


checkTerminal

public boolean checkTerminal(mxGraph graph,
                             Object terminal,
                             Object edge)
Checks the type of the given value.


checkType

public boolean checkType(mxGraph graph,
                         Object value,
                         String type)
Checks the type of the given value.


checkType

public boolean checkType(mxGraph graph,
                         Object value,
                         String type,
                         String attr,
                         String attrValue)
Checks the type of the given value.


isUnlimited

public boolean isUnlimited()
Returns true if max is "n" (unlimited).


getMaxValue

public int getMaxValue()
Returns the numeric value of max.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxSwimlaneManager.html0000664000175000017500000010314312176166726027040 0ustar sylvestresylvestre mxSwimlaneManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxSwimlaneManager

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.view.mxSwimlaneManager

public class mxSwimlaneManager
extends mxEventSource

Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if siblings is true, and its ancestors, if bubbling is true.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  boolean addEnabled
          Specifies if newly added cells should be resized to match the size of their existing siblings.
protected  mxEventSource.mxIEventListener addHandler
           
protected  boolean enabled
          Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
protected  mxGraph graph
          Defines the type of the source or target terminal.
protected  boolean horizontal
          Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
protected  boolean resizeEnabled
          Specifies if resizing of swimlanes should be handled.
protected  mxEventSource.mxIEventListener resizeHandler
           
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxSwimlaneManager(mxGraph graph)
           
 
Method Summary
protected  void cellsAdded(Object[] cells)
          Called if any cells have been added.
protected  void cellsResized(Object[] cells)
          Called if any cells have been resizes.
 void destroy()
           
 mxGraph getGraph()
           
 boolean isAddEnabled()
           
protected  boolean isCellHorizontal(Object cell)
          Returns true if the given cell is horizontal.
 boolean isEnabled()
           
 boolean isHorizontal()
           
 boolean isResizeEnabled()
           
protected  boolean isSwimlaneIgnored(Object swimlane)
          Returns true if the given swimlane should be ignored.
protected  void resizeSwimlane(Object swimlane, double w, double h)
          Sets the width or height of the given swimlane to the given value depending on .
 void setAddEnabled(boolean value)
           
 void setEnabled(boolean value)
           
 void setGraph(mxGraph graph)
           
 void setHorizontal(boolean value)
           
 void setResizeEnabled(boolean value)
           
protected  void swimlaneAdded(Object swimlane)
          Called for each swimlane which has been added.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected mxGraph graph
Defines the type of the source or target terminal. The type is a string passed to mxCell.is to check if the rule applies to a cell.


enabled

protected boolean enabled
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.


horizontal

protected boolean horizontal
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.


addEnabled

protected boolean addEnabled
Specifies if newly added cells should be resized to match the size of their existing siblings. Default is true.


resizeEnabled

protected boolean resizeEnabled
Specifies if resizing of swimlanes should be handled. Default is true.


addHandler

protected mxEventSource.mxIEventListener addHandler

resizeHandler

protected mxEventSource.mxIEventListener resizeHandler
Constructor Detail

mxSwimlaneManager

public mxSwimlaneManager(mxGraph graph)
Method Detail

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean value)
Parameters:
value - the enabled to set

isHorizontal

public boolean isHorizontal()
Returns:
the bubbling

setHorizontal

public void setHorizontal(boolean value)
Parameters:
value - the bubbling to set

isAddEnabled

public boolean isAddEnabled()
Returns:
the addEnabled

setAddEnabled

public void setAddEnabled(boolean value)
Parameters:
value - the addEnabled to set

isResizeEnabled

public boolean isResizeEnabled()
Returns:
the resizeEnabled

setResizeEnabled

public void setResizeEnabled(boolean value)
Parameters:
value - the resizeEnabled to set

getGraph

public mxGraph getGraph()
Returns:
the graph

setGraph

public void setGraph(mxGraph graph)
Parameters:
graph - the graph to set

isSwimlaneIgnored

protected boolean isSwimlaneIgnored(Object swimlane)
Returns true if the given swimlane should be ignored.


isCellHorizontal

protected boolean isCellHorizontal(Object cell)
Returns true if the given cell is horizontal. If the given cell is not a swimlane, then the value is returned.


cellsAdded

protected void cellsAdded(Object[] cells)
Called if any cells have been added. Calls swimlaneAdded for all swimlanes where isSwimlaneIgnored returns false.


swimlaneAdded

protected void swimlaneAdded(Object swimlane)
Called for each swimlane which has been added. This finds a reference sibling swimlane and applies its size to the newly added swimlane. If no sibling can be found then the parent swimlane is resized so that the new swimlane fits into the parent swimlane.


cellsResized

protected void cellsResized(Object[] cells)
Called if any cells have been resizes. Calls swimlaneResized for all swimlanes where isSwimlaneIgnored returns false.


resizeSwimlane

protected void resizeSwimlane(Object swimlane,
                              double w,
                              double h)
Sets the width or height of the given swimlane to the given value depending on . If is true, then the width is set, otherwise, the height is set.


destroy

public void destroy()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxGraph.mxICellVisitor.html0000664000175000017500000002165512176166726027752 0ustar sylvestresylvestre mxGraph.mxICellVisitor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Interface mxGraph.mxICellVisitor

Enclosing class:
mxGraph

public static interface mxGraph.mxICellVisitor


Method Summary
 boolean visit(Object vertex, Object edge)
           
 

Method Detail

visit

boolean visit(Object vertex,
              Object edge)
Parameters:
vertex -
edge -

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxEdgeStyle.html0000664000175000017500000007210112176166726025652 0ustar sylvestresylvestre mxEdgeStyle (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxEdgeStyle

java.lang.Object
  extended by com.mxgraph.view.mxEdgeStyle

public class mxEdgeStyle
extends Object

Provides various edge styles to be used as the values for mxConstants.STYLE_EDGE in a cell style. Alternatevly, the mxConstants. EDGESTYLE_* constants can be used to reference an edge style via the mxStyleRegistry.


Nested Class Summary
static interface mxEdgeStyle.mxEdgeStyleFunction
          Defines the requirements for an edge style function.
 
Field Summary
static int BOTTOM
           
static int BOTTOM_MASK
           
static int CENTER_MASK
           
static double[][] dirVectors
           
static mxEdgeStyle.mxEdgeStyleFunction ElbowConnector
          Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell style.
static mxEdgeStyle.mxEdgeStyleFunction EntityRelation
          Provides an entity relation style for edges (as used in database schema diagrams).
static double hozBendProportion
           
static int[][][] inlineRoutePatterns
          Overriden routing patterns for orthogonal connections where the vertices have
static int LEFT
           
static int LEFT_MASK
           
static double[][] limits
           
static mxEdgeStyle.mxEdgeStyleFunction Loop
          Provides a self-reference, aka.
static double orthBuffer
           
static mxEdgeStyle.mxEdgeStyleFunction OrthConnector
          An orthogonal connector that avoids connecting vertices and respects port constraints
static int RIGHT
           
static int RIGHT_MASK
           
static int[][][] routePatterns
          The default routing patterns for orthogonal connections
static mxEdgeStyle.mxEdgeStyleFunction SegmentConnector
          Implements an orthogonal edge style.
static int SIDE_MASK
           
static mxEdgeStyle.mxEdgeStyleFunction SideToSide
          Provides a vertical elbow edge.
static int SOURCE_MASK
           
static int TARGET_MASK
           
static int TOP
           
static int TOP_MASK
           
static mxEdgeStyle.mxEdgeStyleFunction TopToBottom
          Provides a horizontal elbow edge.
static double vertBendProportion
           
static int VERTEX_MASK
           
static double[] vertexSeperations
           
static double[][] wayPoints1
           
 
Constructor Summary
mxEdgeStyle()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EntityRelation

public static mxEdgeStyle.mxEdgeStyleFunction EntityRelation
Provides an entity relation style for edges (as used in database schema diagrams).


Loop

public static mxEdgeStyle.mxEdgeStyleFunction Loop
Provides a self-reference, aka. loop.


ElbowConnector

public static mxEdgeStyle.mxEdgeStyleFunction ElbowConnector
Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell style. SideToSide is used if horizontal is true or unspecified.


SideToSide

public static mxEdgeStyle.mxEdgeStyleFunction SideToSide
Provides a vertical elbow edge.


TopToBottom

public static mxEdgeStyle.mxEdgeStyleFunction TopToBottom
Provides a horizontal elbow edge.


SegmentConnector

public static mxEdgeStyle.mxEdgeStyleFunction SegmentConnector
Implements an orthogonal edge style. Use as an interactive handler for this style.


orthBuffer

public static double orthBuffer

dirVectors

public static double[][] dirVectors

wayPoints1

public static double[][] wayPoints1

routePatterns

public static int[][][] routePatterns
The default routing patterns for orthogonal connections


inlineRoutePatterns

public static int[][][] inlineRoutePatterns
Overriden routing patterns for orthogonal connections where the vertices have


vertexSeperations

public static double[] vertexSeperations

limits

public static double[][] limits

LEFT_MASK

public static int LEFT_MASK

TOP_MASK

public static int TOP_MASK

RIGHT_MASK

public static int RIGHT_MASK

BOTTOM_MASK

public static int BOTTOM_MASK

LEFT

public static int LEFT

TOP

public static int TOP

RIGHT

public static int RIGHT

BOTTOM

public static int BOTTOM

SIDE_MASK

public static int SIDE_MASK

CENTER_MASK

public static int CENTER_MASK

SOURCE_MASK

public static int SOURCE_MASK

TARGET_MASK

public static int TARGET_MASK

VERTEX_MASK

public static int VERTEX_MASK

vertBendProportion

public static double vertBendProportion

hozBendProportion

public static double hozBendProportion

OrthConnector

public static mxEdgeStyle.mxEdgeStyleFunction OrthConnector
An orthogonal connector that avoids connecting vertices and respects port constraints

Constructor Detail

mxEdgeStyle

public mxEdgeStyle()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxTemporaryCellStates.html0000664000175000017500000004372012176166726027740 0ustar sylvestresylvestre mxTemporaryCellStates (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxTemporaryCellStates

java.lang.Object
  extended by com.mxgraph.view.mxTemporaryCellStates

public class mxTemporaryCellStates
extends Object


Field Summary
protected  mxRectangle oldBounds
           
protected  double oldScale
           
protected  Hashtable<Object,mxCellState> oldStates
           
protected  mxGraphView view
           
 
Constructor Summary
mxTemporaryCellStates(mxGraphView view)
          Constructs a new temporary cell states instance.
mxTemporaryCellStates(mxGraphView view, double scale)
          Constructs a new temporary cell states instance.
mxTemporaryCellStates(mxGraphView view, double scale, Object[] cells)
          Constructs a new temporary cell states instance.
 
Method Summary
 void destroy()
          Destroys the cell states and restores the state of the graph view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected mxGraphView view

oldStates

protected Hashtable<Object,mxCellState> oldStates

oldBounds

protected mxRectangle oldBounds

oldScale

protected double oldScale
Constructor Detail

mxTemporaryCellStates

public mxTemporaryCellStates(mxGraphView view)
Constructs a new temporary cell states instance.


mxTemporaryCellStates

public mxTemporaryCellStates(mxGraphView view,
                             double scale)
Constructs a new temporary cell states instance.


mxTemporaryCellStates

public mxTemporaryCellStates(mxGraphView view,
                             double scale,
                             Object[] cells)
Constructs a new temporary cell states instance.

Method Detail

destroy

public void destroy()
Destroys the cell states and restores the state of the graph view.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxPerimeter.mxPerimeterFunction.html0000664000175000017500000002403012176166726031725 0ustar sylvestresylvestre mxPerimeter.mxPerimeterFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Interface mxPerimeter.mxPerimeterFunction

Enclosing class:
mxPerimeter

public static interface mxPerimeter.mxPerimeterFunction

Defines the requirements for a perimeter function.


Method Summary
 mxPoint apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)
          Implements a perimeter function.
 

Method Detail

apply

mxPoint apply(mxRectangle bounds,
              mxCellState vertex,
              mxPoint next,
              boolean orthogonal)
Implements a perimeter function.

Parameters:
bounds - Rectangle that represents the absolute bounds of the vertex.
vertex - Cell state that represents the vertex.
next - Point that represents the nearest neighbour point on the given edge.
orthogonal - Boolean that specifies if the orthogonal projection onto the perimeter should be returned. If this is false then the intersection of the perimeter and the line between the next and the center point is returned.
Returns:
Returns the perimeter point.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxCellState.html0000664000175000017500000017341212176166726025654 0ustar sylvestresylvestre mxCellState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxCellState

java.lang.Object
  extended by com.mxgraph.util.mxPoint
      extended by com.mxgraph.util.mxRectangle
          extended by com.mxgraph.view.mxCellState
All Implemented Interfaces:
Serializable, Cloneable

public class mxCellState
extends mxRectangle

Represents the current state of a cell in a given graph view.

See Also:
Serialized Form

Field Summary
protected  mxPoint absoluteOffset
          Holds the absolute offset.
protected  List<mxPoint> absolutePoints
          List of mxPoints that represent the absolute points of an edge.
protected  mxRectangle boundingBox
          Holds the largest rectangle which contains all rendering for this cell.
protected  Object cell
          Reference to the cell that is represented by this state.
protected  boolean invalid
          Specifies if the state is invalid.
protected  String label
          Holds the current label value, including newlines which result from word wrapping.
protected  mxRectangle labelBounds
          Holds the rectangle which contains the label.
protected  double length
          Caches the distance between the end points and the length of an edge.
protected  mxPoint origin
          Holds the origin for all child cells.
protected  double[] segments
          Array of numbers that represent the cached length of each segment of the edge.
protected  Map<String,Object> style
          Contains an array of key, value pairs that represent the style of the cell.
protected  double terminalDistance
          Caches the distance between the end points and the length of an edge.
protected  mxGraphView view
          Reference to the enclosing graph view.
protected  mxCellState visibleSourceState
          Caches the visible source and target terminal states.
protected  mxCellState visibleTargetState
          Caches the visible source and target terminal states.
 
Fields inherited from class com.mxgraph.util.mxRectangle
height, width
 
Fields inherited from class com.mxgraph.util.mxPoint
x, y
 
Constructor Summary
mxCellState()
          Constructs an empty cell state.
mxCellState(mxGraphView view, Object cell, Map<String,Object> style)
          Constructs a new object that represents the current state of the given cell in the specified view.
 
Method Summary
 Object clone()
          Returns a clone of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance.
 mxPoint getAbsoluteOffset()
          Returns the absolute offset.
 mxPoint getAbsolutePoint(int index)
          Returns the absolute point at the given index.
 int getAbsolutePointCount()
          Returns the number of absolute points.
 List<mxPoint> getAbsolutePoints()
          Returns the absolute points.
 mxRectangle getBoundingBox()
          Returns the bounding box.
 Object getCell()
          Returns the cell that is represented by this state.
 String getLabel()
          Returns the current label.
 mxRectangle getLabelBounds()
          Returns the label bounds.
 double getLength()
          Returns the length.
 mxPoint getOrigin()
          Returns the origin for the children.
 mxRectangle getPerimeterBounds()
          Returns the rectangle that should be used as the perimeter of the cell.
 mxRectangle getPerimeterBounds(double border)
          Returns the rectangle that should be used as the perimeter of the cell.
 double[] getSegments()
          Returns the length of the segments.
 Map<String,Object> getStyle()
          Returns the cell style as a map of key, value pairs.
 double getTerminalDistance()
          Returns the terminal distance.
 mxGraphView getView()
          Returns the enclosing graph view.
 Object getVisibleTerminal(boolean source)
          Returns the visible source or target terminal cell.
 mxCellState getVisibleTerminalState(boolean source)
          Returns the visible source or target terminal state.
 boolean isInvalid()
          Returns true if the state is invalid.
 void setAbsoluteOffset(mxPoint absoluteOffset)
          Returns the absolute offset.
 mxPoint setAbsolutePoint(int index, mxPoint point)
          Returns the absolute point at the given index.
 void setAbsolutePoints(List<mxPoint> absolutePoints)
          Returns the absolute points.
 void setAbsoluteTerminalPoint(mxPoint point, boolean isSource)
          Sets the first or last point in the list of points depending on isSource.
 void setBoundingBox(mxRectangle boundingBox)
          Sets the bounding box.
 void setCell(Object cell)
          Sets the cell that this state represents.
 void setInvalid(boolean invalid)
          Sets the invalid state.
 void setLabel(String value)
          Returns the current label.
 void setLabelBounds(mxRectangle labelBounds)
          Sets the label bounds.
 void setLength(double length)
          Sets the length.
 void setOrigin(mxPoint origin)
          Sets the origin for the children.
 void setSegments(double[] segments)
          Sets the length of the segments.
 void setStyle(Map<String,Object> style)
          Sets the cell style as a map of key, value pairs.
 void setTerminalDistance(double terminalDistance)
          Sets the terminal distance.
 void setView(mxGraphView view)
          Sets the enclosing graph view.
 void setVisibleTerminalState(mxCellState terminalState, boolean source)
          Sets the visible source or target terminal state.
 
Methods inherited from class com.mxgraph.util.mxRectangle
add, contains, equals, getCenterX, getCenterY, getHeight, getRectangle, getWidth, grow, intersectLine, setHeight, setRect, setWidth, toString
 
Methods inherited from class com.mxgraph.util.mxPoint
getPoint, getX, getY, setX, setY
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

view

protected mxGraphView view
Reference to the enclosing graph view.


cell

protected Object cell
Reference to the cell that is represented by this state.


label

protected String label
Holds the current label value, including newlines which result from word wrapping.


style

protected Map<String,Object> style
Contains an array of key, value pairs that represent the style of the cell.


origin

protected mxPoint origin
Holds the origin for all child cells.


absolutePoints

protected List<mxPoint> absolutePoints
List of mxPoints that represent the absolute points of an edge.


absoluteOffset

protected mxPoint absoluteOffset
Holds the absolute offset. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex.


terminalDistance

protected double terminalDistance
Caches the distance between the end points and the length of an edge.


length

protected double length
Caches the distance between the end points and the length of an edge.


segments

protected double[] segments
Array of numbers that represent the cached length of each segment of the edge.


labelBounds

protected mxRectangle labelBounds
Holds the rectangle which contains the label.


boundingBox

protected mxRectangle boundingBox
Holds the largest rectangle which contains all rendering for this cell.


invalid

protected boolean invalid
Specifies if the state is invalid. Default is true.


visibleSourceState

protected mxCellState visibleSourceState
Caches the visible source and target terminal states.


visibleTargetState

protected mxCellState visibleTargetState
Caches the visible source and target terminal states.

Constructor Detail

mxCellState

public mxCellState()
Constructs an empty cell state.


mxCellState

public mxCellState(mxGraphView view,
                   Object cell,
                   Map<String,Object> style)
Constructs a new object that represents the current state of the given cell in the specified view.

Parameters:
view - Graph view that contains the state.
cell - Cell that this state represents.
style - Array of key, value pairs that constitute the style.
Method Detail

isInvalid

public boolean isInvalid()
Returns true if the state is invalid.


setInvalid

public void setInvalid(boolean invalid)
Sets the invalid state.


getView

public mxGraphView getView()
Returns the enclosing graph view.

Returns:
the view

setView

public void setView(mxGraphView view)
Sets the enclosing graph view.

Parameters:
view - the view to set

getLabel

public String getLabel()
Returns the current label.


setLabel

public void setLabel(String value)
Returns the current label.


getCell

public Object getCell()
Returns the cell that is represented by this state.

Returns:
the cell

setCell

public void setCell(Object cell)
Sets the cell that this state represents.

Parameters:
cell - the cell to set

getStyle

public Map<String,Object> getStyle()
Returns the cell style as a map of key, value pairs.

Returns:
the style

setStyle

public void setStyle(Map<String,Object> style)
Sets the cell style as a map of key, value pairs.

Parameters:
style - the style to set

getOrigin

public mxPoint getOrigin()
Returns the origin for the children.

Returns:
the origin

setOrigin

public void setOrigin(mxPoint origin)
Sets the origin for the children.

Parameters:
origin - the origin to set

getAbsolutePoint

public mxPoint getAbsolutePoint(int index)
Returns the absolute point at the given index.

Returns:
the mxPoint at the given index

setAbsolutePoint

public mxPoint setAbsolutePoint(int index,
                                mxPoint point)
Returns the absolute point at the given index.

Returns:
the mxPoint at the given index

getAbsolutePointCount

public int getAbsolutePointCount()
Returns the number of absolute points.

Returns:
the absolutePoints

getAbsolutePoints

public List<mxPoint> getAbsolutePoints()
Returns the absolute points.

Returns:
the absolutePoints

setAbsolutePoints

public void setAbsolutePoints(List<mxPoint> absolutePoints)
Returns the absolute points.

Parameters:
absolutePoints - the absolutePoints to set

getAbsoluteOffset

public mxPoint getAbsoluteOffset()
Returns the absolute offset.

Returns:
the absoluteOffset

setAbsoluteOffset

public void setAbsoluteOffset(mxPoint absoluteOffset)
Returns the absolute offset.

Parameters:
absoluteOffset - the absoluteOffset to set

getTerminalDistance

public double getTerminalDistance()
Returns the terminal distance.

Returns:
the terminalDistance

setTerminalDistance

public void setTerminalDistance(double terminalDistance)
Sets the terminal distance.

Parameters:
terminalDistance - the terminalDistance to set

getLength

public double getLength()
Returns the length.

Returns:
the length

setLength

public void setLength(double length)
Sets the length.

Parameters:
length - the length to set

getSegments

public double[] getSegments()
Returns the length of the segments.

Returns:
the segments

setSegments

public void setSegments(double[] segments)
Sets the length of the segments.

Parameters:
segments - the segments to set

getLabelBounds

public mxRectangle getLabelBounds()
Returns the label bounds.

Returns:
Returns the label bounds for this state.

setLabelBounds

public void setLabelBounds(mxRectangle labelBounds)
Sets the label bounds.

Parameters:
labelBounds -

getBoundingBox

public mxRectangle getBoundingBox()
Returns the bounding box.

Returns:
Returns the bounding box for this state.

setBoundingBox

public void setBoundingBox(mxRectangle boundingBox)
Sets the bounding box.

Parameters:
boundingBox -

getPerimeterBounds

public mxRectangle getPerimeterBounds()
Returns the rectangle that should be used as the perimeter of the cell. This implementation adds the perimeter spacing to the rectangle defined by this cell state.

Returns:
Returns the rectangle that defines the perimeter.

getPerimeterBounds

public mxRectangle getPerimeterBounds(double border)
Returns the rectangle that should be used as the perimeter of the cell.

Returns:
Returns the rectangle that defines the perimeter.

setAbsoluteTerminalPoint

public void setAbsoluteTerminalPoint(mxPoint point,
                                     boolean isSource)
Sets the first or last point in the list of points depending on isSource.

Parameters:
point - Point that represents the terminal point.
isSource - Boolean that specifies if the first or last point should be assigned.

getVisibleTerminal

public Object getVisibleTerminal(boolean source)
Returns the visible source or target terminal cell.

Parameters:
source - Boolean that specifies if the source or target cell should be returned.

getVisibleTerminalState

public mxCellState getVisibleTerminalState(boolean source)
Returns the visible source or target terminal state.

Parameters:
Boolean - that specifies if the source or target state should be returned.

setVisibleTerminalState

public void setVisibleTerminalState(mxCellState terminalState,
                                    boolean source)
Sets the visible source or target terminal state.

Parameters:
terminalState - Cell state that represents the terminal.
source - Boolean that specifies if the source or target state should be set.

clone

public Object clone()
Returns a clone of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance.

Overrides:
clone in class mxRectangle

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxStylesheet.html0000664000175000017500000010435412176166726026124 0ustar sylvestresylvestre mxStylesheet (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxStylesheet

java.lang.Object
  extended by com.mxgraph.view.mxStylesheet

public class mxStylesheet
extends Object

Defines the appearance of the cells in a graph. The following example changes the font size for all vertices by changing the default vertex style in-place: getDefaultVertexStyle().put(mxConstants.STYLE_FONTSIZE, 16); To change the default font size for all cells, set mxConstants.DEFAULT_FONTSIZE.


Field Summary
static Map<String,Object> EMPTY_STYLE
          Shared immutable empty hashtable (for undefined cell styles).
protected  Map<String,Map<String,Object>> styles
          Maps from names to styles.
 
Constructor Summary
mxStylesheet()
          Constructs a new stylesheet and assigns default styles.
 
Method Summary
protected  Map<String,Object> createDefaultEdgeStyle()
          Creates and returns the default edge style.
protected  Map<String,Object> createDefaultVertexStyle()
          Creates and returns the default vertex style.
 Map<String,Object> getCellStyle(String name, Map<String,Object> defaultStyle)
          Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename.
 Map<String,Object> getDefaultEdgeStyle()
          Returns the default style for edges.
 Map<String,Object> getDefaultVertexStyle()
          Returns the default style for vertices.
 Map<String,Map<String,Object>> getStyles()
          Returns all styles as map of name, hashtable pairs.
 void putCellStyle(String name, Map<String,Object> style)
          Stores the specified style under the given name.
 void setDefaultEdgeStyle(Map<String,Object> value)
          Sets the default style for edges.
 void setDefaultVertexStyle(Map<String,Object> value)
          Sets the default style for vertices.
 void setStyles(Map<String,Map<String,Object>> styles)
          Sets all styles in the stylesheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STYLE

public static final Map<String,Object> EMPTY_STYLE
Shared immutable empty hashtable (for undefined cell styles).


styles

protected Map<String,Map<String,Object>> styles
Maps from names to styles.

Constructor Detail

mxStylesheet

public mxStylesheet()
Constructs a new stylesheet and assigns default styles.

Method Detail

getStyles

public Map<String,Map<String,Object>> getStyles()
Returns all styles as map of name, hashtable pairs.

Returns:
All styles in this stylesheet.

setStyles

public void setStyles(Map<String,Map<String,Object>> styles)
Sets all styles in the stylesheet.


createDefaultVertexStyle

protected Map<String,Object> createDefaultVertexStyle()
Creates and returns the default vertex style.

Returns:
Returns the default vertex style.

createDefaultEdgeStyle

protected Map<String,Object> createDefaultEdgeStyle()
Creates and returns the default edge style.

Returns:
Returns the default edge style.

getDefaultVertexStyle

public Map<String,Object> getDefaultVertexStyle()
Returns the default style for vertices.

Returns:
Returns the default vertex style.

setDefaultVertexStyle

public void setDefaultVertexStyle(Map<String,Object> value)
Sets the default style for vertices.

Parameters:
value - Style to be used for vertices.

getDefaultEdgeStyle

public Map<String,Object> getDefaultEdgeStyle()
Returns the default style for edges.

Returns:
Returns the default edge style.

setDefaultEdgeStyle

public void setDefaultEdgeStyle(Map<String,Object> value)
Sets the default style for edges.

Parameters:
value - Style to be used for edges.

putCellStyle

public void putCellStyle(String name,
                         Map<String,Object> style)
Stores the specified style under the given name.

Parameters:
name - Name for the style to be stored.
style - Key, value pairs that define the style.

getCellStyle

public Map<String,Object> getCellStyle(String name,
                                       Map<String,Object> defaultStyle)
Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename.

Parameters:
name - String of the form [(stylename|key=value);] that represents the style.
defaultStyle - Default style to be returned if no style can be found.
Returns:
Returns the style for the given formatted cell style.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxLayoutManager.html0000664000175000017500000010060012176166726026531 0ustar sylvestresylvestre mxLayoutManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxLayoutManager

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.view.mxLayoutManager

public class mxLayoutManager
extends mxEventSource

Implements a layout manager that updates the layout for a given transaction. The following example installs an automatic tree layout in a graph: new mxLayoutManager(graph) { mxCompactTreeLayout layout = new mxCompactTreeLayout(graph); public mxIGraphLayout getLayout(Object parent) { if (graph.getModel().getChildCount(parent) > 0) { return layout; } return null; } }; This class fires the following event: mxEvent.LAYOUT_CELLS fires between begin- and endUpdate after all cells have been layouted in layoutCells. The cells property contains all cells that have been passed to layoutCells.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  boolean bubbling
          Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
protected  boolean enabled
          Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
protected  mxGraph graph
          Defines the type of the source or target terminal.
protected  mxEventSource.mxIEventListener moveHandler
           
protected  mxEventSource.mxIEventListener undoHandler
           
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxLayoutManager(mxGraph graph)
           
 
Method Summary
protected  void beforeUndo(mxUndoableEdit edit)
           
protected  void cellsMoved(Object[] cells, Point location)
           
 void destroy()
           
protected  void executeLayout(mxIGraphLayout layout, Object parent)
           
protected  Collection<Object> getCellsForChange(mxUndoableEdit.mxUndoableChange change)
           
protected  Collection<Object> getCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
           
 mxGraph getGraph()
           
protected  mxIGraphLayout getLayout(Object parent)
           
 boolean isBubbling()
           
 boolean isEnabled()
           
protected  void layoutCells(Object[] cells)
           
 void setBubbling(boolean value)
           
 void setEnabled(boolean value)
           
 void setGraph(mxGraph value)
           
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected mxGraph graph
Defines the type of the source or target terminal. The type is a string passed to mxCell.is to check if the rule applies to a cell.


enabled

protected boolean enabled
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell. Default is true.


bubbling

protected boolean bubbling
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell. Default is true.


undoHandler

protected mxEventSource.mxIEventListener undoHandler

moveHandler

protected mxEventSource.mxIEventListener moveHandler
Constructor Detail

mxLayoutManager

public mxLayoutManager(mxGraph graph)
Method Detail

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean value)
Parameters:
value - the enabled to set

isBubbling

public boolean isBubbling()
Returns:
the bubbling

setBubbling

public void setBubbling(boolean value)
Parameters:
value - the bubbling to set

getGraph

public mxGraph getGraph()
Returns:
the graph

setGraph

public void setGraph(mxGraph value)
Parameters:
value - the graph to set

getLayout

protected mxIGraphLayout getLayout(Object parent)

cellsMoved

protected void cellsMoved(Object[] cells,
                          Point location)

beforeUndo

protected void beforeUndo(mxUndoableEdit edit)

getCellsForChanges

protected Collection<Object> getCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)

getCellsForChange

protected Collection<Object> getCellsForChange(mxUndoableEdit.mxUndoableChange change)

layoutCells

protected void layoutCells(Object[] cells)

executeLayout

protected void executeLayout(mxIGraphLayout layout,
                             Object parent)

destroy

public void destroy()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxGraphView.mxCurrentRootChange.html0000664000175000017500000004771012176166726031631 0ustar sylvestresylvestre mxGraphView.mxCurrentRootChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxGraphView.mxCurrentRootChange

java.lang.Object
  extended by com.mxgraph.view.mxGraphView.mxCurrentRootChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphView

public static class mxGraphView.mxCurrentRootChange
extends Object
implements mxUndoableEdit.mxUndoableChange

Action to change the current root in a view.


Field Summary
protected  Object previous
           
protected  Object root
           
protected  boolean up
           
protected  mxGraphView view
           
 
Constructor Summary
mxGraphView.mxCurrentRootChange(mxGraphView view, Object root)
          Constructs a change of the current root in the given view.
 
Method Summary
 void execute()
          Changes the current root of the view.
 Object getPrevious()
          Returns the previous root.
 Object getRoot()
          Returns the root.
 mxGraphView getView()
          Returns the graph view where the change happened.
 boolean isUp()
          Returns true if the drilling went upwards.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected mxGraphView view

root

protected Object root

previous

protected Object previous

up

protected boolean up
Constructor Detail

mxGraphView.mxCurrentRootChange

public mxGraphView.mxCurrentRootChange(mxGraphView view,
                                       Object root)
Constructs a change of the current root in the given view.

Method Detail

getView

public mxGraphView getView()
Returns the graph view where the change happened.


getRoot

public Object getRoot()
Returns the root.


getPrevious

public Object getPrevious()
Returns the previous root.


isUp

public boolean isUp()
Returns true if the drilling went upwards.


execute

public void execute()
Changes the current root of the view.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/0000775000175000017500000000000012176166726024430 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraphSelectionModel.html0000664000175000017500000002673512176166726031570 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxGraphSelectionModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxGraphSelectionModel

Packages that use mxGraphSelectionModel
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxGraphSelectionModel in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxGraphSelectionModel
protected  mxGraphSelectionModel mxGraphSelectionModel.mxSelectionChange.model
           
protected  mxGraphSelectionModel mxGraph.selectionModel
          Holds the that models the current selection.
 

Methods in com.mxgraph.view that return mxGraphSelectionModel
protected  mxGraphSelectionModel mxGraph.createSelectionModel()
          Constructs a new selection model to be used in this graph.
 mxGraphSelectionModel mxGraph.getSelectionModel()
           
 

Constructors in com.mxgraph.view with parameters of type mxGraphSelectionModel
mxGraphSelectionModel.mxSelectionChange(mxGraphSelectionModel model, Collection<Object> added, Collection<Object> removed)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxEdgeStyle.mxEdgeStyleFunction.html0000664000175000017500000003635212176166726033520 0ustar sylvestresylvestre Uses of Interface com.mxgraph.view.mxEdgeStyle.mxEdgeStyleFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.view.mxEdgeStyle.mxEdgeStyleFunction

Packages that use mxEdgeStyle.mxEdgeStyleFunction
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxEdgeStyle.mxEdgeStyleFunction in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxEdgeStyle.mxEdgeStyleFunction
protected  mxEdgeStyle.mxEdgeStyleFunction mxGraph.defaultLoopStyle
          Specifies the default style for loops.
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.ElbowConnector
          Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell style.
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.EntityRelation
          Provides an entity relation style for edges (as used in database schema diagrams).
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.Loop
          Provides a self-reference, aka.
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.OrthConnector
          An orthogonal connector that avoids connecting vertices and respects port constraints
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.SegmentConnector
          Implements an orthogonal edge style.
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.SideToSide
          Provides a vertical elbow edge.
static mxEdgeStyle.mxEdgeStyleFunction mxEdgeStyle.TopToBottom
          Provides a horizontal elbow edge.
 

Methods in com.mxgraph.view that return mxEdgeStyle.mxEdgeStyleFunction
 mxEdgeStyle.mxEdgeStyleFunction mxGraph.getDefaultLoopStyle()
          Returns the default edge style used for loops.
 mxEdgeStyle.mxEdgeStyleFunction mxGraphView.getEdgeStyle(mxCellState edge, List<mxPoint> points, Object source, Object target)
          Returns the edge style function to be used to compute the absolute points for the given state, control points and terminals.
 

Methods in com.mxgraph.view with parameters of type mxEdgeStyle.mxEdgeStyleFunction
 void mxGraph.setDefaultLoopStyle(mxEdgeStyle.mxEdgeStyleFunction value)
          Sets the default style used for loops.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxMultiplicity.html0000664000175000017500000002303312176166726030354 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxMultiplicity (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxMultiplicity

Packages that use mxMultiplicity
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxMultiplicity in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxMultiplicity
protected  mxMultiplicity[] mxGraph.multiplicities
          Specifies the multiplicities to be used for validation of the graph.
 

Methods in com.mxgraph.view that return mxMultiplicity
 mxMultiplicity[] mxGraph.getMultiplicities()
           
 

Methods in com.mxgraph.view with parameters of type mxMultiplicity
 void mxGraph.setMultiplicities(mxMultiplicity[] value)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxSwimlaneManager.html0000664000175000017500000001370012176166726030736 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxSwimlaneManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxSwimlaneManager

No usage of com.mxgraph.view.mxSwimlaneManager


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraph.mxICellVisitor.html0000664000175000017500000003331112176166726031641 0ustar sylvestresylvestre Uses of Interface com.mxgraph.view.mxGraph.mxICellVisitor (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.view.mxGraph.mxICellVisitor

Packages that use mxGraph.mxICellVisitor
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxGraph.mxICellVisitor in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis with parameters of type mxGraph.mxICellVisitor
static void mxTraversal.bfs(mxAnalysisGraph aGraph, Object startVertex, mxGraph.mxICellVisitor visitor)
          Implements a recursive breadth first search starting from the specified cell.
static void mxTraversal.dfs(mxAnalysisGraph aGraph, Object startVertex, mxGraph.mxICellVisitor visitor)
          Implements a recursive depth first search starting from the specified cell.
static void mxTraversal.dijkstra(mxAnalysisGraph aGraph, Object startVertex, Object endVertex, mxGraph.mxICellVisitor visitor)
          Implements the Dijkstra's shortest path from startVertex to endVertex.
 

Uses of mxGraph.mxICellVisitor in com.mxgraph.view
 

Methods in com.mxgraph.view with parameters of type mxGraph.mxICellVisitor
 void mxGraph.traverse(Object vertex, boolean directed, mxGraph.mxICellVisitor visitor)
          Traverses the tree starting at the given vertex.
 void mxGraph.traverse(Object vertex, boolean directed, mxGraph.mxICellVisitor visitor, Object edge, Set<Object> visited)
          Traverses the (directed) graph invoking the given function for each visited vertex and edge.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxEdgeStyle.html0000664000175000017500000001360412176166726027554 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxEdgeStyle (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxEdgeStyle

No usage of com.mxgraph.view.mxEdgeStyle


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxTemporaryCellStates.html0000664000175000017500000001375012176166726031637 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxTemporaryCellStates (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxTemporaryCellStates

No usage of com.mxgraph.view.mxTemporaryCellStates


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxPerimeter.mxPerimeterFunction.html0000664000175000017500000002646412176166726033641 0ustar sylvestresylvestre Uses of Interface com.mxgraph.view.mxPerimeter.mxPerimeterFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.view.mxPerimeter.mxPerimeterFunction

Packages that use mxPerimeter.mxPerimeterFunction
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxPerimeter.mxPerimeterFunction in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxPerimeter.mxPerimeterFunction
static mxPerimeter.mxPerimeterFunction mxPerimeter.EllipsePerimeter
          Describes an elliptic perimeter.
static mxPerimeter.mxPerimeterFunction mxPerimeter.HexagonPerimeter
          Describes a hexagon perimeter.
static mxPerimeter.mxPerimeterFunction mxPerimeter.RectanglePerimeter
          Describes a rectangular perimeter for the given bounds.
static mxPerimeter.mxPerimeterFunction mxPerimeter.RhombusPerimeter
          Describes a rhombus (aka diamond) perimeter.
static mxPerimeter.mxPerimeterFunction mxPerimeter.TrianglePerimeter
          Describes a triangle perimeter.
 

Methods in com.mxgraph.view that return mxPerimeter.mxPerimeterFunction
 mxPerimeter.mxPerimeterFunction mxGraphView.getPerimeterFunction(mxCellState state)
          Returns the perimeter function for the given state.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxCellState.html0000664000175000017500000055047212176166726027560 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxCellState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxCellState

Packages that use mxCellState
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.costfunction   
com.mxgraph.generatorfunction   
com.mxgraph.layout This package contains various graph layouts. 
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxCellState in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis that return mxCellState
 mxCellState[] mxGraphAnalysis.sort(mxCellState[] states, mxICostFunction cf)
          Returns a sorted set for cells with respect to cf.
 

Methods in com.mxgraph.analysis with parameters of type mxCellState
 double mxDistanceCostFunction.getCost(mxCellState state)
          Returns the Euclidean length of the edge defined by the absolute points in the given state or 0 if no points are defined.
 double mxICostFunction.getCost(mxCellState state)
          Evaluates the cost of the given cell state.
 double mxConstantCostFunction.getCost(mxCellState state)
           
 mxCellState[] mxGraphAnalysis.sort(mxCellState[] states, mxICostFunction cf)
          Returns a sorted set for cells with respect to cf.
 double mxGraphAnalysis.sum(mxCellState[] states, mxICostFunction cf)
          Returns the sum of all cost for cells with respect to cf.
 

Uses of mxCellState in com.mxgraph.canvas
 

Methods in com.mxgraph.canvas with parameters of type mxCellState
 Object mxHtmlCanvas.drawCell(mxCellState state)
           
 Object mxImageCanvas.drawCell(mxCellState state)
           
 Object mxGraphics2DCanvas.drawCell(mxCellState state)
           
 Object mxICanvas.drawCell(mxCellState state)
          Draws the given cell.
 Object mxSvgCanvas.drawCell(mxCellState state)
           
 Object mxVmlCanvas.drawCell(mxCellState state)
           
 Object mxHtmlCanvas.drawLabel(String label, mxCellState state, boolean html)
           
 Object mxImageCanvas.drawLabel(String label, mxCellState state, boolean html)
           
 Object mxGraphics2DCanvas.drawLabel(String text, mxCellState state, boolean html)
           
 Object mxICanvas.drawLabel(String text, mxCellState state, boolean html)
          Draws the given label.
 Object mxSvgCanvas.drawLabel(String label, mxCellState state, boolean html)
           
 Object mxVmlCanvas.drawLabel(String label, mxCellState state, boolean html)
           
 

Uses of mxCellState in com.mxgraph.costfunction
 

Methods in com.mxgraph.costfunction with parameters of type mxCellState
 double mxConstCostFunction.getCost(mxCellState state)
           
 double mxDoubleValCostFunction.getCost(mxCellState state)
           
 

Uses of mxCellState in com.mxgraph.generatorfunction
 

Methods in com.mxgraph.generatorfunction with parameters of type mxCellState
 double mxGeneratorConstFunction.getCost(mxCellState state)
           
 double mxGeneratorRandomFunction.getCost(mxCellState state)
           
 double mxGeneratorRandomIntFunction.getCost(mxCellState state)
           
 

Uses of mxCellState in com.mxgraph.layout
 

Methods in com.mxgraph.layout with parameters of type mxCellState
protected  void mxEdgeLabelLayout.avoid(mxCellState edge, mxCellState vertex)
           
 

Uses of mxCellState in com.mxgraph.reader
 

Methods in com.mxgraph.reader with parameters of type mxCellState
 String mxGraphViewReader.parseState(mxCellState state, boolean edge)
          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.
 

Uses of mxCellState in com.mxgraph.shape
 

Fields in com.mxgraph.shape declared as mxCellState
protected  mxCellState mxCurveLabelShape.state
          Cache the state associated with this shape
 

Methods in com.mxgraph.shape with parameters of type mxCellState
protected  mxRectangle mxStencil.computeAspect(mxCellState state, mxRectangle bounds, String direction)
          Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.
protected  boolean mxBasicShape.configureGraphics(mxGraphics2DCanvas canvas, mxCellState state, boolean background)
          Configures the graphics object ready to paint.
 mxPoint[] mxLineShape.createPoints(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxEllipseShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxActorShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxBasicShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxRhombusShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxHexagonShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxCloudShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxTriangleShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 Shape mxArrowShape.createShape(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  void mxStencil.drawElement(mxGraphicsCanvas2D canvas, mxCellState state, Element node, mxRectangle aspect)
          Drawsthe given element.
static void mxLabelShape.drawGlassEffect(mxGraphics2DCanvas canvas, mxCellState state)
          Draws the glass effect
protected  void mxStencil.drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled)
          Draws the shadow.
 boolean mxStencil.drawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, boolean background)
          Draws this stencil inside the given bounds.
 String mxStencil.evaluateAttribute(Element elt, String attribute, mxCellState state)
          Gets the attribute for the given name from the given node.
 Color mxBasicShape.getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxImageShape.getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxLabelShape.getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  mxRectangle mxBasicShape.getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
protected  mxRectangle mxSwimlaneShape.getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 Rectangle mxImageShape.getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 Rectangle mxLabelShape.getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
           
 String mxImageShape.getImageForStyle(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxBasicShape.getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxImageShape.getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 Color mxLabelShape.getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxBasicShape.hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxImageShape.hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxLabelShape.hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
           
 boolean mxBasicShape.hasShadow(mxGraphics2DCanvas canvas, mxCellState state)
           
 mxPoint mxConnectorShape.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, boolean source)
          Draws the marker for the given edge.
 mxPoint mxIMarker.paintMarker(mxGraphics2DCanvas canvas, mxCellState state, String type, mxPoint pe, double nx, double ny, double size, boolean source)
           
 void mxStencilShape.paintNode(mxGraphics2DCanvas canvas, mxCellState state, mxStencilShape.svgShape shape, double widthRatio, double heightRatio)
           
 void mxCylinderShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
          Draws a cylinder for the given parameters.
 void mxBasicShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxStencilShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxImageShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxLabelShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxSwimlaneShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxDoubleEllipseShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxStencil.paintShape(mxGraphics2DCanvas gc, mxCellState state)
          Paints the stencil for the given state.
 void mxRectangleShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxLineShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxConnectorShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxCurveShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxIShape.paintShape(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxITextShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void mxHtmlTextShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void mxDefaultTextShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 void mxCurveLabelShape.paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
           
 

Constructors in com.mxgraph.shape with parameters of type mxCellState
mxCurveLabelShape(mxCellState state, mxCurve value)
           
 

Uses of mxCellState in com.mxgraph.swing
 

Methods in com.mxgraph.swing with parameters of type mxCellState
protected  void mxGraphComponent.mxGraphControl.cellDrawn(mxICanvas canvas, mxCellState state)
           
 Component[] mxGraphComponent.createComponents(mxCellState state)
          Hook for subclassers to create the array of heavyweights for the given state.
 mxCellHandler mxGraphComponent.createHandler(mxCellState state)
           
protected  Rectangle mxGraphComponent.mxGraphControl.getExtendedCellBounds(mxCellState state)
           
 ImageIcon mxGraphComponent.getFoldingIcon(mxCellState state)
          Returns the icon used to display the collapsed state of the specified cell state.
 Rectangle mxGraphComponent.getFoldingIconBounds(mxCellState state, ImageIcon icon)
           
protected  boolean mxGraphComponent.mxGraphControl.hitClip(mxGraphics2DCanvas canvas, mxCellState state)
           
 void mxGraphComponent.insertComponent(mxCellState state, Component c)
           
 void mxGraphComponent.redraw(mxCellState state)
          Updates the buffer (if one exists) and repaints the given cell state.
protected  void mxGraphComponent.updateCellOverlayComponent(mxCellState state, mxICellOverlay overlay)
          Notified when an overlay has been removed from the graph.
 void mxGraphComponent.updateComponent(mxCellState state, Component c)
           
 

Uses of mxCellState in com.mxgraph.swing.handler
 

Fields in com.mxgraph.swing.handler declared as mxCellState
protected  mxCellState mxRotationHandler.currentState
           
protected  mxCellState mxCellMarker.markedState
          Holds the marked state.
protected  mxCellState mxConnectPreview.previewState
           
protected  mxCellState[] mxMovePreview.previewStates
           
protected  mxCellState mxConnectionHandler.source
           
protected  mxCellState mxConnectPreview.sourceState
           
protected  mxCellState mxMovePreview.startState
           
protected  mxCellState mxCellHandler.state
          Holds the cell state associated with this handler.
protected  mxCellState mxCellMarker.validState
          Holds the marked state if it is valid.
 

Methods in com.mxgraph.swing.handler that return mxCellState
 mxCellState mxCellMarker.getMarkedState()
          Returns the marked state.
 mxCellState mxConnectPreview.getPreviewState()
           
protected  mxCellState[] mxMovePreview.getPreviewStates()
          Returns the states that are affected by the move operation.
 mxCellState mxConnectPreview.getSourceState()
           
 mxCellState mxCellHandler.getState()
          Returns the cell state that is associated with this handler.
protected  mxCellState mxCellMarker.getState(MouseEvent e)
          Uses getCell, getMarkedState and intersects to return the state for the given event.
protected  mxCellState mxCellMarker.getStateToMark(mxCellState state)
          Returns the state to be marked for the given state under the mouse.
 mxCellState mxCellMarker.getValidState()
          Returns the valid state.
 mxCellState mxCellMarker.process(MouseEvent e)
          Processes the given event and marks the state returned by getStateAt with the color returned by getMarkerColor.
 

Methods in com.mxgraph.swing.handler with parameters of type mxCellState
protected  Object mxConnectPreview.createCell(mxCellState startState, String style)
          Creates a new instance of mxShape for previewing the edge.
protected  Point[] mxEdgeHandler.createPoints(mxCellState s)
           
 Object[] mxMovePreview.getCells(mxCellState initialState)
           
protected  Color mxCellMarker.getMarkerColor(MouseEvent e, mxCellState state, boolean isValid)
          Returns the valid- or invalidColor depending on the value of isValid.
protected  mxRectangle mxMovePreview.getPlaceholderBounds(mxCellState startState)
           
protected  mxCellState mxCellMarker.getStateToMark(mxCellState state)
          Returns the state to be marked for the given state under the mouse.
 void mxCellMarker.highlight(mxCellState state, Color color)
           
 void mxCellMarker.highlight(mxCellState state, Color color, boolean valid)
           
protected  boolean mxCellMarker.intersects(mxCellState state, MouseEvent e)
          Returns true if the given mouse event intersects the given state.
 boolean mxRotationHandler.isStateHandled(mxCellState state)
           
protected  boolean mxCellMarker.isValidState(mxCellState state)
          Returns true if the given state is a valid state.
protected  void mxEdgeHandler.moveLabelTo(mxCellState edgeState, double x, double y)
          Moves the label to the given position.
 void mxCellHandler.refresh(mxCellState state)
          Refreshes the cell handler.
 void mxConnectPreview.revalidate(mxCellState pState, Object cell)
           
 void mxCellMarker.setMarkedState(mxCellState value)
          Sets the marked state.
 void mxConnectionHandler.start(MouseEvent e, mxCellState state)
           
 void mxMovePreview.start(MouseEvent e, mxCellState state)
          Sets the translation of the preview.
 void mxConnectPreview.start(MouseEvent e, mxCellState startState, String style)
          Updates the style of the edge preview from the incoming edge
 void mxConnectPreview.update(MouseEvent e, mxCellState targetState, double x, double y)
           
 

Constructors in com.mxgraph.swing.handler with parameters of type mxCellState
mxCellHandler(mxGraphComponent graphComponent, mxCellState state)
          Constructs a new cell handler for the given cell state.
mxEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
mxElbowEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
           
 

Uses of mxCellState in com.mxgraph.swing.util
 

Methods in com.mxgraph.swing.util with parameters of type mxCellState
 mxRectangle mxCellOverlay.getBounds(mxCellState state)
           
 mxRectangle mxICellOverlay.getBounds(mxCellState state)
           
protected  mxPoint mxMorphing.getDelta(mxCellState state)
          Returns the vector between the current rendered state and the future location of the state after the display will be updated.
protected  boolean mxMorphing.stopRecursion(mxCellState state, mxPoint delta)
          Returns true if the animation should not recursively find more deltas for children if the given parent state has been animated.
 

Uses of mxCellState in com.mxgraph.swing.view
 

Fields in com.mxgraph.swing.view with type parameters of type mxCellState
protected  List<mxCellState> mxCellStatePreview.cellStates
           
protected  Map<mxCellState,mxPoint> mxCellStatePreview.deltas
           
 

Methods in com.mxgraph.swing.view that return types with arguments of type mxCellState
 Map<mxCellState,mxPoint> mxCellStatePreview.getDeltas()
           
 List<mxCellState> mxCellStatePreview.snapshot(mxCellState state)
           
 

Methods in com.mxgraph.swing.view with parameters of type mxCellState
 void mxCellStatePreview.addEdges(mxCellState state)
           
 boolean mxInteractiveCanvas.contains(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
           
 Rectangle mxCellEditor.getEditorBounds(mxCellState state, double scale)
          Returns the bounds to be used for the editor.
protected  String mxCellEditor.getInitialValue(mxCellState state, EventObject trigger)
          Gets the initial editing value for the given cell.
 boolean mxInteractiveCanvas.hitSwimlaneContent(mxGraphComponent graphComponent, mxCellState swimlane, int x, int y)
          Returns true if the given point is inside the content area of the given swimlane.
 boolean mxInteractiveCanvas.intersects(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
           
protected  boolean mxCellEditor.isHideLabel(mxCellState state)
           
 mxPoint mxCellStatePreview.moveState(mxCellState state, double dx, double dy)
           
 mxPoint mxCellStatePreview.moveState(mxCellState state, double dx, double dy, boolean add, boolean includeEdges)
           
protected  void mxCellStatePreview.paintPreviewState(mxGraphics2DCanvas canvas, mxCellState state)
          Draws the preview using the graphics canvas.
 void mxCellStatePreview.restoreState(mxCellState state, mxCellState from)
           
protected  mxRectangle mxCellStatePreview.revalidateState(mxCellState parentState, mxCellState state, double dx, double dy)
           
 List<mxCellState> mxCellStatePreview.snapshot(mxCellState state)
           
protected  void mxCellStatePreview.translateState(mxCellState parentState, mxCellState state, double dx, double dy)
           
protected  boolean mxCellEditor.useLabelBounds(mxCellState state)
          Returns true if the label bounds of the state should be used for the editor.
 

Method parameters in com.mxgraph.swing.view with type arguments of type mxCellState
 void mxCellStatePreview.restore(List<mxCellState> snapshot)
           
 

Uses of mxCellState in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxCellState
static int mxUtils.findNearestSegment(mxCellState state, double x, double y)
          Finds the index of the nearest segment on the given cell state for the specified coordinate pair.
static int mxUtils.getPortConstraints(mxCellState terminal, mxCellState edge, boolean source)
          Returns an integer mask of the port constraints of the given map
static int mxUtils.getPortConstraints(mxCellState terminal, mxCellState edge, boolean source, int defaultValue)
          Returns an integer mask of the port constraints of the given map
static boolean mxUtils.intersectsHotspot(mxCellState state, int x, int y, double hotspot)
           
static boolean mxUtils.intersectsHotspot(mxCellState state, int x, int y, double hotspot, int min, int max)
          Returns true if the given coordinate pair intersects the hotspot of the given state.
 

Uses of mxCellState in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxCellState
protected  mxCellState mxCellState.visibleSourceState
          Caches the visible source and target terminal states.
protected  mxCellState mxCellState.visibleTargetState
          Caches the visible source and target terminal states.
 

Fields in com.mxgraph.view with type parameters of type mxCellState
protected  Hashtable<Object,mxCellState> mxTemporaryCellStates.oldStates
           
protected  Hashtable<Object,mxCellState> mxGraphView.states
          Maps from cells to cell states.
 

Methods in com.mxgraph.view that return mxCellState
 mxCellState mxGraphView.createState(Object cell)
          Creates and returns a cell state for the given cell.
 mxCellState[] mxGraphView.getCellStates(Object[] cells)
          Returns the states for the given array of cells.
 mxCellState mxGraphView.getState(Object cell)
          Returns the state for the given cell or null if no state is defined for the cell.
 mxCellState mxGraphView.getState(Object cell, boolean create)
          Returns the cell state for the given cell.
 mxCellState mxGraphView.getTerminalPort(mxCellState state, mxCellState terminal, boolean source)
          Returns a cell state that represents the source or target terminal or port for the given edge.
 mxCellState mxCellState.getVisibleTerminalState(boolean source)
          Returns the visible source or target terminal state.
 mxCellState mxGraphView.removeState(Object cell)
          Removes and returns the mxCellState for the given cell.
 

Methods in com.mxgraph.view that return types with arguments of type mxCellState
 Hashtable<Object,mxCellState> mxGraphView.getStates()
          Returns the dictionary that maps from cells to states.
 

Methods in com.mxgraph.view with parameters of type mxCellState
 void mxEdgeStyle.mxEdgeStyleFunction.apply(mxCellState state, mxCellState source, mxCellState target, List<mxPoint> points, List<mxPoint> result)
          Implements an edge style function.
 mxPoint mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)
          Implements a perimeter function.
protected  void mxGraph.cellDrawn(mxICanvas canvas, mxCellState state, Object element, Object labelElement)
          Called when a cell has been painted as the specified object, typically a DOM node that represents the given cell graphically in a document.
protected  void mxGraphView.childMoved(mxCellState parent, mxCellState child)
          Invoked when a child state was moved as a result of late evaluation of its position.
 void mxGraph.drawState(mxICanvas canvas, mxCellState state, boolean drawLabel)
          Draws the cell state with the given label onto the canvas.
 mxConnectionConstraint[] mxGraph.getAllConnectionConstraints(mxCellState terminal, boolean source)
          Returns an array of all constraints for the given terminal.
protected  Object[] mxSpaceManager.getCellsToShift(mxCellState state)
           
 mxConnectionConstraint mxGraph.getConnectionConstraint(mxCellState edge, mxCellState terminal, boolean source)
          Returns an connection constraint that describes the given connection point.
 mxPoint mxGraph.getConnectionPoint(mxCellState vertex, mxConnectionConstraint constraint)
          Sets the connection constraint that describes the given connection point.
 mxEdgeStyle.mxEdgeStyleFunction mxGraphView.getEdgeStyle(mxCellState edge, List<mxPoint> points, Object source, Object target)
          Returns the edge style function to be used to compute the absolute points for the given state, control points and terminals.
 String mxGraph.getImage(mxCellState state)
          Returns the image URL for the given cell state.
 mxPoint mxGraphView.getNextPoint(mxCellState edge, mxCellState opposite, boolean source)
          Returns the nearest point in the list of absolute points or the center of the opposite terminal.
 mxRectangle mxGraphView.getPerimeterBounds(mxCellState terminal, double border)
          Returns the perimeter bounds for the given terminal, edge pair.
 mxPerimeter.mxPerimeterFunction mxGraphView.getPerimeterFunction(mxCellState state)
          Returns the perimeter function for the given state.
 mxPoint mxGraphView.getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint mxGraphView.getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal, double border)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint mxGraphView.getPoint(mxCellState state)
          Returns the absolute center point along the given edge.
 mxPoint mxGraphView.getPoint(mxCellState state, mxGeometry geometry)
          Returns the absolute point on the edge for the given relative geometry as a point.
 mxPoint mxGraphView.getRelativePoint(mxCellState edgeState, double x, double y)
          Gets the relative point that describes the given, absolute label position for the given edge state.
 double mxGraphView.getRoutingCenterX(mxCellState state)
          Returns the x-coordinate of the center point for automatic routing.
 double mxGraphView.getRoutingCenterY(mxCellState state)
          Returns the y-coordinate of the center point for automatic routing.
 mxCellState mxGraphView.getTerminalPort(mxCellState state, mxCellState terminal, boolean source)
          Returns a cell state that represents the source or target terminal or port for the given edge.
 double mxGraphView.getWordWrapWidth(mxCellState state)
          Returns the width for wrapping the label of the given state at scale 1.
 boolean mxGraph.isLoop(mxCellState state)
          Returns true if the given cell state is a loop.
 boolean mxGraph.isOrthogonal(mxCellState edge)
          Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.
 void mxCellState.setVisibleTerminalState(mxCellState terminalState, boolean source)
          Sets the visible source or target terminal state.
 mxPoint mxGraphView.transformControlPoint(mxCellState state, mxPoint pt)
          Transforms the given control point to an absolute point.
 mxRectangle mxGraphView.updateBoundingBox(mxCellState state)
          Updates the bounding box in the given cell state.
 void mxGraphView.updateEdgeBounds(mxCellState state)
          Updates the given state using the bounding box of the absolute points.
 void mxGraphView.updateFixedTerminalPoint(mxCellState edge, mxCellState terminal, boolean source, mxConnectionConstraint constraint)
          Sets the fixed source or target terminal point on the given edge.
 void mxGraphView.updateFixedTerminalPoints(mxCellState edge, mxCellState source, mxCellState target)
          Sets the initial absolute terminal points in the given state before the edge style is computed.
 void mxGraphView.updateFloatingTerminalPoint(mxCellState edge, mxCellState start, mxCellState end, boolean source)
          Updates the absolute terminal point in the given state for the given start and end state, where start is the source if source is true.
 void mxGraphView.updateFloatingTerminalPoints(mxCellState state, mxCellState source, mxCellState target)
          Updates the terminal points in the given state after the edge style was computed for the edge.
 void mxGraphView.updateLabel(mxCellState state)
          Updates the label of the given state.
 void mxGraphView.updateLabelBounds(mxCellState state)
          Updates the label bounds in the given state.
 void mxGraphView.updatePoints(mxCellState edge, List<mxPoint> points, mxCellState source, mxCellState target)
          Updates the absolute points in the given state using the specified array of points as the relative points.
 void mxGraphView.updateVertexLabelOffset(mxCellState state)
          Updates the absoluteOffset of the given vertex cell state.
 void mxGraphView.validateBounds(mxCellState parentState, Object cell)
          Validates the bounds of the given parent's child using the given parent state as the origin for the child.
 mxRectangle mxGraphView.validatePoints(mxCellState parentState, Object cell)
          Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle.
 

Method parameters in com.mxgraph.view with type arguments of type mxCellState
 void mxGraphView.setStates(Hashtable<Object,mxCellState> states)
          Returns the dictionary that maps from cells to states.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxStylesheet.html0000664000175000017500000002665412176166726030031 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxStylesheet (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxStylesheet

Packages that use mxStylesheet
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxStylesheet in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxStylesheet
protected  mxStylesheet mxGraph.stylesheet
          Holds the stylesheet that defines the appearance of the cells.
 

Methods in com.mxgraph.view that return mxStylesheet
protected  mxStylesheet mxGraph.createStylesheet()
          Constructs a new stylesheet to be used in this graph.
 mxStylesheet mxGraph.getStylesheet()
          Returns the stylesheet that provides the style.
 

Methods in com.mxgraph.view with parameters of type mxStylesheet
 void mxGraph.setStylesheet(mxStylesheet value)
          Sets the stylesheet that provides the style.
 

Constructors in com.mxgraph.view with parameters of type mxStylesheet
mxGraph(mxIGraphModel model, mxStylesheet stylesheet)
          Constructs a new graph for the specified model.
mxGraph(mxStylesheet stylesheet)
          Constructs a new graph for the specified model.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxLayoutManager.html0000664000175000017500000001365412176166726030444 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxLayoutManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxLayoutManager

No usage of com.mxgraph.view.mxLayoutManager


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraphView.mxCurrentRootChange.html0000664000175000017500000001411412176166726033520 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxGraphView.mxCurrentRootChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxGraphView.mxCurrentRootChange

No usage of com.mxgraph.view.mxGraphView.mxCurrentRootChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraphView.html0000664000175000017500000004123712176166726027566 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxGraphView (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxGraphView

Packages that use mxGraphView
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxGraphView in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxGraphView
protected  mxGraphView mxGraphView.mxCurrentRootChange.view
           
protected  mxGraphView mxCellState.view
          Reference to the enclosing graph view.
protected  mxGraphView mxTemporaryCellStates.view
           
protected  mxGraphView mxGraph.view
          Holds the view that caches the cell states.
 

Methods in com.mxgraph.view that return mxGraphView
protected  mxGraphView mxGraph.createGraphView()
          Constructs a new view to be used in this graph.
 mxGraphView mxGraphView.mxCurrentRootChange.getView()
          Returns the graph view where the change happened.
 mxGraphView mxCellState.getView()
          Returns the enclosing graph view.
 mxGraphView mxGraph.getView()
          Returns the view that contains the cell states.
 

Methods in com.mxgraph.view with parameters of type mxGraphView
 void mxCellState.setView(mxGraphView view)
          Sets the enclosing graph view.
 void mxGraph.setView(mxGraphView value)
          Sets the view that contains the cell states.
 

Constructors in com.mxgraph.view with parameters of type mxGraphView
mxCellState(mxGraphView view, Object cell, Map<String,Object> style)
          Constructs a new object that represents the current state of the given cell in the specified view.
mxGraphView.mxCurrentRootChange(mxGraphView view, Object root)
          Constructs a change of the current root in the given view.
mxTemporaryCellStates(mxGraphView view)
          Constructs a new temporary cell states instance.
mxTemporaryCellStates(mxGraphView view, double scale)
          Constructs a new temporary cell states instance.
mxTemporaryCellStates(mxGraphView view, double scale, Object[] cells)
          Constructs a new temporary cell states instance.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxPerimeter.html0000664000175000017500000001360412176166726027623 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxPerimeter (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxPerimeter

No usage of com.mxgraph.view.mxPerimeter


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxStyleRegistry.html0000664000175000017500000001365412176166726030525 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxStyleRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxStyleRegistry

No usage of com.mxgraph.view.mxStyleRegistry


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraphSelectionModel.mxSelectionChange.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraphSelectionModel.mxSelectionChange.0000664000175000017500000001423412176166726034271 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange

No usage of com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxConnectionConstraint.html0000664000175000017500000003514712176166726032041 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxConnectionConstraint (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxConnectionConstraint

Packages that use mxConnectionConstraint
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxConnectionConstraint in com.mxgraph.view
 

Methods in com.mxgraph.view that return mxConnectionConstraint
 mxConnectionConstraint[] mxGraph.getAllConnectionConstraints(mxCellState terminal, boolean source)
          Returns an array of all constraints for the given terminal.
 mxConnectionConstraint mxGraph.getConnectionConstraint(mxCellState edge, mxCellState terminal, boolean source)
          Returns an connection constraint that describes the given connection point.
 

Methods in com.mxgraph.view with parameters of type mxConnectionConstraint
 void mxGraph.cellConnected(Object edge, Object terminal, boolean source, mxConnectionConstraint constraint)
          Sets the new terminal for the given edge and resets the edge points if isResetEdgesOnConnect returns true.
 Object mxGraph.connectCell(Object edge, Object terminal, boolean source, mxConnectionConstraint constraint)
          Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.
 mxPoint mxGraph.getConnectionPoint(mxCellState vertex, mxConnectionConstraint constraint)
          Sets the connection constraint that describes the given connection point.
 void mxGraph.setConnectionConstraint(Object edge, Object terminal, boolean source, mxConnectionConstraint constraint)
          Sets the connection constraint that describes the given connection point.
 void mxGraphView.updateFixedTerminalPoint(mxCellState edge, mxCellState terminal, boolean source, mxConnectionConstraint constraint)
          Sets the fixed source or target terminal point on the given edge.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxSpaceManager.html0000664000175000017500000001364212176166726030217 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxSpaceManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxSpaceManager

No usage of com.mxgraph.view.mxSpaceManager


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/class-use/mxGraph.html0000664000175000017500000023312012176166726026725 0ustar sylvestresylvestre Uses of Class com.mxgraph.view.mxGraph (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.view.mxGraph

Packages that use mxGraph
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.io.graphml   
com.mxgraph.layout This package contains various graph layouts. 
com.mxgraph.layout.hierarchical   
com.mxgraph.layout.hierarchical.stage   
com.mxgraph.layout.orthogonal   
com.mxgraph.layout.orthogonal.model   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxGraph in com.mxgraph.analysis
 

Fields in com.mxgraph.analysis declared as mxGraph
protected  mxGraph mxAnalysisGraph.graph
           
 

Methods in com.mxgraph.analysis that return mxGraph
 mxGraph mxAnalysisGraph.getGraph()
           
 

Methods in com.mxgraph.analysis with parameters of type mxGraph
 mxUnionFind mxGraphAnalysis.getConnectionComponents(mxGraph graph, Object[] v, Object[] e)
          Returns a union find structure representing the connection components of G=(E,V).
static mxGeneratorFunction mxGraphGenerator.getGeneratorFunction(mxGraph graph, boolean weighted, double minWeight, double maxWeight)
           
 Object[] mxGraphAnalysis.getMinimumSpanningTree(mxGraph graph, Object[] v, mxICostFunction cf, boolean directed)
          Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
 Object[] mxGraphAnalysis.getMinimumSpanningTree(mxGraph graph, Object[] v, Object[] e, mxICostFunction cf)
          Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
 Object[] mxGraphAnalysis.getShortestPath(mxGraph graph, Object from, Object to, mxICostFunction cf, int steps, boolean directed)
          Returns the shortest path between two cells or their descendants represented as an array of edges in order of traversal.
 void mxAnalysisGraph.setGraph(mxGraph graph)
           
 

Uses of mxGraph in com.mxgraph.io
 

Methods in com.mxgraph.io with parameters of type mxGraph
static void mxGraphMlCodec.decode(Document document, mxGraph graph)
          Receives a GraphMl document and parses it generating a new graph that is inserted in graph.
static void mxGdCodec.decode(String input, mxGraph graph)
          Parses simple GD format and populate the specified graph
static mxGraphMlGraph mxGraphMlCodec.decodeGraph(mxGraph graph, Object parent, mxGraphMlGraph gmlGraph)
          Returns a Gml graph with the data of the vertexes and edges in the graph.
static Document mxGraphMlCodec.encode(mxGraph graph)
          Generates a Xml document with the cells in the graph.
static String mxGdCodec.encode(mxGraph graph)
          Generates a GD text output with the cells in the graph.
 

Uses of mxGraph in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraph
 void mxGraphMlGraph.addGraph(mxGraph graph, Object parent)
          Adds the elements represented for this graph model into the given graph.
 

Uses of mxGraph in com.mxgraph.layout
 

Fields in com.mxgraph.layout declared as mxGraph
protected  mxGraph mxGraphLayout.graph
          Holds the enclosing graph.
 

Methods in com.mxgraph.layout that return mxGraph
 mxGraph mxGraphLayout.getGraph()
          Returns the associated graph.
 

Constructors in com.mxgraph.layout with parameters of type mxGraph
mxCircleLayout(mxGraph graph)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxCircleLayout(mxGraph graph, double radius)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxCompactTreeLayout(mxGraph graph)
           
mxCompactTreeLayout(mxGraph graph, boolean horizontal)
           
mxCompactTreeLayout(mxGraph graph, boolean horizontal, boolean invert)
           
mxEdgeLabelLayout(mxGraph graph)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxFastOrganicLayout(mxGraph graph)
          Constructs a new fast organic layout for the specified graph.
mxGraphLayout(mxGraph graph)
          Constructs a new fast organic layout for the specified graph.
mxOrganicLayout(mxGraph graph)
          Constructor for mxOrganicLayout.
mxOrganicLayout(mxGraph graph, Rectangle2D bounds)
          Constructor for mxOrganicLayout.
mxParallelEdgeLayout(mxGraph graph)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxParallelEdgeLayout(mxGraph graph, int spacing)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph graph)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph graph, boolean horizontal)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph graph, boolean horizontal, int spacing)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxPartitionLayout(mxGraph graph, boolean horizontal, int spacing, int border)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph graph)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph graph, boolean horizontal)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph graph, boolean horizontal, int spacing)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
mxStackLayout(mxGraph graph, boolean horizontal, int spacing, int x0, int y0, int border)
          Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
 

Uses of mxGraph in com.mxgraph.layout.hierarchical
 

Constructors in com.mxgraph.layout.hierarchical with parameters of type mxGraph
mxHierarchicalLayout(mxGraph graph)
          Constructs a hierarchical layout
mxHierarchicalLayout(mxGraph graph, int orientation)
          Constructs a hierarchical layout
 

Uses of mxGraph in com.mxgraph.layout.hierarchical.stage
 

Methods in com.mxgraph.layout.hierarchical.stage with parameters of type mxGraph
protected  void mxCoordinateAssignment.calculateWidestRank(mxGraph graph, mxGraphHierarchyModel model)
          Calculates the width rank in the hierarchy.
protected  void mxCoordinateAssignment.rankCoordinates(int rankValue, mxGraph graph, mxGraphHierarchyModel model)
          Sets up the layout in an initial positioning.
protected  void mxCoordinateAssignment.setCellLocations(mxGraph graph, mxGraphHierarchyModel model)
          Sets the cell locations in the facade to those stored after this layout processing step has completed.
 

Uses of mxGraph in com.mxgraph.layout.orthogonal
 

Constructors in com.mxgraph.layout.orthogonal with parameters of type mxGraph
mxOrthogonalLayout(mxGraph graph)
           
 

Uses of mxGraph in com.mxgraph.layout.orthogonal.model
 

Constructors in com.mxgraph.layout.orthogonal.model with parameters of type mxGraph
mxOrthogonalModel(mxGraph graph)
           
 

Uses of mxGraph in com.mxgraph.swing
 

Fields in com.mxgraph.swing declared as mxGraph
protected  mxGraph mxGraphComponent.graph
           
 

Methods in com.mxgraph.swing that return mxGraph
 mxGraph mxGraphComponent.getGraph()
           
 

Methods in com.mxgraph.swing with parameters of type mxGraph
 void mxGraphComponent.setGraph(mxGraph value)
           
 

Constructors in com.mxgraph.swing with parameters of type mxGraph
mxGraphComponent(mxGraph graph)
           
 

Uses of mxGraph in com.mxgraph.swing.handler
 

Methods in com.mxgraph.swing.handler with parameters of type mxGraph
protected  void mxConnectionHandler.addGraphListeners(mxGraph graph)
          Installs the listeners to update the handles after any changes.
protected  void mxSelectionCellsHandler.addGraphListeners(mxGraph graph)
          Installs the listeners to update the handles after any changes.
protected  void mxConnectionHandler.removeGraphListeners(mxGraph graph)
          Removes all installed listeners.
protected  void mxSelectionCellsHandler.removeGraphListeners(mxGraph graph)
          Removes all installed listeners.
 

Uses of mxGraph in com.mxgraph.swing.util
 

Methods in com.mxgraph.swing.util that return mxGraph
static mxGraph mxGraphActions.getGraph(ActionEvent e)
           
 

Methods in com.mxgraph.swing.util with parameters of type mxGraph
protected  int mxGraphActions.GroupAction.getGroupBorder(mxGraph graph)
           
protected  int mxGraphActions.UpdateGroupBoundsAction.getGroupBorder(mxGraph graph)
           
 

Uses of mxGraph in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxGraph
static BufferedImage mxCellRenderer.createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip)
           
static BufferedImage mxCellRenderer.createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas)
           
static Document mxCellRenderer.createHtmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static Document mxCellRenderer.createSvgDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static Document mxCellRenderer.createVmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
           
static mxICanvas mxCellRenderer.drawCells(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)
          Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
 

Uses of mxGraph in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxGraph
protected  mxGraph mxGraphView.graph
          Reference to the enclosing graph.
protected  mxGraph mxGraphSelectionModel.graph
          Reference to the enclosing graph.
protected  mxGraph mxSpaceManager.graph
          Defines the type of the source or target terminal.
protected  mxGraph mxLayoutManager.graph
          Defines the type of the source or target terminal.
protected  mxGraph mxSwimlaneManager.graph
          Defines the type of the source or target terminal.
 

Methods in com.mxgraph.view that return mxGraph
 mxGraph mxGraphView.getGraph()
          Returns the enclosing graph.
 mxGraph mxSpaceManager.getGraph()
           
 mxGraph mxLayoutManager.getGraph()
           
 mxGraph mxSwimlaneManager.getGraph()
           
 

Methods in com.mxgraph.view with parameters of type mxGraph
 String mxMultiplicity.check(mxGraph graph, Object edge, Object source, Object target, int sourceOut, int targetIn)
          Function: check Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply.
 boolean mxMultiplicity.checkNeighbors(mxGraph graph, Object edge, Object source, Object target)
          Checks the type of the given value.
 boolean mxMultiplicity.checkTerminal(mxGraph graph, Object terminal, Object edge)
          Checks the type of the given value.
 boolean mxMultiplicity.checkType(mxGraph graph, Object value, String type)
          Checks the type of the given value.
 boolean mxMultiplicity.checkType(mxGraph graph, Object value, String type, String attr, String attrValue)
          Checks the type of the given value.
 void mxSpaceManager.setGraph(mxGraph graph)
           
 void mxLayoutManager.setGraph(mxGraph value)
           
 void mxSwimlaneManager.setGraph(mxGraph graph)
           
 

Constructors in com.mxgraph.view with parameters of type mxGraph
mxGraphSelectionModel(mxGraph graph)
          Constructs a new selection model for the specified graph.
mxGraphView(mxGraph graph)
          Constructs a new view for the given graph.
mxLayoutManager(mxGraph graph)
           
mxSpaceManager(mxGraph graph)
           
mxSwimlaneManager(mxGraph graph)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/package-frame.html0000664000175000017500000000624212176166726026106 0ustar sylvestresylvestre com.mxgraph.view (JGraph X 2.1.0.7 API Specification) com.mxgraph.view
Interfaces 
mxEdgeStyle.mxEdgeStyleFunction
mxGraph.mxICellVisitor
mxPerimeter.mxPerimeterFunction
Classes 
mxCellState
mxConnectionConstraint
mxEdgeStyle
mxGraph
mxGraphSelectionModel
mxGraphSelectionModel.mxSelectionChange
mxGraphView
mxGraphView.mxCurrentRootChange
mxLayoutManager
mxMultiplicity
mxPerimeter
mxSpaceManager
mxStyleRegistry
mxStylesheet
mxSwimlaneManager
mxTemporaryCellStates
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxGraphView.html0000664000175000017500000026723112176166726025673 0ustar sylvestresylvestre mxGraphView (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxGraphView

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.view.mxGraphView

public class mxGraphView
extends mxEventSource

Implements a view for the graph. This class is in charge of computing the absolute coordinates for the relative child geometries, the points for perimeters and edge styles and keeping them cached in cell states for faster retrieval. The states are updated whenever the model or the view state (translate, scale) changes. The scale and translate are honoured in the bounds. This class fires the following events: mxEvent.UNDO fires after the root was changed in setCurrentRoot. The edit property contains the mxUndoableEdit which contains the mxCurrentRootChange. mxEvent.SCALE_AND_TRANSLATE fires after the scale and transle have been changed in scaleAndTranslate. The scale, previousScale, translate and previousTranslate properties contain the new and previous scale and translate, respectively. mxEvent.SCALE fires after the scale was changed in setScale. The scale and previousScale properties contain the new and previous scale. mxEvent.TRANSLATE fires after the translate was changed in setTranslate. The translate and previousTranslate properties contain the new and previous value for translate. mxEvent.UP and mxEvent.DOWN fire if the current root is changed by executing a mxCurrentRootChange. The event name depends on the location of the root in the cell hierarchy with respect to the current root. The root and previous properties contain the new and previous root, respectively.


Nested Class Summary
static class mxGraphView.mxCurrentRootChange
          Action to change the current root in a view.
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  Object currentRoot
          mxCell that acts as the root of the displayed cell hierarchy.
protected  mxGraph graph
          Reference to the enclosing graph.
protected  mxRectangle graphBounds
          Caches the current bounds of the graph.
protected  double scale
          Specifies the scale.
protected  Hashtable<Object,mxCellState> states
          Maps from cells to cell states.
protected  mxPoint translate
          Point that specifies the current translation.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxGraphView(mxGraph graph)
          Constructs a new view for the given graph.
 
Method Summary
protected  void childMoved(mxCellState parent, mxCellState child)
          Invoked when a child state was moved as a result of late evaluation of its position.
 void clear(Object cell, boolean force, boolean recurse)
          Removes the state of the given cell and all descendants if the given cell is not the current root.
 mxCellState createState(Object cell)
          Creates and returns a cell state for the given cell.
 mxRectangle getBoundingBox(Object[] cells)
          Returns the bounding box for an array of cells or null, if no cells are specified.
 mxRectangle getBounds(Object[] cells)
          Returns the bounding box for an array of cells or null, if no cells are specified.
 mxRectangle getBounds(Object[] cells, boolean boundingBox)
          Returns the bounding box for an array of cells or null, if no cells are specified.
 mxCellState[] getCellStates(Object[] cells)
          Returns the states for the given array of cells.
 Object getCurrentRoot()
          Returns the current root.
 mxEdgeStyle.mxEdgeStyleFunction getEdgeStyle(mxCellState edge, List<mxPoint> points, Object source, Object target)
          Returns the edge style function to be used to compute the absolute points for the given state, control points and terminals.
 mxGraph getGraph()
          Returns the enclosing graph.
 mxRectangle getGraphBounds()
          Returns the cached diagram bounds.
 mxPoint getNextPoint(mxCellState edge, mxCellState opposite, boolean source)
          Returns the nearest point in the list of absolute points or the center of the opposite terminal.
 mxRectangle getPerimeterBounds(mxCellState terminal, double border)
          Returns the perimeter bounds for the given terminal, edge pair.
 mxPerimeter.mxPerimeterFunction getPerimeterFunction(mxCellState state)
          Returns the perimeter function for the given state.
 mxPoint getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint getPerimeterPoint(mxCellState terminal, mxPoint next, boolean orthogonal, double border)
          Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
 mxPoint getPoint(mxCellState state)
          Returns the absolute center point along the given edge.
 mxPoint getPoint(mxCellState state, mxGeometry geometry)
          Returns the absolute point on the edge for the given relative geometry as a point.
 mxPoint getRelativePoint(mxCellState edgeState, double x, double y)
          Gets the relative point that describes the given, absolute label position for the given edge state.
 double getRoutingCenterX(mxCellState state)
          Returns the x-coordinate of the center point for automatic routing.
 double getRoutingCenterY(mxCellState state)
          Returns the y-coordinate of the center point for automatic routing.
 double getScale()
          Returns the current scale.
 mxCellState getState(Object cell)
          Returns the state for the given cell or null if no state is defined for the cell.
 mxCellState getState(Object cell, boolean create)
          Returns the cell state for the given cell.
 Hashtable<Object,mxCellState> getStates()
          Returns the dictionary that maps from cells to states.
 mxCellState getTerminalPort(mxCellState state, mxCellState terminal, boolean source)
          Returns a cell state that represents the source or target terminal or port for the given edge.
 mxPoint getTranslate()
          Returns the current translation.
 Object getVisibleTerminal(Object edge, boolean source)
          Returns the nearest ancestor terminal that is visible.
 double getWordWrapWidth(mxCellState state)
          Returns the width for wrapping the label of the given state at scale 1.
 void invalidate()
          Invalidates all cell states.
 void invalidate(Object cell)
          Invalidates the state of the given cell, all its descendants and connected edges.
 void reload()
          Removes all existing cell states and invokes validate.
 mxCellState removeState(Object cell)
          Removes and returns the mxCellState for the given cell.
 void revalidate()
           
 void scaleAndTranslate(double scale, double dx, double dy)
          Sets the scale and translation.
 Object setCurrentRoot(Object root)
          Sets and returns the current root and fires an undo event.
 void setGraphBounds(mxRectangle value)
          Sets the graph bounds.
 void setScale(double value)
          Sets the current scale and revalidates the view.
 void setStates(Hashtable<Object,mxCellState> states)
          Returns the dictionary that maps from cells to states.
 void setTranslate(mxPoint value)
          Sets the current translation and invalidates the view.
 mxPoint transformControlPoint(mxCellState state, mxPoint pt)
          Transforms the given control point to an absolute point.
 mxRectangle updateBoundingBox(mxCellState state)
          Updates the bounding box in the given cell state.
 void updateEdgeBounds(mxCellState state)
          Updates the given state using the bounding box of the absolute points.
 void updateFixedTerminalPoint(mxCellState edge, mxCellState terminal, boolean source, mxConnectionConstraint constraint)
          Sets the fixed source or target terminal point on the given edge.
 void updateFixedTerminalPoints(mxCellState edge, mxCellState source, mxCellState target)
          Sets the initial absolute terminal points in the given state before the edge style is computed.
 void updateFloatingTerminalPoint(mxCellState edge, mxCellState start, mxCellState end, boolean source)
          Updates the absolute terminal point in the given state for the given start and end state, where start is the source if source is true.
 void updateFloatingTerminalPoints(mxCellState state, mxCellState source, mxCellState target)
          Updates the terminal points in the given state after the edge style was computed for the edge.
 void updateLabel(mxCellState state)
          Updates the label of the given state.
 void updateLabelBounds(mxCellState state)
          Updates the label bounds in the given state.
 void updatePoints(mxCellState edge, List<mxPoint> points, mxCellState source, mxCellState target)
          Updates the absolute points in the given state using the specified array of points as the relative points.
 void updateVertexLabelOffset(mxCellState state)
          Updates the absoluteOffset of the given vertex cell state.
 void validate()
          First validates all bounds and then validates all points recursively on all visible cells.
 void validateBounds(mxCellState parentState, Object cell)
          Validates the bounds of the given parent's child using the given parent state as the origin for the child.
 mxRectangle validatePoints(mxCellState parentState, Object cell)
          Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected mxGraph graph
Reference to the enclosing graph.


currentRoot

protected Object currentRoot
mxCell that acts as the root of the displayed cell hierarchy.


graphBounds

protected mxRectangle graphBounds
Caches the current bounds of the graph.


scale

protected double scale
Specifies the scale. Default is 1 (100%).


translate

protected mxPoint translate
Point that specifies the current translation. Default is a new empty point.


states

protected Hashtable<Object,mxCellState> states
Maps from cells to cell states.

Constructor Detail

mxGraphView

public mxGraphView(mxGraph graph)
Constructs a new view for the given graph.

Parameters:
graph - Reference to the enclosing graph.
Method Detail

getGraph

public mxGraph getGraph()
Returns the enclosing graph.

Returns:
Returns the enclosing graph.

getStates

public Hashtable<Object,mxCellState> getStates()
Returns the dictionary that maps from cells to states.


setStates

public void setStates(Hashtable<Object,mxCellState> states)
Returns the dictionary that maps from cells to states.


getGraphBounds

public mxRectangle getGraphBounds()
Returns the cached diagram bounds.

Returns:
Returns the diagram bounds.

setGraphBounds

public void setGraphBounds(mxRectangle value)
Sets the graph bounds.


getCurrentRoot

public Object getCurrentRoot()
Returns the current root.


setCurrentRoot

public Object setCurrentRoot(Object root)
Sets and returns the current root and fires an undo event.

Parameters:
root - mxCell that specifies the root of the displayed cell hierarchy.
Returns:
Returns the object that represents the current root.

scaleAndTranslate

public void scaleAndTranslate(double scale,
                              double dx,
                              double dy)
Sets the scale and translation. Fires a "scaleAndTranslate" event after calling revalidate. Revalidate is only called if isEventsEnabled.

Parameters:
scale - Decimal value that specifies the new scale (1 is 100%).
dx - X-coordinate of the translation.
dy - Y-coordinate of the translation.

getScale

public double getScale()
Returns the current scale.

Returns:
Returns the scale.

setScale

public void setScale(double value)
Sets the current scale and revalidates the view. Fires a "scale" event after calling revalidate. Revalidate is only called if isEventsEnabled.

Parameters:
value - New scale to be used.

getTranslate

public mxPoint getTranslate()
Returns the current translation.

Returns:
Returns the translation.

setTranslate

public void setTranslate(mxPoint value)
Sets the current translation and invalidates the view. Fires a property change event for "translate" after calling revalidate. Revalidate is only called if isEventsEnabled.

Parameters:
value - New translation to be used.

getBounds

public mxRectangle getBounds(Object[] cells)
Returns the bounding box for an array of cells or null, if no cells are specified.

Parameters:
cells -
Returns:
Returns the bounding box for the given cells.

getBoundingBox

public mxRectangle getBoundingBox(Object[] cells)
Returns the bounding box for an array of cells or null, if no cells are specified.

Parameters:
cells -
Returns:
Returns the bounding box for the given cells.

getBounds

public mxRectangle getBounds(Object[] cells,
                             boolean boundingBox)
Returns the bounding box for an array of cells or null, if no cells are specified.

Parameters:
cells -
Returns:
Returns the bounding box for the given cells.

reload

public void reload()
Removes all existing cell states and invokes validate.


revalidate

public void revalidate()

invalidate

public void invalidate()
Invalidates all cell states.


clear

public void clear(Object cell,
                  boolean force,
                  boolean recurse)
Removes the state of the given cell and all descendants if the given cell is not the current root.

Parameters:
cell -
force -
recurse -

invalidate

public void invalidate(Object cell)
Invalidates the state of the given cell, all its descendants and connected edges.


validate

public void validate()
First validates all bounds and then validates all points recursively on all visible cells.


validateBounds

public void validateBounds(mxCellState parentState,
                           Object cell)
Validates the bounds of the given parent's child using the given parent state as the origin for the child. The validation is carried out recursively for all non-collapsed descendants.

Parameters:
parentState - Object that represents the state of the parent cell.
cell - Cell for which the bounds in the state should be updated.

updateVertexLabelOffset

public void updateVertexLabelOffset(mxCellState state)
Updates the absoluteOffset of the given vertex cell state. This takes into account the label position styles.

Parameters:
state - Cell state whose absolute offset should be updated.

validatePoints

public mxRectangle validatePoints(mxCellState parentState,
                                  Object cell)
Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle.

Parameters:
parentState - Object that represents the state of the parent cell.
cell - Cell for which the points in the state should be updated.
Returns:
Returns the bounding box for the given cell.

childMoved

protected void childMoved(mxCellState parent,
                          mxCellState child)
Invoked when a child state was moved as a result of late evaluation of its position. This is invoked for relative edge children whose position can only be determined after the points of the parent edge are updated in validatePoints, and validates the bounds of all descendants of the child using validateBounds.


updateLabel

public void updateLabel(mxCellState state)
Updates the label of the given state.


getWordWrapWidth

public double getWordWrapWidth(mxCellState state)
Returns the width for wrapping the label of the given state at scale 1.


updateLabelBounds

public void updateLabelBounds(mxCellState state)
Updates the label bounds in the given state.


updateBoundingBox

public mxRectangle updateBoundingBox(mxCellState state)
Updates the bounding box in the given cell state.

Parameters:
state - Cell state whose bounding box should be updated.

updateFixedTerminalPoints

public void updateFixedTerminalPoints(mxCellState edge,
                                      mxCellState source,
                                      mxCellState target)
Sets the initial absolute terminal points in the given state before the edge style is computed.

Parameters:
edge - Cell state whose initial terminal points should be updated.
source - Cell state which represents the source terminal.
target - Cell state which represents the target terminal.

updateFixedTerminalPoint

public void updateFixedTerminalPoint(mxCellState edge,
                                     mxCellState terminal,
                                     boolean source,
                                     mxConnectionConstraint constraint)
Sets the fixed source or target terminal point on the given edge.

Parameters:
edge - Cell state whose initial terminal points should be updated.

updatePoints

public void updatePoints(mxCellState edge,
                         List<mxPoint> points,
                         mxCellState source,
                         mxCellState target)
Updates the absolute points in the given state using the specified array of points as the relative points.

Parameters:
edge - Cell state whose absolute points should be updated.
points - Array of points that constitute the relative points.
source - Cell state that represents the source terminal.
target - Cell state that represents the target terminal.

transformControlPoint

public mxPoint transformControlPoint(mxCellState state,
                                     mxPoint pt)
Transforms the given control point to an absolute point.


getEdgeStyle

public mxEdgeStyle.mxEdgeStyleFunction getEdgeStyle(mxCellState edge,
                                                    List<mxPoint> points,
                                                    Object source,
                                                    Object target)
Returns the edge style function to be used to compute the absolute points for the given state, control points and terminals.


updateFloatingTerminalPoints

public void updateFloatingTerminalPoints(mxCellState state,
                                         mxCellState source,
                                         mxCellState target)
Updates the terminal points in the given state after the edge style was computed for the edge.

Parameters:
state - Cell state whose terminal points should be updated.
source - Cell state that represents the source terminal.
target - Cell state that represents the target terminal.

updateFloatingTerminalPoint

public void updateFloatingTerminalPoint(mxCellState edge,
                                        mxCellState start,
                                        mxCellState end,
                                        boolean source)
Updates the absolute terminal point in the given state for the given start and end state, where start is the source if source is true.

Parameters:
edge - Cell state whose terminal point should be updated.
start - Cell state for the terminal on "this" side of the edge.
end - Cell state for the terminal on the other side of the edge.
source - Boolean indicating if start is the source terminal state.

getTerminalPort

public mxCellState getTerminalPort(mxCellState state,
                                   mxCellState terminal,
                                   boolean source)
Returns a cell state that represents the source or target terminal or port for the given edge.


getPerimeterPoint

public mxPoint getPerimeterPoint(mxCellState terminal,
                                 mxPoint next,
                                 boolean orthogonal)
Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.


getPerimeterPoint

public mxPoint getPerimeterPoint(mxCellState terminal,
                                 mxPoint next,
                                 boolean orthogonal,
                                 double border)
Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.

Parameters:
terminal - Cell state for the source or target terminal.
next - Point that lies outside of the given terminal.
orthogonal - Boolean that specifies if the orthogonal projection onto the perimeter should be returned. If this is false then the intersection of the perimeter and the line between the next and the center point is returned.
border - Optional border between the perimeter and the shape.

getRoutingCenterX

public double getRoutingCenterX(mxCellState state)
Returns the x-coordinate of the center point for automatic routing.

Returns:
Returns the x-coordinate of the routing center point.

getRoutingCenterY

public double getRoutingCenterY(mxCellState state)
Returns the y-coordinate of the center point for automatic routing.

Returns:
Returns the y-coordinate of the routing center point.

getPerimeterBounds

public mxRectangle getPerimeterBounds(mxCellState terminal,
                                      double border)
Returns the perimeter bounds for the given terminal, edge pair.


getPerimeterFunction

public mxPerimeter.mxPerimeterFunction getPerimeterFunction(mxCellState state)
Returns the perimeter function for the given state.


getNextPoint

public mxPoint getNextPoint(mxCellState edge,
                            mxCellState opposite,
                            boolean source)
Returns the nearest point in the list of absolute points or the center of the opposite terminal.

Parameters:
edge - Cell state that represents the edge.
opposite - Cell state that represents the opposite terminal.
source - Boolean indicating if the next point for the source or target should be returned.
Returns:
Returns the nearest point of the opposite side.

getVisibleTerminal

public Object getVisibleTerminal(Object edge,
                                 boolean source)
Returns the nearest ancestor terminal that is visible. The edge appears to be connected to this terminal on the display.

Parameters:
edge - Cell whose visible terminal should be returned.
source - Boolean that specifies if the source or target terminal should be returned.
Returns:
Returns the visible source or target terminal.

updateEdgeBounds

public void updateEdgeBounds(mxCellState state)
Updates the given state using the bounding box of the absolute points. Also updates terminal distance, length and segments.

Parameters:
state - Cell state whose bounds should be updated.

getPoint

public mxPoint getPoint(mxCellState state)
Returns the absolute center point along the given edge.


getPoint

public mxPoint getPoint(mxCellState state,
                        mxGeometry geometry)
Returns the absolute point on the edge for the given relative geometry as a point. The edge is represented by the given cell state.

Parameters:
state - Represents the state of the parent edge.
geometry - Optional geometry that represents the relative location.
Returns:
Returns the mxpoint that represents the absolute location of the given relative geometry.

getRelativePoint

public mxPoint getRelativePoint(mxCellState edgeState,
                                double x,
                                double y)
Gets the relative point that describes the given, absolute label position for the given edge state.


getCellStates

public mxCellState[] getCellStates(Object[] cells)
Returns the states for the given array of cells. The array contains all states that are not null, that is, the returned array may have less elements than the given array.


getState

public mxCellState getState(Object cell)
Returns the state for the given cell or null if no state is defined for the cell.

Parameters:
cell - Cell whose state should be returned.
Returns:
Returns the state for the given cell.

getState

public mxCellState getState(Object cell,
                            boolean create)
Returns the cell state for the given cell. If create is true, then the state is created if it does not yet exist.

Parameters:
cell - Cell for which a new state should be returned.
create - Boolean indicating if a new state should be created if it does not yet exist.
Returns:
Returns the state for the given cell.

removeState

public mxCellState removeState(Object cell)
Removes and returns the mxCellState for the given cell.

Parameters:
cell - mxCell for which the mxCellState should be removed.
Returns:
Returns the mxCellState that has been removed.

createState

public mxCellState createState(Object cell)
Creates and returns a cell state for the given cell.

Parameters:
cell - Cell for which a new state should be created.
Returns:
Returns a new state for the given cell.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxPerimeter.html0000664000175000017500000004200412176166726025720 0ustar sylvestresylvestre mxPerimeter (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxPerimeter

java.lang.Object
  extended by com.mxgraph.view.mxPerimeter

public class mxPerimeter
extends Object

Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER. Alternately, the mxConstants. PERIMETER_* constants can be used to reference a perimeter via the mxStyleRegistry.


Nested Class Summary
static interface mxPerimeter.mxPerimeterFunction
          Defines the requirements for a perimeter function.
 
Field Summary
static mxPerimeter.mxPerimeterFunction EllipsePerimeter
          Describes an elliptic perimeter.
static mxPerimeter.mxPerimeterFunction HexagonPerimeter
          Describes a hexagon perimeter.
static mxPerimeter.mxPerimeterFunction RectanglePerimeter
          Describes a rectangular perimeter for the given bounds.
static mxPerimeter.mxPerimeterFunction RhombusPerimeter
          Describes a rhombus (aka diamond) perimeter.
static mxPerimeter.mxPerimeterFunction TrianglePerimeter
          Describes a triangle perimeter.
 
Constructor Summary
mxPerimeter()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RectanglePerimeter

public static mxPerimeter.mxPerimeterFunction RectanglePerimeter
Describes a rectangular perimeter for the given bounds.


EllipsePerimeter

public static mxPerimeter.mxPerimeterFunction EllipsePerimeter
Describes an elliptic perimeter.


RhombusPerimeter

public static mxPerimeter.mxPerimeterFunction RhombusPerimeter
Describes a rhombus (aka diamond) perimeter.


TrianglePerimeter

public static mxPerimeter.mxPerimeterFunction TrianglePerimeter
Describes a triangle perimeter. See RectanglePerimeter for a description of the parameters.


HexagonPerimeter

public static mxPerimeter.mxPerimeterFunction HexagonPerimeter
Describes a hexagon perimeter. See RectanglePerimeter for a description of the parameters.

Constructor Detail

mxPerimeter

public mxPerimeter()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxStyleRegistry.html0000664000175000017500000004220412176166726026617 0ustar sylvestresylvestre mxStyleRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxStyleRegistry

java.lang.Object
  extended by com.mxgraph.view.mxStyleRegistry

public class mxStyleRegistry
extends Object

Singleton class that acts as a global converter from string to object values in a style. This is currently only used to perimeters and edge styles.


Field Summary
protected static Map<String,Object> values
          Maps from strings to objects.
 
Constructor Summary
mxStyleRegistry()
           
 
Method Summary
static String getName(Object value)
          Returns the name for the given value.
static Object getValue(String name)
          Returns the value associated with the given name.
static void putValue(String name, Object value)
          Puts the given object into the registry under the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected static Map<String,Object> values
Maps from strings to objects.

Constructor Detail

mxStyleRegistry

public mxStyleRegistry()
Method Detail

putValue

public static void putValue(String name,
                            Object value)
Puts the given object into the registry under the given name.


getValue

public static Object getValue(String name)
Returns the value associated with the given name.


getName

public static String getName(Object value)
Returns the name for the given value.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxGraphSelectionModel.mxSelectionChange.html0000664000175000017500000004540112176166726033257 0ustar sylvestresylvestre mxGraphSelectionModel.mxSelectionChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxGraphSelectionModel.mxSelectionChange

java.lang.Object
  extended by com.mxgraph.view.mxGraphSelectionModel.mxSelectionChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphSelectionModel

public static class mxGraphSelectionModel.mxSelectionChange
extends Object
implements mxUndoableEdit.mxUndoableChange


Field Summary
protected  Collection<Object> added
           
protected  mxGraphSelectionModel model
           
protected  Collection<Object> removed
           
 
Constructor Summary
mxGraphSelectionModel.mxSelectionChange(mxGraphSelectionModel model, Collection<Object> added, Collection<Object> removed)
           
 
Method Summary
 void execute()
          Undoes or redoes the change depending on its undo state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected mxGraphSelectionModel model

added

protected Collection<Object> added

removed

protected Collection<Object> removed
Constructor Detail

mxGraphSelectionModel.mxSelectionChange

public mxGraphSelectionModel.mxSelectionChange(mxGraphSelectionModel model,
                                               Collection<Object> added,
                                               Collection<Object> removed)
Parameters:
model -
added -
removed -
Method Detail

execute

public void execute()
Description copied from interface: mxUndoableEdit.mxUndoableChange
Undoes or redoes the change depending on its undo state.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/package-summary.html0000664000175000017500000002732112176166726026512 0ustar sylvestresylvestre com.mxgraph.view (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.view

This package implements the graph component, represented by the mxGraph class.

See:
          Description

Interface Summary
mxEdgeStyle.mxEdgeStyleFunction Defines the requirements for an edge style function.
mxGraph.mxICellVisitor  
mxPerimeter.mxPerimeterFunction Defines the requirements for a perimeter function.
 

Class Summary
mxCellState Represents the current state of a cell in a given graph view.
mxConnectionConstraint Defines an object that contains the constraints about how to connect one side of an edge to its terminal.
mxEdgeStyle Provides various edge styles to be used as the values for mxConstants.STYLE_EDGE in a cell style.
mxGraph Implements a graph object that allows to create diagrams from a graph model and stylesheet.
mxGraphSelectionModel Implements the selection model for a graph.
mxGraphSelectionModel.mxSelectionChange  
mxGraphView Implements a view for the graph.
mxGraphView.mxCurrentRootChange Action to change the current root in a view.
mxLayoutManager Implements a layout manager that updates the layout for a given transaction.
mxMultiplicity  
mxPerimeter Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER.
mxSpaceManager  
mxStyleRegistry Singleton class that acts as a global converter from string to object values in a style.
mxStylesheet Defines the appearance of the cells in a graph.
mxSwimlaneManager Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if siblings is true, and its ancestors, if bubbling is true.
mxTemporaryCellStates  
 

Package com.mxgraph.view Description

This package implements the graph component, represented by the mxGraph class. The graph holds an mxGraphModel which contains mxCells and caches the state of the cells in mxGraphView. The cells are painted using a canvas from the canvas package. The style of the graph is represented by the mxStylesheet class.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/package-use.html0000664000175000017500000007104312176166726025611 0ustar sylvestresylvestre Uses of Package com.mxgraph.view (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.view

Packages that use com.mxgraph.view
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML. 
com.mxgraph.costfunction   
com.mxgraph.generatorfunction   
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.io.graphml   
com.mxgraph.layout This package contains various graph layouts. 
com.mxgraph.layout.hierarchical   
com.mxgraph.layout.hierarchical.stage   
com.mxgraph.layout.orthogonal   
com.mxgraph.layout.orthogonal.model   
com.mxgraph.reader This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model. 
com.mxgraph.shape   
com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component. 
com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing. 
com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays. 
com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Classes in com.mxgraph.view used by com.mxgraph.analysis
mxCellState
          Represents the current state of a cell in a given graph view.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
mxGraph.mxICellVisitor
           
 

Classes in com.mxgraph.view used by com.mxgraph.canvas
mxCellState
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.view used by com.mxgraph.costfunction
mxCellState
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.view used by com.mxgraph.generatorfunction
mxCellState
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.view used by com.mxgraph.io
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.io.graphml
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.layout
mxCellState
          Represents the current state of a cell in a given graph view.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.layout.hierarchical
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.layout.hierarchical.stage
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.layout.orthogonal
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.layout.orthogonal.model
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.reader
mxCellState
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.view used by com.mxgraph.shape
mxCellState
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.view used by com.mxgraph.swing
mxCellState
          Represents the current state of a cell in a given graph view.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.swing.handler
mxCellState
          Represents the current state of a cell in a given graph view.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.swing.util
mxCellState
          Represents the current state of a cell in a given graph view.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.swing.view
mxCellState
          Represents the current state of a cell in a given graph view.
 

Classes in com.mxgraph.view used by com.mxgraph.util
mxCellState
          Represents the current state of a cell in a given graph view.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
 

Classes in com.mxgraph.view used by com.mxgraph.view
mxCellState
          Represents the current state of a cell in a given graph view.
mxConnectionConstraint
          Defines an object that contains the constraints about how to connect one side of an edge to its terminal.
mxEdgeStyle.mxEdgeStyleFunction
          Defines the requirements for an edge style function.
mxGraph
          Implements a graph object that allows to create diagrams from a graph model and stylesheet.
mxGraph.mxICellVisitor
           
mxGraphSelectionModel
          Implements the selection model for a graph.
mxGraphView
          Implements a view for the graph.
mxMultiplicity
           
mxPerimeter.mxPerimeterFunction
          Defines the requirements for a perimeter function.
mxStylesheet
          Defines the appearance of the cells in a graph.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/package-tree.html0000664000175000017500000002410612176166726025752 0ustar sylvestresylvestre com.mxgraph.view Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.view

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxConnectionConstraint.html0000664000175000017500000004423012176166726030133 0ustar sylvestresylvestre mxConnectionConstraint (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxConnectionConstraint

java.lang.Object
  extended by com.mxgraph.view.mxConnectionConstraint

public class mxConnectionConstraint
extends Object

Defines an object that contains the constraints about how to connect one side of an edge to its terminal.


Field Summary
protected  boolean perimeter
          Boolean that specifies if the point should be projected onto the perimeter of the terminal.
protected  mxPoint point
          Point that specifies the fixed location of the connection point.
 
Constructor Summary
mxConnectionConstraint()
          Constructs an empty connection constraint.
mxConnectionConstraint(mxPoint point)
          Constructs a connection constraint for the given point.
mxConnectionConstraint(mxPoint point, boolean perimeter)
          Constructs a new connection constraint for the given point and boolean arguments.
 
Method Summary
 mxPoint getPoint()
          Returns the point.
 boolean isPerimeter()
          Returns perimeter.
 void setPerimeter(boolean value)
          Sets perimeter.
 void setPoint(mxPoint value)
          Sets the point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

point

protected mxPoint point
Point that specifies the fixed location of the connection point.


perimeter

protected boolean perimeter
Boolean that specifies if the point should be projected onto the perimeter of the terminal.

Constructor Detail

mxConnectionConstraint

public mxConnectionConstraint()
Constructs an empty connection constraint.


mxConnectionConstraint

public mxConnectionConstraint(mxPoint point)
Constructs a connection constraint for the given point.


mxConnectionConstraint

public mxConnectionConstraint(mxPoint point,
                              boolean perimeter)
Constructs a new connection constraint for the given point and boolean arguments.

Parameters:
point - Optional mxPoint that specifies the fixed location of the point in relative coordinates. Default is null.
perimeter - Optional boolean that specifies if the fixed point should be projected onto the perimeter of the terminal. Default is true.
Method Detail

getPoint

public mxPoint getPoint()
Returns the point.


setPoint

public void setPoint(mxPoint value)
Sets the point.


isPerimeter

public boolean isPerimeter()
Returns perimeter.


setPerimeter

public void setPerimeter(boolean value)
Sets perimeter.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxSpaceManager.html0000664000175000017500000010074212176166726026316 0ustar sylvestresylvestre mxSpaceManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxSpaceManager

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.view.mxSpaceManager

public class mxSpaceManager
extends mxEventSource


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  boolean enabled
          Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
protected  boolean extendParents
          Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
protected  mxGraph graph
          Defines the type of the source or target terminal.
protected  mxEventSource.mxIEventListener resizeHandler
           
protected  boolean shiftDownwards
          Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
protected  boolean shiftRightwards
          Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxSpaceManager(mxGraph graph)
           
 
Method Summary
protected  void cellResized(Object cell)
           
protected  void cellsResized(Object[] cells)
           
 void destroy()
           
protected  Object[] getCellsToShift(mxCellState state)
           
 mxGraph getGraph()
           
 boolean isCellIgnored(Object cell)
           
 boolean isCellShiftable(Object cell)
           
 boolean isEnabled()
           
 boolean isExtendParents()
           
 boolean isShiftDownwards()
           
 boolean isShiftRightwards()
           
 void setEnabled(boolean value)
           
 void setExtendParents(boolean extendParents)
           
 void setGraph(mxGraph graph)
           
 void setShiftDownwards(boolean shiftDownwards)
           
 void setShiftRightwards(boolean shiftRightwards)
           
protected  void shiftCell(Object cell, double dx, double dy, double x0, double y0, double right, double bottom, double fx, double fy, boolean extendParent)
           
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected mxGraph graph
Defines the type of the source or target terminal. The type is a string passed to mxCell.is to check if the rule applies to a cell.


enabled

protected boolean enabled
Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.


shiftRightwards

protected boolean shiftRightwards
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.


shiftDownwards

protected boolean shiftDownwards
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.


extendParents

protected boolean extendParents
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.


resizeHandler

protected mxEventSource.mxIEventListener resizeHandler
Constructor Detail

mxSpaceManager

public mxSpaceManager(mxGraph graph)
Method Detail

isCellIgnored

public boolean isCellIgnored(Object cell)

isCellShiftable

public boolean isCellShiftable(Object cell)

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean value)
Parameters:
value - the enabled to set

isShiftRightwards

public boolean isShiftRightwards()
Returns:
the shiftRightwards

setShiftRightwards

public void setShiftRightwards(boolean shiftRightwards)
Parameters:
shiftRightwards - the shiftRightwards to set

isShiftDownwards

public boolean isShiftDownwards()
Returns:
the shiftDownwards

setShiftDownwards

public void setShiftDownwards(boolean shiftDownwards)
Parameters:
shiftDownwards - the shiftDownwards to set

isExtendParents

public boolean isExtendParents()
Returns:
the extendParents

setExtendParents

public void setExtendParents(boolean extendParents)
Parameters:
extendParents - the extendParents to set

getGraph

public mxGraph getGraph()
Returns:
the graph

setGraph

public void setGraph(mxGraph graph)
Parameters:
graph - the graph to set

cellsResized

protected void cellsResized(Object[] cells)

cellResized

protected void cellResized(Object cell)

shiftCell

protected void shiftCell(Object cell,
                         double dx,
                         double dy,
                         double x0,
                         double y0,
                         double right,
                         double bottom,
                         double fx,
                         double fy,
                         boolean extendParent)

getCellsToShift

protected Object[] getCellsToShift(mxCellState state)

destroy

public void destroy()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/view/mxGraph.html0000664000175000017500000201123312176166726025027 0ustar sylvestresylvestre mxGraph (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.view
Class mxGraph

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.view.mxGraph

public class mxGraph
extends mxEventSource

Implements a graph object that allows to create diagrams from a graph model and stylesheet.

Images

To create an image from a graph, use the following code for a given XML document (doc) and File (file): Image img = mxCellRenderer.createBufferedImage( graph, null, 1, Color.WHITE, false, null); ImageIO.write(img, "png", file); If the XML is given as a string rather than a document, the document can be obtained using mxUtils.parse. This class fires the following events: mxEvent.ROOT fires if the root in the model has changed. This event has no properties. mxEvent.ALIGN_CELLS fires between begin- and endUpdate in alignCells. The cells and align properties contain the respective arguments that were passed to alignCells. mxEvent.FLIP_EDGE fires between begin- and endUpdate in flipEdge. The edge property contains the edge passed to flipEdge. mxEvent.ORDER_CELLS fires between begin- and endUpdate in orderCells. The cells and back properties contain the respective arguments that were passed to orderCells. mxEvent.CELLS_ORDERED fires between begin- and endUpdate in cellsOrdered. The cells and back arguments contain the respective arguments that were passed to cellsOrdered. mxEvent.GROUP_CELLS fires between begin- and endUpdate in groupCells. The group, cells and border arguments contain the respective arguments that were passed to groupCells. mxEvent.UNGROUP_CELLS fires between begin- and endUpdate in ungroupCells. The cells property contains the array of cells that was passed to ungroupCells. mxEvent.REMOVE_CELLS_FROM_PARENT fires between begin- and endUpdate in removeCellsFromParent. The cells property contains the array of cells that was passed to removeCellsFromParent. mxEvent.ADD_CELLS fires between begin- and endUpdate in addCells. The cells, parent, index, source and target properties contain the respective arguments that were passed to addCells. mxEvent.CELLS_ADDED fires between begin- and endUpdate in cellsAdded. The cells, parent, index, source, target and absolute properties contain the respective arguments that were passed to cellsAdded. mxEvent.REMOVE_CELLS fires between begin- and endUpdate in removeCells. The cells and includeEdges arguments contain the respective arguments that were passed to removeCells. mxEvent.CELLS_REMOVED fires between begin- and endUpdate in cellsRemoved. The cells argument contains the array of cells that was removed. mxEvent.SPLIT_EDGE fires between begin- and endUpdate in splitEdge. The edge property contains the edge to be splitted, the cells, newEdge, dx and dy properties contain the respective arguments that were passed to splitEdge. mxEvent.TOGGLE_CELLS fires between begin- and endUpdate in toggleCells. The show, cells and includeEdges properties contain the respective arguments that were passed to toggleCells. mxEvent.FOLD_CELLS fires between begin- and endUpdate in foldCells. The collapse, cells and recurse properties contain the respective arguments that were passed to foldCells. mxEvent.CELLS_FOLDED fires between begin- and endUpdate in cellsFolded. The collapse, cells and recurse properties contain the respective arguments that were passed to cellsFolded. mxEvent.UPDATE_CELL_SIZE fires between begin- and endUpdate in updateCellSize. The cell and ignoreChildren properties contain the respective arguments that were passed to updateCellSize. mxEvent.RESIZE_CELLS fires between begin- and endUpdate in resizeCells. The cells and bounds properties contain the respective arguments that were passed to resizeCells. mxEvent.CELLS_RESIZED fires between begin- and endUpdate in cellsResized. The cells and bounds properties contain the respective arguments that were passed to cellsResized. mxEvent.MOVE_CELLS fires between begin- and endUpdate in moveCells. The cells, dx, dy, clone, target and location properties contain the respective arguments that were passed to moveCells. mxEvent.CELLS_MOVED fires between begin- and endUpdate in cellsMoved. The cells, dx, dy and disconnect properties contain the respective arguments that were passed to cellsMoved. mxEvent.CONNECT_CELL fires between begin- and endUpdate in connectCell. The edge, terminal and source properties contain the respective arguments that were passed to connectCell. mxEvent.CELL_CONNECTED fires between begin- and endUpdate in cellConnected. The edge, terminal and source properties contain the respective arguments that were passed to cellConnected. mxEvent.REPAINT fires if a repaint was requested by calling repaint. The region property contains the optional mxRectangle that was passed to repaint to define the dirty region.


Nested Class Summary
static interface mxGraph.mxICellVisitor
           
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Field Summary
protected  boolean allowDanglingEdges
          Specifies if edges with disconnected terminals are allowed in the graph.
protected  boolean allowLoops
          Specifies if loops (aka self-references) are allowed.
protected  boolean allowNegativeCoordinates
          Specifies if negative coordinates for vertices are allowed.
protected  String alternateEdgeStyle
          Specifies the alternate edge style to be used if the main control point on an edge is being doubleclicked.
protected  boolean autoOrigin
          Specifies if the origin should be automatically updated.
protected  boolean autoSizeCells
          Specifies if the graph should automatically update the cell size after an edit.
protected  int border
          Border to be added to the bottom and right side when the container is being resized after the graph has been changed.
protected  boolean cellsBendable
          Specifies the return value for isCell(s)Bendable.
protected  boolean cellsCloneable
          Specifies the return value for isCell(s)Cloneable.
protected  boolean cellsDeletable
          Specifies the return value for isCell(s)Deletable.
protected  boolean cellsDisconnectable
          Specifies the return value for isCellDisconntableFromTerminal.
protected  boolean cellsEditable
          Specifies the return value for isCell(s)Editable.
protected  boolean cellsLocked
          Specifies the return value for isCell(s)Locked.
protected  boolean cellsMovable
          Specifies the return value for isCell(s)Movable.
protected  boolean cellsResizable
          Specifies the return value for isCell(s)Sizable.
protected  boolean cellsSelectable
          Specifies the return value for isCell(s)Selectable.
protected  int changesRepaintThreshold
          Specifies the maximum number of changes that should be processed to find the dirty region.
protected  PropertyChangeSupport changeSupport
          Property change event handling.
protected  boolean cloneInvalidEdges
          Specifies if edges that are cloned should be validated and only inserted if they are valid.
protected  boolean collapseToPreferredSize
          Specifies if the cell size should be changed to the preferred size when a cell is first collapsed.
protected  boolean connectableEdges
          Specifies if edges are connectable.
protected  boolean constrainChildren
          Specifies the return value for isConstrainChildren.
protected  mxEdgeStyle.mxEdgeStyleFunction defaultLoopStyle
          Specifies the default style for loops.
protected  double defaultOverlap
          Value returned by getOverlap if isAllowOverlapParent returns true for the given cell.
protected  Object defaultParent
          Specifies the default parent to be used to insert new cells.
protected  boolean disconnectOnMove
          Specifies if edges should be disconnected from their terminals when they are moved.
protected  boolean dropEnabled
          Specifies the return value for isDropEnabled.
protected  boolean edgeLabelsMovable
          Specifies the return value for edges in isLabelMovable.
protected  boolean enabled
          Specifies the return value for isEnabled.
protected  boolean extendParents
          Specifies if a parent should contain the child bounds after a resize of the child.
protected  boolean extendParentsOnAdd
          Specifies if parents should be extended according to the switch if cells are added.
protected  mxEventSource.mxIEventListener fullRepaintHandler
          Fires repaint events for full repaints.
protected  mxEventSource.mxIEventListener graphModelChangeHandler
          Fires repaint events for model changes.
protected  boolean gridEnabled
          Specifies if the grid is enabled.
protected  int gridSize
          Specifies the grid size.
protected  boolean htmlLabels
          Specifies the return value for isHtmlLabel.
protected static List<mxImageBundle> imageBundles
          Holds the list of bundles.
protected  boolean keepEdgesInBackground
          Specifies if edges should appear in the background regardless of their order in the model.
protected  boolean keepEdgesInForeground
          Specifies if edges should appear in the foreground regardless of their order in the model.
protected  boolean labelsClipped
          Specifies the return value for isLabel(s)Clipped.
protected  boolean labelsVisible
          Specifies if labels should be visible.
protected  mxRectangle maximumGraphBounds
           that specifies the area in which all cells in the diagram should be placed.
protected  mxRectangle minimumGraphSize
          mxRectangle that specifies the minimum size of the graph canvas inside the scrollpane.
protected  mxIGraphModel model
          Holds the model that contains the cells to be displayed.
protected  boolean multigraph
          Specifies if multiple edges in the same direction between the same pair of vertices are allowed.
protected  mxMultiplicity[] multiplicities
          Specifies the multiplicities to be used for validation of the graph.
protected  mxPoint origin
          Holds the current automatic origin.
protected  boolean resetEdgesOnConnect
          Specifies if edge control points should be reset after the the edge has been reconnected.
protected  boolean resetEdgesOnMove
          Specifies if edge control points should be reset after the move of a connected cell.
protected  boolean resetEdgesOnResize
          Specifies if loops (aka self-references) are allowed.
protected  boolean resetViewOnRootChange
          Specifies if the scale and translate should be reset if the root changes in the model.
protected  mxGraphSelectionModel selectionModel
          Holds the that models the current selection.
protected  boolean splitEnabled
          Specifies if dropping onto edges should be enabled.
protected  mxStylesheet stylesheet
          Holds the stylesheet that defines the appearance of the cells.
protected  boolean swimlaneNesting
          Specifies if nesting of swimlanes is allowed.
protected  mxEventSource.mxIEventListener updateOriginHandler
          Fires repaint events for full repaints.
static String VERSION
          Holds the version number of this release.
protected  boolean vertexLabelsMovable
          Specifies the return value for vertices in isLabelMovable.
protected  mxGraphView view
          Holds the view that caches the cell states.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxGraph()
          Constructs a new graph with an empty mxGraphModel.
mxGraph(mxIGraphModel model)
          Constructs a new graph for the specified model.
mxGraph(mxIGraphModel model, mxStylesheet stylesheet)
          Constructs a new graph for the specified model.
mxGraph(mxStylesheet stylesheet)
          Constructs a new graph for the specified model.
 
Method Summary
 Object[] addAllEdges(Object[] cells)
          Returns an array with the given cells and all edges that are connected to a cell or one of its descendants.
 Object addCell(Object cell)
          Adds the cell to the default parent.
 Object addCell(Object cell, Object parent)
          Adds the cell to the parent.
 Object addCell(Object cell, Object parent, Integer index, Object source, Object target)
          Adds the cell to the parent and connects it to the given source and target terminals.
 Object[] addCells(Object[] cells)
          Adds the cells to the default parent.
 Object[] addCells(Object[] cells, Object parent)
          Adds the cells to the parent.
 Object[] addCells(Object[] cells, Object parent, Integer index)
          Adds the cells to the parent at the given index.
 Object[] addCells(Object[] cells, Object parent, Integer index, Object source, Object target)
          Adds the cells to the parent at the given index, connecting each cell to the optional source and target terminal.
 Object addEdge(Object edge, Object parent, Object source, Object target, Integer index)
          Adds the edge to the parent and connects it to the given source and target terminals.
 void addImageBundle(mxImageBundle bundle)
          Adds the specified bundle.
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
           
 void addSelectionCell(Object cell)
           
 void addSelectionCells(Object[] cells)
           
 Object[] alignCells(String align)
          Aligns the selection cells vertically or horizontally according to the given alignment.
 Object[] alignCells(String align, Object[] cells)
          Aligns the given cells vertically or horizontally according to the given alignment.
 Object[] alignCells(String align, Object[] cells, Object param)
          Aligns the given cells vertically or horizontally according to the given alignment using the optional parameter as the coordinate.
 void cellConnected(Object edge, Object terminal, boolean source, mxConnectionConstraint constraint)
          Sets the new terminal for the given edge and resets the edge points if isResetEdgesOnConnect returns true.
protected  void cellDrawn(mxICanvas canvas, mxCellState state, Object element, Object labelElement)
          Called when a cell has been painted as the specified object, typically a DOM node that represents the given cell graphically in a document.
 void cellLabelChanged(Object cell, Object value, boolean autoSize)
          Sets the new label for a cell.
 void cellsAdded(Object[] cells, Object parent, Integer index, Object source, Object target, boolean absolute)
          Adds the specified cells to the given parent.
 void cellsAdded(Object[] cells, Object parent, Integer index, Object source, Object target, boolean absolute, boolean constrain)
          Adds the specified cells to the given parent.
 void cellsFolded(Object[] cells, boolean collapse, boolean recurse)
          Invokes cellsFoldable with checkFoldable set to false.
 void cellsFolded(Object[] cells, boolean collapse, boolean recurse, boolean checkFoldable)
          Sets the collapsed state of the specified cells.
 void cellSizeUpdated(Object cell, boolean ignoreChildren)
          Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
 void cellsMoved(Object[] cells, double dx, double dy, boolean disconnect, boolean constrain)
          Moves the specified cells by the given vector, disconnecting the cells using disconnectGraph if disconnect is true.
 void cellsOrdered(Object[] cells, boolean back)
          Moves the given cells to the front or back.
 void cellsRemoved(Object[] cells)
          Removes the given cells from the model.
 void cellsResized(Object[] cells, mxRectangle[] bounds)
          Sets the bounds of the given cells and fires a event.
 void cellsToggled(Object[] cells, boolean show)
          Sets the visible state of the specified cells.
 void clearSelection()
           
 Object[] cloneCells(Object[] cells)
          Clones all cells in the given array.
 Object[] cloneCells(Object[] cells, boolean allowInvalidEdges)
          Returns the clones for the given cells.
 Object connectCell(Object edge, Object terminal, boolean source)
          Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.
 Object connectCell(Object edge, Object terminal, boolean source, mxConnectionConstraint constraint)
          Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.
 void constrainChild(Object cell)
          Keeps the given cell inside the bounds returned by getCellContainmentArea for its parent, according to the rules defined by getOverlap and isConstrainChild.
 String convertValueToString(Object cell)
          Returns the textual representation for the given cell.
 Object createEdge(Object parent, String id, Object value, Object source, Object target, String style)
          Hook method that creates the new edge for insertEdge.
protected  mxGraphView createGraphView()
          Constructs a new view to be used in this graph.
 Object createGroupCell(Object[] cells)
          Hook for creating the group cell to hold the given array of if no group cell was given to the function.
protected  mxGraphSelectionModel createSelectionModel()
          Constructs a new selection model to be used in this graph.
protected  mxStylesheet createStylesheet()
          Constructs a new stylesheet to be used in this graph.
 Object createVertex(Object parent, String id, Object value, double x, double y, double width, double height, String style)
          Hook method that creates the new vertex for insertVertex.
 Object createVertex(Object parent, String id, Object value, double x, double y, double width, double height, String style, boolean relative)
          Hook method that creates the new vertex for insertVertex.
 void disconnectGraph(Object[] cells)
          Disconnects the given edges from the terminals which are not in the given array.
 void drawCell(mxICanvas canvas, Object cell)
          Draws the given cell and its descendants onto the specified canvas.
 void drawGraph(mxICanvas canvas)
          Draws the graph onto the given canvas.
 void drawState(mxICanvas canvas, mxCellState state, boolean drawLabel)
          Draws the cell state with the given label onto the canvas.
 void enterGroup()
           
 void enterGroup(Object cell)
          Uses the given cell as the root of the displayed cell hierarchy.
 void exitGroup()
          Changes the current root to the next valid root in the displayed cell hierarchy.
 void extendParent(Object cell)
          Resizes the parents recursively so that they contain the complete area of the resized child cell.
 List<Object> findTreeRoots(Object parent)
          Returns all visible children in the given parent which do not have incoming edges.
 List<Object> findTreeRoots(Object parent, boolean isolate)
          Returns all visible children in the given parent which do not have incoming edges.
 List<Object> findTreeRoots(Object parent, boolean isolate, boolean invert)
          Returns all visible children in the given parent which do not have incoming edges.
 Object flipEdge(Object edge)
          Called when the main control point of the edge is double-clicked.
 Object[] foldCells(boolean collapse)
          Sets the collapsed state of the selection cells without recursion.
 Object[] foldCells(boolean collapse, boolean recurse)
          Sets the collapsed state of the selection cells.
 Object[] foldCells(boolean collapse, boolean recurse, Object[] cells)
          Invokes foldCells with checkFoldable set to false.
 Object[] foldCells(boolean collapse, boolean recurse, Object[] cells, boolean checkFoldable)
          Sets the collapsed state of the specified cells and all descendants if recurse is true.
 mxConnectionConstraint[] getAllConnectionConstraints(mxCellState terminal, boolean source)
          Returns an array of all constraints for the given terminal.
 Object[] getAllEdges(Object[] cells)
          Returns all edges connected to the given cells or their descendants.
 String getAlternateEdgeStyle()
          Returns alternateEdgeStyle.
 int getBorder()
          Returns the value of .
 mxRectangle getBoundingBox(Object cell)
          Returns the bounds of the given cell.
 mxRectangle getBoundingBox(Object cell, boolean includeEdges)
          Returns the bounding box of the given cell including all connected edges if includeEdge is true.
 mxRectangle getBoundingBox(Object cell, boolean includeEdges, boolean includeDescendants)
          Returns the bounding box of the given cell including all connected edges if includeEdge is true.
 mxRectangle getBoundingBoxFromGeometry(Object[] cells)
          Returns the bounding box for the geometries of the vertices in the given array of cells.
 mxRectangle getBoundsForCells(Object[] cells, boolean includeEdges, boolean includeDescendants, boolean boundingBox)
          Returns the bounds for the given cells.
 mxRectangle getBoundsForGroup(Object group, Object[] children, double border)
          Returns the bounds to be used for the given group and children.
 mxRectangle getCellBounds(Object cell)
          Returns the bounds of the given cell.
 mxRectangle getCellBounds(Object cell, boolean includeEdges)
          Returns the bounds of the given cell including all connected edges if includeEdge is true.
 mxRectangle getCellBounds(Object cell, boolean includeEdges, boolean includeDescendants)
          Returns the bounds of the given cell including all connected edges if includeEdge is true.
 mxRectangle getCellBounds(Object cell, boolean includeEdges, boolean includeDescendants, boolean boundingBox)
          Returns the bounds of the given cell including all connected edges if includeEdge is true.
 mxRectangle getCellContainmentArea(Object cell)
          Returns the mxRectangle inside which a cell is to be kept.
 mxGeometry getCellGeometry(Object cell)
          Returns the geometry for the given cell.
 Object[] getCellsBeyond(double x0, double y0, Object parent, boolean rightHalfpane, boolean bottomHalfpane)
          Returns the children of the given parent that are contained in the halfpane from the given point (x0, y0) rightwards and downwards depending on rightHalfpane and bottomHalfpane.
 Object[] getCellsForGroup(Object[] cells)
          Returns the cells with the same parent as the first cell in the given array.
 Map<String,Object> getCellStyle(Object cell)
          Returns an array of key, value pairs representing the cell style for the given cell.
 String getCellValidationError(Object cell)
          Checks all multiplicities that cannot be enforced while the graph is being modified, namely, all multiplicities that require a minimum of 1 edge.
 int getChangesRepaintThreshold()
           
 Object[] getChildCells(Object parent)
          Returns the visible children of the given parent.
 Object[] getChildCells(Object parent, boolean vertices, boolean edges)
          Returns the visible child vertices or edges in the given parent.
 Object[] getChildEdges(Object parent)
          Returns the visible child edges of the given parent.
 mxPoint getChildOffsetForCell(Object cell)
          Returns the offset to be used for the cells inside the given cell.
 Object[] getChildVertices(Object parent)
          Returns the visible child vertices of the given parent.
 Object[] getCloneableCells(Object[] cells)
          Returns the cells which are movable in the given array of cells.
 mxConnectionConstraint getConnectionConstraint(mxCellState edge, mxCellState terminal, boolean source)
          Returns an connection constraint that describes the given connection point.
 mxPoint getConnectionPoint(mxCellState vertex, mxConnectionConstraint constraint)
          Sets the connection constraint that describes the given connection point.
 Object[] getConnections(Object cell)
          Returns all visible edges connected to the given cell without loops.
 Object[] getConnections(Object cell, Object parent)
          Returns all visible edges connected to the given cell without loops.
 Object[] getConnections(Object cell, Object parent, boolean recurse)
          Returns all visible edges connected to the given cell without loops.
 Object getCurrentRoot()
          Returns the current root of the displayed cell hierarchy.
 mxEdgeStyle.mxEdgeStyleFunction getDefaultLoopStyle()
          Returns the default edge style used for loops.
 double getDefaultOverlap()
          Gets defaultOverlap.
 Object getDefaultParent()
          Returns the first child of the root in the model, that is, the first or default layer of the diagram.
 Object[] getDeletableCells(Object[] cells)
          Returns the cells which are movable in the given array of cells.
 Object getDropTarget(Object[] cells, Point pt, Object cell)
          Returns the given cell if it is a drop target for the given cells or the nearest ancestor that may be used as a drop target for the given cells.
 Object[] getEdges(Object cell)
          Returns all visible edges connected to the given cell including loops.
 Object[] getEdges(Object cell, Object parent)
          Returns all visible edges connected to the given cell including loops.
 Object[] getEdges(Object cell, Object parent, boolean incoming, boolean outgoing, boolean includeLoops)
          Returns the incoming and/or outgoing edges for the given cell.
 Object[] getEdges(Object cell, Object parent, boolean incoming, boolean outgoing, boolean includeLoops, boolean recurse)
          Returns the incoming and/or outgoing edges for the given cell.
 Object[] getEdgesBetween(Object source, Object target)
          Returns the edges between the given source and target.
 Object[] getEdgesBetween(Object source, Object target, boolean directed)
          Returns the edges between the given source and target.
 String getEdgeValidationError(Object edge, Object source, Object target)
          Returns the validation error message to be displayed when inserting or changing an edges' connectivity.
 Object[] getFoldableCells(Object[] cells, boolean collapse)
          Returns the cells which are movable in the given array of cells.
 mxRectangle getGraphBounds()
          Returns the bounds of the visible graph.
 int getGridSize()
          Returns the grid size.
 String getImage(mxCellState state)
          Returns the image URL for the given cell state.
 List<mxImageBundle> getImageBundles()
          Returns the image bundles
 void getImageBundles(List<mxImageBundle> value)
          Returns the image bundles
 String getImageFromBundles(String key)
          Searches all bundles for the specified key and returns the value for the first match or null if the key is not found.
 Object[] getIncomingEdges(Object cell)
          Returns all incoming visible edges connected to the given cell without loops.
 Object[] getIncomingEdges(Object cell, Object parent)
          Returns the visible incoming edges for the given cell.
 String getLabel(Object cell)
          Returns a string or DOM node that represents the label for the given cell.
protected  String getLinkForCell(Object cell)
          Returns the hyperlink to be used for the given cell.
 mxRectangle getMaximumGraphBounds()
           
 mxRectangle getMinimumGraphSize()
          Returns the minimum size of the diagram.
 mxIGraphModel getModel()
          Returns the graph model that contains the graph data.
 Object[] getMovableCells(Object[] cells)
          Returns the cells which are movable in the given array of cells.
 mxMultiplicity[] getMultiplicities()
           
 Object[] getOpposites(Object[] edges, Object terminal)
          Returns all distinct visible opposite cells of the terminal on the given edges.
 Object[] getOpposites(Object[] edges, Object terminal, boolean sources, boolean targets)
          Returns all distincts visible opposite cells for the specified terminal on the given edges.
 mxPoint getOrigin()
          Returns origin.
 Object[] getOutgoingEdges(Object cell)
          Returns all outgoing visible edges connected to the given cell without loops.
 Object[] getOutgoingEdges(Object cell, Object parent)
          Returns the visible outgoing edges for the given cell.
 double getOverlap(Object cell)
          Returns a decimal number representing the amount of the width and height of the given cell that is allowed to overlap its parent.
 mxRectangle getPaintBounds(Object[] cells)
          Returns the bounding box of the given cells and their descendants.
 mxRectangle getPreferredSizeForCell(Object cell)
          Returns the preferred width and height of the given as an .
 Object[] getRemovedCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
          Returns the cells that have been removed from the model.
 Object getSelectionCell()
           
 Object[] getSelectionCells()
           
 Object[] getSelectionCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
          Returns the cells to be selected for the given list of changes.
 int getSelectionCount()
           
 mxGraphSelectionModel getSelectionModel()
           
 mxRectangle getStartSize(Object swimlane)
          Returns the start size of the given swimlane, that is, the width or height of the part that contains the title, depending on the horizontal style.
 mxStylesheet getStylesheet()
          Returns the stylesheet that provides the style.
protected  String getTargetForCell(Object cell)
          Returns the hyperlink to be used for the given cell.
 Object getTerminalForPort(Object cell, boolean source)
          Returns the terminal to be used for a given port.
 String getToolTipForCell(Object cell)
          Returns the tooltip to be used for the given cell.
 mxPoint getTranslateForRoot(Object cell)
          Returns the translation to be used if the given cell is the root cell as an .
 mxGraphView getView()
          Returns the view that contains the cell states.
 mxRectangle graphModelChanged(mxIGraphModel sender, List<mxUndoableEdit.mxUndoableChange> changes)
          Called when the graph model changes.
 Object groupCells()
          Groups the selection cells.
 Object groupCells(Object group)
          Groups the selection cells and adds them to the given group.
 Object groupCells(Object group, double border)
          Groups the selection cells and adds them to the given group.
 Object groupCells(Object group, double border, Object[] cells)
          Adds the cells into the given group.
 void home()
          Uses the root of the model as the root of the displayed cell hierarchy and selects the previous root.
 Object insertEdge(Object parent, String id, Object value, Object source, Object target)
          Creates and adds a new edge with an empty style.
 Object insertEdge(Object parent, String id, Object value, Object source, Object target, String style)
          Adds a new edge into the given parent using value as the user object and the given source and target as the terminals of the new edge.
 Object insertVertex(Object parent, String id, Object value, double x, double y, double width, double height)
          Creates and adds a new vertex with an empty style.
 Object insertVertex(Object parent, String id, Object value, double x, double y, double width, double height, String style)
          Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex.
 Object insertVertex(Object parent, String id, Object value, double x, double y, double width, double height, String style, boolean relative)
          Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex.
 boolean isAllowDanglingEdges()
          Returns allowDanglingEdges
 boolean isAllowLoops()
          Returns allowLoops.
 boolean isAllowNegativeCoordinates()
          Returns isAllowNegativeCoordinates.
 boolean isAllowOverlapParent(Object cell)
          Returns true if the given cell is allowed to be placed outside of the parents area.
 boolean isAutoOrigin()
          Returns autoOrigin.
 boolean isAutoSizeCell(Object cell)
          Returns true if the size of the given cell should automatically be updated after a change of the label.
 boolean isAutoSizeCells()
          Returns true if the size of the given cell should automatically be updated after a change of the label.
 boolean isCellBendable(Object cell)
          Returns true if the given cell is bendable.
 boolean isCellCloneable(Object cell)
          Returns the constant true.
 boolean isCellCollapsed(Object cell)
          Returns true if the given cell is collapsed in this graph.
 boolean isCellConnectable(Object cell)
          Returns true if the given cell is connectable in this graph.
 boolean isCellDeletable(Object cell)
          Returns true if the given cell is movable.
 boolean isCellDisconnectable(Object cell, Object terminal, boolean source)
          Returns true if the given cell is disconnectable from the source or target terminal.
 boolean isCellEditable(Object cell)
          Returns true if the given cell is movable.
 boolean isCellFoldable(Object cell, boolean collapse)
          Returns true if the given cell is expandable.
 boolean isCellLocked(Object cell)
          Returns true if the given cell may not be moved, sized, bended, disconnected, edited or selected.
 boolean isCellMovable(Object cell)
          Returns true if the given cell is movable.
 boolean isCellResizable(Object cell)
          Returns true if the given cell is resizable.
 boolean isCellsBendable()
          Returns cellsBendable.
 boolean isCellsCloneable()
          Returns cellsCloneable.
 boolean isCellsDeletable()
          Returns cellsDeletable.
 boolean isCellsDisconnectable()
          Returns cellsDisconnectable.
 boolean isCellsEditable()
          Returns true if editing is allowed in this graph.
 boolean isCellSelectable(Object cell)
          Returns true if the given cell is selectable.
 boolean isCellSelected(Object cell)
           
 boolean isCellsLocked()
          Returns cellsLocked, the default return value for isCellLocked.
 boolean isCellsMovable()
          Returns cellsMovable.
 boolean isCellsResizable()
          Returns true if the given cell is resizable.
 boolean isCellsSelectable()
          Returns cellsSelectable.
 boolean isCellVisible(Object cell)
          Returns true if the given cell is visible in this graph.
 boolean isCloneInvalidEdges()
          Returns cloneInvalidEdges.
 boolean isCollapseToPreferredSize()
          Returns collapseToPreferredSize.
 boolean isConnectableEdges()
          Returns connectableEdges.
 boolean isConstrainChild(Object cell)
          Returns true if the given cell should be kept inside the bounds of its parent according to the rules defined by getOverlap and isAllowOverlapParent.
 boolean isConstrainChildren()
          Returns constrainChildren.
 boolean isDisconnectOnMove()
          Returns disconnectOnMove
 boolean isDropEnabled()
          Returns true if the graph allows drop into other cells.
 boolean isEdgeLabelsMovable()
          Returns edgeLabelsMovable.
 boolean isEdgeValid(Object edge, Object source, Object target)
          Checks if the return value of getEdgeValidationError for the given arguments is null.
 boolean isEnabled()
          Returns true if the graph is .
 boolean isExtendParent(Object cell)
          Returns true if the parent of the given cell should be extended if the child has been resized so that it overlaps the parent.
 boolean isExtendParents()
          Returns extendParents.
 boolean isExtendParentsOnAdd()
          Returns extendParentsOnAdd.
 boolean isGridEnabled()
          Returns true if the grid is enabled.
 boolean isHtmlLabel(Object cell)
          Returns true if the label must be rendered as HTML markup.
 boolean isHtmlLabels()
           
 boolean isKeepEdgesInBackground()
           
 boolean isKeepEdgesInForeground()
           
 boolean isLabelClipped(Object cell)
          Returns true if the overflow portion of labels should be hidden.
 boolean isLabelMovable(Object cell)
          Returns true if the given edges's label is moveable.
 boolean isLabelsClipped()
          Returns labelsClipped.
 boolean isLabelsVisible()
           
 boolean isLoop(mxCellState state)
          Returns true if the given cell state is a loop.
 boolean isMultigraph()
          Returns multigraph.
 boolean isOrthogonal(mxCellState edge)
          Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.
 boolean isPort(Object cell)
          Returns true if the given cell is a "port", that is, when connecting to it, the cell returned by getTerminalForPort should be used as the terminal and the port should be referenced by the ID in either the mxConstants.STYLE_SOURCE_PORT or the or the mxConstants.STYLE_TARGET_PORT.
 boolean isResetEdgesOnConnect()
          Returns resetEdgesOnConnect.
 boolean isResetEdgesOnMove()
          Returns resetEdgesOnMove.
 boolean isResetEdgesOnResize()
          Returns resetEdgesOnResize.
 boolean isResetViewOnRootChange()
          Returns resetViewOnRootChange.
 boolean isSelectionEmpty()
           
 boolean isSplitEnabled()
          Affects the return values of isValidDropTarget to allow for edges as drop targets.
 boolean isSplitTarget(Object target, Object[] cells)
          Returns true if split is enabled and the given edge may be splitted into two edges with the given cell as a new terminal between the two.
 boolean isSwimlane(Object cell)
          Returns true if the given cell is a swimlane.
 boolean isSwimlaneNesting()
          Returns swimlaneNesting.
 boolean isTerminalPointMovable(Object cell, boolean source)
          Function: isTerminalPointMovable Returns true if the given terminal point is movable.
 boolean isValidAncestor(Object cell, Object parent, boolean recurse)
          Returns whether or not the specified parent is a valid ancestor of the specified cell, either direct or indirectly based on whether ancestor recursion is enabled.
 boolean isValidConnection(Object source, Object target)
          Returns true if the given target cell is a valid target for source.
 boolean isValidDropTarget(Object cell, Object[] cells)
          Returns true if the given cell is a valid drop target for the specified cells.
 boolean isValidRoot(Object cell)
          Returns true if the given cell is a valid root for the cell display hierarchy.
 boolean isValidSource(Object cell)
          Returns true if the given cell is a valid source for new connections.
 boolean isValidTarget(Object cell)
          Returns isValidSource for the given cell.
 boolean isVertexLabelsMovable()
          Returns vertexLabelsMovable.
static void main(String[] args)
          Prints the version number on the console.
 Object[] moveCells(Object[] cells, double dx, double dy)
          Moves the cells by the given amount.
 Object[] moveCells(Object[] cells, double dx, double dy, boolean clone)
          Moves or clones the cells and moves the cells or clones by the given amount.
 Object[] moveCells(Object[] cells, double dx, double dy, boolean clone, Object target, Point location)
          Moves or clones the specified cells and moves the cells or clones by the given amount, adding them to the optional target cell.
 Object[] orderCells(boolean back)
          Moves the selection cells to the front or back.
 Object[] orderCells(boolean back, Object[] cells)
          Moves the given cells to the front or back.
protected  Map<String,Object> postProcessCellStyle(Map<String,Object> style)
          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.
 mxRectangle processChange(mxUndoableEdit.mxUndoableChange change, boolean invalidate, boolean ignoreDirty)
          Processes the given change and invalidates the respective cached data in .
 mxRectangle processChanges(List<mxUndoableEdit.mxUndoableChange> changes, boolean invalidate, boolean ignoreDirty)
          Processes the changes and returns the minimal rectangle to be repainted in the buffer.
 void refresh()
          Clears all cell states or the states for the hierarchy starting at the given cell and validates the graph.
 Object[] removeCells()
          Removes the selection cells from the graph.
 Object[] removeCells(Object[] cells)
          Removes the given cells from the graph.
 Object[] removeCells(Object[] cells, boolean includeEdges)
          Removes the given cells from the graph including all connected edges if includeEdges is true.
 Object[] removeCellsFromParent()
          Removes the selection cells from their parents and adds them to the default parent returned by getDefaultParent.
 Object[] removeCellsFromParent(Object[] cells)
          Removes the specified cells from their parents and adds them to the default parent.
 void removeImageBundle(mxImageBundle bundle)
          Removes the specified bundle.
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
           
 void removeSelectionCell(Object cell)
           
 void removeSelectionCells(Object[] cells)
           
protected  void removeStateForCell(Object cell)
          Removes all cached information for the given cell and its descendants.
 void repaint()
          Fires a repaint event.
 void repaint(mxRectangle region)
          Fires a repaint event.
 Object resetEdge(Object edge)
          Resets the control points of the given edge.
 void resetEdges(Object[] cells)
          Resets the control points of the edges that are connected to the given cells if not both ends of the edge are in the given cells array.
 Object resizeCell(Object cell, mxRectangle bounds)
          Sets the bounds of the given cell using resizeCells.
 Object[] resizeCells(Object[] cells, mxRectangle[] bounds)
          Sets the bounds of the given cells and fires a mxEvent.RESIZE_CELLS event.
 void selectAll()
           
 void selectAll(Object parent)
          Selects all children of the given parent cell or the children of the default parent if no parent is specified.
 void selectCell(boolean isNext, boolean isParent, boolean isChild)
          Selects the next, parent, first child or previous cell, if all arguments are false.
 void selectCells(boolean vertices, boolean edges)
          Selects all vertices and/or edges depending on the given boolean arguments recursively, starting at the default parent.
 void selectCells(boolean vertices, boolean edges, Object parent)
          Selects all vertices and/or edges depending on the given boolean arguments recursively, starting at the given parent or the default parent if no parent is specified.
 void selectChildCell()
          Selects the first child cell.
 void selectEdges()
          Selects all vertices inside the default parent.
 void selectEdges(Object parent)
          Selects all vertices inside the given parent or the default parent if no parent is given.
 void selectNextCell()
          Selects the next cell.
 void selectParentCell()
          Selects the parent cell.
 void selectPreviousCell()
          Selects the previous cell.
 void selectVertices()
          Selects all vertices inside the default parent.
 void selectVertices(Object parent)
          Selects all vertices inside the given parent or the default parent if no parent is given.
 void setAllowDanglingEdges(boolean value)
          Sets allowDanglingEdges.
 void setAllowLoops(boolean value)
          Sets allowLoops.
 void setAllowNegativeCoordinates(boolean value)
           
 void setAlternateEdgeStyle(String value)
          Sets alternateEdgeStyle.
 void setAutoOrigin(boolean value)
           
 void setAutoSizeCells(boolean value)
          Specifies if cell sizes should be automatically updated after a label change.
 void setBorder(int value)
          Sets the value of .
 void setCellsBendable(boolean value)
          Sets cellsBendable.
 void setCellsCloneable(boolean value)
          Specifies if the graph should allow cloning of cells by holding down the control key while cells are being moved.
 void setCellsDeletable(boolean value)
          Sets cellsDeletable.
 void setCellsDisconnectable(boolean value)
          Sets cellsDisconnectable.
 void setCellsEditable(boolean value)
          Sets if the graph is editable.
 void setCellsLocked(boolean value)
          Sets cellsLocked, the default return value for isCellLocked and fires a property change event for cellsLocked.
 void setCellsMovable(boolean value)
          Sets cellsMovable.
 void setCellsResizable(boolean value)
          Sets if the graph is resizable.
 void setCellsSelectable(boolean value)
          Sets cellsSelectable.
 Object[] setCellStyle(String style)
          Sets the style of the selection cells to the given value.
 Object[] setCellStyle(String style, Object[] cells)
          Sets the style of the specified cells.
 Object[] setCellStyleFlags(String key, int flag, boolean value)
          Sets or toggles the given bit for the given key in the styles of the selection cells.
 Object[] setCellStyleFlags(String key, int flag, Boolean value, Object[] cells)
          Sets or toggles the given bit for the given key in the styles of the specified cells.
 Object[] setCellStyles(String key, String value)
          Sets the key to value in the styles of the selection cells.
 Object[] setCellStyles(String key, String value, Object[] cells)
          Sets the key to value in the styles of the given cells.
 void setChangesRepaintThreshold(int value)
           
 void setCloneInvalidEdges(boolean value)
          Sets cloneInvalidEdge.
 void setCollapseToPreferredSize(boolean value)
           
 void setConnectableEdges(boolean value)
          Sets connetableEdges.
 void setConnectionConstraint(Object edge, Object terminal, boolean source, mxConnectionConstraint constraint)
          Sets the connection constraint that describes the given connection point.
 void setConstrainChildren(boolean value)
           
 void setDefaultLoopStyle(mxEdgeStyle.mxEdgeStyleFunction value)
          Sets the default style used for loops.
 void setDefaultOverlap(double value)
          Sets defaultOverlap.
 void setDefaultParent(Object value)
          Sets the default parent to be returned by getDefaultParent.
 void setDisconnectOnMove(boolean value)
          Sets disconnectOnMove.
 void setDropEnabled(boolean value)
          Sets dropEnabled.
 void setEdgeLabelsMovable(boolean value)
          Returns edgeLabelsMovable.
 void setEnabled(boolean value)
          Specifies if the graph should allow any interactions.
 void setExtendParents(boolean value)
          Sets extendParents.
 void setExtendParentsOnAdd(boolean value)
          Sets extendParentsOnAdd.
 void setGridEnabled(boolean value)
          Sets if the grid is enabled.
 void setGridSize(int value)
          Sets the grid size and fires a property change event for gridSize.
 void setHtmlLabels(boolean value)
           
 void setKeepEdgesInBackground(boolean value)
           
 void setKeepEdgesInForeground(boolean value)
           
 void setLabelsClipped(boolean value)
          Sets labelsClipped.
 void setLabelsVisible(boolean value)
           
 void setMaximumGraphBounds(mxRectangle value)
           
 void setMinimumGraphSize(mxRectangle value)
           
 void setModel(mxIGraphModel value)
          Sets the graph model that contains the data, and fires an mxEvent.CHANGE followed by an mxEvent.REPAINT event.
 void setMultigraph(boolean value)
          Sets multigraph.
 void setMultiplicities(mxMultiplicity[] value)
           
 void setOrigin(mxPoint value)
           
 void setResetEdgesOnConnect(boolean value)
          Sets resetEdgesOnConnect.
 void setResetEdgesOnMove(boolean value)
          Sets resetEdgesOnMove.
 void setResetEdgesOnResize(boolean value)
          Sets resetEdgesOnResize.
 void setResetViewOnRootChange(boolean value)
          Sets resetEdgesOnResize.
 void setSelectionCell(Object cell)
           
 void setSelectionCells(Collection<Object> cells)
           
 void setSelectionCells(Object[] cells)
           
 void setSplitEnabled(boolean value)
          Sets splitEnabled.
 void setStylesheet(mxStylesheet value)
          Sets the stylesheet that provides the style.
 void setSwimlaneNesting(boolean value)
          Sets swimlaneNesting.
 void setVertexLabelsMovable(boolean value)
          Sets vertexLabelsMovable.
 void setView(mxGraphView value)
          Sets the view that contains the cell states.
 double snap(double value)
          Snaps the given numeric value to the grid if is true.
 Object splitEdge(Object edge, Object[] cells)
           
 Object splitEdge(Object edge, Object[] cells, double dx, double dy)
           
 Object splitEdge(Object edge, Object[] cells, Object newEdge, double dx, double dy)
          Splits the given edge by adding a newEdge between the previous source and the given cell and reconnecting the source of the given edge to the given cell.
 void swapBounds(Object cell, boolean willCollapse)
          Swaps the alternate and the actual bounds in the geometry of the given cell invoking updateAlternateBounds before carrying out the swap.
 Object[] toggleCells(boolean show)
          Sets the visible state of the selection cells.
 Object[] toggleCells(boolean show, Object[] cells)
          Sets the visible state of the specified cells.
 Object[] toggleCells(boolean show, Object[] cells, boolean includeEdges)
          Sets the visible state of the specified cells and all connected edges if includeEdges is true.
 Object toggleCellStyle(String key, boolean defaultValue, Object cell)
          Toggles the boolean value for the given key in the style of the given cell.
 Object[] toggleCellStyleFlags(String key, int flag)
          Toggles the given bit for the given key in the styles of the selection cells.
 Object[] toggleCellStyleFlags(String key, int flag, Object[] cells)
          Toggles the given bit for the given key in the styles of the specified cells.
 Object[] toggleCellStyles(String key, boolean defaultValue)
          Toggles the boolean value for the given key in the style of the selection cells.
 Object[] toggleCellStyles(String key, boolean defaultValue, Object[] cells)
          Toggles the boolean value for the given key in the style of the given cells.
 void translateCell(Object cell, double dx, double dy)
          Translates the geometry of the given cell and stores the new, translated geometry in the model as an atomic change.
 void traverse(Object vertex, boolean directed, mxGraph.mxICellVisitor visitor)
          Traverses the tree starting at the given vertex.
 void traverse(Object vertex, boolean directed, mxGraph.mxICellVisitor visitor, Object edge, Set<Object> visited)
          Traverses the (directed) graph invoking the given function for each visited vertex and edge.
 Object[] ungroupCells()
          Ungroups the selection cells.
 Object[] ungroupCells(Object[] cells)
          Ungroups the given cells by moving the children the children to their parents parent and removing the empty groups.
 void updateAlternateBounds(Object cell, mxGeometry geo, boolean willCollapse)
          Updates or sets the alternate bounds in the given geometry for the given cell depending on whether the cell is going to be collapsed.
 Object updateCellSize(Object cell)
          Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
 Object updateCellSize(Object cell, boolean ignoreChildren)
          Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
 Object[] updateGroupBounds()
          Updates the bounds of the given array of groups so that it includes all child vertices.
 Object[] updateGroupBounds(Object[] cells)
          Updates the bounds of the given array of groups so that it includes all child vertices.
 Object[] updateGroupBounds(Object[] cells, int border)
          Updates the bounds of the given array of groups so that it includes all child vertices.
 Object[] updateGroupBounds(Object[] cells, int border, boolean moveParent)
          Updates the bounds of the given array of groups so that it includes all child vertices.
protected  void updateOrigin()
          Extends the canvas by doing another validation with a shifted global translation if the bounds of the graph are below (0,0).
 String validateCell(Object cell, Hashtable<Object,Object> context)
          Hook method for subclassers to return an error message for the given cell and validation context.
 String validateEdge(Object edge, Object source, Object target)
          Hook method for subclassers to return an error message for the given edge and terminals.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final String VERSION
Holds the version number of this release. Current version is 2.1.0.7.

See Also:
Constant Field Values

changeSupport

protected PropertyChangeSupport changeSupport
Property change event handling.


model

protected mxIGraphModel model
Holds the model that contains the cells to be displayed.


view

protected mxGraphView view
Holds the view that caches the cell states.


stylesheet

protected mxStylesheet stylesheet
Holds the stylesheet that defines the appearance of the cells.


selectionModel

protected mxGraphSelectionModel selectionModel
Holds the that models the current selection.


gridSize

protected int gridSize
Specifies the grid size. Default is 10.


gridEnabled

protected boolean gridEnabled
Specifies if the grid is enabled. Default is true.


defaultOverlap

protected double defaultOverlap
Value returned by getOverlap if isAllowOverlapParent returns true for the given cell. getOverlap is used in keepInside if isKeepInsideParentOnMove returns true. The value specifies the portion of the child which is allowed to overlap the parent.


defaultParent

protected Object defaultParent
Specifies the default parent to be used to insert new cells. This is used in getDefaultParent. Default is null.


alternateEdgeStyle

protected String alternateEdgeStyle
Specifies the alternate edge style to be used if the main control point on an edge is being doubleclicked. Default is null.


enabled

protected boolean enabled
Specifies the return value for isEnabled. Default is true.


cellsLocked

protected boolean cellsLocked
Specifies the return value for isCell(s)Locked. Default is false.


cellsEditable

protected boolean cellsEditable
Specifies the return value for isCell(s)Editable. Default is true.


cellsResizable

protected boolean cellsResizable
Specifies the return value for isCell(s)Sizable. Default is true.


cellsMovable

protected boolean cellsMovable
Specifies the return value for isCell(s)Movable. Default is true.


cellsBendable

protected boolean cellsBendable
Specifies the return value for isCell(s)Bendable. Default is true.


cellsSelectable

protected boolean cellsSelectable
Specifies the return value for isCell(s)Selectable. Default is true.


cellsDeletable

protected boolean cellsDeletable
Specifies the return value for isCell(s)Deletable. Default is true.


cellsCloneable

protected boolean cellsCloneable
Specifies the return value for isCell(s)Cloneable. Default is true.


cellsDisconnectable

protected boolean cellsDisconnectable
Specifies the return value for isCellDisconntableFromTerminal. Default is true.


labelsClipped

protected boolean labelsClipped
Specifies the return value for isLabel(s)Clipped. Default is false.


edgeLabelsMovable

protected boolean edgeLabelsMovable
Specifies the return value for edges in isLabelMovable. Default is true.


vertexLabelsMovable

protected boolean vertexLabelsMovable
Specifies the return value for vertices in isLabelMovable. Default is false.


dropEnabled

protected boolean dropEnabled
Specifies the return value for isDropEnabled. Default is true.


splitEnabled

protected boolean splitEnabled
Specifies if dropping onto edges should be enabled. Default is true.


autoSizeCells

protected boolean autoSizeCells
Specifies if the graph should automatically update the cell size after an edit. This is used in isAutoSizeCell. Default is false.


maximumGraphBounds

protected mxRectangle maximumGraphBounds
that specifies the area in which all cells in the diagram should be placed. Uses in getMaximumGraphBounds. Use a width or height of 0 if you only want to give a upper, left corner.


minimumGraphSize

protected mxRectangle minimumGraphSize
mxRectangle that specifies the minimum size of the graph canvas inside the scrollpane.


border

protected int border
Border to be added to the bottom and right side when the container is being resized after the graph has been changed. Default is 0.


keepEdgesInForeground

protected boolean keepEdgesInForeground
Specifies if edges should appear in the foreground regardless of their order in the model. This has precendence over keepEdgeInBackground Default is false.


keepEdgesInBackground

protected boolean keepEdgesInBackground
Specifies if edges should appear in the background regardless of their order in the model. Default is false.


collapseToPreferredSize

protected boolean collapseToPreferredSize
Specifies if the cell size should be changed to the preferred size when a cell is first collapsed. Default is true.


allowNegativeCoordinates

protected boolean allowNegativeCoordinates
Specifies if negative coordinates for vertices are allowed. Default is true.


constrainChildren

protected boolean constrainChildren
Specifies the return value for isConstrainChildren. Default is true.


extendParents

protected boolean extendParents
Specifies if a parent should contain the child bounds after a resize of the child. Default is true.


extendParentsOnAdd

protected boolean extendParentsOnAdd
Specifies if parents should be extended according to the switch if cells are added. Default is true.


resetViewOnRootChange

protected boolean resetViewOnRootChange
Specifies if the scale and translate should be reset if the root changes in the model. Default is true.


resetEdgesOnResize

protected boolean resetEdgesOnResize
Specifies if loops (aka self-references) are allowed. Default is false.


resetEdgesOnMove

protected boolean resetEdgesOnMove
Specifies if edge control points should be reset after the move of a connected cell. Default is false.


resetEdgesOnConnect

protected boolean resetEdgesOnConnect
Specifies if edge control points should be reset after the the edge has been reconnected. Default is true.


allowLoops

protected boolean allowLoops
Specifies if loops (aka self-references) are allowed. Default is false.


multiplicities

protected mxMultiplicity[] multiplicities
Specifies the multiplicities to be used for validation of the graph.


defaultLoopStyle

protected mxEdgeStyle.mxEdgeStyleFunction defaultLoopStyle
Specifies the default style for loops.


multigraph

protected boolean multigraph
Specifies if multiple edges in the same direction between the same pair of vertices are allowed. Default is true.


connectableEdges

protected boolean connectableEdges
Specifies if edges are connectable. Default is false. This overrides the connectable field in edges.


allowDanglingEdges

protected boolean allowDanglingEdges
Specifies if edges with disconnected terminals are allowed in the graph. Default is false.


cloneInvalidEdges

protected boolean cloneInvalidEdges
Specifies if edges that are cloned should be validated and only inserted if they are valid. Default is true.


disconnectOnMove

protected boolean disconnectOnMove
Specifies if edges should be disconnected from their terminals when they are moved. Default is true.


labelsVisible

protected boolean labelsVisible
Specifies if labels should be visible. This is used in getLabel. Default is true.


htmlLabels

protected boolean htmlLabels
Specifies the return value for isHtmlLabel. Default is false.


swimlaneNesting

protected boolean swimlaneNesting
Specifies if nesting of swimlanes is allowed. Default is true.


changesRepaintThreshold

protected int changesRepaintThreshold
Specifies the maximum number of changes that should be processed to find the dirty region. If the number of changes is larger, then the complete grah is repainted. A value of zero will always compute the dirty region for any number of changes. Default is 1000.


autoOrigin

protected boolean autoOrigin
Specifies if the origin should be automatically updated.


origin

protected mxPoint origin
Holds the current automatic origin.


imageBundles

protected static List<mxImageBundle> imageBundles
Holds the list of bundles.


fullRepaintHandler

protected mxEventSource.mxIEventListener fullRepaintHandler
Fires repaint events for full repaints.


updateOriginHandler

protected mxEventSource.mxIEventListener updateOriginHandler
Fires repaint events for full repaints.


graphModelChangeHandler

protected mxEventSource.mxIEventListener graphModelChangeHandler
Fires repaint events for model changes.

Constructor Detail

mxGraph

public mxGraph()
Constructs a new graph with an empty mxGraphModel.


mxGraph

public mxGraph(mxIGraphModel model)
Constructs a new graph for the specified model. If no model is specified, then a new, empty mxGraphModel is used.

Parameters:
model - Model that contains the graph data

mxGraph

public mxGraph(mxStylesheet stylesheet)
Constructs a new graph for the specified model. If no model is specified, then a new, empty mxGraphModel is used.

Parameters:
stylesheet - The stylesheet to use for the graph.

mxGraph

public mxGraph(mxIGraphModel model,
               mxStylesheet stylesheet)
Constructs a new graph for the specified model. If no model is specified, then a new, empty mxGraphModel is used.

Parameters:
model - Model that contains the graph data
Method Detail

createSelectionModel

protected mxGraphSelectionModel createSelectionModel()
Constructs a new selection model to be used in this graph.


createStylesheet

protected mxStylesheet createStylesheet()
Constructs a new stylesheet to be used in this graph.


createGraphView

protected mxGraphView createGraphView()
Constructs a new view to be used in this graph.


getModel

public mxIGraphModel getModel()
Returns the graph model that contains the graph data.

Returns:
Returns the model that contains the graph data

setModel

public void setModel(mxIGraphModel value)
Sets the graph model that contains the data, and fires an mxEvent.CHANGE followed by an mxEvent.REPAINT event.

Parameters:
value - Model that contains the graph data

getView

public mxGraphView getView()
Returns the view that contains the cell states.

Returns:
Returns the view that contains the cell states

setView

public void setView(mxGraphView value)
Sets the view that contains the cell states.

Parameters:
value - View that contains the cell states

getStylesheet

public mxStylesheet getStylesheet()
Returns the stylesheet that provides the style.

Returns:
Returns the stylesheet that provides the style.

setStylesheet

public void setStylesheet(mxStylesheet value)
Sets the stylesheet that provides the style.

Parameters:
value - Stylesheet that provides the style.

getSelectionCellsForChanges

public Object[] getSelectionCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
Returns the cells to be selected for the given list of changes.


graphModelChanged

public mxRectangle graphModelChanged(mxIGraphModel sender,
                                     List<mxUndoableEdit.mxUndoableChange> changes)
Called when the graph model changes. Invokes processChange on each item of the given array to update the view accordingly.


updateOrigin

protected void updateOrigin()
Extends the canvas by doing another validation with a shifted global translation if the bounds of the graph are below (0,0). The first validation is required to compute the bounds of the graph while the second validation is required to apply the new translate.


getRemovedCellsForChanges

public Object[] getRemovedCellsForChanges(List<mxUndoableEdit.mxUndoableChange> changes)
Returns the cells that have been removed from the model.


processChanges

public mxRectangle processChanges(List<mxUndoableEdit.mxUndoableChange> changes,
                                  boolean invalidate,
                                  boolean ignoreDirty)
Processes the changes and returns the minimal rectangle to be repainted in the buffer. A return value of null means no repaint is required.


processChange

public mxRectangle processChange(mxUndoableEdit.mxUndoableChange change,
                                 boolean invalidate,
                                 boolean ignoreDirty)
Processes the given change and invalidates the respective cached data in . This fires a event if the root has changed in the model.


removeStateForCell

protected void removeStateForCell(Object cell)
Removes all cached information for the given cell and its descendants. This is called when a cell was removed from the model.

Parameters:
cell - Cell that was removed from the model.

getCellStyle

public Map<String,Object> getCellStyle(Object cell)
Returns an array of key, value pairs representing the cell style for the given cell. If no string is defined in the model that specifies the style, then the default style for the cell is returned or , if not style can be found.

Parameters:
cell - Cell whose style should be returned.
Returns:
Returns the style of the cell.

postProcessCellStyle

protected Map<String,Object> postProcessCellStyle(Map<String,Object> style)
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.


setCellStyle

public Object[] setCellStyle(String style)
Sets the style of the selection cells to the given value.

Parameters:
style - String representing the new style of the cells.

setCellStyle

public Object[] setCellStyle(String style,
                             Object[] cells)
Sets the style of the specified cells. If no cells are given, then the selection cells are changed.

Parameters:
style - String representing the new style of the cells.
cells - Optional array of to set the style for. Default is the selection cells.

toggleCellStyle

public Object toggleCellStyle(String key,
                              boolean defaultValue,
                              Object cell)
Toggles the boolean value for the given key in the style of the given cell. If no cell is specified then the selection cell is used.

Parameters:
key - Key for the boolean value to be toggled.
defaultValue - Default boolean value if no value is defined.
cell - Cell whose style should be modified.

toggleCellStyles

public Object[] toggleCellStyles(String key,
                                 boolean defaultValue)
Toggles the boolean value for the given key in the style of the selection cells.

Parameters:
key - Key for the boolean value to be toggled.
defaultValue - Default boolean value if no value is defined.

toggleCellStyles

public Object[] toggleCellStyles(String key,
                                 boolean defaultValue,
                                 Object[] cells)
Toggles the boolean value for the given key in the style of the given cells. If no cells are specified, then the selection cells are used. For example, this can be used to toggle mxConstants.STYLE_ROUNDED or any other style with a boolean value.

Parameters:
key - String representing the key of the boolean style to be toggled.
defaultValue - Default boolean value if no value is defined.
cells - Cells whose styles should be modified.

setCellStyles

public Object[] setCellStyles(String key,
                              String value)
Sets the key to value in the styles of the selection cells.

Parameters:
key - String representing the key to be assigned.
value - String representing the new value for the key.

setCellStyles

public Object[] setCellStyles(String key,
                              String value,
                              Object[] cells)
Sets the key to value in the styles of the given cells. This will modify the existing cell styles in-place and override any existing assignment for the given key. If no cells are specified, then the selection cells are changed. If no value is specified, then the respective key is removed from the styles.

Parameters:
key - String representing the key to be assigned.
value - String representing the new value for the key.
cells - Array of cells to change the style for.

toggleCellStyleFlags

public Object[] toggleCellStyleFlags(String key,
                                     int flag)
Toggles the given bit for the given key in the styles of the selection cells.

Parameters:
key - String representing the key to toggle the flag in.
flag - Integer that represents the bit to be toggled.

toggleCellStyleFlags

public Object[] toggleCellStyleFlags(String key,
                                     int flag,
                                     Object[] cells)
Toggles the given bit for the given key in the styles of the specified cells.

Parameters:
key - String representing the key to toggle the flag in.
flag - Integer that represents the bit to be toggled.
cells - Optional array of to change the style for. Default is the selection cells.

setCellStyleFlags

public Object[] setCellStyleFlags(String key,
                                  int flag,
                                  boolean value)
Sets or toggles the given bit for the given key in the styles of the selection cells.

Parameters:
key - String representing the key to toggle the flag in.
flag - Integer that represents the bit to be toggled.
value - Boolean value to be used or null if the value should be toggled.

setCellStyleFlags

public Object[] setCellStyleFlags(String key,
                                  int flag,
                                  Boolean value,
                                  Object[] cells)
Sets or toggles the given bit for the given key in the styles of the specified cells.

Parameters:
key - String representing the key to toggle the flag in.
flag - Integer that represents the bit to be toggled.
value - Boolean value to be used or null if the value should be toggled.
cells - Optional array of cells to change the style for. If no cells are specified then the selection cells are used.

addImageBundle

public void addImageBundle(mxImageBundle bundle)
Adds the specified bundle.


removeImageBundle

public void removeImageBundle(mxImageBundle bundle)
Removes the specified bundle.


getImageFromBundles

public String getImageFromBundles(String key)
Searches all bundles for the specified key and returns the value for the first match or null if the key is not found.


getImageBundles

public List<mxImageBundle> getImageBundles()
Returns the image bundles


getImageBundles

public void getImageBundles(List<mxImageBundle> value)
Returns the image bundles


alignCells

public Object[] alignCells(String align)
Aligns the selection cells vertically or horizontally according to the given alignment.

Parameters:
align - Specifies the alignment. Possible values are all constants in mxConstants with an ALIGN prefix.

alignCells

public Object[] alignCells(String align,
                           Object[] cells)
Aligns the given cells vertically or horizontally according to the given alignment.

Parameters:
align - Specifies the alignment. Possible values are all constants in mxConstants with an ALIGN prefix.
cells - Array of cells to be aligned.

alignCells

public Object[] alignCells(String align,
                           Object[] cells,
                           Object param)
Aligns the given cells vertically or horizontally according to the given alignment using the optional parameter as the coordinate.

Parameters:
align - Specifies the alignment. Possible values are all constants in mxConstants with an ALIGN prefix.
cells - Array of cells to be aligned.
param - Optional coordinate for the alignment.

flipEdge

public Object flipEdge(Object edge)
Called when the main control point of the edge is double-clicked. This implementation switches between null (default) and alternateEdgeStyle and resets the edges control points. Finally, a flip event is fired before endUpdate is called on the model.

Parameters:
edge - Cell that represents the edge to be flipped.
Returns:
Returns the edge that has been flipped.

orderCells

public Object[] orderCells(boolean back)
Moves the selection cells to the front or back. This is a shortcut method.

Parameters:
back - Specifies if the cells should be moved to back.

orderCells

public Object[] orderCells(boolean back,
                           Object[] cells)
Moves the given cells to the front or back. The change is carried out using cellsOrdered. This method fires mxEvent.ORDER_CELLS while the transaction is in progress.

Parameters:
back - Specifies if the cells should be moved to back.
cells - Array of cells whose order should be changed. If null is specified then the selection cells are used.

cellsOrdered

public void cellsOrdered(Object[] cells,
                         boolean back)
Moves the given cells to the front or back. This method fires mxEvent.CELLS_ORDERED while the transaction is in progress.

Parameters:
cells - Array of cells whose order should be changed.
back - Specifies if the cells should be moved to back.

groupCells

public Object groupCells()
Groups the selection cells. This is a shortcut method.

Returns:
Returns the new group.

groupCells

public Object groupCells(Object group)
Groups the selection cells and adds them to the given group. This is a shortcut method.

Returns:
Returns the new group.

groupCells

public Object groupCells(Object group,
                         double border)
Groups the selection cells and adds them to the given group. This is a shortcut method.

Returns:
Returns the new group.

groupCells

public Object groupCells(Object group,
                         double border,
                         Object[] cells)
Adds the cells into the given group. The change is carried out using cellsAdded, cellsMoved and cellsResized. This method fires mxEvent.GROUP_CELLS while the transaction is in progress. Returns the new group. A group is only created if there is at least one entry in the given array of cells.

Parameters:
group - Cell that represents the target group. If null is specified then a new group is created using createGroupCell.
border - Integer that specifies the border between the child area and the group bounds.
cells - Optional array of cells to be grouped. If null is specified then the selection cells are used.

getCellsForGroup

public Object[] getCellsForGroup(Object[] cells)
Returns the cells with the same parent as the first cell in the given array.


getBoundsForGroup

public mxRectangle getBoundsForGroup(Object group,
                                     Object[] children,
                                     double border)
Returns the bounds to be used for the given group and children. This implementation computes the bounding box of the geometries of all vertices in the given children array. Edges are ignored. If the group cell is a swimlane the title region is added to the bounds.


createGroupCell

public Object createGroupCell(Object[] cells)
Hook for creating the group cell to hold the given array of if no group cell was given to the function. The children are just for informational purpose, they will be added to the returned group later. Note that the returned group should have a geometry. The coordinates of which are later overridden.

Parameters:
cells -
Returns:
Returns a new group cell.

ungroupCells

public Object[] ungroupCells()
Ungroups the selection cells. This is a shortcut method.


ungroupCells

public Object[] ungroupCells(Object[] cells)
Ungroups the given cells by moving the children the children to their parents parent and removing the empty groups.

Parameters:
cells - Array of cells to be ungrouped. If null is specified then the selection cells are used.
Returns:
Returns the children that have been removed from the groups.

removeCellsFromParent

public Object[] removeCellsFromParent()
Removes the selection cells from their parents and adds them to the default parent returned by getDefaultParent.


removeCellsFromParent

public Object[] removeCellsFromParent(Object[] cells)
Removes the specified cells from their parents and adds them to the default parent.

Parameters:
cells - Array of cells to be removed from their parents.
Returns:
Returns the cells that were removed from their parents.

updateGroupBounds

public Object[] updateGroupBounds()
Updates the bounds of the given array of groups so that it includes all child vertices.


updateGroupBounds

public Object[] updateGroupBounds(Object[] cells)
Updates the bounds of the given array of groups so that it includes all child vertices.

Parameters:
cells - The groups whose bounds should be updated.

updateGroupBounds

public Object[] updateGroupBounds(Object[] cells,
                                  int border)
Updates the bounds of the given array of groups so that it includes all child vertices.

Parameters:
cells - The groups whose bounds should be updated.
border - The border to be added in the group.

updateGroupBounds

public Object[] updateGroupBounds(Object[] cells,
                                  int border,
                                  boolean moveParent)
Updates the bounds of the given array of groups so that it includes all child vertices.

Parameters:
cells - The groups whose bounds should be updated.
border - The border to be added in the group.
moveParent - Specifies if the group should be moved.

cloneCells

public Object[] cloneCells(Object[] cells)
Clones all cells in the given array. To clone all children in a cell and add them to another graph: graph2.addCells(graph.cloneCells(new Object[] { parent })); To clone all children in a graph layer if graph g1 and put them into the default parent (typically default layer) of another graph g2, the following code is used: g2.addCells(g1.cloneCells(g1.cloneCells(g1.getChildCells(g1.getDefaultParent()));


cloneCells

public Object[] cloneCells(Object[] cells,
                           boolean allowInvalidEdges)
Returns the clones for the given cells. If the terminal of an edge is not in the given array, then the respective end is assigned a terminal point and the terminal is removed. If a cloned edge is invalid and allowInvalidEdges is false, then a null pointer will be at this position in the returned array. Use getCloneableCells on the input array to only clone the cells where isCellCloneable returns true.

Parameters:
cells - Array of mxCells to be cloned.
Returns:
Returns the clones of the given cells.

insertVertex

public Object insertVertex(Object parent,
                           String id,
                           Object value,
                           double x,
                           double y,
                           double width,
                           double height)
Creates and adds a new vertex with an empty style.


insertVertex

public Object insertVertex(Object parent,
                           String id,
                           Object value,
                           double x,
                           double y,
                           double width,
                           double height,
                           String style)
Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex. The id and style are used for the respective properties of the new cell, which is returned.

Parameters:
parent - Cell that specifies the parent of the new vertex.
id - Optional string that defines the Id of the new vertex.
value - Object to be used as the user object.
x - Integer that defines the x coordinate of the vertex.
y - Integer that defines the y coordinate of the vertex.
width - Integer that defines the width of the vertex.
height - Integer that defines the height of the vertex.
style - Optional string that defines the cell style.
Returns:
Returns the new vertex that has been inserted.

insertVertex

public Object insertVertex(Object parent,
                           String id,
                           Object value,
                           double x,
                           double y,
                           double width,
                           double height,
                           String style,
                           boolean relative)
Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex. The id and style are used for the respective properties of the new cell, which is returned.

Parameters:
parent - Cell that specifies the parent of the new vertex.
id - Optional string that defines the Id of the new vertex.
value - Object to be used as the user object.
x - Integer that defines the x coordinate of the vertex.
y - Integer that defines the y coordinate of the vertex.
width - Integer that defines the width of the vertex.
height - Integer that defines the height of the vertex.
style - Optional string that defines the cell style.
relative - Specifies if the geometry should be relative.
Returns:
Returns the new vertex that has been inserted.

createVertex

public Object createVertex(Object parent,
                           String id,
                           Object value,
                           double x,
                           double y,
                           double width,
                           double height,
                           String style)
Hook method that creates the new vertex for insertVertex.

Parameters:
parent - Cell that specifies the parent of the new vertex.
id - Optional string that defines the Id of the new vertex.
value - Object to be used as the user object.
x - Integer that defines the x coordinate of the vertex.
y - Integer that defines the y coordinate of the vertex.
width - Integer that defines the width of the vertex.
height - Integer that defines the height of the vertex.
style - Optional string that defines the cell style.
Returns:
Returns the new vertex to be inserted.

createVertex

public Object createVertex(Object parent,
                           String id,
                           Object value,
                           double x,
                           double y,
                           double width,
                           double height,
                           String style,
                           boolean relative)
Hook method that creates the new vertex for insertVertex.

Parameters:
parent - Cell that specifies the parent of the new vertex.
id - Optional string that defines the Id of the new vertex.
value - Object to be used as the user object.
x - Integer that defines the x coordinate of the vertex.
y - Integer that defines the y coordinate of the vertex.
width - Integer that defines the width of the vertex.
height - Integer that defines the height of the vertex.
style - Optional string that defines the cell style.
relative - Specifies if the geometry should be relative.
Returns:
Returns the new vertex to be inserted.

insertEdge

public Object insertEdge(Object parent,
                         String id,
                         Object value,
                         Object source,
                         Object target)
Creates and adds a new edge with an empty style.


insertEdge

public Object insertEdge(Object parent,
                         String id,
                         Object value,
                         Object source,
                         Object target,
                         String style)
Adds a new edge into the given parent using value as the user object and the given source and target as the terminals of the new edge. The Id and style are used for the respective properties of the new cell, which is returned.

Parameters:
parent - Cell that specifies the parent of the new edge.
id - Optional string that defines the Id of the new edge.
value - Object to be used as the user object.
source - Cell that defines the source of the edge.
target - Cell that defines the target of the edge.
style - Optional string that defines the cell style.
Returns:
Returns the new edge that has been inserted.

createEdge

public Object createEdge(Object parent,
                         String id,
                         Object value,
                         Object source,
                         Object target,
                         String style)
Hook method that creates the new edge for insertEdge. This implementation does not set the source and target of the edge, these are set when the edge is added to the model.

Parameters:
parent - Cell that specifies the parent of the new edge.
id - Optional string that defines the Id of the new edge.
value - Object to be used as the user object.
source - Cell that defines the source of the edge.
target - Cell that defines the target of the edge.
style - Optional string that defines the cell style.
Returns:
Returns the new edge to be inserted.

addEdge

public Object addEdge(Object edge,
                      Object parent,
                      Object source,
                      Object target,
                      Integer index)
Adds the edge to the parent and connects it to the given source and target terminals. This is a shortcut method.

Parameters:
edge - Edge to be inserted into the given parent.
parent - Object that represents the new parent. If no parent is given then the default parent is used.
source - Optional cell that represents the source terminal.
target - Optional cell that represents the target terminal.
index - Optional index to insert the cells at. Default is to append.
Returns:
Returns the edge that was added.

addCell

public Object addCell(Object cell)
Adds the cell to the default parent. This is a shortcut method.

Parameters:
cell - Cell to be inserted.
Returns:
Returns the cell that was added.

addCell

public Object addCell(Object cell,
                      Object parent)
Adds the cell to the parent. This is a shortcut method.

Parameters:
cell - Cell tobe inserted.
parent - Object that represents the new parent. If no parent is given then the default parent is used.
Returns:
Returns the cell that was added.

addCell

public Object addCell(Object cell,
                      Object parent,
                      Integer index,
                      Object source,
                      Object target)
Adds the cell to the parent and connects it to the given source and target terminals. This is a shortcut method.

Parameters:
cell - Cell to be inserted into the given parent.
parent - Object that represents the new parent. If no parent is given then the default parent is used.
index - Optional index to insert the cells at. Default is to append.
source - Optional cell that represents the source terminal.
target - Optional cell that represents the target terminal.
Returns:
Returns the cell that was added.

addCells

public Object[] addCells(Object[] cells)
Adds the cells to the default parent. This is a shortcut method.

Parameters:
cells - Array of cells to be inserted.
Returns:
Returns the cells that were added.

addCells

public Object[] addCells(Object[] cells,
                         Object parent)
Adds the cells to the parent. This is a shortcut method.

Parameters:
cells - Array of cells to be inserted.
parent - Optional cell that represents the new parent. If no parent is specified then the default parent is used.
Returns:
Returns the cells that were added.

addCells

public Object[] addCells(Object[] cells,
                         Object parent,
                         Integer index)
Adds the cells to the parent at the given index. This is a shortcut method.

Parameters:
cells - Array of cells to be inserted.
parent - Optional cell that represents the new parent. If no parent is specified then the default parent is used.
index - Optional index to insert the cells at. Default is to append.
Returns:
Returns the cells that were added.

addCells

public Object[] addCells(Object[] cells,
                         Object parent,
                         Integer index,
                         Object source,
                         Object target)
Adds the cells to the parent at the given index, connecting each cell to the optional source and target terminal. The change is carried out using cellsAdded. This method fires mxEvent.ADD_CELLS while the transaction is in progress.

Parameters:
cells - Array of cells to be added.
parent - Optional cell that represents the new parent. If no parent is specified then the default parent is used.
index - Optional index to insert the cells at. Default is to append.
source - Optional source terminal for all inserted cells.
target - Optional target terminal for all inserted cells.
Returns:
Returns the cells that were added.

cellsAdded

public void cellsAdded(Object[] cells,
                       Object parent,
                       Integer index,
                       Object source,
                       Object target,
                       boolean absolute)
Adds the specified cells to the given parent. This method fires mxEvent.CELLS_ADDED while the transaction is in progress.


cellsAdded

public void cellsAdded(Object[] cells,
                       Object parent,
                       Integer index,
                       Object source,
                       Object target,
                       boolean absolute,
                       boolean constrain)
Adds the specified cells to the given parent. This method fires mxEvent.CELLS_ADDED while the transaction is in progress.


removeCells

public Object[] removeCells()
Removes the selection cells from the graph.

Returns:
Returns the cells that have been removed.

removeCells

public Object[] removeCells(Object[] cells)
Removes the given cells from the graph.

Parameters:
cells - Array of cells to remove.
Returns:
Returns the cells that have been removed.

removeCells

public Object[] removeCells(Object[] cells,
                            boolean includeEdges)
Removes the given cells from the graph including all connected edges if includeEdges is true. The change is carried out using cellsRemoved. This method fires mxEvent.REMOVE_CELLS while the transaction is in progress.

Parameters:
cells - Array of cells to remove. If null is specified then the selection cells which are deletable are used.
includeEdges - Specifies if all connected edges should be removed as well.

cellsRemoved

public void cellsRemoved(Object[] cells)
Removes the given cells from the model. This method fires mxEvent.CELLS_REMOVED while the transaction is in progress.

Parameters:
cells - Array of cells to remove.

splitEdge

public Object splitEdge(Object edge,
                        Object[] cells)

splitEdge

public Object splitEdge(Object edge,
                        Object[] cells,
                        double dx,
                        double dy)

splitEdge

public Object splitEdge(Object edge,
                        Object[] cells,
                        Object newEdge,
                        double dx,
                        double dy)
Splits the given edge by adding a newEdge between the previous source and the given cell and reconnecting the source of the given edge to the given cell. Fires mxEvent.SPLIT_EDGE while the transaction is in progress.

Parameters:
edge - Object that represents the edge to be splitted.
cells - Array that contains the cells to insert into the edge.
newEdge - Object that represents the edge to be inserted.
Returns:
Returns the new edge that has been inserted.

toggleCells

public Object[] toggleCells(boolean show)
Sets the visible state of the selection cells. This is a shortcut method.

Parameters:
show - Boolean that specifies the visible state to be assigned.
Returns:
Returns the cells whose visible state was changed.

toggleCells

public Object[] toggleCells(boolean show,
                            Object[] cells)
Sets the visible state of the specified cells. This is a shortcut method.

Parameters:
show - Boolean that specifies the visible state to be assigned.
cells - Array of cells whose visible state should be changed.
Returns:
Returns the cells whose visible state was changed.

toggleCells

public Object[] toggleCells(boolean show,
                            Object[] cells,
                            boolean includeEdges)
Sets the visible state of the specified cells and all connected edges if includeEdges is true. The change is carried out using cellsToggled. This method fires mxEvent.TOGGLE_CELLS while the transaction is in progress.

Parameters:
show - Boolean that specifies the visible state to be assigned.
cells - Array of cells whose visible state should be changed. If null is specified then the selection cells are used.
Returns:
Returns the cells whose visible state was changed.

cellsToggled

public void cellsToggled(Object[] cells,
                         boolean show)
Sets the visible state of the specified cells.

Parameters:
cells - Array of cells whose visible state should be changed.
show - Boolean that specifies the visible state to be assigned.

foldCells

public Object[] foldCells(boolean collapse)
Sets the collapsed state of the selection cells without recursion. This is a shortcut method.

Parameters:
collapse - Boolean that specifies the collapsed state to be assigned.
Returns:
Returns the cells whose collapsed state was changed.

foldCells

public Object[] foldCells(boolean collapse,
                          boolean recurse)
Sets the collapsed state of the selection cells. This is a shortcut method.

Parameters:
collapse - Boolean that specifies the collapsed state to be assigned.
recurse - Boolean that specifies if the collapsed state should be assigned to all descendants.
Returns:
Returns the cells whose collapsed state was changed.

foldCells

public Object[] foldCells(boolean collapse,
                          boolean recurse,
                          Object[] cells)
Invokes foldCells with checkFoldable set to false.


foldCells

public Object[] foldCells(boolean collapse,
                          boolean recurse,
                          Object[] cells,
                          boolean checkFoldable)
Sets the collapsed state of the specified cells and all descendants if recurse is true. The change is carried out using cellsFolded. This method fires mxEvent.FOLD_CELLS while the transaction is in progress. Returns the cells whose collapsed state was changed.

Parameters:
collapse - Boolean indicating the collapsed state to be assigned.
recurse - Boolean indicating if the collapsed state of all descendants should be set.
cells - Array of cells whose collapsed state should be set. If null is specified then the foldable selection cells are used.
checkFoldable - Boolean indicating of isCellFoldable should be checked. Default is false.

cellsFolded

public void cellsFolded(Object[] cells,
                        boolean collapse,
                        boolean recurse)
Invokes cellsFoldable with checkFoldable set to false.


cellsFolded

public void cellsFolded(Object[] cells,
                        boolean collapse,
                        boolean recurse,
                        boolean checkFoldable)
Sets the collapsed state of the specified cells. This method fires mxEvent.CELLS_FOLDED while the transaction is in progress. Returns the cells whose collapsed state was changed.

Parameters:
cells - Array of cells whose collapsed state should be set.
collapse - Boolean indicating the collapsed state to be assigned.
recurse - Boolean indicating if the collapsed state of all descendants should be set.
checkFoldable - Boolean indicating of isCellFoldable should be checked. Default is false.

swapBounds

public void swapBounds(Object cell,
                       boolean willCollapse)
Swaps the alternate and the actual bounds in the geometry of the given cell invoking updateAlternateBounds before carrying out the swap.

Parameters:
cell - Cell for which the bounds should be swapped.
willCollapse - Boolean indicating if the cell is going to be collapsed.

updateAlternateBounds

public void updateAlternateBounds(Object cell,
                                  mxGeometry geo,
                                  boolean willCollapse)
Updates or sets the alternate bounds in the given geometry for the given cell depending on whether the cell is going to be collapsed. If no alternate bounds are defined in the geometry and collapseToPreferredSize is true, then the preferred size is used for the alternate bounds. The top, left corner is always kept at the same location.

Parameters:
cell - Cell for which the geometry is being udpated.
geo - Geometry for which the alternate bounds should be updated.
willCollapse - Boolean indicating if the cell is going to be collapsed.

addAllEdges

public Object[] addAllEdges(Object[] cells)
Returns an array with the given cells and all edges that are connected to a cell or one of its descendants.


getAllEdges

public Object[] getAllEdges(Object[] cells)
Returns all edges connected to the given cells or their descendants.


updateCellSize

public Object updateCellSize(Object cell)
Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size. This function fires beforeUpdateSize and afterUpdateSize events.

Parameters:
cell - for which the size should be changed.

updateCellSize

public Object updateCellSize(Object cell,
                             boolean ignoreChildren)
Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size. This function fires mxEvent.UPDATE_CELL_SIZE.

Parameters:
cell - Cell for which the size should be changed.

cellSizeUpdated

public void cellSizeUpdated(Object cell,
                            boolean ignoreChildren)
Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.

Parameters:
cell - Cell for which the size should be changed.

getPreferredSizeForCell

public mxRectangle getPreferredSizeForCell(Object cell)
Returns the preferred width and height of the given as an .

Parameters:
cell - for which the preferred size should be returned.

resizeCell

public Object resizeCell(Object cell,
                         mxRectangle bounds)
Sets the bounds of the given cell using resizeCells. Returns the cell which was passed to the function.

Parameters:
cell - whose bounds should be changed.
bounds - that represents the new bounds.

resizeCells

public Object[] resizeCells(Object[] cells,
                            mxRectangle[] bounds)
Sets the bounds of the given cells and fires a mxEvent.RESIZE_CELLS event. while the transaction is in progress. Returns the cells which have been passed to the function.

Parameters:
cells - Array of cells whose bounds should be changed.
bounds - Array of rectangles that represents the new bounds.

cellsResized

public void cellsResized(Object[] cells,
                         mxRectangle[] bounds)
Sets the bounds of the given cells and fires a event. If extendParents is true, then the parent is extended if a child size is changed so that it overlaps with the parent.

Parameters:
cells - Array of whose bounds should be changed.
bounds - Array of that represents the new bounds.

extendParent

public void extendParent(Object cell)
Resizes the parents recursively so that they contain the complete area of the resized child cell.

Parameters:
cell - that has been resized.

moveCells

public Object[] moveCells(Object[] cells,
                          double dx,
                          double dy)
Moves the cells by the given amount. This is a shortcut method.


moveCells

public Object[] moveCells(Object[] cells,
                          double dx,
                          double dy,
                          boolean clone)
Moves or clones the cells and moves the cells or clones by the given amount. This is a shortcut method.


moveCells

public Object[] moveCells(Object[] cells,
                          double dx,
                          double dy,
                          boolean clone,
                          Object target,
                          Point location)
Moves or clones the specified cells and moves the cells or clones by the given amount, adding them to the optional target cell. The location is the position of the mouse pointer as the mouse was released. The change is carried out using cellsMoved. This method fires mxEvent.MOVE_CELLS while the transaction is in progress.

Parameters:
cells - Array of cells to be moved, cloned or added to the target.
dx - Integer that specifies the x-coordinate of the vector.
dy - Integer that specifies the y-coordinate of the vector.
clone - Boolean indicating if the cells should be cloned.
target - Cell that represents the new parent of the cells.
location - Location where the mouse was released.
Returns:
Returns the cells that were moved.

cellsMoved

public void cellsMoved(Object[] cells,
                       double dx,
                       double dy,
                       boolean disconnect,
                       boolean constrain)
Moves the specified cells by the given vector, disconnecting the cells using disconnectGraph if disconnect is true. This method fires mxEvent.CELLS_MOVED while the transaction is in progress.


translateCell

public void translateCell(Object cell,
                          double dx,
                          double dy)
Translates the geometry of the given cell and stores the new, translated geometry in the model as an atomic change.


getCellContainmentArea

public mxRectangle getCellContainmentArea(Object cell)
Returns the mxRectangle inside which a cell is to be kept.


getMaximumGraphBounds

public mxRectangle getMaximumGraphBounds()
Returns:
the maximumGraphBounds

setMaximumGraphBounds

public void setMaximumGraphBounds(mxRectangle value)
Parameters:
value - the maximumGraphBounds to set

constrainChild

public void constrainChild(Object cell)
Keeps the given cell inside the bounds returned by getCellContainmentArea for its parent, according to the rules defined by getOverlap and isConstrainChild. This modifies the cell's geometry in-place and does not clone it.

Parameters:
cell - Cell which should be constrained.

resetEdges

public void resetEdges(Object[] cells)
Resets the control points of the edges that are connected to the given cells if not both ends of the edge are in the given cells array.

Parameters:
cells - Array of mxCells for which the connected edges should be reset.

resetEdge

public Object resetEdge(Object edge)
Resets the control points of the given edge.


getAllConnectionConstraints

public mxConnectionConstraint[] getAllConnectionConstraints(mxCellState terminal,
                                                            boolean source)
Returns an array of all constraints for the given terminal.

Parameters:
terminal - Cell state that represents the terminal.
source - Specifies if the terminal is the source or target.

getConnectionConstraint

public mxConnectionConstraint getConnectionConstraint(mxCellState edge,
                                                      mxCellState terminal,
                                                      boolean source)
Returns an connection constraint that describes the given connection point. This result can then be passed to getConnectionPoint.

Parameters:
edge - Cell state that represents the edge.
terminal - Cell state that represents the terminal.
source - Boolean indicating if the terminal is the source or target.

setConnectionConstraint

public void setConnectionConstraint(Object edge,
                                    Object terminal,
                                    boolean source,
                                    mxConnectionConstraint constraint)
Sets the connection constraint that describes the given connection point. If no constraint is given then nothing is changed. To remove an existing constraint from the given edge, use an empty constraint instead.

Parameters:
edge - Cell that represents the edge.
terminal - Cell that represents the terminal.
source - Boolean indicating if the terminal is the source or target.
constraint - Optional connection constraint to be used for this connection.

getConnectionPoint

public mxPoint getConnectionPoint(mxCellState vertex,
                                  mxConnectionConstraint constraint)
Sets the connection constraint that describes the given connection point. If no constraint is given then nothing is changed. To remove an existing constraint from the given edge, use an empty constraint instead.

Parameters:
vertex - Cell state that represents the vertex.
constraint - Connection constraint that represents the connection point constraint as returned by getConnectionConstraint.

connectCell

public Object connectCell(Object edge,
                          Object terminal,
                          boolean source)
Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.


connectCell

public Object connectCell(Object edge,
                          Object terminal,
                          boolean source,
                          mxConnectionConstraint constraint)
Connects the specified end of the given edge to the given terminal using cellConnected and fires mxEvent.CONNECT_CELL while the transaction is in progress.

Parameters:
edge - Edge whose terminal should be updated.
terminal - New terminal to be used.
source - Specifies if the new terminal is the source or target.
constraint - Optional constraint to be used for this connection.
Returns:
Returns the update edge.

cellConnected

public void cellConnected(Object edge,
                          Object terminal,
                          boolean source,
                          mxConnectionConstraint constraint)
Sets the new terminal for the given edge and resets the edge points if isResetEdgesOnConnect returns true. This method fires while the transaction is in progress.

Parameters:
edge - Edge whose terminal should be updated.
terminal - New terminal to be used.
source - Specifies if the new terminal is the source or target.
constraint - Constraint to be used for this connection.

disconnectGraph

public void disconnectGraph(Object[] cells)
Disconnects the given edges from the terminals which are not in the given array.

Parameters:
cells - Array of to be disconnected.

getCurrentRoot

public Object getCurrentRoot()
Returns the current root of the displayed cell hierarchy. This is a shortcut to in .

Returns:
Returns the current root in the view.

getTranslateForRoot

public mxPoint getTranslateForRoot(Object cell)
Returns the translation to be used if the given cell is the root cell as an . This implementation returns null.

Parameters:
cell - Cell that represents the root of the view.
Returns:
Returns the translation of the graph for the given root cell.

isPort

public boolean isPort(Object cell)
Returns true if the given cell is a "port", that is, when connecting to it, the cell returned by getTerminalForPort should be used as the terminal and the port should be referenced by the ID in either the mxConstants.STYLE_SOURCE_PORT or the or the mxConstants.STYLE_TARGET_PORT. Note that a port should not be movable. This implementation always returns false. A typical implementation of this method looks as follows: public boolean isPort(Object cell) { mxGeometry geo = getCellGeometry(cell); return (geo != null) ? geo.isRelative() : false; }

Parameters:
cell - Cell that represents the port.
Returns:
Returns true if the cell is a port.

getTerminalForPort

public Object getTerminalForPort(Object cell,
                                 boolean source)
Returns the terminal to be used for a given port. This implementation always returns the parent cell.

Parameters:
cell - Cell that represents the port.
source - If the cell is the source or target port.
Returns:
Returns the terminal to be used for the given port.

getChildOffsetForCell

public mxPoint getChildOffsetForCell(Object cell)
Returns the offset to be used for the cells inside the given cell. The root and layer cells may be identified using mxGraphModel.isRoot and mxGraphModel.isLayer. This implementation returns null.

Parameters:
cell - Cell whose offset should be returned.
Returns:
Returns the child offset for the given cell.

enterGroup

public void enterGroup()

enterGroup

public void enterGroup(Object cell)
Uses the given cell as the root of the displayed cell hierarchy. If no cell is specified then the selection cell is used. The cell is only used if returns true.

Parameters:
cell -

exitGroup

public void exitGroup()
Changes the current root to the next valid root in the displayed cell hierarchy.


home

public void home()
Uses the root of the model as the root of the displayed cell hierarchy and selects the previous root.


isValidRoot

public boolean isValidRoot(Object cell)
Returns true if the given cell is a valid root for the cell display hierarchy. This implementation returns true for all non-null values.

Parameters:
cell - which should be checked as a possible root.
Returns:
Returns true if the given cell is a valid root.

getGraphBounds

public mxRectangle getGraphBounds()
Returns the bounds of the visible graph.


getCellBounds

public mxRectangle getCellBounds(Object cell)
Returns the bounds of the given cell.


getCellBounds

public mxRectangle getCellBounds(Object cell,
                                 boolean includeEdges)
Returns the bounds of the given cell including all connected edges if includeEdge is true.


getCellBounds

public mxRectangle getCellBounds(Object cell,
                                 boolean includeEdges,
                                 boolean includeDescendants)
Returns the bounds of the given cell including all connected edges if includeEdge is true.


getBoundingBoxFromGeometry

public mxRectangle getBoundingBoxFromGeometry(Object[] cells)
Returns the bounding box for the geometries of the vertices in the given array of cells.


getBoundingBox

public mxRectangle getBoundingBox(Object cell)
Returns the bounds of the given cell.


getBoundingBox

public mxRectangle getBoundingBox(Object cell,
                                  boolean includeEdges)
Returns the bounding box of the given cell including all connected edges if includeEdge is true.


getBoundingBox

public mxRectangle getBoundingBox(Object cell,
                                  boolean includeEdges,
                                  boolean includeDescendants)
Returns the bounding box of the given cell including all connected edges if includeEdge is true.


getPaintBounds

public mxRectangle getPaintBounds(Object[] cells)
Returns the bounding box of the given cells and their descendants.


getBoundsForCells

public mxRectangle getBoundsForCells(Object[] cells,
                                     boolean includeEdges,
                                     boolean includeDescendants,
                                     boolean boundingBox)
Returns the bounds for the given cells.


getCellBounds

public mxRectangle getCellBounds(Object cell,
                                 boolean includeEdges,
                                 boolean includeDescendants,
                                 boolean boundingBox)
Returns the bounds of the given cell including all connected edges if includeEdge is true.


refresh

public void refresh()
Clears all cell states or the states for the hierarchy starting at the given cell and validates the graph.


repaint

public void repaint()
Fires a repaint event.


repaint

public void repaint(mxRectangle region)
Fires a repaint event. The optional region is the rectangle that needs to be repainted.


snap

public double snap(double value)
Snaps the given numeric value to the grid if is true.

Parameters:
value - Numeric value to be snapped to the grid.
Returns:
Returns the value aligned to the grid.

getCellGeometry

public mxGeometry getCellGeometry(Object cell)
Returns the geometry for the given cell.

Parameters:
cell - Cell whose geometry should be returned.
Returns:
Returns the geometry of the cell.

isCellVisible

public boolean isCellVisible(Object cell)
Returns true if the given cell is visible in this graph. This implementation uses . Subclassers can override this to implement specific visibility for cells in only one graph, that is, without affecting the visible state of the cell. When using dynamic filter expressions for cell visibility, then the graph should be revalidated after the filter expression has changed.

Parameters:
cell - Cell whose visible state should be returned.
Returns:
Returns the visible state of the cell.

isCellCollapsed

public boolean isCellCollapsed(Object cell)
Returns true if the given cell is collapsed in this graph. This implementation uses . Subclassers can override this to implement specific collapsed states for cells in only one graph, that is, without affecting the collapsed state of the cell. When using dynamic filter expressions for the collapsed state, then the graph should be revalidated after the filter expression has changed.

Parameters:
cell - Cell whose collapsed state should be returned.
Returns:
Returns the collapsed state of the cell.

isCellConnectable

public boolean isCellConnectable(Object cell)
Returns true if the given cell is connectable in this graph. This implementation uses . Subclassers can override this to implement specific connectable states for cells in only one graph, that is, without affecting the connectable state of the cell in the model.

Parameters:
cell - Cell whose connectable state should be returned.
Returns:
Returns the connectable state of the cell.

isOrthogonal

public boolean isOrthogonal(mxCellState edge)
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.

Parameters:
edge - Cell state that represents the edge.

isLoop

public boolean isLoop(mxCellState state)
Returns true if the given cell state is a loop.

Parameters:
state - that represents a potential loop.
Returns:
Returns true if the given cell is a loop.

setMultiplicities

public void setMultiplicities(mxMultiplicity[] value)

getMultiplicities

public mxMultiplicity[] getMultiplicities()

isEdgeValid

public boolean isEdgeValid(Object edge,
                           Object source,
                           Object target)
Checks if the return value of getEdgeValidationError for the given arguments is null.

Parameters:
edge - Cell that represents the edge to validate.
source - Cell that represents the source terminal.
target - Cell that represents the target terminal.

getEdgeValidationError

public String getEdgeValidationError(Object edge,
                                     Object source,
                                     Object target)
Returns the validation error message to be displayed when inserting or changing an edges' connectivity. A return value of null means the edge is valid, a return value of '' means it's not valid, but do not display an error message. Any other (non-empty) string returned from this method is displayed as an error message when trying to connect an edge to a source and target. This implementation uses the multiplicities, as well as multigraph and allowDanglingEdges to generate validation errors.

Parameters:
edge - Cell that represents the edge to validate.
source - Cell that represents the source terminal.
target - Cell that represents the target terminal.

validateEdge

public String validateEdge(Object edge,
                           Object source,
                           Object target)
Hook method for subclassers to return an error message for the given edge and terminals. This implementation returns null.

Parameters:
edge - Cell that represents the edge to validate.
source - Cell that represents the source terminal.
target - Cell that represents the target terminal.

getCellValidationError

public String getCellValidationError(Object cell)
Checks all multiplicities that cannot be enforced while the graph is being modified, namely, all multiplicities that require a minimum of 1 edge.

Parameters:
cell - Cell for which the multiplicities should be checked.

validateCell

public String validateCell(Object cell,
                           Hashtable<Object,Object> context)
Hook method for subclassers to return an error message for the given cell and validation context. This implementation returns null.

Parameters:
cell - Cell that represents the cell to validate.
context - Hashtable that represents the global validation state.

isLabelsVisible

public boolean isLabelsVisible()
Returns:
the labelsVisible

setLabelsVisible

public void setLabelsVisible(boolean value)
Parameters:
value - the labelsVisible to set

setHtmlLabels

public void setHtmlLabels(boolean value)
Parameters:
value - the htmlLabels to set

isHtmlLabels

public boolean isHtmlLabels()

convertValueToString

public String convertValueToString(Object cell)
Returns the textual representation for the given cell.

Parameters:
cell - Cell to be converted to a string.
Returns:
Returns the textual representation of the cell.

getLabel

public String getLabel(Object cell)
Returns a string or DOM node that represents the label for the given cell. This implementation uses if is true. Otherwise it returns an empty string.

Parameters:
cell - whose label should be returned.
Returns:
Returns the label for the given cell.

cellLabelChanged

public void cellLabelChanged(Object cell,
                             Object value,
                             boolean autoSize)
Sets the new label for a cell. If autoSize is true then will be called.

Parameters:
cell - Cell whose label should be changed.
value - New label to be assigned.
autoSize - Specifies if cellSizeUpdated should be called.

isHtmlLabel

public boolean isHtmlLabel(Object cell)
Returns true if the label must be rendered as HTML markup. The default implementation returns .

Parameters:
cell - whose label should be displayed as HTML markup.
Returns:
Returns true if the given cell label is HTML markup.

getToolTipForCell

public String getToolTipForCell(Object cell)
Returns the tooltip to be used for the given cell.


getStartSize

public mxRectangle getStartSize(Object swimlane)
Returns the start size of the given swimlane, that is, the width or height of the part that contains the title, depending on the horizontal style. The return value is an with either width or height set as appropriate.

Parameters:
swimlane - whose start size should be returned.
Returns:
Returns the startsize for the given swimlane.

getImage

public String getImage(mxCellState state)
Returns the image URL for the given cell state. This implementation returns the value stored under in the cell style.

Parameters:
state -
Returns:
Returns the image associated with the given cell state.

getBorder

public int getBorder()
Returns the value of .

Returns:
Returns the border.

setBorder

public void setBorder(int value)
Sets the value of .

Parameters:
value - Positive integer that represents the border to be used.

getDefaultLoopStyle

public mxEdgeStyle.mxEdgeStyleFunction getDefaultLoopStyle()
Returns the default edge style used for loops.

Returns:
Returns the default loop style.

setDefaultLoopStyle

public void setDefaultLoopStyle(mxEdgeStyle.mxEdgeStyleFunction value)
Sets the default style used for loops.

Parameters:
value - Default style to be used for loops.

isSwimlane

public boolean isSwimlane(Object cell)
Returns true if the given cell is a swimlane. This implementation always returns false.

Parameters:
cell - Cell that should be checked.
Returns:
Returns true if the cell is a swimlane.

isCellLocked

public boolean isCellLocked(Object cell)
Returns true if the given cell may not be moved, sized, bended, disconnected, edited or selected. This implementation returns true for all vertices with a relative geometry if cellsLocked is false.

Parameters:
cell - Cell whose locked state should be returned.
Returns:
Returns true if the given cell is locked.

isCellsLocked

public boolean isCellsLocked()
Returns cellsLocked, the default return value for isCellLocked.


setCellsLocked

public void setCellsLocked(boolean value)
Sets cellsLocked, the default return value for isCellLocked and fires a property change event for cellsLocked.


isCellEditable

public boolean isCellEditable(Object cell)
Returns true if the given cell is movable. This implementation returns editable.

Parameters:
cell - Cell whose editable state should be returned.
Returns:
Returns true if the cell is editable.

isCellsEditable

public boolean isCellsEditable()
Returns true if editing is allowed in this graph.

Returns:
Returns true if the graph is editable.

setCellsEditable

public void setCellsEditable(boolean value)
Sets if the graph is editable.


isCellResizable

public boolean isCellResizable(Object cell)
Returns true if the given cell is resizable. This implementation returns cellsSizable for all cells.

Parameters:
cell - Cell whose resizable state should be returned.
Returns:
Returns true if the cell is sizable.

isCellsResizable

public boolean isCellsResizable()
Returns true if the given cell is resizable. This implementation return sizable.


setCellsResizable

public void setCellsResizable(boolean value)
Sets if the graph is resizable.


getMovableCells

public Object[] getMovableCells(Object[] cells)
Returns the cells which are movable in the given array of cells.


isCellMovable

public boolean isCellMovable(Object cell)
Returns true if the given cell is movable. This implementation returns movable.

Parameters:
cell - Cell whose movable state should be returned.
Returns:
Returns true if the cell is movable.

isCellsMovable

public boolean isCellsMovable()
Returns cellsMovable.


setCellsMovable

public void setCellsMovable(boolean value)
Sets cellsMovable.


isTerminalPointMovable

public boolean isTerminalPointMovable(Object cell,
                                      boolean source)
Function: isTerminalPointMovable Returns true if the given terminal point is movable. This is independent from isCellConnectable and isCellDisconnectable and controls if terminal points can be moved in the graph if the edge is not connected. Note that it is required for this to return true to connect unconnected edges. This implementation returns true.

Parameters:
cell - Cell whose terminal point should be moved.
source - Boolean indicating if the source or target terminal should be moved.

isCellBendable

public boolean isCellBendable(Object cell)
Returns true if the given cell is bendable. This implementation returns bendable. This is used in mxElbowEdgeHandler to determine if the middle handle should be shown.

Parameters:
cell - Cell whose bendable state should be returned.
Returns:
Returns true if the cell is bendable.

isCellsBendable

public boolean isCellsBendable()
Returns cellsBendable.


setCellsBendable

public void setCellsBendable(boolean value)
Sets cellsBendable.


isCellSelectable

public boolean isCellSelectable(Object cell)
Returns true if the given cell is selectable. This implementation returns .

Parameters:
cell - whose selectable state should be returned.
Returns:
Returns true if the given cell is selectable.

isCellsSelectable

public boolean isCellsSelectable()
Returns cellsSelectable.


setCellsSelectable

public void setCellsSelectable(boolean value)
Sets cellsSelectable.


getDeletableCells

public Object[] getDeletableCells(Object[] cells)
Returns the cells which are movable in the given array of cells.


isCellDeletable

public boolean isCellDeletable(Object cell)
Returns true if the given cell is movable. This implementation always returns true.

Parameters:
cell - Cell whose movable state should be returned.
Returns:
Returns true if the cell is movable.

isCellsDeletable

public boolean isCellsDeletable()
Returns cellsDeletable.


setCellsDeletable

public void setCellsDeletable(boolean value)
Sets cellsDeletable.


getCloneableCells

public Object[] getCloneableCells(Object[] cells)
Returns the cells which are movable in the given array of cells.


isCellCloneable

public boolean isCellCloneable(Object cell)
Returns the constant true. This does not use the cloneable field to return a value for a given cell, it is simply a hook for subclassers to disallow cloning of individual cells.


isCellsCloneable

public boolean isCellsCloneable()
Returns cellsCloneable.


setCellsCloneable

public void setCellsCloneable(boolean value)
Specifies if the graph should allow cloning of cells by holding down the control key while cells are being moved. This implementation updates cellsCloneable.

Parameters:
value - Boolean indicating if the graph should be cloneable.

isCellDisconnectable

public boolean isCellDisconnectable(Object cell,
                                    Object terminal,
                                    boolean source)
Returns true if the given cell is disconnectable from the source or target terminal. This returns for all given cells if does not return true for the given cell.

Parameters:
cell - whose disconnectable state should be returned.
terminal - that represents the source or target terminal.
source - Boolean indicating if the source or target terminal is to be disconnected.
Returns:
Returns true if the given edge can be disconnected from the given terminal.

isCellsDisconnectable

public boolean isCellsDisconnectable()
Returns cellsDisconnectable.


setCellsDisconnectable

public void setCellsDisconnectable(boolean value)
Sets cellsDisconnectable.

Parameters:
value - Boolean indicating if the graph should allow disconnecting of edges.

isLabelClipped

public boolean isLabelClipped(Object cell)
Returns true if the overflow portion of labels should be hidden. If this returns true then vertex labels will be clipped to the size of the vertices. This implementation returns true if in the style of the given cell is "hidden".

Parameters:
cell - Cell whose label should be clipped.
Returns:
Returns true if the cell label should be clipped.

isLabelsClipped

public boolean isLabelsClipped()
Returns labelsClipped.


setLabelsClipped

public void setLabelsClipped(boolean value)
Sets labelsClipped.


isLabelMovable

public boolean isLabelMovable(Object cell)
Returns true if the given edges's label is moveable. This returns for all given cells if does not return true for the given cell.

Parameters:
cell - whose label should be moved.
Returns:
Returns true if the label of the given cell is movable.

isVertexLabelsMovable

public boolean isVertexLabelsMovable()
Returns vertexLabelsMovable.


setVertexLabelsMovable

public void setVertexLabelsMovable(boolean value)
Sets vertexLabelsMovable.


isEdgeLabelsMovable

public boolean isEdgeLabelsMovable()
Returns edgeLabelsMovable.


setEdgeLabelsMovable

public void setEdgeLabelsMovable(boolean value)
Returns edgeLabelsMovable.


isEnabled

public boolean isEnabled()
Returns true if the graph is .

Returns:
Returns true if the graph is enabled.

setEnabled

public void setEnabled(boolean value)
Specifies if the graph should allow any interactions. This implementation updates .

Parameters:
value - Boolean indicating if the graph should be enabled.

isDropEnabled

public boolean isDropEnabled()
Returns true if the graph allows drop into other cells.


setDropEnabled

public void setDropEnabled(boolean value)
Sets dropEnabled.


isSplitEnabled

public boolean isSplitEnabled()
Affects the return values of isValidDropTarget to allow for edges as drop targets. The splitEdge method is called in mxGraphHandler if mxGraphComponent.isSplitEvent returns true for a given configuration.


setSplitEnabled

public void setSplitEnabled(boolean value)
Sets splitEnabled.


isMultigraph

public boolean isMultigraph()
Returns multigraph.


setMultigraph

public void setMultigraph(boolean value)
Sets multigraph.


isSwimlaneNesting

public boolean isSwimlaneNesting()
Returns swimlaneNesting.


setSwimlaneNesting

public void setSwimlaneNesting(boolean value)
Sets swimlaneNesting.


isAllowDanglingEdges

public boolean isAllowDanglingEdges()
Returns allowDanglingEdges


setAllowDanglingEdges

public void setAllowDanglingEdges(boolean value)
Sets allowDanglingEdges.


isCloneInvalidEdges

public boolean isCloneInvalidEdges()
Returns cloneInvalidEdges.


setCloneInvalidEdges

public void setCloneInvalidEdges(boolean value)
Sets cloneInvalidEdge.


isDisconnectOnMove

public boolean isDisconnectOnMove()
Returns disconnectOnMove


setDisconnectOnMove

public void setDisconnectOnMove(boolean value)
Sets disconnectOnMove.


isAllowLoops

public boolean isAllowLoops()
Returns allowLoops.


setAllowLoops

public void setAllowLoops(boolean value)
Sets allowLoops.


isConnectableEdges

public boolean isConnectableEdges()
Returns connectableEdges.


setConnectableEdges

public void setConnectableEdges(boolean value)
Sets connetableEdges.


isResetEdgesOnMove

public boolean isResetEdgesOnMove()
Returns resetEdgesOnMove.


setResetEdgesOnMove

public void setResetEdgesOnMove(boolean value)
Sets resetEdgesOnMove.


isResetViewOnRootChange

public boolean isResetViewOnRootChange()
Returns resetViewOnRootChange.


setResetViewOnRootChange

public void setResetViewOnRootChange(boolean value)
Sets resetEdgesOnResize.


isResetEdgesOnResize

public boolean isResetEdgesOnResize()
Returns resetEdgesOnResize.


setResetEdgesOnResize

public void setResetEdgesOnResize(boolean value)
Sets resetEdgesOnResize.


isResetEdgesOnConnect

public boolean isResetEdgesOnConnect()
Returns resetEdgesOnConnect.


setResetEdgesOnConnect

public void setResetEdgesOnConnect(boolean value)
Sets resetEdgesOnConnect.


isAutoSizeCell

public boolean isAutoSizeCell(Object cell)
Returns true if the size of the given cell should automatically be updated after a change of the label. This implementation returns autoSize for all given cells or checks if the cell style does specify mxConstants.STYLE_AUTOSIZE to be 1.

Parameters:
cell - Cell that should be resized.
Returns:
Returns true if the size of the given cell should be updated.

isAutoSizeCells

public boolean isAutoSizeCells()
Returns true if the size of the given cell should automatically be updated after a change of the label. This implementation returns autoSize for all given cells.


setAutoSizeCells

public void setAutoSizeCells(boolean value)
Specifies if cell sizes should be automatically updated after a label change. This implementation sets autoSize to the given parameter.

Parameters:
value - Boolean indicating if cells should be resized automatically.

isExtendParent

public boolean isExtendParent(Object cell)
Returns true if the parent of the given cell should be extended if the child has been resized so that it overlaps the parent. This implementation returns ExtendParents if cell is not an edge.

Parameters:
cell - Cell that has been resized.

isExtendParents

public boolean isExtendParents()
Returns extendParents.


setExtendParents

public void setExtendParents(boolean value)
Sets extendParents.


isExtendParentsOnAdd

public boolean isExtendParentsOnAdd()
Returns extendParentsOnAdd.


setExtendParentsOnAdd

public void setExtendParentsOnAdd(boolean value)
Sets extendParentsOnAdd.


isConstrainChild

public boolean isConstrainChild(Object cell)
Returns true if the given cell should be kept inside the bounds of its parent according to the rules defined by getOverlap and isAllowOverlapParent. This implementation returns false for all children of edges and isConstrainChildren() otherwise.


isConstrainChildren

public boolean isConstrainChildren()
Returns constrainChildren.

Returns:
the keepInsideParentOnMove

setConstrainChildren

public void setConstrainChildren(boolean value)
Parameters:
value - the constrainChildren to set

isAutoOrigin

public boolean isAutoOrigin()
Returns autoOrigin.


setAutoOrigin

public void setAutoOrigin(boolean value)
Parameters:
value - the autoOrigin to set

getOrigin

public mxPoint getOrigin()
Returns origin.


setOrigin

public void setOrigin(mxPoint value)
Parameters:
value - the origin to set

getChangesRepaintThreshold

public int getChangesRepaintThreshold()
Returns:
Returns changesRepaintThreshold.

setChangesRepaintThreshold

public void setChangesRepaintThreshold(int value)
Parameters:
value - the changesRepaintThreshold to set

isAllowNegativeCoordinates

public boolean isAllowNegativeCoordinates()
Returns isAllowNegativeCoordinates.

Returns:
the allowNegativeCoordinates

setAllowNegativeCoordinates

public void setAllowNegativeCoordinates(boolean value)
Parameters:
value - the allowNegativeCoordinates to set

isCollapseToPreferredSize

public boolean isCollapseToPreferredSize()
Returns collapseToPreferredSize.

Returns:
the collapseToPreferredSize

setCollapseToPreferredSize

public void setCollapseToPreferredSize(boolean value)
Parameters:
value - the collapseToPreferredSize to set

isKeepEdgesInForeground

public boolean isKeepEdgesInForeground()
Returns:
Returns true if edges are rendered in the foreground.

setKeepEdgesInForeground

public void setKeepEdgesInForeground(boolean value)
Parameters:
value - the keepEdgesInForeground to set

isKeepEdgesInBackground

public boolean isKeepEdgesInBackground()
Returns:
Returns true if edges are rendered in the background.

setKeepEdgesInBackground

public void setKeepEdgesInBackground(boolean value)
Parameters:
value - the keepEdgesInBackground to set

isValidSource

public boolean isValidSource(Object cell)
Returns true if the given cell is a valid source for new connections. This implementation returns true for all non-null values and is called by is called by .

Parameters:
cell - Object that represents a possible source or null.
Returns:
Returns true if the given cell is a valid source terminal.

isValidTarget

public boolean isValidTarget(Object cell)
Returns isValidSource for the given cell. This is called by isValidConnection.

Parameters:
cell - Object that represents a possible target or null.
Returns:
Returns true if the given cell is a valid target.

isValidConnection

public boolean isValidConnection(Object source,
                                 Object target)
Returns true if the given target cell is a valid target for source. This is a boolean implementation for not allowing connections between certain pairs of vertices and is called by . This implementation returns true if returns true for the source and returns true for the target.

Parameters:
source - Object that represents the source cell.
target - Object that represents the target cell.
Returns:
Returns true if the the connection between the given terminals is valid.

getMinimumGraphSize

public mxRectangle getMinimumGraphSize()
Returns the minimum size of the diagram.

Returns:
Returns the minimum container size.

setMinimumGraphSize

public void setMinimumGraphSize(mxRectangle value)
Parameters:
value - the minimumGraphSize to set

getOverlap

public double getOverlap(Object cell)
Returns a decimal number representing the amount of the width and height of the given cell that is allowed to overlap its parent. A value of 0 means all children must stay inside the parent, 1 means the child is allowed to be placed outside of the parent such that it touches one of the parents sides. If returns false for the given cell, then this method returns 0.

Parameters:
cell -
Returns:
Returns the overlapping value for the given cell inside its parent.

getDefaultOverlap

public double getDefaultOverlap()
Gets defaultOverlap.


setDefaultOverlap

public void setDefaultOverlap(double value)
Sets defaultOverlap.


isAllowOverlapParent

public boolean isAllowOverlapParent(Object cell)
Returns true if the given cell is allowed to be placed outside of the parents area.

Parameters:
cell -
Returns:
Returns true if the given cell may overlap its parent.

getFoldableCells

public Object[] getFoldableCells(Object[] cells,
                                 boolean collapse)
Returns the cells which are movable in the given array of cells.


isCellFoldable

public boolean isCellFoldable(Object cell,
                              boolean collapse)
Returns true if the given cell is expandable. This implementation returns true if the cell has at least one child and its style does not specify mxConstants.STYLE_FOLDABLE to be 0.

Parameters:
cell - whose expandable state should be returned.
Returns:
Returns true if the given cell is expandable.

isGridEnabled

public boolean isGridEnabled()
Returns true if the grid is enabled.

Returns:
Returns the enabled state of the grid.

setGridEnabled

public void setGridEnabled(boolean value)
Sets if the grid is enabled.

Parameters:
value - Specifies if the grid should be enabled.

getGridSize

public int getGridSize()
Returns the grid size.

Returns:
Returns the grid size

setGridSize

public void setGridSize(int value)
Sets the grid size and fires a property change event for gridSize.

Parameters:
value - New grid size to be used.

getAlternateEdgeStyle

public String getAlternateEdgeStyle()
Returns alternateEdgeStyle.


setAlternateEdgeStyle

public void setAlternateEdgeStyle(String value)
Sets alternateEdgeStyle.


isValidDropTarget

public boolean isValidDropTarget(Object cell,
                                 Object[] cells)
Returns true if the given cell is a valid drop target for the specified cells. This returns true if the cell is a swimlane, has children and is not collapsed, or if splitEnabled is true and isSplitTarget returns true for the given arguments

Parameters:
cell - Object that represents the possible drop target.
cells - Objects that are going to be dropped.
Returns:
Returns true if the cell is a valid drop target for the given cells.

isSplitTarget

public boolean isSplitTarget(Object target,
                             Object[] cells)
Returns true if split is enabled and the given edge may be splitted into two edges with the given cell as a new terminal between the two.

Parameters:
target - Object that represents the edge to be splitted.
cells - Array of cells to add into the given edge.
Returns:
Returns true if the given edge may be splitted by the given cell.

getDropTarget

public Object getDropTarget(Object[] cells,
                            Point pt,
                            Object cell)
Returns the given cell if it is a drop target for the given cells or the nearest ancestor that may be used as a drop target for the given cells. If the given array contains a swimlane and swimlaneNesting is false then this always returns null. If no cell is given, then the bottommost swimlane at the location of the given event is returned. This function should only be used if isDropEnabled returns true.


getDefaultParent

public Object getDefaultParent()
Returns the first child of the root in the model, that is, the first or default layer of the diagram.

Returns:
Returns the default parent for new cells.

setDefaultParent

public void setDefaultParent(Object value)
Sets the default parent to be returned by getDefaultParent. Set this to null to return the first child of the root in getDefaultParent.


getChildVertices

public Object[] getChildVertices(Object parent)
Returns the visible child vertices of the given parent.

Parameters:
parent - Cell whose children should be returned.

getChildEdges

public Object[] getChildEdges(Object parent)
Returns the visible child edges of the given parent.

Parameters:
parent - Cell whose children should be returned.

getChildCells

public Object[] getChildCells(Object parent)
Returns the visible children of the given parent.

Parameters:
parent - Cell whose children should be returned.

getChildCells

public Object[] getChildCells(Object parent,
                              boolean vertices,
                              boolean edges)
Returns the visible child vertices or edges in the given parent. If vertices and edges is false, then all children are returned.

Parameters:
parent - Cell whose children should be returned.
vertices - Specifies if child vertices should be returned.
edges - Specifies if child edges should be returned.
Returns:
Returns the child vertices and edges.

getConnections

public Object[] getConnections(Object cell)
Returns all visible edges connected to the given cell without loops.

Parameters:
cell - Cell whose connections should be returned.
Returns:
Returns the connected edges for the given cell.

getConnections

public Object[] getConnections(Object cell,
                               Object parent)
Returns all visible edges connected to the given cell without loops. If the optional parent argument is specified, then only child edges of the given parent are returned.

Parameters:
cell - Cell whose connections should be returned.
parent - Optional parent of the opposite end for a connection to be returned.
Returns:
Returns the connected edges for the given cell.

getConnections

public Object[] getConnections(Object cell,
                               Object parent,
                               boolean recurse)
Returns all visible edges connected to the given cell without loops. If the optional parent argument is specified, then only child edges of the given parent are returned.

Parameters:
cell - Cell whose connections should be returned.
parent - Optional parent of the opposite end for a connection to be returned.
Returns:
Returns the connected edges for the given cell.

getIncomingEdges

public Object[] getIncomingEdges(Object cell)
Returns all incoming visible edges connected to the given cell without loops.

Parameters:
cell - Cell whose incoming edges should be returned.
Returns:
Returns the incoming edges of the given cell.

getIncomingEdges

public Object[] getIncomingEdges(Object cell,
                                 Object parent)
Returns the visible incoming edges for the given cell. If the optional parent argument is specified, then only child edges of the given parent are returned.

Parameters:
cell - Cell whose incoming edges should be returned.
parent - Optional parent of the opposite end for an edge to be returned.
Returns:
Returns the incoming edges of the given cell.

getOutgoingEdges

public Object[] getOutgoingEdges(Object cell)
Returns all outgoing visible edges connected to the given cell without loops.

Parameters:
cell - Cell whose outgoing edges should be returned.
Returns:
Returns the outgoing edges of the given cell.

getOutgoingEdges

public Object[] getOutgoingEdges(Object cell,
                                 Object parent)
Returns the visible outgoing edges for the given cell. If the optional parent argument is specified, then only child edges of the given parent are returned.

Parameters:
cell - Cell whose outgoing edges should be returned.
parent - Optional parent of the opposite end for an edge to be returned.
Returns:
Returns the outgoing edges of the given cell.

getEdges

public Object[] getEdges(Object cell)
Returns all visible edges connected to the given cell including loops.

Parameters:
cell - Cell whose edges should be returned.
Returns:
Returns the edges of the given cell.

getEdges

public Object[] getEdges(Object cell,
                         Object parent)
Returns all visible edges connected to the given cell including loops.

Parameters:
cell - Cell whose edges should be returned.
parent - Optional parent of the opposite end for an edge to be returned.
Returns:
Returns the edges of the given cell.

getEdges

public Object[] getEdges(Object cell,
                         Object parent,
                         boolean incoming,
                         boolean outgoing,
                         boolean includeLoops)
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell.

Parameters:
cell - Cell whose edges should be returned.
parent - Optional parent. If specified the opposite end of any edge must be a direct child of that parent in order for the edge to be returned.
incoming - Specifies if incoming edges should be included in the result.
outgoing - Specifies if outgoing edges should be included in the result.
includeLoops - Specifies if loops should be included in the result.
Returns:
Returns the edges connected to the given cell.

getEdges

public Object[] getEdges(Object cell,
                         Object parent,
                         boolean incoming,
                         boolean outgoing,
                         boolean includeLoops,
                         boolean recurse)
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell.

Parameters:
cell - Cell whose edges should be returned.
parent - Optional parent. If specified the opposite end of any edge must be a child of that parent in order for the edge to be returned. The recurse parameter specifies whether or not it must be the direct child or the parent just be an ancestral parent.
incoming - Specifies if incoming edges should be included in the result.
outgoing - Specifies if outgoing edges should be included in the result.
includeLoops - Specifies if loops should be included in the result.
recurse - Specifies if the parent specified only need be an ancestral parent, true, or the direct parent, false
Returns:
Returns the edges connected to the given cell.

isValidAncestor

public boolean isValidAncestor(Object cell,
                               Object parent,
                               boolean recurse)
Returns whether or not the specified parent is a valid ancestor of the specified cell, either direct or indirectly based on whether ancestor recursion is enabled.

Parameters:
cell - the possible child cell
parent - the possible parent cell
recurse - whether or not to recurse the child ancestors
Returns:
whether or not the specified parent is a valid ancestor of the specified cell, either direct or indirectly based on whether ancestor recursion is enabled.

getOpposites

public Object[] getOpposites(Object[] edges,
                             Object terminal)
Returns all distinct visible opposite cells of the terminal on the given edges.

Parameters:
edges -
terminal -
Returns:
Returns the terminals at the opposite ends of the given edges.

getOpposites

public Object[] getOpposites(Object[] edges,
                             Object terminal,
                             boolean sources,
                             boolean targets)
Returns all distincts visible opposite cells for the specified terminal on the given edges.

Parameters:
edges - Edges whose opposite terminals should be returned.
terminal - Terminal that specifies the end whose opposite should be returned.
sources - Specifies if source terminals should be included in the result.
targets - Specifies if target terminals should be included in the result.
Returns:
Returns the cells at the opposite ends of the given edges.

getEdgesBetween

public Object[] getEdgesBetween(Object source,
                                Object target)
Returns the edges between the given source and target. This takes into account collapsed and invisible cells and returns the connected edges as displayed on the screen.

Parameters:
source -
target -
Returns:
Returns all edges between the given terminals.

getEdgesBetween

public Object[] getEdgesBetween(Object source,
                                Object target,
                                boolean directed)
Returns the edges between the given source and target. This takes into account collapsed and invisible cells and returns the connected edges as displayed on the screen.

Parameters:
source -
target -
directed -
Returns:
Returns all edges between the given terminals.

getCellsBeyond

public Object[] getCellsBeyond(double x0,
                               double y0,
                               Object parent,
                               boolean rightHalfpane,
                               boolean bottomHalfpane)
Returns the children of the given parent that are contained in the halfpane from the given point (x0, y0) rightwards and downwards depending on rightHalfpane and bottomHalfpane.

Parameters:
x0 - X-coordinate of the origin.
y0 - Y-coordinate of the origin.
parent - whose children should be checked.
rightHalfpane - Boolean indicating if the cells in the right halfpane from the origin should be returned.
bottomHalfpane - Boolean indicating if the cells in the bottom halfpane from the origin should be returned.
Returns:
Returns the cells beyond the given halfpane.

findTreeRoots

public List<Object> findTreeRoots(Object parent)
Returns all visible children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned. This takes into account edges that are being promoted to the given root due to invisible children or collapsed cells.

Parameters:
parent - Cell whose children should be checked.
Returns:
List of tree roots in parent.

findTreeRoots

public List<Object> findTreeRoots(Object parent,
                                  boolean isolate)
Returns all visible children in the given parent which do not have incoming edges. If the result is empty then the children with the maximum difference between incoming and outgoing edges are returned. This takes into account edges that are being promoted to the given root due to invisible children or collapsed cells.

Parameters:
parent - Cell whose children should be checked.
isolate - Specifies if edges should be ignored if the opposite end is not a child of the given parent cell.
Returns:
List of tree roots in parent.

findTreeRoots

public List<Object> findTreeRoots(Object parent,
                                  boolean isolate,
                                  boolean invert)
Returns all visible children in the given parent which do not have incoming edges. If the result is empty then the children with the maximum difference between incoming and outgoing edges are returned. This takes into account edges that are being promoted to the given root due to invisible children or collapsed cells.

Parameters:
parent - Cell whose children should be checked.
isolate - Specifies if edges should be ignored if the opposite end is not a child of the given parent cell.
invert - Specifies if outgoing or incoming edges should be counted for a tree root. If false then outgoing edges will be counted.
Returns:
List of tree roots in parent.

traverse

public void traverse(Object vertex,
                     boolean directed,
                     mxGraph.mxICellVisitor visitor)
Traverses the tree starting at the given vertex. Here is how to use this method for a given vertex (root) which is typically the root of a tree: graph.traverse(root, true, new mxICellVisitor() { public boolean visit(Object vertex, Object edge) { System.out.println("edge="+graph.convertValueToString(edge)+ " vertex="+graph.convertValueToString(vertex)); return true; } });

Parameters:
vertex -
directed -
visitor -

traverse

public void traverse(Object vertex,
                     boolean directed,
                     mxGraph.mxICellVisitor visitor,
                     Object edge,
                     Set<Object> visited)
Traverses the (directed) graph invoking the given function for each visited vertex and edge. The function is invoked with the current vertex and the incoming edge as a parameter. This implementation makes sure each vertex is only visited once. The function may return false if the traversal should stop at the given vertex.

Parameters:
vertex - that represents the vertex where the traversal starts.
directed - Optional boolean indicating if edges should only be traversed from source to target. Default is true.
visitor - Visitor that takes the current vertex and the incoming edge. The traversal stops if the function returns false.
edge - Optional that represents the incoming edge. This is null for the first step of the traversal.
visited - Optional array of cell paths for the visited cells.

getSelectionModel

public mxGraphSelectionModel getSelectionModel()

getSelectionCount

public int getSelectionCount()

isCellSelected

public boolean isCellSelected(Object cell)
Parameters:
cell -
Returns:
Returns true if the given cell is selected.

isSelectionEmpty

public boolean isSelectionEmpty()
Returns:
Returns true if the selection is empty.

clearSelection

public void clearSelection()

getSelectionCell

public Object getSelectionCell()
Returns:
Returns the selection cell.

setSelectionCell

public void setSelectionCell(Object cell)
Parameters:
cell -

getSelectionCells

public Object[] getSelectionCells()
Returns:
Returns the selection cells.

setSelectionCells

public void setSelectionCells(Object[] cells)

setSelectionCells

public void setSelectionCells(Collection<Object> cells)
Parameters:
cells -

addSelectionCell

public void addSelectionCell(Object cell)

addSelectionCells

public void addSelectionCells(Object[] cells)

removeSelectionCell

public void removeSelectionCell(Object cell)

removeSelectionCells

public void removeSelectionCells(Object[] cells)

selectNextCell

public void selectNextCell()
Selects the next cell.


selectPreviousCell

public void selectPreviousCell()
Selects the previous cell.


selectParentCell

public void selectParentCell()
Selects the parent cell.


selectChildCell

public void selectChildCell()
Selects the first child cell.


selectCell

public void selectCell(boolean isNext,
                       boolean isParent,
                       boolean isChild)
Selects the next, parent, first child or previous cell, if all arguments are false.

Parameters:
isNext -
isParent -
isChild -

selectVertices

public void selectVertices()
Selects all vertices inside the default parent.


selectVertices

public void selectVertices(Object parent)
Selects all vertices inside the given parent or the default parent if no parent is given.


selectEdges

public void selectEdges()
Selects all vertices inside the default parent.


selectEdges

public void selectEdges(Object parent)
Selects all vertices inside the given parent or the default parent if no parent is given.


selectCells

public void selectCells(boolean vertices,
                        boolean edges)
Selects all vertices and/or edges depending on the given boolean arguments recursively, starting at the default parent. Use selectAll to select all cells.

Parameters:
vertices - Boolean indicating if vertices should be selected.
edges - Boolean indicating if edges should be selected.

selectCells

public void selectCells(boolean vertices,
                        boolean edges,
                        Object parent)
Selects all vertices and/or edges depending on the given boolean arguments recursively, starting at the given parent or the default parent if no parent is specified. Use selectAll to select all cells.

Parameters:
vertices - Boolean indicating if vertices should be selected.
edges - Boolean indicating if edges should be selected.
parent - Optional cell that acts as the root of the recursion. Default is defaultParent.

selectAll

public void selectAll()

selectAll

public void selectAll(Object parent)
Selects all children of the given parent cell or the children of the default parent if no parent is specified. To select leaf vertices and/or edges use .

Parameters:
parent - Optional whose children should be selected. Default is .

drawGraph

public void drawGraph(mxICanvas canvas)
Draws the graph onto the given canvas.

Parameters:
canvas - Canvas onto which the graph should be drawn.

drawCell

public void drawCell(mxICanvas canvas,
                     Object cell)
Draws the given cell and its descendants onto the specified canvas.

Parameters:
canvas - Canvas onto which the cell should be drawn.
cell - Cell that should be drawn onto the canvas.

drawState

public void drawState(mxICanvas canvas,
                      mxCellState state,
                      boolean drawLabel)
Draws the cell state with the given label onto the canvas. No children or descendants are painted here. This method invokes cellDrawn after the cell, but not its descendants have been painted.

Parameters:
canvas - Canvas onto which the cell should be drawn.
state - State of the cell to be drawn.
drawLabel - Indicates if the label should be drawn.

cellDrawn

protected void cellDrawn(mxICanvas canvas,
                         mxCellState state,
                         Object element,
                         Object labelElement)
Called when a cell has been painted as the specified object, typically a DOM node that represents the given cell graphically in a document.


getLinkForCell

protected String getLinkForCell(Object cell)
Returns the hyperlink to be used for the given cell.


getTargetForCell

protected String getTargetForCell(Object cell)
Returns the hyperlink to be used for the given cell.


addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Parameters:
listener -
See Also:
PropertyChangeSupport.addPropertyChangeListener(java.beans.PropertyChangeListener)

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Parameters:
propertyName -
listener -
See Also:
PropertyChangeSupport.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Parameters:
listener -
See Also:
PropertyChangeSupport.removePropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Parameters:
propertyName -
listener -
See Also:
PropertyChangeSupport.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)

main

public static void main(String[] args)
Prints the version number on the console.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/0000775000175000017500000000000012176166726023402 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxGraphGenerator.html0000664000175000017500000015054212176166716027553 0ustar sylvestresylvestre mxGraphGenerator (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxGraphGenerator

java.lang.Object
  extended by com.mxgraph.analysis.mxGraphGenerator

public class mxGraphGenerator
extends Object


Constructor Summary
mxGraphGenerator(mxGeneratorFunction generatorFunction, mxCostFunction costFunction)
           
 
Method Summary
 void getBipartiteGraph(mxAnalysisGraph aGraph, int numVerticesGroup1, int numVerticesGroup2)
           
 void getCompleteBipartiteGraph(mxAnalysisGraph aGraph, int numVerticesGroup1, int numVerticesGroup2)
           
 void getCompleteGraph(mxAnalysisGraph aGraph, int numVertices)
           
 mxCostFunction getCostFunction()
           
 void getFriendshipWindmillGraph(mxAnalysisGraph aGraph, int numBranches, int branchSize)
           
 mxGeneratorFunction getGeneratorFunction()
           
static mxGeneratorFunction getGeneratorFunction(mxGraph graph, boolean weighted, double minWeight, double maxWeight)
           
 void getGridGraph(mxAnalysisGraph aGraph, int numColumns, int numRows)
           
 void getKingGraph(mxAnalysisGraph aGraph, int xDim, int yDim)
           
 Object[] getKingMoveVertexes(mxAnalysisGraph aGraph, int xDim, int yDim, int xCoord, int yCoord)
           
 void getKnightGraph(mxAnalysisGraph aGraph, int xDim, int yDim)
           
 Object[] getKnightMoveVertexes(mxAnalysisGraph aGraph, int xDim, int yDim, int xCoord, int yCoord)
           
 void getKnightTour(mxAnalysisGraph aGraph, int xDim, int yDim, int startVertexValue)
           
 Double getNewEdgeValue(mxAnalysisGraph aGraph)
          Creates a new edge value based on graph properties in mxAnalysisGraph.
 void getNullGraph(mxAnalysisGraph aGraph, int numVertices)
           
 void getPathGraph(mxAnalysisGraph aGraph, int numVertices)
           
 void getPetersenGraph(mxAnalysisGraph aGraph)
           
 int getRandomInt(int minValue, int maxValue)
           
 void getSimpleRandomGraph(mxAnalysisGraph aGraph, int numNodes, int numEdges, boolean allowSelfLoops, boolean allowMultipleEdges, boolean forceConnected)
          Generates a random graph
 void getSimpleRandomTree(mxAnalysisGraph aGraph, int vertexCount)
          Generates a random tree graph
 void getStarGraph(mxAnalysisGraph aGraph, int numVertices)
           
 int[] getVertexGridCoords(int xDim, int yDim, int value)
          use this only with the grid graph, and various chess-board graphs, because of vertex ordering
 void getWheelGraph(mxAnalysisGraph aGraph, int numVertices)
           
 void getWindmillGraph(mxAnalysisGraph aGraph, int numBranches, int branchSize)
           
 void oneSpanningTree(mxAnalysisGraph aGraph, boolean forceConnected, boolean forceSimple)
           
 void setBipartiteGraphSpacing(mxAnalysisGraph aGraph, int numVerticesGroup1, int numVerticesGroup2, double vertexSpacing, double groupSpacing)
          Sets the physical spacing between vertices in a bipartite graph.
 void setCostFunction(mxCostFunction costFunction)
           
 void setGridGraphSpacing(mxAnalysisGraph aGraph, double xSpacing, double ySpacing, int numColumns, int numRows)
          Sets the physical spacing between vertices in a grid graph.
 void setPathGraphSpacing(mxAnalysisGraph aGraph, double spacing)
          Sets the physical spacing between vertices in a path graph.
 void setStarGraphLayout(mxAnalysisGraph aGraph, double graphSize)
          Sets the physical size of a star graph.
 void setWindmillGraphLayout(mxAnalysisGraph aGraph, int numBranches, int numVerticesInBranch, double graphSize)
          Sets the layout of a windmill graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphGenerator

public mxGraphGenerator(mxGeneratorFunction generatorFunction,
                        mxCostFunction costFunction)
Method Detail

getNullGraph

public void getNullGraph(mxAnalysisGraph aGraph,
                         int numVertices)
Parameters:
aGraph -
numVertexes -

getCompleteGraph

public void getCompleteGraph(mxAnalysisGraph aGraph,
                             int numVertices)
Parameters:
aGraph -
numVertices - number of vertices

getGridGraph

public void getGridGraph(mxAnalysisGraph aGraph,
                         int numColumns,
                         int numRows)
Parameters:
aGraph -
numRows - - number of rows in the grid graph
numColumns - - number of columns in the grid graph

setGridGraphSpacing

public void setGridGraphSpacing(mxAnalysisGraph aGraph,
                                double xSpacing,
                                double ySpacing,
                                int numColumns,
                                int numRows)
Sets the physical spacing between vertices in a grid graph. This works for now only for a graph generated with mxGraphCreator.getGridGraph() only after creating the graph

Parameters:
aGraph -
xSpacing - - horizontal spacing between vertices
ySpacing - - vertical spacing between vertices
numRows - - number of rows in the grid graph
numColumns - - number of columns in the grid graph

getBipartiteGraph

public void getBipartiteGraph(mxAnalysisGraph aGraph,
                              int numVerticesGroup1,
                              int numVerticesGroup2)
Parameters:
aGraph -
numVerticesGroup1 - number of vertices in group 1
numVerticesGroup2 - number of vertices in group 2

setBipartiteGraphSpacing

public void setBipartiteGraphSpacing(mxAnalysisGraph aGraph,
                                     int numVerticesGroup1,
                                     int numVerticesGroup2,
                                     double vertexSpacing,
                                     double groupSpacing)
Sets the physical spacing between vertices in a bipartite graph. This works for now only for a graph generated with mxGraphCreator.getBipartiteGraph() only after creating the graph

Parameters:
aGraph -
numVerticesGroup1 - - number of vertices in group 1
numVerticesGroup2 - - number of vertices in group 2
vertexSpacing - - vertical spacing between vertices in the same group
groupSpacing - - spacing between groups

getCompleteBipartiteGraph

public void getCompleteBipartiteGraph(mxAnalysisGraph aGraph,
                                      int numVerticesGroup1,
                                      int numVerticesGroup2)
Parameters:
aGraph -
numVerticesGroup1 - number of vertices in group 1
numVerticesGroup2 - number of vertices in group 2

getKnightGraph

public void getKnightGraph(mxAnalysisGraph aGraph,
                           int xDim,
                           int yDim)
Parameters:
aGraph -
xDim -
yDim -

getKnightMoveVertexes

public Object[] getKnightMoveVertexes(mxAnalysisGraph aGraph,
                                      int xDim,
                                      int yDim,
                                      int xCoord,
                                      int yCoord)
Parameters:
aGraph -
xDim - x dimension of chess-board, size starts from 1
yDim - y dimension of chess-board, size starts from 1
xCoord - x coordinate on the chess-board, coordinate starts from 1
yCoord - y coordinate on the chess-board, coordinate starts from 1
Returns:
a list of ALL vertexes which would be valid moves from the current position, regardless if they were visited or not Note that both dimensions and both coordinates must be positive

getVertexGridCoords

public int[] getVertexGridCoords(int xDim,
                                 int yDim,
                                 int value)
use this only with the grid graph, and various chess-board graphs, because of vertex ordering

Parameters:
xDim - x dimension of chess-board, size starts from 1
yDim - y dimension of chess-board, size starts from 1
value - value of the vertex that needs coordinates returned
Returns:
int[x,y] where x and y are the coordinates in the grid or chess-board Note that both dimensions must be positive

getKingGraph

public void getKingGraph(mxAnalysisGraph aGraph,
                         int xDim,
                         int yDim)
Parameters:
xDim -
yDim -
weights - Return a king graph of size xDim x yDim Note that the minimum size is 4x4

getKingMoveVertexes

public Object[] getKingMoveVertexes(mxAnalysisGraph aGraph,
                                    int xDim,
                                    int yDim,
                                    int xCoord,
                                    int yCoord)
Parameters:
aGraph -
xDim - x dimension of the chessboard
yDim - y dimension of the chessboard
xCoord - the current x position of the king
yCoord - the current y position of the king
Returns:
list of all possible moves of a king from the specified position Note that both dimensions and both coordinates must be positive

getPetersenGraph

public void getPetersenGraph(mxAnalysisGraph aGraph)
Parameters:
aGraph - Returns a Petersen graph

getPathGraph

public void getPathGraph(mxAnalysisGraph aGraph,
                         int numVertices)
Parameters:
aGraph -
numVertices - Returns a path graph

setPathGraphSpacing

public void setPathGraphSpacing(mxAnalysisGraph aGraph,
                                double spacing)
Sets the physical spacing between vertices in a path graph. This works for now only for a graph generated with mxGraphCreator.getPathGraph() only after creating the graph

Parameters:
aGraph -
spacing -

getStarGraph

public void getStarGraph(mxAnalysisGraph aGraph,
                         int numVertices)
Parameters:
aGraph -
numVertices - Returns a star graph Note that minimum vertex number is 4

setStarGraphLayout

public void setStarGraphLayout(mxAnalysisGraph aGraph,
                               double graphSize)
Sets the physical size of a star graph. This works for now only for a graph generated with mxGraphCreator.getStarGraph() and getWheelGraph()

Parameters:
aGraph -
graphSize -

getWheelGraph

public void getWheelGraph(mxAnalysisGraph aGraph,
                          int numVertices)
Parameters:
aGraph -
numVertices - Returns a wheel graph. Note that numVertices has to be at least 4.

getFriendshipWindmillGraph

public void getFriendshipWindmillGraph(mxAnalysisGraph aGraph,
                                       int numBranches,
                                       int branchSize)
Parameters:
aGraph -
numBranches - number of branches (minimum >= 2)
branchSize - number of vertices in a single branch (minimum >= 2) Returns a friendship windmill graph (aka Dutch windmill)

getWindmillGraph

public void getWindmillGraph(mxAnalysisGraph aGraph,
                             int numBranches,
                             int branchSize)
Parameters:
aGraph -
numBranches - - number of branches (minimum >= 2)
branchSize - - number of vertices in a single branch (minimum >= 2) Returns a windmill graph

setWindmillGraphLayout

public void setWindmillGraphLayout(mxAnalysisGraph aGraph,
                                   int numBranches,
                                   int numVerticesInBranch,
                                   double graphSize)
Sets the layout of a windmill graph. Use this method only for graphs generated with mxGraphGenerator.getWindmillGraph() and getFriendshitWindmillGraph()

Parameters:
aGraph -
numBranches -
numVerticesInBranch -
graphSize -

getSimpleRandomGraph

public void getSimpleRandomGraph(mxAnalysisGraph aGraph,
                                 int numNodes,
                                 int numEdges,
                                 boolean allowSelfLoops,
                                 boolean allowMultipleEdges,
                                 boolean forceConnected)
Generates a random graph

Parameters:
aGraph -
numNodes - number of vertexes
numEdges - number of edges (may be inaccurate if forceConnected is set to true
allowSelfLoops - if true, there will be a chance that self loops will be generated too
allowMultipleEdges - if true, there will be a chance that multiple edges will be generated (multiple edges between the same two vertices)
forceConnected - if true the resulting graph will be always connected, but this may alter numEdges

getSimpleRandomTree

public void getSimpleRandomTree(mxAnalysisGraph aGraph,
                                int vertexCount)
Generates a random tree graph

Parameters:
aGraph -
vertexCount -

getNewEdgeValue

public Double getNewEdgeValue(mxAnalysisGraph aGraph)
Creates a new edge value based on graph properties in mxAnalysisGraph. Used mostly when creating new edges during graph generation.

Parameters:
aGraph -
Returns:

getGeneratorFunction

public static mxGeneratorFunction getGeneratorFunction(mxGraph graph,
                                                       boolean weighted,
                                                       double minWeight,
                                                       double maxWeight)
Parameters:
graph -
weighted - if true, the edges will be weighted, otherwise all will have default value (1.0)
minWeight - minimum edge weight if weighted
maxWeight - maximum edge weight if weighted
Returns:
a generator function

getGeneratorFunction

public mxGeneratorFunction getGeneratorFunction()

getRandomInt

public int getRandomInt(int minValue,
                        int maxValue)
Parameters:
minValue -
maxValue -
Returns:
a random integer in the interval [minValue, maxValue]

oneSpanningTree

public void oneSpanningTree(mxAnalysisGraph aGraph,
                            boolean forceConnected,
                            boolean forceSimple)
                     throws StructuralException
Parameters:
graph -
forceConnected - if true, an unconnected graph is made connected
forceSimple - if true, a non-simple graph is made simple Calculates one spanning tree of graph, which doesn't have to be but can be minimal (this is faster than minimal spanning tree, so if you need any spanning tree, use this one) Self loops and multiple edges are automatically removed! Also, unconnected graphs are made connected!
Throws:
StructuralException - the graph has to be simple (no self-loops and no multiple edges)

getKnightTour

public void getKnightTour(mxAnalysisGraph aGraph,
                          int xDim,
                          int yDim,
                          int startVertexValue)
                   throws StructuralException
Parameters:
aGraph -
xDim - x dimension of the chessboard
yDim - y dimension of the chessboard
startVertexValue - vertex where the tour will start
Throws:
StructuralException - not all size combinations are allowed, see wikipedia for a more detailed explanation Returns a Knight's Tour graph

getCostFunction

public mxCostFunction getCostFunction()

setCostFunction

public void setCostFunction(mxCostFunction costFunction)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxAnalysisGraph.html0000664000175000017500000010572312176166716027411 0ustar sylvestresylvestre mxAnalysisGraph (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxAnalysisGraph

java.lang.Object
  extended by com.mxgraph.analysis.mxAnalysisGraph

public class mxAnalysisGraph
extends Object

Implements a collection of utility methods abstracting the graph structure taking into account graph properties such as visible/non-visible traversal


Field Summary
protected  mxGraphGenerator generator
           
protected  mxGraph graph
           
protected  Map<String,Object> properties
           
 
Constructor Summary
mxAnalysisGraph()
           
 
Method Summary
 Object[] getChildCells(Object parent, boolean vertices, boolean edges)
           
 Object[] getChildEdges(Object parent)
           
 Object[] getChildVertices(Object parent)
           
 Object[] getEdges(Object cell, Object parent, boolean includeLoops, boolean recurse)
          Returns the incoming and/or outgoing edges for the given cell.
 Object[] getEdges(Object cell, Object parent, boolean incoming, boolean outgoing, boolean includeLoops, boolean recurse)
          Returns the incoming and/or outgoing edges for the given cell.
 mxGraphGenerator getGenerator()
           
 mxGraph getGraph()
           
 Object[] getOpposites(Object[] edges, Object terminal)
          Returns all distinct opposite cells for the specified terminal on the given edges.
 Object[] getOpposites(Object[] edges, Object terminal, boolean sources, boolean targets)
          Returns all distinct opposite cells for the specified terminal on the given edges.
 Map<String,Object> getProperties()
           
 Object getTerminal(Object edge, boolean isSource)
           
 void setGenerator(mxGraphGenerator generator)
           
 void setGraph(mxGraph graph)
           
 void setProperties(Map<String,Object> properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Map<String,Object> properties

generator

protected mxGraphGenerator generator

graph

protected mxGraph graph
Constructor Detail

mxAnalysisGraph

public mxAnalysisGraph()
Method Detail

getEdges

public Object[] getEdges(Object cell,
                         Object parent,
                         boolean incoming,
                         boolean outgoing,
                         boolean includeLoops,
                         boolean recurse)
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell.

Parameters:
cell - Cell whose edges should be returned.
parent - Optional parent. If specified the opposite end of any edge must be a child of that parent in order for the edge to be returned. The recurse parameter specifies whether or not it must be the direct child or the parent just be an ancestral parent.
incoming - Specifies if incoming edges should be included in the result.
outgoing - Specifies if outgoing edges should be included in the result.
includeLoops - Specifies if loops should be included in the result.
recurse - Specifies if the parent specified only need be an ancestral parent, true, or the direct parent, false
Returns:
Returns the edges connected to the given cell.

getEdges

public Object[] getEdges(Object cell,
                         Object parent,
                         boolean includeLoops,
                         boolean recurse)
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell.

Parameters:
cell - Cell whose edges should be returned.
parent - Optional parent. If specified the opposite end of any edge must be a child of that parent in order for the edge to be returned. The recurse parameter specifies whether or not it must be the direct child or the parent just be an ancestral parent.
includeLoops - Specifies if loops should be included in the result.
recurse - Specifies if the parent specified only need be an ancestral parent, true, or the direct parent, false
Returns:
Returns the edges connected to the given cell.

getChildVertices

public Object[] getChildVertices(Object parent)
Parameters:
parent -
Returns:
all vertices of the given parent

getChildEdges

public Object[] getChildEdges(Object parent)
Parameters:
parent -
Returns:
all edges of the given parent

getTerminal

public Object getTerminal(Object edge,
                          boolean isSource)
Parameters:
edge -
isSource -
Returns:

getChildCells

public Object[] getChildCells(Object parent,
                              boolean vertices,
                              boolean edges)

getOpposites

public Object[] getOpposites(Object[] edges,
                             Object terminal,
                             boolean sources,
                             boolean targets)
Returns all distinct opposite cells for the specified terminal on the given edges.

Parameters:
edges - Edges whose opposite terminals should be returned.
terminal - Terminal that specifies the end whose opposite should be returned.
sources - Specifies if source terminals should be included in the result.
targets - Specifies if target terminals should be included in the result.
Returns:
Returns the cells at the opposite ends of the given edges.

getOpposites

public Object[] getOpposites(Object[] edges,
                             Object terminal)
Returns all distinct opposite cells for the specified terminal on the given edges.

Parameters:
edges - Edges whose opposite terminals should be returned.
terminal - Terminal that specifies the end whose opposite should be returned.
Returns:
Returns the cells at the opposite ends of the given edges.

getProperties

public Map<String,Object> getProperties()

setProperties

public void setProperties(Map<String,Object> properties)

getGraph

public mxGraph getGraph()

setGraph

public void setGraph(mxGraph graph)

getGenerator

public mxGraphGenerator getGenerator()

setGenerator

public void setGenerator(mxGraphGenerator generator)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxICostFunction.html0000664000175000017500000002421312176166716027365 0ustar sylvestresylvestre mxICostFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Interface mxICostFunction

All Known Implementing Classes:
mxConstantCostFunction, mxConstCostFunction, mxCostFunction, mxDistanceCostFunction, mxDoubleValCostFunction, mxGeneratorConstFunction, mxGeneratorFunction, mxGeneratorRandomFunction, mxGeneratorRandomIntFunction

public interface mxICostFunction

The cost function takes a cell and returns it's cost as a double. Two typical examples of cost functions are the euclidian length of edges or a constant number for each edge. To use one of the built-in cost functions, use either new mxDistanceCostFunction(graph) or new mxConstantCostFunction(1).


Method Summary
 double getCost(mxCellState state)
          Evaluates the cost of the given cell state.
 

Method Detail

getCost

double getCost(mxCellState state)
Evaluates the cost of the given cell state.

Parameters:
state - The cell state to be evaluated
Returns:
Returns the cost to traverse the given cell state.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxDistanceCostFunction.html0000664000175000017500000003241012176166716030725 0ustar sylvestresylvestre mxDistanceCostFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxDistanceCostFunction

java.lang.Object
  extended by com.mxgraph.analysis.mxDistanceCostFunction
All Implemented Interfaces:
mxICostFunction

public class mxDistanceCostFunction
extends Object
implements mxICostFunction

Implements a cost function for the Euclidean length of an edge.


Constructor Summary
mxDistanceCostFunction()
           
 
Method Summary
 double getCost(mxCellState state)
          Returns the Euclidean length of the edge defined by the absolute points in the given state or 0 if no points are defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxDistanceCostFunction

public mxDistanceCostFunction()
Method Detail

getCost

public double getCost(mxCellState state)
Returns the Euclidean length of the edge defined by the absolute points in the given state or 0 if no points are defined.

Specified by:
getCost in interface mxICostFunction
Parameters:
state - The cell state to be evaluated
Returns:
Returns the cost to traverse the given cell state.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/0000775000175000017500000000000012176166726025301 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxGraphGenerator.html0000664000175000017500000002333612176166726031453 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxGraphGenerator (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxGraphGenerator

Packages that use mxGraphGenerator
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxGraphGenerator in com.mxgraph.analysis
 

Fields in com.mxgraph.analysis declared as mxGraphGenerator
protected  mxGraphGenerator mxAnalysisGraph.generator
           
 

Methods in com.mxgraph.analysis that return mxGraphGenerator
 mxGraphGenerator mxAnalysisGraph.getGenerator()
           
 

Methods in com.mxgraph.analysis with parameters of type mxGraphGenerator
 void mxAnalysisGraph.setGenerator(mxGraphGenerator generator)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxAnalysisGraph.html0000664000175000017500000014031612176166726031306 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxAnalysisGraph (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxAnalysisGraph

Packages that use mxAnalysisGraph
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxAnalysisGraph in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis with parameters of type mxAnalysisGraph
static boolean mxGraphStructure.areConnected(mxAnalysisGraph aGraph, Object sourceVertex, Object targetVertex)
           
static List<Map<Object,Object>> mxTraversal.bellmanFord(mxAnalysisGraph aGraph, Object startVertex)
          Implements the Bellman-Ford shortest path from startVertex to all vertices.
static void mxTraversal.bfs(mxAnalysisGraph aGraph, Object startVertex, mxGraph.mxICellVisitor visitor)
          Implements a recursive breadth first search starting from the specified cell.
static void mxGraphStructure.complementaryGraph(mxAnalysisGraph aGraph)
          Makes the complement of aGraph
static void mxTraversal.dfs(mxAnalysisGraph aGraph, Object startVertex, mxGraph.mxICellVisitor visitor)
          Implements a recursive depth first search starting from the specified cell.
static void mxTraversal.dijkstra(mxAnalysisGraph aGraph, Object startVertex, Object endVertex, mxGraph.mxICellVisitor visitor)
          Implements the Dijkstra's shortest path from startVertex to endVertex.
static ArrayList<Object[][]> mxTraversal.floydRoyWarshall(mxAnalysisGraph aGraph)
          Implements the Floyd-Roy-Warshall (aka WFI) shortest path algorithm between all vertices.
 void mxGraphGenerator.getBipartiteGraph(mxAnalysisGraph aGraph, int numVerticesGroup1, int numVerticesGroup2)
           
 void mxGraphGenerator.getCompleteBipartiteGraph(mxAnalysisGraph aGraph, int numVerticesGroup1, int numVerticesGroup2)
           
 void mxGraphGenerator.getCompleteGraph(mxAnalysisGraph aGraph, int numVertices)
           
static Object mxGraphStructure.getConnectingEdge(mxAnalysisGraph aGraph, Object vertexOne, Object vertexTwo)
           
static Object[] mxGraphStructure.getCutEdges(mxAnalysisGraph aGraph)
           
static Object[] mxGraphStructure.getCutVertices(mxAnalysisGraph aGraph)
           
static Object mxGraphStructure.getDirectedLeaf(mxAnalysisGraph aGraph, Object parent)
           
 void mxGraphGenerator.getFriendshipWindmillGraph(mxAnalysisGraph aGraph, int numBranches, int branchSize)
           
static Object[][] mxGraphStructure.getGraphComponents(mxAnalysisGraph aGraph)
           
 void mxGraphGenerator.getGridGraph(mxAnalysisGraph aGraph, int numColumns, int numRows)
           
 void mxGraphGenerator.getKingGraph(mxAnalysisGraph aGraph, int xDim, int yDim)
           
 Object[] mxGraphGenerator.getKingMoveVertexes(mxAnalysisGraph aGraph, int xDim, int yDim, int xCoord, int yCoord)
           
 void mxGraphGenerator.getKnightGraph(mxAnalysisGraph aGraph, int xDim, int yDim)
           
 Object[] mxGraphGenerator.getKnightMoveVertexes(mxAnalysisGraph aGraph, int xDim, int yDim, int xCoord, int yCoord)
           
 void mxGraphGenerator.getKnightTour(mxAnalysisGraph aGraph, int xDim, int yDim, int startVertexValue)
           
static Object mxGraphStructure.getLowestDegreeVertex(mxAnalysisGraph aGraph, Object[] omitVertex)
           
 Double mxGraphGenerator.getNewEdgeValue(mxAnalysisGraph aGraph)
          Creates a new edge value based on graph properties in mxAnalysisGraph.
 void mxGraphGenerator.getNullGraph(mxAnalysisGraph aGraph, int numVertices)
           
 void mxGraphGenerator.getPathGraph(mxAnalysisGraph aGraph, int numVertices)
           
 void mxGraphGenerator.getPetersenGraph(mxAnalysisGraph aGraph)
           
 void mxGraphGenerator.getSimpleRandomGraph(mxAnalysisGraph aGraph, int numNodes, int numEdges, boolean allowSelfLoops, boolean allowMultipleEdges, boolean forceConnected)
          Generates a random graph
 void mxGraphGenerator.getSimpleRandomTree(mxAnalysisGraph aGraph, int vertexCount)
          Generates a random tree graph
static Object[] mxGraphStructure.getSinkVertices(mxAnalysisGraph aGraph)
           
static Object[] mxGraphStructure.getSourceVertices(mxAnalysisGraph aGraph)
           
 void mxGraphGenerator.getStarGraph(mxAnalysisGraph aGraph, int numVertices)
           
static Object mxGraphStructure.getVertexWithValue(mxAnalysisGraph aGraph, int value)
           
static Object[] mxTraversal.getWFIPath(mxAnalysisGraph aGraph, ArrayList<Object[][]> FWIresult, Object startVertex, Object targetVertex)
          This method helps the user to get the desired data from the result of the Floyd-Roy-Warshall algorithm.
 void mxGraphGenerator.getWheelGraph(mxAnalysisGraph aGraph, int numVertices)
           
 void mxGraphGenerator.getWindmillGraph(mxAnalysisGraph aGraph, int numBranches, int branchSize)
           
static int mxGraphStructure.indegree(mxAnalysisGraph aGraph, Object vertex)
           
static boolean mxGraphStructure.isBiconnected(mxAnalysisGraph aGraph)
           
static boolean mxGraphStructure.isConnected(mxAnalysisGraph aGraph)
           
static boolean mxGraphStructure.isCutEdge(mxAnalysisGraph aGraph, Object edge)
           
static boolean mxGraphStructure.isCutVertex(mxAnalysisGraph aGraph, Object vertex)
           
static boolean mxGraphStructure.isCyclicDirected(mxAnalysisGraph aGraph)
           
static boolean mxGraphStructure.isCyclicUndirected(mxAnalysisGraph aGraph)
           
static boolean mxGraphStructure.isSimple(mxAnalysisGraph aGraph)
           
static boolean mxGraphStructure.isTree(mxAnalysisGraph aGraph)
           
static void mxGraphStructure.makeConnected(mxAnalysisGraph aGraph)
          Makes the graph connected
static void mxGraphStructure.makeSimple(mxAnalysisGraph aGraph)
           
static void mxGraphStructure.makeTreeDirected(mxAnalysisGraph aGraph, Object startVertex)
          Makes a tree graph directed from the source to the leaves
 void mxGraphGenerator.oneSpanningTree(mxAnalysisGraph aGraph, boolean forceConnected, boolean forceSimple)
           
static int mxGraphStructure.outdegree(mxAnalysisGraph aGraph, Object vertex)
           
static int mxGraphStructure.regularity(mxAnalysisGraph aGraph)
           
 void mxGraphGenerator.setBipartiteGraphSpacing(mxAnalysisGraph aGraph, int numVerticesGroup1, int numVerticesGroup2, double vertexSpacing, double groupSpacing)
          Sets the physical spacing between vertices in a bipartite graph.
static void mxGraphStructure.setDefaultGraphStyle(mxAnalysisGraph aGraph, boolean resetEdgeValues)
          Sets the style of the graph to that as in GraphEditor
 void mxGraphGenerator.setGridGraphSpacing(mxAnalysisGraph aGraph, double xSpacing, double ySpacing, int numColumns, int numRows)
          Sets the physical spacing between vertices in a grid graph.
 void mxGraphGenerator.setPathGraphSpacing(mxAnalysisGraph aGraph, double spacing)
          Sets the physical spacing between vertices in a path graph.
 void mxGraphGenerator.setStarGraphLayout(mxAnalysisGraph aGraph, double graphSize)
          Sets the physical size of a star graph.
 void mxGraphGenerator.setWindmillGraphLayout(mxAnalysisGraph aGraph, int numBranches, int numVerticesInBranch, double graphSize)
          Sets the layout of a windmill graph.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxICostFunction.html0000664000175000017500000004611712176166726031274 0ustar sylvestresylvestre Uses of Interface com.mxgraph.analysis.mxICostFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.analysis.mxICostFunction

Packages that use mxICostFunction
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.costfunction   
com.mxgraph.generatorfunction   
 

Uses of mxICostFunction in com.mxgraph.analysis
 

Classes in com.mxgraph.analysis that implement mxICostFunction
 class mxConstantCostFunction
          Implements a cost function for a constant cost per traversed cell.
 class mxDistanceCostFunction
          Implements a cost function for the Euclidean length of an edge.
 

Methods in com.mxgraph.analysis with parameters of type mxICostFunction
 Object[] mxGraphAnalysis.getMinimumSpanningTree(mxGraph graph, Object[] v, mxICostFunction cf, boolean directed)
          Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
 Object[] mxGraphAnalysis.getMinimumSpanningTree(mxGraph graph, Object[] v, Object[] e, mxICostFunction cf)
          Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
 Object[] mxGraphAnalysis.getShortestPath(mxGraph graph, Object from, Object to, mxICostFunction cf, int steps, boolean directed)
          Returns the shortest path between two cells or their descendants represented as an array of edges in order of traversal.
 mxCellState[] mxGraphAnalysis.sort(mxCellState[] states, mxICostFunction cf)
          Returns a sorted set for cells with respect to cf.
 double mxGraphAnalysis.sum(mxCellState[] states, mxICostFunction cf)
          Returns the sum of all cost for cells with respect to cf.
 

Uses of mxICostFunction in com.mxgraph.costfunction
 

Classes in com.mxgraph.costfunction that implement mxICostFunction
 class mxConstCostFunction
           
 class mxCostFunction
           
 class mxDoubleValCostFunction
          A cost function that assumes that edge value is of type "double" or "String" and returns that value.
 

Uses of mxICostFunction in com.mxgraph.generatorfunction
 

Classes in com.mxgraph.generatorfunction that implement mxICostFunction
 class mxGeneratorConstFunction
           
 class mxGeneratorFunction
           
 class mxGeneratorRandomFunction
           
 class mxGeneratorRandomIntFunction
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxDistanceCostFunction.html0000664000175000017500000001403212176166726032625 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxDistanceCostFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxDistanceCostFunction

No usage of com.mxgraph.analysis.mxDistanceCostFunction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxGraphAnalysis.html0000664000175000017500000002342212176166726031304 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxGraphAnalysis (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxGraphAnalysis

Packages that use mxGraphAnalysis
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxGraphAnalysis in com.mxgraph.analysis
 

Fields in com.mxgraph.analysis declared as mxGraphAnalysis
protected static mxGraphAnalysis mxGraphAnalysis.instance
          Holds the shared instance of this class.
 

Methods in com.mxgraph.analysis that return mxGraphAnalysis
static mxGraphAnalysis mxGraphAnalysis.getInstance()
           
 

Methods in com.mxgraph.analysis with parameters of type mxGraphAnalysis
static void mxGraphAnalysis.setInstance(mxGraphAnalysis instance)
          Sets the shared instance of this class.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxUnionFind.Node.html0000664000175000017500000003327612176166726031324 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxUnionFind.Node (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxUnionFind.Node

Packages that use mxUnionFind.Node
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxUnionFind.Node in com.mxgraph.analysis
 

Fields in com.mxgraph.analysis declared as mxUnionFind.Node
protected  mxUnionFind.Node mxUnionFind.Node.parent
          Reference to the parent node.
 

Fields in com.mxgraph.analysis with type parameters of type mxUnionFind.Node
protected  Map<Object,mxUnionFind.Node> mxUnionFind.nodes
          Maps from elements to nodes
 

Methods in com.mxgraph.analysis that return mxUnionFind.Node
 mxUnionFind.Node mxUnionFind.find(mxUnionFind.Node node)
          Returns the set that contains node.
 mxUnionFind.Node mxUnionFind.getNode(Object element)
          Returns the node that represents element.
 mxUnionFind.Node mxUnionFind.Node.getParent()
           
 

Methods in com.mxgraph.analysis with parameters of type mxUnionFind.Node
 mxUnionFind.Node mxUnionFind.find(mxUnionFind.Node node)
          Returns the set that contains node.
 void mxUnionFind.Node.setParent(mxUnionFind.Node parent)
           
 void mxUnionFind.union(mxUnionFind.Node a, mxUnionFind.Node b)
          Unifies the sets a and b in constant time using a union by rank on the tree size.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/StructuralException.html0000664000175000017500000004044712176166726032227 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.StructuralException (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.StructuralException

Packages that use StructuralException
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of StructuralException in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis that throw StructuralException
static List<Map<Object,Object>> mxTraversal.bellmanFord(mxAnalysisGraph aGraph, Object startVertex)
          Implements the Bellman-Ford shortest path from startVertex to all vertices.
static void mxTraversal.dijkstra(mxAnalysisGraph aGraph, Object startVertex, Object endVertex, mxGraph.mxICellVisitor visitor)
          Implements the Dijkstra's shortest path from startVertex to endVertex.
static ArrayList<Object[][]> mxTraversal.floydRoyWarshall(mxAnalysisGraph aGraph)
          Implements the Floyd-Roy-Warshall (aka WFI) shortest path algorithm between all vertices.
 void mxGraphGenerator.getKnightTour(mxAnalysisGraph aGraph, int xDim, int yDim, int startVertexValue)
           
static Object[] mxGraphStructure.getSinkVertices(mxAnalysisGraph aGraph)
           
static Object[] mxGraphStructure.getSourceVertices(mxAnalysisGraph aGraph)
           
static Object[] mxTraversal.getWFIPath(mxAnalysisGraph aGraph, ArrayList<Object[][]> FWIresult, Object startVertex, Object targetVertex)
          This method helps the user to get the desired data from the result of the Floyd-Roy-Warshall algorithm.
static void mxGraphStructure.makeTreeDirected(mxAnalysisGraph aGraph, Object startVertex)
          Makes a tree graph directed from the source to the leaves
 void mxGraphGenerator.oneSpanningTree(mxAnalysisGraph aGraph, boolean forceConnected, boolean forceSimple)
           
static int mxGraphStructure.regularity(mxAnalysisGraph aGraph)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxFibonacciHeap.Node.html0000664000175000017500000003716512176166726032107 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxFibonacciHeap.Node (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxFibonacciHeap.Node

Packages that use mxFibonacciHeap.Node
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxFibonacciHeap.Node in com.mxgraph.analysis
 

Fields in com.mxgraph.analysis declared as mxFibonacciHeap.Node
protected  mxFibonacciHeap.Node mxFibonacciHeap.min
           
 

Fields in com.mxgraph.analysis with type parameters of type mxFibonacciHeap.Node
protected  Map<Object,mxFibonacciHeap.Node> mxFibonacciHeap.nodes
          Maps from elements to nodes
 

Methods in com.mxgraph.analysis that return mxFibonacciHeap.Node
 mxFibonacciHeap.Node mxFibonacciHeap.getNode(Object element, boolean create)
          Returns the node that represents element.
 mxFibonacciHeap.Node mxFibonacciHeap.min()
          Returns the smallest element in the heap.
 mxFibonacciHeap.Node mxFibonacciHeap.removeMin()
          Removes the smallest element from the heap.
 

Methods in com.mxgraph.analysis with parameters of type mxFibonacciHeap.Node
protected  void mxFibonacciHeap.cascadingCut(mxFibonacciHeap.Node y)
          Performs a cascading cut operation.
protected  void mxFibonacciHeap.cut(mxFibonacciHeap.Node x, mxFibonacciHeap.Node y)
          The reverse of the link operation: removes x from the child list of y.
 void mxFibonacciHeap.decreaseKey(mxFibonacciHeap.Node x, double k)
          Decreases the key value for a heap node, given the new value to take on.
 void mxFibonacciHeap.delete(mxFibonacciHeap.Node x)
          Deletes a node from the heap given the reference to the node.
 void mxFibonacciHeap.insert(mxFibonacciHeap.Node node, double key)
          Inserts a new data element into the heap.
protected  void mxFibonacciHeap.link(mxFibonacciHeap.Node y, mxFibonacciHeap.Node x)
          Make node y a child of node x.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxGraphStructure.html0000664000175000017500000001373612176166726031530 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxGraphStructure (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxGraphStructure

No usage of com.mxgraph.analysis.mxGraphStructure


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxFibonacciHeap.html0000664000175000017500000002401112176166726031205 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxFibonacciHeap (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxFibonacciHeap

Packages that use mxFibonacciHeap
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxFibonacciHeap in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis that return mxFibonacciHeap
protected  mxFibonacciHeap mxGraphAnalysis.createPriorityQueue()
          Hook for subclassers to provide a custom fibonacci heap.
static mxFibonacciHeap mxFibonacciHeap.union(mxFibonacciHeap h1, mxFibonacciHeap h2)
          Joins two Fibonacci heaps into a new one.
 

Methods in com.mxgraph.analysis with parameters of type mxFibonacciHeap
static mxFibonacciHeap mxFibonacciHeap.union(mxFibonacciHeap h1, mxFibonacciHeap h2)
          Joins two Fibonacci heaps into a new one.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxGraphProperties.GraphType.html0000664000175000017500000002160612176166726033561 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxGraphProperties.GraphType (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxGraphProperties.GraphType

Packages that use mxGraphProperties.GraphType
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxGraphProperties.GraphType in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis that return mxGraphProperties.GraphType
static mxGraphProperties.GraphType mxGraphProperties.GraphType.valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGraphProperties.GraphType[] mxGraphProperties.GraphType.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxUnionFind.html0000664000175000017500000002215312176166726030430 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxUnionFind (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxUnionFind

Packages that use mxUnionFind
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
 

Uses of mxUnionFind in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis that return mxUnionFind
protected  mxUnionFind mxGraphAnalysis.createUnionFind(Object[] v)
          Hook for subclassers to provide a custom union find structure.
 mxUnionFind mxGraphAnalysis.getConnectionComponents(mxGraph graph, Object[] v, Object[] e)
          Returns a union find structure representing the connection components of G=(E,V).
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxTraversal.html0000664000175000017500000001365412176166726030510 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxTraversal (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxTraversal

No usage of com.mxgraph.analysis.mxTraversal


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxGraphProperties.html0000664000175000017500000001375012176166726031660 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxGraphProperties (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxGraphProperties

No usage of com.mxgraph.analysis.mxGraphProperties


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/class-use/mxConstantCostFunction.html0000664000175000017500000001403212176166726032664 0ustar sylvestresylvestre Uses of Class com.mxgraph.analysis.mxConstantCostFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.analysis.mxConstantCostFunction

No usage of com.mxgraph.analysis.mxConstantCostFunction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/package-frame.html0000664000175000017500000000570212176166726026757 0ustar sylvestresylvestre com.mxgraph.analysis (JGraph X 2.1.0.7 API Specification) com.mxgraph.analysis
Interfaces 
mxICostFunction
Classes 
mxAnalysisGraph
mxConstantCostFunction
mxDistanceCostFunction
mxFibonacciHeap
mxFibonacciHeap.Node
mxGraphAnalysis
mxGraphGenerator
mxGraphProperties
mxGraphStructure
mxTraversal
mxUnionFind
Enums 
mxGraphProperties.GraphType
Exceptions 
StructuralException
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxGraphAnalysis.html0000664000175000017500000010233312176166716027403 0ustar sylvestresylvestre mxGraphAnalysis (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxGraphAnalysis

java.lang.Object
  extended by com.mxgraph.analysis.mxGraphAnalysis

public class mxGraphAnalysis
extends Object

A singleton class that provides algorithms for graphs. Assume these variables for the following examples:
mxICostFunction cf = mxDistanceCostFunction(); Object[] v = graph.getChildVertices(graph.getDefaultParent()); Object[] e = graph.getChildEdges(graph.getDefaultParent()); mxGraphAnalysis mga = mxGraphAnalysis.getInstance();

Shortest Path (Dijkstra)

For example, to find the shortest path between the first and the second selected cell in a graph use the following code:

Object[] path = mga.getShortestPath(graph, from, to, cf, v.length, true);

Minimum Spanning Tree

This algorithm finds the set of edges with the minimal length that connect all vertices. This algorithm can be used as follows:
Prim
mga.getMinimumSpanningTree(graph, v, cf, true))
Kruskal
mga.getMinimumSpanningTree(graph, v, e, cf))

Connection Components

The union find may be used as follows to determine whether two cells are connected: boolean connected = uf.differ(vertex1, vertex2).

See Also:
mxICostFunction

Field Summary
protected static mxGraphAnalysis instance
          Holds the shared instance of this class.
 
Constructor Summary
protected mxGraphAnalysis()
           
 
Method Summary
protected  mxFibonacciHeap createPriorityQueue()
          Hook for subclassers to provide a custom fibonacci heap.
protected  mxUnionFind createUnionFind(Object[] v)
          Hook for subclassers to provide a custom union find structure.
 mxUnionFind getConnectionComponents(mxGraph graph, Object[] v, Object[] e)
          Returns a union find structure representing the connection components of G=(E,V).
static mxGraphAnalysis getInstance()
           
 Object[] getMinimumSpanningTree(mxGraph graph, Object[] v, mxICostFunction cf, boolean directed)
          Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
 Object[] getMinimumSpanningTree(mxGraph graph, Object[] v, Object[] e, mxICostFunction cf)
          Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
 Object[] getShortestPath(mxGraph graph, Object from, Object to, mxICostFunction cf, int steps, boolean directed)
          Returns the shortest path between two cells or their descendants represented as an array of edges in order of traversal.
static void setInstance(mxGraphAnalysis instance)
          Sets the shared instance of this class.
 mxCellState[] sort(mxCellState[] states, mxICostFunction cf)
          Returns a sorted set for cells with respect to cf.
 double sum(mxCellState[] states, mxICostFunction cf)
          Returns the sum of all cost for cells with respect to cf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static mxGraphAnalysis instance
Holds the shared instance of this class.

Constructor Detail

mxGraphAnalysis

protected mxGraphAnalysis()
Method Detail

getInstance

public static mxGraphAnalysis getInstance()
Returns:
Returns the sharedInstance.

setInstance

public static void setInstance(mxGraphAnalysis instance)
Sets the shared instance of this class.

Parameters:
instance - The instance to set.

getShortestPath

public Object[] getShortestPath(mxGraph graph,
                                Object from,
                                Object to,
                                mxICostFunction cf,
                                int steps,
                                boolean directed)
Returns the shortest path between two cells or their descendants represented as an array of edges in order of traversal.
This implementation is based on the Dijkstra algorithm.

Parameters:
graph - The object that defines the graph structure
from - The source cell.
to - The target cell (aka sink).
cf - The cost function that defines the edge length.
steps - The maximum number of edges to traverse.
directed - If edge directions should be taken into account.
Returns:
Returns the shortest path as an alternating array of vertices and edges, starting with from and ending with to.
See Also:
createPriorityQueue()

getMinimumSpanningTree

public Object[] getMinimumSpanningTree(mxGraph graph,
                                       Object[] v,
                                       mxICostFunction cf,
                                       boolean directed)
Returns the minimum spanning tree (MST) for the graph defined by G=(E,V). The MST is defined as the set of all vertices with minimal lengths that forms no cycles in G.
This implementation is based on the algorihm by Prim-Jarnik. It uses O(|E|+|V|log|V|) time when used with a Fibonacci heap and a graph whith a double linked-list datastructure, as is the case with the default implementation.

Parameters:
graph - the object that describes the graph
v - the vertices of the graph
cf - the cost function that defines the edge length
Returns:
Returns the MST as an array of edges
See Also:
createPriorityQueue()

getMinimumSpanningTree

public Object[] getMinimumSpanningTree(mxGraph graph,
                                       Object[] v,
                                       Object[] e,
                                       mxICostFunction cf)
Returns the minimum spanning tree (MST) for the graph defined by G=(E,V). The MST is defined as the set of all vertices with minimal lenths that forms no cycles in G.
This implementation is based on the algorihm by Kruskal. It uses O(|E|log|E|)=O(|E|log|V|) time for sorting the edges, O(|V|) create sets, O(|E|) find and O(|V|) union calls on the union find structure, thus yielding no more than O(|E|log|V|) steps. For a faster implementatin

Parameters:
graph - The object that contains the graph.
v - The vertices of the graph.
e - The edges of the graph.
cf - The cost function that defines the edge length.
Returns:
Returns the MST as an array of edges.
See Also:
getMinimumSpanningTree(mxGraph, Object[], mxICostFunction, boolean), createUnionFind(Object[])

getConnectionComponents

public mxUnionFind getConnectionComponents(mxGraph graph,
                                           Object[] v,
                                           Object[] e)
Returns a union find structure representing the connection components of G=(E,V).

Parameters:
graph - The object that contains the graph.
v - The vertices of the graph.
e - The edges of the graph.
Returns:
Returns the connection components in G=(E,V)
See Also:
createUnionFind(Object[])

sort

public mxCellState[] sort(mxCellState[] states,
                          mxICostFunction cf)
Returns a sorted set for cells with respect to cf.

Parameters:
states - the cell states to sort
cf - the cost function that defines the order
Returns:
Returns an ordered set of cells wrt. cf

sum

public double sum(mxCellState[] states,
                  mxICostFunction cf)
Returns the sum of all cost for cells with respect to cf.

Parameters:
states - the cell states to use for the sum
cf - the cost function that defines the costs
Returns:
Returns the sum of all cell cost

createUnionFind

protected mxUnionFind createUnionFind(Object[] v)
Hook for subclassers to provide a custom union find structure.

Parameters:
v - the array of all elements
Returns:
Returns a union find structure for v

createPriorityQueue

protected mxFibonacciHeap createPriorityQueue()
Hook for subclassers to provide a custom fibonacci heap.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxUnionFind.Node.html0000664000175000017500000004015412176166720027410 0ustar sylvestresylvestre mxUnionFind.Node (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxUnionFind.Node

java.lang.Object
  extended by com.mxgraph.analysis.mxUnionFind.Node
Enclosing class:
mxUnionFind

public class mxUnionFind.Node
extends Object

A class that defines the identity of a set.


Field Summary
protected  mxUnionFind.Node parent
          Reference to the parent node.
protected  int size
          The size of the tree.
 
Constructor Summary
mxUnionFind.Node()
           
 
Method Summary
 mxUnionFind.Node getParent()
           
 int getSize()
           
 void setParent(mxUnionFind.Node parent)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected mxUnionFind.Node parent
Reference to the parent node. Root nodes point to themselves.


size

protected int size
The size of the tree. Initial value is 1.

Constructor Detail

mxUnionFind.Node

public mxUnionFind.Node()
Method Detail

getParent

public mxUnionFind.Node getParent()
Returns:
Returns the parent node

setParent

public void setParent(mxUnionFind.Node parent)
Parameters:
parent - The parent node to set.

getSize

public int getSize()
Returns:
Returns the size.

setSize

public void setSize(int size)
Parameters:
size - The size to set.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/StructuralException.html0000664000175000017500000003453712176166720030325 0ustar sylvestresylvestre StructuralException (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class StructuralException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.mxgraph.analysis.StructuralException
All Implemented Interfaces:
Serializable

public class StructuralException
extends Exception

See Also:
Serialized Form

Constructor Summary
StructuralException(String message)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructuralException

public StructuralException(String message)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxFibonacciHeap.Node.html0000664000175000017500000003540012176166716030175 0ustar sylvestresylvestre mxFibonacciHeap.Node (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxFibonacciHeap.Node

java.lang.Object
  extended by com.mxgraph.analysis.mxFibonacciHeap.Node
Enclosing class:
mxFibonacciHeap

public static class mxFibonacciHeap.Node
extends Object

Implements a node of the Fibonacci heap. It holds the information necessary for maintaining the structure of the heap. It also holds the reference to the key value (which is used to determine the heap structure). Additional Node data should be stored in a subclass.


Constructor Summary
mxFibonacciHeap.Node(Object userObject, double key)
          Default constructor.
 
Method Summary
 double getKey()
          Obtain the key for this node.
 Object getUserObject()
           
 void setUserObject(Object userObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxFibonacciHeap.Node

public mxFibonacciHeap.Node(Object userObject,
                            double key)
Default constructor. Initializes the right and left pointers, making this a circular doubly-linked list.

Parameters:
key - The initial key for node.
Method Detail

getKey

public final double getKey()
Obtain the key for this node.

Returns:
the key

getUserObject

public Object getUserObject()
Returns:
Returns the userObject.

setUserObject

public void setUserObject(Object userObject)
Parameters:
userObject - The userObject to set.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxGraphStructure.html0000664000175000017500000013301712176166716027623 0ustar sylvestresylvestre mxGraphStructure (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxGraphStructure

java.lang.Object
  extended by com.mxgraph.analysis.mxGraphStructure

public class mxGraphStructure
extends Object


Constructor Summary
mxGraphStructure()
           
 
Method Summary
static boolean areConnected(mxAnalysisGraph aGraph, Object sourceVertex, Object targetVertex)
           
static void complementaryGraph(mxAnalysisGraph aGraph)
          Makes the complement of aGraph
static Object getConnectingEdge(mxAnalysisGraph aGraph, Object vertexOne, Object vertexTwo)
           
static Object[] getCutEdges(mxAnalysisGraph aGraph)
           
static Object[] getCutVertices(mxAnalysisGraph aGraph)
           
static Object getDirectedLeaf(mxAnalysisGraph aGraph, Object parent)
           
static Object[][] getGraphComponents(mxAnalysisGraph aGraph)
           
static Object getLowestDegreeVertex(mxAnalysisGraph aGraph, Object[] omitVertex)
           
static Object[] getSinkVertices(mxAnalysisGraph aGraph)
           
static Object[] getSourceVertices(mxAnalysisGraph aGraph)
           
static Object getVertexWithValue(mxAnalysisGraph aGraph, int value)
           
static int indegree(mxAnalysisGraph aGraph, Object vertex)
           
static boolean isBiconnected(mxAnalysisGraph aGraph)
           
static boolean isConnected(mxAnalysisGraph aGraph)
           
static boolean isCutEdge(mxAnalysisGraph aGraph, Object edge)
           
static boolean isCutVertex(mxAnalysisGraph aGraph, Object vertex)
           
static boolean isCyclicDirected(mxAnalysisGraph aGraph)
           
static boolean isCyclicUndirected(mxAnalysisGraph aGraph)
           
static boolean isSimple(mxAnalysisGraph aGraph)
           
static boolean isTree(mxAnalysisGraph aGraph)
           
static void makeConnected(mxAnalysisGraph aGraph)
          Makes the graph connected
static void makeSimple(mxAnalysisGraph aGraph)
           
static void makeTreeDirected(mxAnalysisGraph aGraph, Object startVertex)
          Makes a tree graph directed from the source to the leaves
static int outdegree(mxAnalysisGraph aGraph, Object vertex)
           
static int regularity(mxAnalysisGraph aGraph)
           
static void setDefaultGraphStyle(mxAnalysisGraph aGraph, boolean resetEdgeValues)
          Sets the style of the graph to that as in GraphEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphStructure

public mxGraphStructure()
Method Detail

isConnected

public static boolean isConnected(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
true if the graph is connected

isCyclicUndirected

public static boolean isCyclicUndirected(mxAnalysisGraph aGraph)
Parameters:
aGraph -
parent -
Returns:
true if the graph contains cycles regardless of edge direction

isSimple

public static boolean isSimple(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
true if the graph is simple (no self loops and no multiple edges)

isTree

public static boolean isTree(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
true if the graph has the structure of a tree, regardless of edge direction

getLowestDegreeVertex

public static Object getLowestDegreeVertex(mxAnalysisGraph aGraph,
                                           Object[] omitVertex)
Parameters:
aGraph -
omitVertex - vertices in this array will be omitted, set this parameter to null if you don't want this feature
Returns:
a vertex that has lowest degree, or one of those in case if there are more

areConnected

public static boolean areConnected(mxAnalysisGraph aGraph,
                                   Object sourceVertex,
                                   Object targetVertex)
Parameters:
graph -
sourceVertex -
targetVertex -
Returns:
Returns true if the two vertices are connected directly by an edge. If directed, the result is true if they are connected by an edge that points from source to target, if false direction isn't takein into account, just connectivity.

makeSimple

public static void makeSimple(mxAnalysisGraph aGraph)
Parameters:
graph - Make a graph simple (remove parallel edges and self loops)

makeConnected

public static void makeConnected(mxAnalysisGraph aGraph)
Makes the graph connected

Parameters:
aGraph -

getGraphComponents

public static Object[][] getGraphComponents(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
Object[components][vertices]

makeTreeDirected

public static void makeTreeDirected(mxAnalysisGraph aGraph,
                                    Object startVertex)
                             throws StructuralException
Makes a tree graph directed from the source to the leaves

Parameters:
aGraph -
startVertex - - this vertex will be root of the tree (the only source node)
Throws:
StructuralException - - the graph must be a tree (edge direction doesn't matter)

getConnectingEdge

public static Object getConnectingEdge(mxAnalysisGraph aGraph,
                                       Object vertexOne,
                                       Object vertexTwo)
Parameters:
aGraph -
vertexOne -
vertexTwo -
Returns:
an edge that directly connects vertexOne and vertexTwo regardless of direction, null if they are not connected directly

isCyclicDirected

public static boolean isCyclicDirected(mxAnalysisGraph aGraph)
Parameters:
graph -
Returns:
Returns true if the graph has at least one cycle, taking edge direction into account

getDirectedLeaf

public static Object getDirectedLeaf(mxAnalysisGraph aGraph,
                                     Object parent)
Parameters:
graph -
parent -
properties -
Returns:
A helper function for isDirectedCyclic and it isn't for general use. It returns a node that hasn't incoming or outgoing edges. It could be considered a "leaf" in a directed graph, but this definition isn't formal.

complementaryGraph

public static void complementaryGraph(mxAnalysisGraph aGraph)
Makes the complement of aGraph

Parameters:
aGraph -

getVertexWithValue

public static Object getVertexWithValue(mxAnalysisGraph aGraph,
                                        int value)
Parameters:
aGraph - - the graph to search
value - - desired value
Returns:
the first vertex with the wanted value. If none are found, null is returned

setDefaultGraphStyle

public static void setDefaultGraphStyle(mxAnalysisGraph aGraph,
                                        boolean resetEdgeValues)
Sets the style of the graph to that as in GraphEditor

Parameters:
aGraph -
resetEdgeValues - - set to true if you want to re-generate edge weights

regularity

public static int regularity(mxAnalysisGraph aGraph)
                      throws StructuralException
Parameters:
aGraph -
Returns:
the regularity of the graph
Throws:
StructuralException - if the graph is irregular

indegree

public static int indegree(mxAnalysisGraph aGraph,
                           Object vertex)
Parameters:
aGraph -
vertex -
Returns:
indegree of vertex

outdegree

public static int outdegree(mxAnalysisGraph aGraph,
                            Object vertex)
Parameters:
aGraph -
vertex -
Returns:
outdegree of vertex

isCutVertex

public static boolean isCutVertex(mxAnalysisGraph aGraph,
                                  Object vertex)
Parameters:
aGraph -
vertex -
Returns:
true if vertex is a cut vertex

getCutVertices

public static Object[] getCutVertices(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
all cut vertices of aGraph

isCutEdge

public static boolean isCutEdge(mxAnalysisGraph aGraph,
                                Object edge)
Parameters:
aGraph -
edge -
Returns:
true if edge is a cut edge of aGraph

getCutEdges

public static Object[] getCutEdges(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
all cut edges of aGraph

getSourceVertices

public static Object[] getSourceVertices(mxAnalysisGraph aGraph)
                                  throws StructuralException
Parameters:
aGraph -
Returns:
all source vertices of aGraph
Throws:
StructuralException - the graph must be directed

getSinkVertices

public static Object[] getSinkVertices(mxAnalysisGraph aGraph)
                                throws StructuralException
Parameters:
aGraph -
Returns:
all sink vertices of aGraph
Throws:
StructuralException - the graph must be directed

isBiconnected

public static boolean isBiconnected(mxAnalysisGraph aGraph)
Parameters:
aGraph -
Returns:
true if aGraph is biconnected

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxFibonacciHeap.html0000664000175000017500000007434312176166716027322 0ustar sylvestresylvestre mxFibonacciHeap (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxFibonacciHeap

java.lang.Object
  extended by com.mxgraph.analysis.mxFibonacciHeap

public class mxFibonacciHeap
extends Object

This class implements a priority queue.


Nested Class Summary
static class mxFibonacciHeap.Node
          Implements a node of the Fibonacci heap.
 
Field Summary
protected  mxFibonacciHeap.Node min
           
protected  Map<Object,mxFibonacciHeap.Node> nodes
          Maps from elements to nodes
protected  int size
           
 
Constructor Summary
mxFibonacciHeap()
           
 
Method Summary
protected  void cascadingCut(mxFibonacciHeap.Node y)
          Performs a cascading cut operation.
protected  void consolidate()
          Consolidates the trees in the heap by joining trees of equal degree until there are no more trees of equal degree in the root list.
protected  void cut(mxFibonacciHeap.Node x, mxFibonacciHeap.Node y)
          The reverse of the link operation: removes x from the child list of y.
 void decreaseKey(mxFibonacciHeap.Node x, double k)
          Decreases the key value for a heap node, given the new value to take on.
 void delete(mxFibonacciHeap.Node x)
          Deletes a node from the heap given the reference to the node.
 mxFibonacciHeap.Node getNode(Object element, boolean create)
          Returns the node that represents element.
 void insert(mxFibonacciHeap.Node node, double key)
          Inserts a new data element into the heap.
 boolean isEmpty()
          Returns true if the queue is empty.
protected  void link(mxFibonacciHeap.Node y, mxFibonacciHeap.Node x)
          Make node y a child of node x.
 mxFibonacciHeap.Node min()
          Returns the smallest element in the heap.
 mxFibonacciHeap.Node removeMin()
          Removes the smallest element from the heap.
 int size()
          Returns the size of the heap which is measured in the number of elements contained in the heap.
static mxFibonacciHeap union(mxFibonacciHeap h1, mxFibonacciHeap h2)
          Joins two Fibonacci heaps into a new one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected Map<Object,mxFibonacciHeap.Node> nodes
Maps from elements to nodes


min

protected mxFibonacciHeap.Node min

size

protected int size
Constructor Detail

mxFibonacciHeap

public mxFibonacciHeap()
Method Detail

getNode

public mxFibonacciHeap.Node getNode(Object element,
                                    boolean create)
Returns the node that represents element.


isEmpty

public boolean isEmpty()
Returns true if the queue is empty.


decreaseKey

public void decreaseKey(mxFibonacciHeap.Node x,
                        double k)
Decreases the key value for a heap node, given the new value to take on. The structure of the heap may be changed and will not be consolidated.

Running time: O(1) amortized

Parameters:
x - Node whose value should be decreased.
k - New key value for node x.
Throws:
IllegalArgumentException - Thrown if k is larger than x.key value.

delete

public void delete(mxFibonacciHeap.Node x)
Deletes a node from the heap given the reference to the node. The trees in the heap will be consolidated, if necessary. This operation may fail to remove the correct element if there are nodes with key value -Infinity.

Running time: O(log n) amortized

Parameters:
x - The node to remove from the heap.

insert

public void insert(mxFibonacciHeap.Node node,
                   double key)
Inserts a new data element into the heap. No heap consolidation is performed at this time, the new node is simply inserted into the root list of this heap.

Running time: O(1) actual

Parameters:
node - new node to insert into heap
key - key value associated with data object

min

public mxFibonacciHeap.Node min()
Returns the smallest element in the heap. This smallest element is the one with the minimum key value.

Running time: O(1) actual

Returns:
Returns the heap node with the smallest key.

removeMin

public mxFibonacciHeap.Node removeMin()
Removes the smallest element from the heap. This will cause the trees in the heap to be consolidated, if necessary. Does not remove the data node so that the current key remains stored.

Running time: O(log n) amortized

Returns:
Returns the node with the smallest key.

size

public int size()
Returns the size of the heap which is measured in the number of elements contained in the heap.

Running time: O(1) actual

Returns:
Returns the number of elements in the heap.

union

public static mxFibonacciHeap union(mxFibonacciHeap h1,
                                    mxFibonacciHeap h2)
Joins two Fibonacci heaps into a new one. No heap consolidation is performed at this time. The two root lists are simply joined together.

Running time: O(1) actual

Parameters:
h1 - The first heap.
h2 - The second heap.
Returns:
Returns a new heap containing h1 and h2.

cascadingCut

protected void cascadingCut(mxFibonacciHeap.Node y)
Performs a cascading cut operation. This cuts y from its parent and then does the same for its parent, and so on up the tree.

Running time: O(log n); O(1) excluding the recursion

Parameters:
y - The node to perform cascading cut on.

consolidate

protected void consolidate()
Consolidates the trees in the heap by joining trees of equal degree until there are no more trees of equal degree in the root list.

Running time: O(log n) amortized


cut

protected void cut(mxFibonacciHeap.Node x,
                   mxFibonacciHeap.Node y)
The reverse of the link operation: removes x from the child list of y. This method assumes that min is non-null.

Running time: O(1)

Parameters:
x - The child of y to be removed from y's child list.
y - The parent of x about to lose a child.

link

protected void link(mxFibonacciHeap.Node y,
                    mxFibonacciHeap.Node x)
Make node y a child of node x.

Running time: O(1) actual

Parameters:
y - The node to become child.
x - The node to become parent.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/package-summary.html0000664000175000017500000002515412176166726027365 0ustar sylvestresylvestre com.mxgraph.analysis (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.analysis

This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree.

See:
          Description

Interface Summary
mxICostFunction The cost function takes a cell and returns it's cost as a double.
 

Class Summary
mxAnalysisGraph Implements a collection of utility methods abstracting the graph structure taking into account graph properties such as visible/non-visible traversal
mxConstantCostFunction Implements a cost function for a constant cost per traversed cell.
mxDistanceCostFunction Implements a cost function for the Euclidean length of an edge.
mxFibonacciHeap This class implements a priority queue.
mxFibonacciHeap.Node Implements a node of the Fibonacci heap.
mxGraphAnalysis A singleton class that provides algorithms for graphs.
mxGraphGenerator  
mxGraphProperties Constants for graph structure properties
mxGraphStructure  
mxTraversal Implements a collection of utility methods for traversing the graph structure.
mxUnionFind Implements a union find structure that uses union by rank and path compression.
 

Enum Summary
mxGraphProperties.GraphType  
 

Exception Summary
StructuralException  
 

Package com.mxgraph.analysis Description

This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/package-use.html0000664000175000017500000002653412176166726026467 0ustar sylvestresylvestre Uses of Package com.mxgraph.analysis (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.analysis

Packages that use com.mxgraph.analysis
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.costfunction   
com.mxgraph.generatorfunction   
 

Classes in com.mxgraph.analysis used by com.mxgraph.analysis
mxAnalysisGraph
          Implements a collection of utility methods abstracting the graph structure taking into account graph properties such as visible/non-visible traversal
mxFibonacciHeap
          This class implements a priority queue.
mxFibonacciHeap.Node
          Implements a node of the Fibonacci heap.
mxGraphAnalysis
          A singleton class that provides algorithms for graphs.
mxGraphGenerator
           
mxGraphProperties.GraphType
           
mxICostFunction
          The cost function takes a cell and returns it's cost as a double.
mxUnionFind
          Implements a union find structure that uses union by rank and path compression.
mxUnionFind.Node
          A class that defines the identity of a set.
StructuralException
           
 

Classes in com.mxgraph.analysis used by com.mxgraph.costfunction
mxICostFunction
          The cost function takes a cell and returns it's cost as a double.
 

Classes in com.mxgraph.analysis used by com.mxgraph.generatorfunction
mxICostFunction
          The cost function takes a cell and returns it's cost as a double.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxGraphProperties.GraphType.html0000664000175000017500000010636012176166716031662 0ustar sylvestresylvestre mxGraphProperties.GraphType (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Enum mxGraphProperties.GraphType

java.lang.Object
  extended by java.lang.Enum<mxGraphProperties.GraphType>
      extended by com.mxgraph.analysis.mxGraphProperties.GraphType
All Implemented Interfaces:
Serializable, Comparable<mxGraphProperties.GraphType>
Enclosing class:
mxGraphProperties

public static enum mxGraphProperties.GraphType
extends Enum<mxGraphProperties.GraphType>


Enum Constant Summary
BASIC_TREE
           
BELLMAN_FORD
           
BFS_DIR
           
BFS_UNDIR
           
BIPARTITE
           
COMPLETE
           
COMPLETE_BIPARTITE
           
DFS_DIR
           
DFS_UNDIR
           
DIJKSTRA
           
FLOW
           
FRIENDSHIP_WINDMILL
           
FROM_ADJ_MATRIX
           
FULL_WINDMILL
           
FULLY_CONNECTED
           
GET_ADJ_MATRIX
           
GRID
           
INDEGREE
           
IS_CUT_EDGE
           
IS_CUT_VERTEX
           
KING
           
KNIGHT
           
KNIGHT_TOUR
           
MAKE_TREE_DIRECTED
           
NREGULAR
           
NULL
           
OUTDEGREE
           
PATH
           
PETERSEN
           
RANDOM_CONNECTED
           
RESET_STYLE
           
SIMPLE_RANDOM
           
SIMPLE_RANDOM_TREE
           
STAR
           
TREE
           
WHEEL
           
 
Method Summary
static mxGraphProperties.GraphType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGraphProperties.GraphType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FULLY_CONNECTED

public static final mxGraphProperties.GraphType FULLY_CONNECTED

RANDOM_CONNECTED

public static final mxGraphProperties.GraphType RANDOM_CONNECTED

TREE

public static final mxGraphProperties.GraphType TREE

FLOW

public static final mxGraphProperties.GraphType FLOW

NULL

public static final mxGraphProperties.GraphType NULL

COMPLETE

public static final mxGraphProperties.GraphType COMPLETE

NREGULAR

public static final mxGraphProperties.GraphType NREGULAR

GRID

public static final mxGraphProperties.GraphType GRID

BIPARTITE

public static final mxGraphProperties.GraphType BIPARTITE

COMPLETE_BIPARTITE

public static final mxGraphProperties.GraphType COMPLETE_BIPARTITE

BASIC_TREE

public static final mxGraphProperties.GraphType BASIC_TREE

SIMPLE_RANDOM

public static final mxGraphProperties.GraphType SIMPLE_RANDOM

BFS_DIR

public static final mxGraphProperties.GraphType BFS_DIR

BFS_UNDIR

public static final mxGraphProperties.GraphType BFS_UNDIR

DFS_DIR

public static final mxGraphProperties.GraphType DFS_DIR

DFS_UNDIR

public static final mxGraphProperties.GraphType DFS_UNDIR

DIJKSTRA

public static final mxGraphProperties.GraphType DIJKSTRA

MAKE_TREE_DIRECTED

public static final mxGraphProperties.GraphType MAKE_TREE_DIRECTED

SIMPLE_RANDOM_TREE

public static final mxGraphProperties.GraphType SIMPLE_RANDOM_TREE

KNIGHT_TOUR

public static final mxGraphProperties.GraphType KNIGHT_TOUR

KNIGHT

public static final mxGraphProperties.GraphType KNIGHT

GET_ADJ_MATRIX

public static final mxGraphProperties.GraphType GET_ADJ_MATRIX

FROM_ADJ_MATRIX

public static final mxGraphProperties.GraphType FROM_ADJ_MATRIX

PETERSEN

public static final mxGraphProperties.GraphType PETERSEN

WHEEL

public static final mxGraphProperties.GraphType WHEEL

STAR

public static final mxGraphProperties.GraphType STAR

PATH

public static final mxGraphProperties.GraphType PATH

FRIENDSHIP_WINDMILL

public static final mxGraphProperties.GraphType FRIENDSHIP_WINDMILL

FULL_WINDMILL

public static final mxGraphProperties.GraphType FULL_WINDMILL

INDEGREE

public static final mxGraphProperties.GraphType INDEGREE

OUTDEGREE

public static final mxGraphProperties.GraphType OUTDEGREE

IS_CUT_VERTEX

public static final mxGraphProperties.GraphType IS_CUT_VERTEX

IS_CUT_EDGE

public static final mxGraphProperties.GraphType IS_CUT_EDGE

RESET_STYLE

public static final mxGraphProperties.GraphType RESET_STYLE

KING

public static final mxGraphProperties.GraphType KING

BELLMAN_FORD

public static final mxGraphProperties.GraphType BELLMAN_FORD
Method Detail

values

public static mxGraphProperties.GraphType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (mxGraphProperties.GraphType c : mxGraphProperties.GraphType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static mxGraphProperties.GraphType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxUnionFind.html0000664000175000017500000005055012176166720026525 0ustar sylvestresylvestre mxUnionFind (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxUnionFind

java.lang.Object
  extended by com.mxgraph.analysis.mxUnionFind

public class mxUnionFind
extends Object

Implements a union find structure that uses union by rank and path compression. The union by rank guarantees worst case find time of O(log N), while Tarjan shows that in combination with path compression (halving) the average time for an arbitrary sequence of m >= n operations is O(m*alpha(m,n)), where alpha is the inverse of the Ackermann function, defined as follows: alpha(m,n) = min{i >= 1 | A(i, floor(m/n)) > log n} for m >= n >= 1 Which yields almost constant time for each individual operation.


Nested Class Summary
 class mxUnionFind.Node
          A class that defines the identity of a set.
 
Field Summary
protected  Map<Object,mxUnionFind.Node> nodes
          Maps from elements to nodes
 
Constructor Summary
mxUnionFind(Object[] elements)
          Constructs a union find structure and initializes it with the specified elements.
 
Method Summary
 boolean differ(Object a, Object b)
          Returns true if element a and element b are not in the same set.
 mxUnionFind.Node find(mxUnionFind.Node node)
          Returns the set that contains node.
 mxUnionFind.Node getNode(Object element)
          Returns the node that represents element.
 void union(mxUnionFind.Node a, mxUnionFind.Node b)
          Unifies the sets a and b in constant time using a union by rank on the tree size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected Map<Object,mxUnionFind.Node> nodes
Maps from elements to nodes

Constructor Detail

mxUnionFind

public mxUnionFind(Object[] elements)
Constructs a union find structure and initializes it with the specified elements.

Parameters:
elements -
Method Detail

getNode

public mxUnionFind.Node getNode(Object element)
Returns the node that represents element.


find

public mxUnionFind.Node find(mxUnionFind.Node node)
Returns the set that contains node. This implementation provides path compression by halving.


union

public void union(mxUnionFind.Node a,
                  mxUnionFind.Node b)
Unifies the sets a and b in constant time using a union by rank on the tree size.


differ

public boolean differ(Object a,
                      Object b)
Returns true if element a and element b are not in the same set. This uses getNode and then find to determine the elements set.

Parameters:
a - The first element to compare.
b - The second element to compare.
Returns:
Returns true if a and b are in the same set.
See Also:
getNode(Object)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/package-tree.html0000664000175000017500000002413212176166726026622 0ustar sylvestresylvestre com.mxgraph.analysis Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.analysis

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy

Enum Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxTraversal.html0000664000175000017500000006744712176166716026621 0ustar sylvestresylvestre mxTraversal (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxTraversal

java.lang.Object
  extended by com.mxgraph.analysis.mxTraversal

public class mxTraversal
extends Object

Implements a collection of utility methods for traversing the graph structure. This does not include tree traversal methods.


Constructor Summary
mxTraversal()
           
 
Method Summary
static List<Map<Object,Object>> bellmanFord(mxAnalysisGraph aGraph, Object startVertex)
          Implements the Bellman-Ford shortest path from startVertex to all vertices.
static void bfs(mxAnalysisGraph aGraph, Object startVertex, mxGraph.mxICellVisitor visitor)
          Implements a recursive breadth first search starting from the specified cell.
static void dfs(mxAnalysisGraph aGraph, Object startVertex, mxGraph.mxICellVisitor visitor)
          Implements a recursive depth first search starting from the specified cell.
static void dijkstra(mxAnalysisGraph aGraph, Object startVertex, Object endVertex, mxGraph.mxICellVisitor visitor)
          Implements the Dijkstra's shortest path from startVertex to endVertex.
static ArrayList<Object[][]> floydRoyWarshall(mxAnalysisGraph aGraph)
          Implements the Floyd-Roy-Warshall (aka WFI) shortest path algorithm between all vertices.
static Object[] getWFIPath(mxAnalysisGraph aGraph, ArrayList<Object[][]> FWIresult, Object startVertex, Object targetVertex)
          This method helps the user to get the desired data from the result of the Floyd-Roy-Warshall algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxTraversal

public mxTraversal()
Method Detail

dfs

public static void dfs(mxAnalysisGraph aGraph,
                       Object startVertex,
                       mxGraph.mxICellVisitor visitor)
Implements a recursive depth first search starting from the specified cell. Process on the cell is performing by the visitor class passed in. The visitor has access to the current cell and the edge traversed to find this cell. Every cell is processed once only.
 mxTraversal.bfs(analysisGraph, startVertex, new mxICellVisitor()
 {
        public boolean visit(Object vertex, Object edge)
        {
                // perform your processing on each cell here
                return false;
        }
 });
 

Parameters:
aGraph - the graph
startVertex -
visitor -

bfs

public static void bfs(mxAnalysisGraph aGraph,
                       Object startVertex,
                       mxGraph.mxICellVisitor visitor)
Implements a recursive breadth first search starting from the specified cell. Process on the cell is performing by the visitor class passed in. The visitor has access to the current cell and the edge traversed to find this cell. Every cell is processed once only.
 mxTraversal.bfs(analysisGraph, startVertex, new mxICellVisitor()
 {
        public boolean visit(Object vertex, Object edge)
        {
                // perform your processing on each cell here
                return false;
        }
 });
 

Parameters:
aGraph - the graph
startVertex -
visitor -

dijkstra

public static void dijkstra(mxAnalysisGraph aGraph,
                            Object startVertex,
                            Object endVertex,
                            mxGraph.mxICellVisitor visitor)
                     throws StructuralException
Implements the Dijkstra's shortest path from startVertex to endVertex. Process on the cell is performing by the visitor class passed in. The visitor has access to the current cell and the edge traversed to find this cell. Every cell is processed once only.
 mxTraversal.dijkstra(analysisGraph, startVertex, endVertex, new mxICellVisitor()
 {
        public boolean visit(Object vertex, Object edge)
        {
                // perform your processing on each cell here
                return false;
        }
 });
 

Parameters:
aGraph -
startVertex -
endVertex -
visitor -
Throws:
StructuralException - - The current Dijkstra algorithm only works for connected graphs

bellmanFord

public static List<Map<Object,Object>> bellmanFord(mxAnalysisGraph aGraph,
                                                   Object startVertex)
                                            throws StructuralException
Implements the Bellman-Ford shortest path from startVertex to all vertices.

Parameters:
aGraph -
startVertex -
Returns:
a List where List(0) is the distance map and List(1) is the parent map. See the example in GraphConfigDialog.java
Throws:
StructuralException - - The Bellman-Ford algorithm only works for graphs without negative cycles

floydRoyWarshall

public static ArrayList<Object[][]> floydRoyWarshall(mxAnalysisGraph aGraph)
                                              throws StructuralException
Implements the Floyd-Roy-Warshall (aka WFI) shortest path algorithm between all vertices.

Parameters:
aGraph -
Returns:
an ArrayList where ArrayList(0) is the distance map and List(1) is the path map. See the example in GraphConfigDialog.java
Throws:
StructuralException - - The Floyd-Roy-Warshall algorithm only works for graphs without negative cycles

getWFIPath

public static Object[] getWFIPath(mxAnalysisGraph aGraph,
                                  ArrayList<Object[][]> FWIresult,
                                  Object startVertex,
                                  Object targetVertex)
                           throws StructuralException
This method helps the user to get the desired data from the result of the Floyd-Roy-Warshall algorithm.

Parameters:
aGraph -
FWIresult - - the result of the Floyd-Roy-Warhall algorithm
startVertex -
targetVertex -
Returns:
returns the shortest path from startVertex to endVertex
Throws:
StructuralException - - The Floyd-Roy-Warshall algorithm only works for graphs without negative cycles

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxGraphProperties.html0000664000175000017500000005474112176166716027765 0ustar sylvestresylvestre mxGraphProperties (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxGraphProperties

java.lang.Object
  extended by com.mxgraph.analysis.mxGraphProperties

public class mxGraphProperties
extends Object

Constants for graph structure properties


Nested Class Summary
static class mxGraphProperties.GraphType
           
 
Field Summary
static boolean DEFAULT_DIRECTED
           
static boolean DEFAULT_TRAVERSE_VISIBLE
           
static String DIRECTED
          Whether or not to take into account the direction on edges.
static String TRAVERSE_VISIBLE
          Whether or not to navigate the graph raw graph structure or the visible structure.
 
Constructor Summary
mxGraphProperties()
           
 
Method Summary
static boolean isDirected(Map<String,Object> properties, boolean defaultValue)
           
static boolean isTraverseVisible(Map<String,Object> properties, boolean defaultValue)
           
static void setDirected(Map<String,Object> properties, boolean isDirected)
           
static void setTraverseVisible(Map<String,Object> properties, boolean isTraverseVisible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAVERSE_VISIBLE

public static String TRAVERSE_VISIBLE
Whether or not to navigate the graph raw graph structure or the visible structure. The value associated with this key should evaluate as a string to 1 or 0


DEFAULT_TRAVERSE_VISIBLE

public static boolean DEFAULT_TRAVERSE_VISIBLE

DIRECTED

public static String DIRECTED
Whether or not to take into account the direction on edges. The value associated with this key should evaluate as a string to 1 or 0


DEFAULT_DIRECTED

public static boolean DEFAULT_DIRECTED
Constructor Detail

mxGraphProperties

public mxGraphProperties()
Method Detail

isTraverseVisible

public static boolean isTraverseVisible(Map<String,Object> properties,
                                        boolean defaultValue)
Parameters:
properties -
defaultValue -
Returns:

setTraverseVisible

public static void setTraverseVisible(Map<String,Object> properties,
                                      boolean isTraverseVisible)
Parameters:
properties -
isTraverseVisible -

isDirected

public static boolean isDirected(Map<String,Object> properties,
                                 boolean defaultValue)
Parameters:
properties -
Returns:

setDirected

public static void setDirected(Map<String,Object> properties,
                               boolean isDirected)
Parameters:
properties -
isTraverseVisible -

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/analysis/mxConstantCostFunction.html0000664000175000017500000003503412176166716030771 0ustar sylvestresylvestre mxConstantCostFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.analysis
Class mxConstantCostFunction

java.lang.Object
  extended by com.mxgraph.analysis.mxConstantCostFunction
All Implemented Interfaces:
mxICostFunction

public class mxConstantCostFunction
extends Object
implements mxICostFunction

Implements a cost function for a constant cost per traversed cell.


Field Summary
protected  double cost
           
 
Constructor Summary
mxConstantCostFunction(double cost)
           
 
Method Summary
 double getCost(mxCellState state)
          Evaluates the cost of the given cell state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cost

protected double cost
Constructor Detail

mxConstantCostFunction

public mxConstantCostFunction(double cost)
Parameters:
cost -
Method Detail

getCost

public double getCost(mxCellState state)
Description copied from interface: mxICostFunction
Evaluates the cost of the given cell state.

Specified by:
getCost in interface mxICostFunction
Parameters:
state - The cell state to be evaluated
Returns:
Returns the cost to traverse the given cell state.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/0000775000175000017500000000000012176166726022657 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxCollapseChange.html0000664000175000017500000005410112176166722031345 0ustar sylvestresylvestre mxGraphModel.mxCollapseChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxCollapseChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxCollapseChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxCollapseChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  boolean collapsed
           
protected  boolean previous
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxCollapseChange()
           
mxGraphModel.mxCollapseChange(mxGraphModel model, Object cell, boolean collapsed)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 boolean getPrevious()
           
 boolean isCollapsed()
           
 void setCell(Object value)
           
 void setCollapsed(boolean value)
           
 void setPrevious(boolean value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

collapsed

protected boolean collapsed

previous

protected boolean previous
Constructor Detail

mxGraphModel.mxCollapseChange

public mxGraphModel.mxCollapseChange()

mxGraphModel.mxCollapseChange

public mxGraphModel.mxCollapseChange(mxGraphModel model,
                                     Object cell,
                                     boolean collapsed)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setCollapsed

public void setCollapsed(boolean value)

isCollapsed

public boolean isCollapsed()
Returns:
the collapsed

setPrevious

public void setPrevious(boolean value)

getPrevious

public boolean getPrevious()
Returns:
the previous

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxIGraphModel.mxAtomicGraphModelChange.html0000664000175000017500000004435512176166722033105 0ustar sylvestresylvestre mxIGraphModel.mxAtomicGraphModelChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxIGraphModel.mxAtomicGraphModelChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Direct Known Subclasses:
mxGraphModel.mxChildChange, mxGraphModel.mxCollapseChange, mxGraphModel.mxGeometryChange, mxGraphModel.mxRootChange, mxGraphModel.mxStyleChange, mxGraphModel.mxTerminalChange, mxGraphModel.mxValueChange, mxGraphModel.mxVisibleChange
Enclosing interface:
mxIGraphModel

public abstract static class mxIGraphModel.mxAtomicGraphModelChange
extends Object
implements mxUndoableEdit.mxUndoableChange

Defines the interface for an atomic change of the graph model.


Field Summary
protected  mxIGraphModel model
          Holds the model where the change happened.
 
Constructor Summary
mxIGraphModel.mxAtomicGraphModelChange()
          Constructs an empty atomic graph model change.
mxIGraphModel.mxAtomicGraphModelChange(mxIGraphModel model)
          Constructs an atomic graph model change for the given model.
 
Method Summary
abstract  void execute()
          Executes the change on the model.
 mxIGraphModel getModel()
          Returns the model where the change happened.
 void setModel(mxIGraphModel model)
          Sets the model where the change is to be carried out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected mxIGraphModel model
Holds the model where the change happened.

Constructor Detail

mxIGraphModel.mxAtomicGraphModelChange

public mxIGraphModel.mxAtomicGraphModelChange()
Constructs an empty atomic graph model change.


mxIGraphModel.mxAtomicGraphModelChange

public mxIGraphModel.mxAtomicGraphModelChange(mxIGraphModel model)
Constructs an atomic graph model change for the given model.

Method Detail

getModel

public mxIGraphModel getModel()
Returns the model where the change happened.


setModel

public void setModel(mxIGraphModel model)
Sets the model where the change is to be carried out.


execute

public abstract void execute()
Executes the change on the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxIGraphModel.html0000664000175000017500000014331512176166722026250 0ustar sylvestresylvestre mxIGraphModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Interface mxIGraphModel

All Known Implementing Classes:
mxGraphModel

public interface mxIGraphModel

Defines the requirements for a graph model to be used with mxGraph.


Nested Class Summary
static class mxIGraphModel.mxAtomicGraphModelChange
          Defines the interface for an atomic change of the graph model.
 
Method Summary
 Object add(Object parent, Object child, int index)
          Adds the specified child to the parent at the given index.
 void addListener(String eventName, mxEventSource.mxIEventListener listener)
          Binds the specified function to the given event name.
 void beginUpdate()
          Increments the updateLevel by one.
 Object[] cloneCells(Object[] cells, boolean includeChildren)
          Returns an array of clones for the given array of cells.
 boolean contains(Object cell)
          Returns true if the model contains the given cell.
 void endUpdate()
          Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0.
 Object getChildAt(Object parent, int index)
          Returns the child of the given parent at the given index.
 int getChildCount(Object cell)
          Returns the number of children in the given cell.
 Object getEdgeAt(Object cell, int index)
          Returns the edge of cell at the given index.
 int getEdgeCount(Object cell)
          Returns the number of distinct edges connected to the given cell.
 mxGeometry getGeometry(Object cell)
          Returns the geometry of the given cell.
 Object getParent(Object child)
          Returns the parent of the given cell.
 Object getRoot()
          Returns the root of the model or the topmost parent of the given cell.
 String getStyle(Object cell)
          Returns the style of the given cell.
 Object getTerminal(Object edge, boolean isSource)
          Returns the source or target terminal of the given edge depending on the value of the boolean parameter.
 Object getValue(Object cell)
          Returns the user object of the given cell.
 boolean isAncestor(Object parent, Object child)
          Returns true if the given parent is an ancestor of the given child.
 boolean isCollapsed(Object cell)
          Returns true if the given cell is collapsed.
 boolean isConnectable(Object cell)
          Returns true if the given cell is connectable.
 boolean isEdge(Object cell)
          Returns true if the given cell is an edge.
 boolean isVertex(Object cell)
          Returns true if the given cell is a vertex.
 boolean isVisible(Object cell)
          Returns true if the given cell is visible.
 Object remove(Object cell)
          Removes the specified cell from the model.
 void removeListener(mxEventSource.mxIEventListener listener)
          Function: removeListener Removes the given listener from the list of listeners.
 void removeListener(mxEventSource.mxIEventListener listener, String eventName)
          Function: removeListener Removes the given listener from the list of listeners.
 boolean setCollapsed(Object cell, boolean collapsed)
          Sets the collapsed state of the given cell.
 mxGeometry setGeometry(Object cell, mxGeometry geometry)
          Sets the geometry of the given cell.
 Object setRoot(Object root)
          Sets the root of the model and resets all structures.
 String setStyle(Object cell, String style)
          Sets the style of the given cell.
 Object setTerminal(Object edge, Object terminal, boolean isSource)
          Sets the source or target terminal of the given edge using.
 Object setValue(Object cell, Object value)
          Sets the user object of then given cell.
 boolean setVisible(Object cell, boolean visible)
          Sets the visible state of the given cell.
 

Method Detail

getRoot

Object getRoot()
Returns the root of the model or the topmost parent of the given cell.

Returns:
Returns the root cell.

setRoot

Object setRoot(Object root)
Sets the root of the model and resets all structures.

Parameters:
root - Cell that specifies the new root.

cloneCells

Object[] cloneCells(Object[] cells,
                    boolean includeChildren)
Returns an array of clones for the given array of cells. Depending on the value of includeChildren, a deep clone is created for each cell. Connections are restored based if the corresponding cell is contained in the passed in array.

Parameters:
cells - Array of cells to be cloned.
includeChildren - Boolean indicating if the cells should be cloned with all descendants.
Returns:
Returns a cloned array of cells.

isAncestor

boolean isAncestor(Object parent,
                   Object child)
Returns true if the given parent is an ancestor of the given child.

Parameters:
parent - Cell that specifies the parent.
child - Cell that specifies the child.
Returns:
Returns true if child is an ancestor of parent.

contains

boolean contains(Object cell)
Returns true if the model contains the given cell.

Parameters:
cell - Cell to be checked.
Returns:
Returns true if the cell is in the model.

getParent

Object getParent(Object child)
Returns the parent of the given cell.

Parameters:
child - Cell whose parent should be returned.
Returns:
Returns the parent of the given cell.

add

Object add(Object parent,
           Object child,
           int index)
Adds the specified child to the parent at the given index. If no index is specified then the child is appended to the parent's array of children.

Parameters:
parent - Cell that specifies the parent to contain the child.
child - Cell that specifies the child to be inserted.
index - Integer that specifies the index of the child.
Returns:
Returns the inserted child.

remove

Object remove(Object cell)
Removes the specified cell from the model. This operation will remove the cell and all of its children from the model.

Parameters:
cell - Cell that should be removed.
Returns:
Returns the removed cell.

getChildCount

int getChildCount(Object cell)
Returns the number of children in the given cell.

Parameters:
cell - Cell whose number of children should be returned.
Returns:
Returns the number of children in the given cell.

getChildAt

Object getChildAt(Object parent,
                  int index)
Returns the child of the given parent at the given index.

Parameters:
parent - Cell that represents the parent.
index - Integer that specifies the index of the child to be returned.
Returns:
Returns the child at index in parent.

getTerminal

Object getTerminal(Object edge,
                   boolean isSource)
Returns the source or target terminal of the given edge depending on the value of the boolean parameter.

Parameters:
edge - Cell that specifies the edge.
isSource - Boolean indicating which end of the edge should be returned.
Returns:
Returns the source or target of the given edge.

setTerminal

Object setTerminal(Object edge,
                   Object terminal,
                   boolean isSource)
Sets the source or target terminal of the given edge using.

Parameters:
edge - Cell that specifies the edge.
terminal - Cell that specifies the new terminal.
isSource - Boolean indicating if the terminal is the new source or target terminal of the edge.
Returns:
Returns the new terminal.

getEdgeCount

int getEdgeCount(Object cell)
Returns the number of distinct edges connected to the given cell.

Parameters:
cell - Cell that represents the vertex.
Returns:
Returns the number of edges connected to cell.

getEdgeAt

Object getEdgeAt(Object cell,
                 int index)
Returns the edge of cell at the given index.

Parameters:
cell - Cell that specifies the vertex.
index - Integer that specifies the index of the edge to return.
Returns:
Returns the edge at the given index.

isVertex

boolean isVertex(Object cell)
Returns true if the given cell is a vertex.

Parameters:
cell - Cell that represents the possible vertex.
Returns:
Returns true if the given cell is a vertex.

isEdge

boolean isEdge(Object cell)
Returns true if the given cell is an edge.

Parameters:
cell - Cell that represents the possible edge.
Returns:
Returns true if the given cell is an edge.

isConnectable

boolean isConnectable(Object cell)
Returns true if the given cell is connectable.

Parameters:
cell - Cell whose connectable state should be returned.
Returns:
Returns the connectable state of the given cell.

getValue

Object getValue(Object cell)
Returns the user object of the given cell.

Parameters:
cell - Cell whose user object should be returned.
Returns:
Returns the user object of the given cell.

setValue

Object setValue(Object cell,
                Object value)
Sets the user object of then given cell.

Parameters:
cell - Cell whose user object should be changed.
value - Object that defines the new user object.
Returns:
Returns the new value.

getGeometry

mxGeometry getGeometry(Object cell)
Returns the geometry of the given cell.

Parameters:
cell - Cell whose geometry should be returned.
Returns:
Returns the geometry of the given cell.

setGeometry

mxGeometry setGeometry(Object cell,
                       mxGeometry geometry)
Sets the geometry of the given cell.

Parameters:
cell - Cell whose geometry should be changed.
geometry - Object that defines the new geometry.
Returns:
Returns the new geometry.

getStyle

String getStyle(Object cell)
Returns the style of the given cell.

Parameters:
cell - Cell whose style should be returned.
Returns:
Returns the style of the given cell.

setStyle

String setStyle(Object cell,
                String style)
Sets the style of the given cell.

Parameters:
cell - Cell whose style should be changed.
style - String of the form stylename[;key=value] to specify the new cell style.
Returns:
Returns the new style.

isCollapsed

boolean isCollapsed(Object cell)
Returns true if the given cell is collapsed.

Parameters:
cell - Cell whose collapsed state should be returned.
Returns:
Returns the collapsed state of the given cell.

setCollapsed

boolean setCollapsed(Object cell,
                     boolean collapsed)
Sets the collapsed state of the given cell.

Parameters:
cell - Cell whose collapsed state should be changed.
collapsed - Boolean that specifies the new collpased state.
Returns:
Returns the new collapsed state.

isVisible

boolean isVisible(Object cell)
Returns true if the given cell is visible.

Parameters:
cell - Cell whose visible state should be returned.
Returns:
Returns the visible state of the given cell.

setVisible

boolean setVisible(Object cell,
                   boolean visible)
Sets the visible state of the given cell.

Parameters:
cell - Cell whose visible state should be changed.
visible - Boolean that specifies the new visible state.
Returns:
Returns the new visible state.

beginUpdate

void beginUpdate()
Increments the updateLevel by one. The event notification is queued until updateLevel reaches 0 by use of endUpdate.


endUpdate

void endUpdate()
Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0.


addListener

void addListener(String eventName,
                 mxEventSource.mxIEventListener listener)
Binds the specified function to the given event name. If no event name is given, then the listener is registered for all events.


removeListener

void removeListener(mxEventSource.mxIEventListener listener)
Function: removeListener Removes the given listener from the list of listeners.


removeListener

void removeListener(mxEventSource.mxIEventListener listener,
                    String eventName)
Function: removeListener Removes the given listener from the list of listeners.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/0000775000175000017500000000000012176166726024556 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxCollapseChange.html0000664000175000017500000001410212176166726033245 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxCollapseChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxCollapseChange

No usage of com.mxgraph.model.mxGraphModel.mxCollapseChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxIGraphModel.mxAtomicGraphModelChange.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxIGraphModel.mxAtomicGraphModelChange.0000664000175000017500000003602412176166726034115 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange

Packages that use mxIGraphModel.mxAtomicGraphModelChange
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Uses of mxIGraphModel.mxAtomicGraphModelChange in com.mxgraph.model
 

Subclasses of mxIGraphModel.mxAtomicGraphModelChange in com.mxgraph.model
static class mxGraphModel.mxChildChange
           
static class mxGraphModel.mxCollapseChange
           
static class mxGraphModel.mxGeometryChange
           
static class mxGraphModel.mxRootChange
           
static class mxGraphModel.mxStyleChange
           
static class mxGraphModel.mxTerminalChange
           
static class mxGraphModel.mxValueChange
           
static class mxGraphModel.mxVisibleChange
           
 

Methods in com.mxgraph.model with parameters of type mxIGraphModel.mxAtomicGraphModelChange
 void mxGraphModel.execute(mxIGraphModel.mxAtomicGraphModelChange change)
          Executes the given atomic change and adds it to the current edit.
 

Uses of mxIGraphModel.mxAtomicGraphModelChange in com.mxgraph.sharing
 

Methods in com.mxgraph.sharing that return mxIGraphModel.mxAtomicGraphModelChange
protected  mxIGraphModel.mxAtomicGraphModelChange[] mxSharedGraphModel.decodeChanges(Node node)
          Adds removed cells to the codec object lookup for references to the removed cells after this point in time.
 

Methods in com.mxgraph.sharing with parameters of type mxIGraphModel.mxAtomicGraphModelChange
protected  mxUndoableEdit mxSharedGraphModel.createUndoableEdit(mxIGraphModel.mxAtomicGraphModelChange[] changes)
          Creates a new mxUndoableEdit that implements the notify function to fire a change and notify event via the model.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxIGraphModel.html0000664000175000017500000013045012176166726030147 0ustar sylvestresylvestre Uses of Interface com.mxgraph.model.mxIGraphModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.model.mxIGraphModel

Packages that use mxIGraphModel
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxIGraphModel in com.mxgraph.model
 

Classes in com.mxgraph.model that implement mxIGraphModel
 class mxGraphModel
          Extends mxEventSource to implement a graph model.
 

Fields in com.mxgraph.model declared as mxIGraphModel
protected  mxIGraphModel mxIGraphModel.mxAtomicGraphModelChange.model
          Holds the model where the change happened.
 

Methods in com.mxgraph.model that return mxIGraphModel
 mxIGraphModel mxIGraphModel.mxAtomicGraphModelChange.getModel()
          Returns the model where the change happened.
 

Methods in com.mxgraph.model with parameters of type mxIGraphModel
static Collection<Object> mxGraphModel.filterDescendants(mxIGraphModel model, mxGraphModel.Filter filter)
          Creates a collection of cells using the visitor pattern.
static Collection<Object> mxGraphModel.filterDescendants(mxIGraphModel model, mxGraphModel.Filter filter, Object parent)
          Creates a collection of cells using the visitor pattern.
static Object[] mxGraphModel.getChildCells(mxIGraphModel model, Object parent, boolean vertices, boolean edges)
          Returns the children of the given cell that are vertices and/or edges depending on the arguments.
static Object[] mxGraphModel.getChildEdges(mxIGraphModel model, Object parent)
          Returns the child edges of the given parent.
static Object[] mxGraphModel.getChildren(mxIGraphModel model, Object parent)
          Returns all children of the given cell regardless of their type.
static Object[] mxGraphModel.getChildVertices(mxIGraphModel model, Object parent)
          Returns the child vertices of the given parent.
static Object[] mxGraphModel.getConnections(mxIGraphModel model, Object cell)
          Returns all edges connected to this cell without loops.
static Collection<Object> mxGraphModel.getDescendants(mxIGraphModel model, Object parent)
          Returns a all descendants of the given cell and the cell itself as a collection.
static int mxGraphModel.getDirectedEdgeCount(mxIGraphModel model, Object cell, boolean outgoing)
          Returns the number of incoming or outgoing edges.
static int mxGraphModel.getDirectedEdgeCount(mxIGraphModel model, Object cell, boolean outgoing, Object ignoredEdge)
          Returns the number of incoming or outgoing edges, ignoring the given edge.
static Object[] mxGraphModel.getEdges(mxIGraphModel model, Object cell)
          Returns all edges connected to this cell including loops.
static Object[] mxGraphModel.getEdges(mxIGraphModel model, Object cell, boolean incoming, boolean outgoing, boolean includeLoops)
          Returns all distinct edges connected to this cell.
static Object[] mxGraphModel.getEdgesBetween(mxIGraphModel model, Object source, Object target)
          Returns all edges from the given source to the given target.
static Object[] mxGraphModel.getEdgesBetween(mxIGraphModel model, Object source, Object target, boolean directed)
          Returns all edges between the given source and target pair.
static Object[] mxGraphModel.getIncomingEdges(mxIGraphModel model, Object cell)
          Returns the incoming edges of the given cell without loops.
static Object[] mxGraphModel.getOpposites(mxIGraphModel model, Object[] edges, Object terminal)
          Returns all opposite cells of terminal for the given edges.
static Object[] mxGraphModel.getOpposites(mxIGraphModel model, Object[] edges, Object terminal, boolean sources, boolean targets)
          Returns all opposite vertices wrt terminal for the given edges, only returning sources and/or targets as specified.
static Object[] mxGraphModel.getOutgoingEdges(mxIGraphModel model, Object cell)
          Returns the outgoing edges of the given cell without loops.
static Object[] mxGraphModel.getParents(mxIGraphModel model, Object[] cells)
           
static Object[] mxGraphModel.getTopmostCells(mxIGraphModel model, Object[] cells)
          Function: getTopmostCells Returns the topmost cells of the hierarchy in an array that contains no desceandants for each that it contains.
 void mxIGraphModel.mxAtomicGraphModelChange.setModel(mxIGraphModel model)
          Sets the model where the change is to be carried out.
static void mxGraphModel.setTerminals(mxIGraphModel model, Object edge, Object source, Object target)
          Sets the source and target of the given edge in a single atomic change.
 

Constructors in com.mxgraph.model with parameters of type mxIGraphModel
mxIGraphModel.mxAtomicGraphModelChange(mxIGraphModel model)
          Constructs an atomic graph model change for the given model.
 

Uses of mxIGraphModel in com.mxgraph.util
 

Methods in com.mxgraph.util with parameters of type mxIGraphModel
static void mxUtils.setCellStyleFlags(mxIGraphModel model, Object[] cells, String key, int flag, Boolean value)
          Deprecated. Use mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean) (Jan 2012)
static void mxStyleUtils.setCellStyleFlags(mxIGraphModel model, Object[] cells, String key, int flag, Boolean value)
          Sets or toggles the flag bit for the given key in the cell's styles.
static void mxUtils.setCellStyles(mxIGraphModel model, Object[] cells, String key, String value)
          Deprecated. Use mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String) (Jan 2012)
static void mxStyleUtils.setCellStyles(mxIGraphModel model, Object[] cells, String key, String value)
          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.
 

Uses of mxIGraphModel in com.mxgraph.view
 

Fields in com.mxgraph.view declared as mxIGraphModel
protected  mxIGraphModel mxGraph.model
          Holds the model that contains the cells to be displayed.
 

Methods in com.mxgraph.view that return mxIGraphModel
 mxIGraphModel mxGraph.getModel()
          Returns the graph model that contains the graph data.
 

Methods in com.mxgraph.view with parameters of type mxIGraphModel
 mxRectangle mxGraph.graphModelChanged(mxIGraphModel sender, List<mxUndoableEdit.mxUndoableChange> changes)
          Called when the graph model changes.
 void mxGraph.setModel(mxIGraphModel value)
          Sets the graph model that contains the data, and fires an mxEvent.CHANGE followed by an mxEvent.REPAINT event.
 

Constructors in com.mxgraph.view with parameters of type mxIGraphModel
mxGraph(mxIGraphModel model)
          Constructs a new graph for the specified model.
mxGraph(mxIGraphModel model, mxStylesheet stylesheet)
          Constructs a new graph for the specified model.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxRootChange.html0000664000175000017500000001403212176166726032430 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxRootChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxRootChange

No usage of com.mxgraph.model.mxGraphModel.mxRootChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.Filter.html0000664000175000017500000002504212176166726031262 0ustar sylvestresylvestre Uses of Interface com.mxgraph.model.mxGraphModel.Filter (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.model.mxGraphModel.Filter

Packages that use mxGraphModel.Filter
com.mxgraph.model This package contains the classes that define a graph model. 
 

Uses of mxGraphModel.Filter in com.mxgraph.model
 

Methods in com.mxgraph.model with parameters of type mxGraphModel.Filter
static Object[] mxGraphModel.filterCells(Object[] cells, mxGraphModel.Filter filter)
           
static Collection<Object> mxGraphModel.filterDescendants(mxIGraphModel model, mxGraphModel.Filter filter)
          Creates a collection of cells using the visitor pattern.
static Collection<Object> mxGraphModel.filterDescendants(mxIGraphModel model, mxGraphModel.Filter filter, Object parent)
          Creates a collection of cells using the visitor pattern.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxVisibleChange.html0000664000175000017500000001407012176166726033104 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxVisibleChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxVisibleChange

No usage of com.mxgraph.model.mxGraphModel.mxVisibleChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxStyleChange.html0000664000175000017500000001404412176166726032610 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxStyleChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxStyleChange

No usage of com.mxgraph.model.mxGraphModel.mxStyleChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxValueChange.html0000664000175000017500000001404412176166726032564 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxValueChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxValueChange

No usage of com.mxgraph.model.mxGraphModel.mxValueChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxCell.html0000664000175000017500000002075612176166726026702 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxCell (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxCell

Packages that use mxCell
com.mxgraph.io This package contains all classes for input/output. 
 

Uses of mxCell in com.mxgraph.io
 

Methods in com.mxgraph.io with parameters of type mxCell
static void mxGraphMlCodec.addEdgeData(mxGraphMlEdge gmlEdge, mxCell v)
          Add the edge data in the gmlEdge.
static void mxGraphMlCodec.addNodeData(mxGraphMlNode gmlNode, mxCell v)
          Add the node data in the gmlNode.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.html0000664000175000017500000004311612176166726030040 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel

Packages that use mxGraphModel
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Uses of mxGraphModel in com.mxgraph.model
 

Constructors in com.mxgraph.model with parameters of type mxGraphModel
mxGraphModel.mxChildChange(mxGraphModel model, Object parent, Object child)
           
mxGraphModel.mxChildChange(mxGraphModel model, Object parent, Object child, int index)
           
mxGraphModel.mxCollapseChange(mxGraphModel model, Object cell, boolean collapsed)
           
mxGraphModel.mxGeometryChange(mxGraphModel model, Object cell, mxGeometry geometry)
           
mxGraphModel.mxRootChange(mxGraphModel model, Object root)
           
mxGraphModel.mxStyleChange(mxGraphModel model, Object cell, String style)
           
mxGraphModel.mxTerminalChange(mxGraphModel model, Object cell, Object terminal, boolean source)
           
mxGraphModel.mxValueChange(mxGraphModel model, Object cell, Object value)
           
mxGraphModel.mxVisibleChange(mxGraphModel model, Object cell, boolean visible)
           
 

Uses of mxGraphModel in com.mxgraph.sharing
 

Fields in com.mxgraph.sharing declared as mxGraphModel
protected  mxGraphModel mxSharedGraphModel.model
           
 

Methods in com.mxgraph.sharing that return mxGraphModel
 mxGraphModel mxSharedGraphModel.getModel()
           
 

Constructors in com.mxgraph.sharing with parameters of type mxGraphModel
mxSharedGraphModel(mxGraphModel model)
          Constructs a new diagram with the given model.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxTerminalChange.html0000664000175000017500000001410212176166726033256 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxTerminalChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxTerminalChange

No usage of com.mxgraph.model.mxGraphModel.mxTerminalChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxChildChange.html0000664000175000017500000001404412176166726032533 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxChildChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxChildChange

No usage of com.mxgraph.model.mxGraphModel.mxChildChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxICell.html0000664000175000017500000012643512176166726027014 0ustar sylvestresylvestre Uses of Interface com.mxgraph.model.mxICell (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Interface
com.mxgraph.model.mxICell

Packages that use mxICell
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.model This package contains the classes that define a graph model. 
 

Uses of mxICell in com.mxgraph.io
 

Methods in com.mxgraph.io that return mxICell
 mxICell mxCodec.decodeCell(Node node, boolean restoreStructures)
          Decodes cells that have been encoded using inversion, ie.
 

Methods in com.mxgraph.io with parameters of type mxICell
 void mxCodec.encodeCell(mxICell cell, Node node, boolean includeChildren)
          Encoding of cell hierarchies is built-into the core, but is a higher-level function that needs to be explicitely used by the respective object encoders (eg.
 void mxCodec.insertIntoGraph(mxICell cell)
          Inserts the given cell into its parent and terminal cells.
 

Uses of mxICell in com.mxgraph.model
 

Classes in com.mxgraph.model that implement mxICell
 class mxCell
          Cells are the elements of the graph model.
 

Fields in com.mxgraph.model declared as mxICell
protected  mxICell mxCell.parent
          Reference to the parent cell and source and target terminals for edges.
protected  mxICell mxGraphModel.root
          Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells.
protected  mxICell mxCell.source
          Reference to the parent cell and source and target terminals for edges.
protected  mxICell mxCell.target
          Reference to the parent cell and source and target terminals for edges.
 

Methods in com.mxgraph.model that return mxICell
 mxICell mxCell.getChildAt(int index)
           
 mxICell mxICell.getChildAt(int index)
          Returns the child at the specified index.
 mxICell mxCell.getEdgeAt(int index)
           
 mxICell mxICell.getEdgeAt(int index)
          Returns the edge at the specified index in the edge array.
 mxICell mxCell.getParent()
           
 mxICell mxICell.getParent()
          Returns the cell's parent.
 mxICell mxCell.getSource()
          Returns the source terminal.
 mxICell mxCell.getTarget()
          Returns the target terminal.
 mxICell mxCell.getTerminal(boolean source)
           
 mxICell mxICell.getTerminal(boolean source)
          Returns the source or target terminal.
 mxICell mxCell.insert(mxICell child)
           
 mxICell mxICell.insert(mxICell child)
          Appends the specified child into the child array and updates the parent reference of the child.
 mxICell mxCell.insert(mxICell child, int index)
           
 mxICell mxICell.insert(mxICell child, int index)
          Inserts the specified child into the child array at the specified index and updates the parent reference of the child.
 mxICell mxCell.insertEdge(mxICell edge, boolean isOutgoing)
           
 mxICell mxICell.insertEdge(mxICell edge, boolean isOutgoing)
          Inserts the specified edge into the edge array and returns the edge.
 mxICell mxCell.remove(int index)
           
 mxICell mxICell.remove(int index)
          Removes the child at the specified index from the child array and returns the child that was removed.
 mxICell mxCell.remove(mxICell child)
           
 mxICell mxICell.remove(mxICell child)
          Removes the given child from the child array and returns it.
 mxICell mxCell.removeEdge(mxICell edge, boolean isOutgoing)
           
 mxICell mxICell.removeEdge(mxICell edge, boolean isOutgoing)
          Removes the specified edge from the edge array and returns the edge.
static mxICell mxCellPath.resolve(mxICell root, String path)
          Returns the cell for the specified cell path using the given root as the root of the path.
 mxICell mxCell.setTerminal(mxICell terminal, boolean isSource)
           
 mxICell mxICell.setTerminal(mxICell terminal, boolean isSource)
          Sets the source or target terminal and returns the new terminal.
 

Methods in com.mxgraph.model with parameters of type mxICell
static String mxCellPath.create(mxICell cell)
          Creates the cell path for the given cell.
 int mxCell.getEdgeIndex(mxICell edge)
           
 int mxICell.getEdgeIndex(mxICell edge)
          Returns the index of the specified edge in the edge array.
 int mxCell.getIndex(mxICell child)
           
 int mxICell.getIndex(mxICell child)
          Returns the index of the specified child in the child array.
 mxICell mxCell.insert(mxICell child)
           
 mxICell mxICell.insert(mxICell child)
          Appends the specified child into the child array and updates the parent reference of the child.
 mxICell mxCell.insert(mxICell child, int index)
           
 mxICell mxICell.insert(mxICell child, int index)
          Inserts the specified child into the child array at the specified index and updates the parent reference of the child.
 mxICell mxCell.insertEdge(mxICell edge, boolean isOutgoing)
           
 mxICell mxICell.insertEdge(mxICell edge, boolean isOutgoing)
          Inserts the specified edge into the edge array and returns the edge.
 void mxGraphModel.mergeChildren(mxICell from, mxICell to, boolean cloneAllEdges)
          Merges the children of the given cell into the given target cell inside this model.
protected  void mxGraphModel.mergeChildrenImpl(mxICell from, mxICell to, boolean cloneAllEdges, Hashtable<Object,Object> mapping)
          Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.
 mxICell mxCell.remove(mxICell child)
           
 mxICell mxICell.remove(mxICell child)
          Removes the given child from the child array and returns it.
 mxICell mxCell.removeEdge(mxICell edge, boolean isOutgoing)
           
 mxICell mxICell.removeEdge(mxICell edge, boolean isOutgoing)
          Removes the specified edge from the edge array and returns the edge.
static mxICell mxCellPath.resolve(mxICell root, String path)
          Returns the cell for the specified cell path using the given root as the root of the path.
 void mxCell.setParent(mxICell parent)
           
 void mxICell.setParent(mxICell parent)
          Sets the parent cell.
 void mxCell.setSource(mxICell source)
          Sets the source terminal.
 void mxCell.setTarget(mxICell target)
          Sets the target terminal.
 mxICell mxCell.setTerminal(mxICell terminal, boolean isSource)
           
 mxICell mxICell.setTerminal(mxICell terminal, boolean isSource)
          Sets the source or target terminal and returns the new terminal.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGraphModel.mxGeometryChange.html0000664000175000017500000001410212176166726033276 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGraphModel.mxGeometryChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGraphModel.mxGeometryChange

No usage of com.mxgraph.model.mxGraphModel.mxGeometryChange


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxGeometry.html0000664000175000017500000006255212176166726027616 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxGeometry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxGeometry

Packages that use mxGeometry
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Uses of mxGeometry in com.mxgraph.model
 

Fields in com.mxgraph.model declared as mxGeometry
protected  mxGeometry mxGraphModel.mxGeometryChange.geometry
           
protected  mxGeometry mxCell.geometry
          Holds the geometry.
protected  mxGeometry mxGraphModel.mxGeometryChange.previous
           
 

Methods in com.mxgraph.model that return mxGeometry
protected  mxGeometry mxGraphModel.geometryForCellChanged(Object cell, mxGeometry geometry)
          Inner callback to update the mxGeometry of the given mxCell using mxCell.setGeometry and return the previous mxGeometry.
 mxGeometry mxGraphModel.mxGeometryChange.getGeometry()
           
 mxGeometry mxCell.getGeometry()
           
 mxGeometry mxICell.getGeometry()
          Returns the object that describes the geometry.
 mxGeometry mxGraphModel.getGeometry(Object cell)
           
 mxGeometry mxIGraphModel.getGeometry(Object cell)
          Returns the geometry of the given cell.
 mxGeometry mxGraphModel.mxGeometryChange.getPrevious()
           
 mxGeometry mxGraphModel.setGeometry(Object cell, mxGeometry geometry)
           
 mxGeometry mxIGraphModel.setGeometry(Object cell, mxGeometry geometry)
          Sets the geometry of the given cell.
 

Methods in com.mxgraph.model with parameters of type mxGeometry
protected  mxGeometry mxGraphModel.geometryForCellChanged(Object cell, mxGeometry geometry)
          Inner callback to update the mxGeometry of the given mxCell using mxCell.setGeometry and return the previous mxGeometry.
 void mxGraphModel.mxGeometryChange.setGeometry(mxGeometry value)
           
 void mxCell.setGeometry(mxGeometry geometry)
           
 void mxICell.setGeometry(mxGeometry geometry)
          Sets the object to be used as the geometry.
 mxGeometry mxGraphModel.setGeometry(Object cell, mxGeometry geometry)
           
 mxGeometry mxIGraphModel.setGeometry(Object cell, mxGeometry geometry)
          Sets the geometry of the given cell.
 void mxGraphModel.mxGeometryChange.setPrevious(mxGeometry value)
           
 

Constructors in com.mxgraph.model with parameters of type mxGeometry
mxCell(Object value, mxGeometry geometry, String style)
          Constructs a new cell for the given parameters.
mxGraphModel.mxGeometryChange(mxGraphModel model, Object cell, mxGeometry geometry)
           
 

Uses of mxGeometry in com.mxgraph.view
 

Methods in com.mxgraph.view that return mxGeometry
 mxGeometry mxGraph.getCellGeometry(Object cell)
          Returns the geometry for the given cell.
 

Methods in com.mxgraph.view with parameters of type mxGeometry
 mxPoint mxGraphView.getPoint(mxCellState state, mxGeometry geometry)
          Returns the absolute point on the edge for the given relative geometry as a point.
 void mxGraph.updateAlternateBounds(Object cell, mxGeometry geo, boolean willCollapse)
          Updates or sets the alternate bounds in the given geometry for the given cell depending on whether the cell is going to be collapsed.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/class-use/mxCellPath.html0000664000175000017500000001360412176166726027511 0ustar sylvestresylvestre Uses of Class com.mxgraph.model.mxCellPath (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.model.mxCellPath

No usage of com.mxgraph.model.mxCellPath


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/package-frame.html0000664000175000017500000000562712176166726026242 0ustar sylvestresylvestre com.mxgraph.model (JGraph X 2.1.0.7 API Specification) com.mxgraph.model
Interfaces 
mxGraphModel.Filter
mxICell
mxIGraphModel
Classes 
mxCell
mxCellPath
mxGeometry
mxGraphModel
mxGraphModel.mxChildChange
mxGraphModel.mxCollapseChange
mxGraphModel.mxGeometryChange
mxGraphModel.mxRootChange
mxGraphModel.mxStyleChange
mxGraphModel.mxTerminalChange
mxGraphModel.mxValueChange
mxGraphModel.mxVisibleChange
mxIGraphModel.mxAtomicGraphModelChange
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxRootChange.html0000664000175000017500000005243412176166722030535 0ustar sylvestresylvestre mxGraphModel.mxRootChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxRootChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxRootChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxRootChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object previous
          Holds the new and previous root cell.
protected  Object root
          Holds the new and previous root cell.
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxRootChange()
           
mxGraphModel.mxRootChange(mxGraphModel model, Object root)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getPrevious()
           
 Object getRoot()
           
 void setPrevious(Object value)
           
 void setRoot(Object value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected Object root
Holds the new and previous root cell.


previous

protected Object previous
Holds the new and previous root cell.

Constructor Detail

mxGraphModel.mxRootChange

public mxGraphModel.mxRootChange()

mxGraphModel.mxRootChange

public mxGraphModel.mxRootChange(mxGraphModel model,
                                 Object root)
Method Detail

setRoot

public void setRoot(Object value)

getRoot

public Object getRoot()
Returns:
the root

setPrevious

public void setPrevious(Object value)

getPrevious

public Object getPrevious()
Returns:
the previous

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.Filter.html0000664000175000017500000002077112176166722027363 0ustar sylvestresylvestre mxGraphModel.Filter (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Interface mxGraphModel.Filter

Enclosing class:
mxGraphModel

public static interface mxGraphModel.Filter


Method Summary
 boolean filter(Object cell)
           
 

Method Detail

filter

boolean filter(Object cell)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxVisibleChange.html0000664000175000017500000005372412176166722031212 0ustar sylvestresylvestre mxGraphModel.mxVisibleChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxVisibleChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxVisibleChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxVisibleChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  boolean previous
           
protected  boolean visible
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxVisibleChange()
           
mxGraphModel.mxVisibleChange(mxGraphModel model, Object cell, boolean visible)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 boolean getPrevious()
           
 boolean isVisible()
           
 void setCell(Object value)
           
 void setPrevious(boolean value)
           
 void setVisible(boolean value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

visible

protected boolean visible

previous

protected boolean previous
Constructor Detail

mxGraphModel.mxVisibleChange

public mxGraphModel.mxVisibleChange()

mxGraphModel.mxVisibleChange

public mxGraphModel.mxVisibleChange(mxGraphModel model,
                                    Object cell,
                                    boolean visible)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setVisible

public void setVisible(boolean value)

isVisible

public boolean isVisible()
Returns:
the visible

setPrevious

public void setPrevious(boolean value)

getPrevious

public boolean getPrevious()
Returns:
the previous

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxStyleChange.html0000664000175000017500000005757112176166722030721 0ustar sylvestresylvestre mxGraphModel.mxStyleChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxStyleChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxStyleChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxStyleChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  String previous
           
protected  String style
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxStyleChange()
           
mxGraphModel.mxStyleChange(mxGraphModel model, Object cell, String style)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 String getPrevious()
           
 String getStyle()
           
 void setCell(Object value)
           
 void setPrevious(String value)
           
 void setStyle(String value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

style

protected String style

previous

protected String previous
Constructor Detail

mxGraphModel.mxStyleChange

public mxGraphModel.mxStyleChange()

mxGraphModel.mxStyleChange

public mxGraphModel.mxStyleChange(mxGraphModel model,
                                  Object cell,
                                  String style)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setStyle

public void setStyle(String value)

getStyle

public String getStyle()
Returns:
the style

setPrevious

public void setPrevious(String value)

getPrevious

public String getPrevious()
Returns:
the previous

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxValueChange.html0000664000175000017500000005757712176166722030703 0ustar sylvestresylvestre mxGraphModel.mxValueChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxValueChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxValueChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxValueChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  Object previous
           
protected  Object value
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxValueChange()
           
mxGraphModel.mxValueChange(mxGraphModel model, Object cell, Object value)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 Object getPrevious()
           
 Object getValue()
           
 void setCell(Object value)
           
 void setPrevious(Object value)
           
 void setValue(Object value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

value

protected Object value

previous

protected Object previous
Constructor Detail

mxGraphModel.mxValueChange

public mxGraphModel.mxValueChange()

mxGraphModel.mxValueChange

public mxGraphModel.mxValueChange(mxGraphModel model,
                                  Object cell,
                                  Object value)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setValue

public void setValue(Object value)

getValue

public Object getValue()
Returns:
the value

setPrevious

public void setPrevious(Object value)

getPrevious

public Object getPrevious()
Returns:
the previous

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxCell.html0000664000175000017500000024443412176166722025000 0ustar sylvestresylvestre mxCell (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxCell

java.lang.Object
  extended by com.mxgraph.model.mxCell
All Implemented Interfaces:
mxICell, Serializable, Cloneable

public class mxCell
extends Object
implements mxICell, Cloneable, Serializable

Cells are the elements of the graph model. They represent the state of the groups, vertices and edges in a graph.

Edge Labels

Using the x- and y-coordinates of a cell's geometry it is possible to position the label on edges on a specific location on the actual edge shape as it appears on the screen. The x-coordinate of an edge's geometry is used to describe the distance from the center of the edge from -1 to 1 with 0 being the center of the edge and the default value. The y-coordinate of an edge's geometry is used to describe the absolute, orthogonal distance in pixels from that point. In addition, the mxGeometry.offset is used as a absolute offset vector from the resulting point. The width and height of an edge geometry are ignored. To add more than one edge label, add a child vertex with a relative geometry. The x- and y-coordinates of that geometry will have the same semantiv as the above for edge labels.

See Also:
Serialized Form

Field Summary
protected  List<Object> children
          Holds the child cells and connected edges.
protected  boolean collapsed
          Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
protected  boolean connectable
          Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
protected  boolean edge
          Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
protected  List<Object> edges
          Holds the child cells and connected edges.
protected  mxGeometry geometry
          Holds the geometry.
protected  String id
          Holds the Id.
protected  mxICell parent
          Reference to the parent cell and source and target terminals for edges.
protected  mxICell source
          Reference to the parent cell and source and target terminals for edges.
protected  String style
          Holds the style as a string of the form stylename[;key=value].
protected  mxICell target
          Reference to the parent cell and source and target terminals for edges.
protected  Object value
          Holds the user object.
protected  boolean vertex
          Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
protected  boolean visible
          Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed.
 
Constructor Summary
mxCell()
          Constructs a new cell with an empty user object.
mxCell(Object value)
          Constructs a new cell for the given user object.
mxCell(Object value, mxGeometry geometry, String style)
          Constructs a new cell for the given parameters.
 
Method Summary
 Object clone()
          Returns a clone of the cell.
protected  Object cloneValue()
          Returns a clone of the user object.
 String getAttribute(String name)
          Returns the specified attribute from the user object if it is an XML node.
 String getAttribute(String name, String defaultValue)
          Returns the specified attribute from the user object if it is an XML node.
 mxICell getChildAt(int index)
          Returns the child at the specified index.
 int getChildCount()
          Returns the number of child cells.
 mxICell getEdgeAt(int index)
          Returns the edge at the specified index in the edge array.
 int getEdgeCount()
          Returns the number of edges in the edge array.
 int getEdgeIndex(mxICell edge)
          Returns the index of the specified edge in the edge array.
 mxGeometry getGeometry()
          Returns the object that describes the geometry.
 String getId()
          Returns the Id of the cell as a string.
 int getIndex(mxICell child)
          Returns the index of the specified child in the child array.
 mxICell getParent()
          Returns the cell's parent.
 mxICell getSource()
          Returns the source terminal.
 String getStyle()
          Returns the string that describes the style.
 mxICell getTarget()
          Returns the target terminal.
 mxICell getTerminal(boolean source)
          Returns the source or target terminal.
 Object getValue()
          Returns the user object of the cell.
 mxICell insert(mxICell child)
          Appends the specified child into the child array and updates the parent reference of the child.
 mxICell insert(mxICell child, int index)
          Inserts the specified child into the child array at the specified index and updates the parent reference of the child.
 mxICell insertEdge(mxICell edge, boolean isOutgoing)
          Inserts the specified edge into the edge array and returns the edge.
 boolean isCollapsed()
          Returns true if the cell is collapsed.
 boolean isConnectable()
          Returns true if the cell is connectable.
 boolean isEdge()
          Returns true if the cell is an edge.
 boolean isVertex()
          Returns true if the cell is a vertex.
 boolean isVisible()
          Returns true if the cell is visibile.
 mxICell remove(int index)
          Removes the child at the specified index from the child array and returns the child that was removed.
 mxICell remove(mxICell child)
          Removes the given child from the child array and returns it.
 mxICell removeEdge(mxICell edge, boolean isOutgoing)
          Removes the specified edge from the edge array and returns the edge.
 void removeFromParent()
          Removes the cell from its parent.
 void removeFromTerminal(boolean isSource)
          Removes the edge from its source or target terminal.
 void setAttribute(String name, String value)
          Sets the specified attribute on the user object if it is an XML node.
 void setCollapsed(boolean collapsed)
          Sets the collapsed state.
 void setConnectable(boolean connectable)
           
 void setEdge(boolean edge)
           
 void setGeometry(mxGeometry geometry)
          Sets the object to be used as the geometry.
 void setId(String id)
          Sets the Id of the cell to the given string.
 void setParent(mxICell parent)
          Sets the parent cell.
 void setSource(mxICell source)
          Sets the source terminal.
 void setStyle(String style)
          Sets the string to be used as the style.
 void setTarget(mxICell target)
          Sets the target terminal.
 mxICell setTerminal(mxICell terminal, boolean isSource)
          Sets the source or target terminal and returns the new terminal.
 void setValue(Object value)
          Sets the user object of the cell.
 void setVertex(boolean vertex)
           
 void setVisible(boolean visible)
          Specifies if the cell is visible.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id
Holds the Id. Default is null.


value

protected Object value
Holds the user object. Default is null.


geometry

protected mxGeometry geometry
Holds the geometry. Default is null.


style

protected String style
Holds the style as a string of the form stylename[;key=value]. Default is null.


vertex

protected boolean vertex
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


edge

protected boolean edge
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


connectable

protected boolean connectable
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


visible

protected boolean visible
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


collapsed

protected boolean collapsed
Specifies whether the cell is a vertex or edge and whether it is connectable, visible and collapsed. Default values are false, false, true, true and false respectively.


parent

protected mxICell parent
Reference to the parent cell and source and target terminals for edges.


source

protected mxICell source
Reference to the parent cell and source and target terminals for edges.


target

protected mxICell target
Reference to the parent cell and source and target terminals for edges.


children

protected List<Object> children
Holds the child cells and connected edges.


edges

protected List<Object> edges
Holds the child cells and connected edges.

Constructor Detail

mxCell

public mxCell()
Constructs a new cell with an empty user object.


mxCell

public mxCell(Object value)
Constructs a new cell for the given user object.

Parameters:
value - Object that represents the value of the cell.

mxCell

public mxCell(Object value,
              mxGeometry geometry,
              String style)
Constructs a new cell for the given parameters.

Parameters:
value - Object that represents the value of the cell.
geometry - Specifies the geometry of the cell.
style - Specifies the style as a formatted string.
Method Detail

getId

public String getId()
Description copied from interface: mxICell
Returns the Id of the cell as a string.

Specified by:
getId in interface mxICell
Returns:
Returns the Id.

setId

public void setId(String id)
Description copied from interface: mxICell
Sets the Id of the cell to the given string.

Specified by:
setId in interface mxICell
Parameters:
id - String that represents the new Id.

getValue

public Object getValue()
Description copied from interface: mxICell
Returns the user object of the cell.

Specified by:
getValue in interface mxICell
Returns:
Returns the user object.

setValue

public void setValue(Object value)
Description copied from interface: mxICell
Sets the user object of the cell.

Specified by:
setValue in interface mxICell
Parameters:
value - Object that represents the new value.

getGeometry

public mxGeometry getGeometry()
Description copied from interface: mxICell
Returns the object that describes the geometry.

Specified by:
getGeometry in interface mxICell
Returns:
Returns the cell geometry.

setGeometry

public void setGeometry(mxGeometry geometry)
Description copied from interface: mxICell
Sets the object to be used as the geometry.

Specified by:
setGeometry in interface mxICell

getStyle

public String getStyle()
Description copied from interface: mxICell
Returns the string that describes the style.

Specified by:
getStyle in interface mxICell
Returns:
Returns the cell style.

setStyle

public void setStyle(String style)
Description copied from interface: mxICell
Sets the string to be used as the style.

Specified by:
setStyle in interface mxICell

isVertex

public boolean isVertex()
Description copied from interface: mxICell
Returns true if the cell is a vertex.

Specified by:
isVertex in interface mxICell
Returns:
Returns true if the cell is a vertex.

setVertex

public void setVertex(boolean vertex)

isEdge

public boolean isEdge()
Description copied from interface: mxICell
Returns true if the cell is an edge.

Specified by:
isEdge in interface mxICell
Returns:
Returns true if the cell is an edge.

setEdge

public void setEdge(boolean edge)

isConnectable

public boolean isConnectable()
Description copied from interface: mxICell
Returns true if the cell is connectable.

Specified by:
isConnectable in interface mxICell
Returns:
Returns the connectable state.

setConnectable

public void setConnectable(boolean connectable)

isVisible

public boolean isVisible()
Description copied from interface: mxICell
Returns true if the cell is visibile.

Specified by:
isVisible in interface mxICell
Returns:
Returns the visible state.

setVisible

public void setVisible(boolean visible)
Description copied from interface: mxICell
Specifies if the cell is visible.

Specified by:
setVisible in interface mxICell
Parameters:
visible - Boolean that specifies the new visible state.

isCollapsed

public boolean isCollapsed()
Description copied from interface: mxICell
Returns true if the cell is collapsed.

Specified by:
isCollapsed in interface mxICell
Returns:
Returns the collapsed state.

setCollapsed

public void setCollapsed(boolean collapsed)
Description copied from interface: mxICell
Sets the collapsed state.

Specified by:
setCollapsed in interface mxICell
Parameters:
collapsed - Boolean that specifies the new collapsed state.

getParent

public mxICell getParent()
Description copied from interface: mxICell
Returns the cell's parent.

Specified by:
getParent in interface mxICell
Returns:
Returns the parent cell.

setParent

public void setParent(mxICell parent)
Description copied from interface: mxICell
Sets the parent cell.

Specified by:
setParent in interface mxICell
Parameters:
parent - Cell that represents the new parent.

getSource

public mxICell getSource()
Returns the source terminal.


setSource

public void setSource(mxICell source)
Sets the source terminal.

Parameters:
source - Cell that represents the new source terminal.

getTarget

public mxICell getTarget()
Returns the target terminal.


setTarget

public void setTarget(mxICell target)
Sets the target terminal.

Parameters:
target - Cell that represents the new target terminal.

getTerminal

public mxICell getTerminal(boolean source)
Description copied from interface: mxICell
Returns the source or target terminal.

Specified by:
getTerminal in interface mxICell
Parameters:
source - Boolean that specifies if the source terminal should be returned.
Returns:
Returns the source or target terminal.

setTerminal

public mxICell setTerminal(mxICell terminal,
                           boolean isSource)
Description copied from interface: mxICell
Sets the source or target terminal and returns the new terminal.

Specified by:
setTerminal in interface mxICell
Parameters:
terminal - Cell that represents the new source or target terminal.
isSource - Boolean that specifies if the source or target terminal should be set.
Returns:
Returns the new terminal.

getChildCount

public int getChildCount()
Description copied from interface: mxICell
Returns the number of child cells.

Specified by:
getChildCount in interface mxICell
Returns:
Returns the number of children.

getIndex

public int getIndex(mxICell child)
Description copied from interface: mxICell
Returns the index of the specified child in the child array.

Specified by:
getIndex in interface mxICell
Parameters:
child - Child whose index should be returned.
Returns:
Returns the index of the given child.

getChildAt

public mxICell getChildAt(int index)
Description copied from interface: mxICell
Returns the child at the specified index.

Specified by:
getChildAt in interface mxICell
Parameters:
index - Integer that specifies the child to be returned.
Returns:
Returns the child at the given index.

insert

public mxICell insert(mxICell child)
Description copied from interface: mxICell
Appends the specified child into the child array and updates the parent reference of the child. Returns the appended child.

Specified by:
insert in interface mxICell
Parameters:
child - Cell to be appended to the child array.
Returns:
Returns the new child.

insert

public mxICell insert(mxICell child,
                      int index)
Description copied from interface: mxICell
Inserts the specified child into the child array at the specified index and updates the parent reference of the child. Returns the inserted child.

Specified by:
insert in interface mxICell
Parameters:
child - Cell to be inserted into the child array.
index - Integer that specifies the index at which the child should be inserted into the child array.
Returns:
Returns the new child.

remove

public mxICell remove(int index)
Description copied from interface: mxICell
Removes the child at the specified index from the child array and returns the child that was removed. Will remove the parent reference of the child.

Specified by:
remove in interface mxICell
Parameters:
index - Integer that specifies the index of the child to be removed.
Returns:
Returns the child that was removed.

remove

public mxICell remove(mxICell child)
Description copied from interface: mxICell
Removes the given child from the child array and returns it. Will remove the parent reference of the child.

Specified by:
remove in interface mxICell
Parameters:
child - Cell that represents the child to be removed.
Returns:
Returns the child that was removed.

removeFromParent

public void removeFromParent()
Description copied from interface: mxICell
Removes the cell from its parent.

Specified by:
removeFromParent in interface mxICell

getEdgeCount

public int getEdgeCount()
Description copied from interface: mxICell
Returns the number of edges in the edge array.

Specified by:
getEdgeCount in interface mxICell
Returns:
Returns the number of edges.

getEdgeIndex

public int getEdgeIndex(mxICell edge)
Description copied from interface: mxICell
Returns the index of the specified edge in the edge array.

Specified by:
getEdgeIndex in interface mxICell
Parameters:
edge - Cell whose index should be returned.
Returns:
Returns the index of the given edge.

getEdgeAt

public mxICell getEdgeAt(int index)
Description copied from interface: mxICell
Returns the edge at the specified index in the edge array.

Specified by:
getEdgeAt in interface mxICell
Parameters:
index - Integer that specifies the index of the edge to be returned.
Returns:
Returns the edge at the given index.

insertEdge

public mxICell insertEdge(mxICell edge,
                          boolean isOutgoing)
Description copied from interface: mxICell
Inserts the specified edge into the edge array and returns the edge. Will update the respective terminal reference of the edge.

Specified by:
insertEdge in interface mxICell
Parameters:
edge - Cell to be inserted into the edge array.
isOutgoing - Boolean that specifies if the edge is outgoing.
Returns:
Returns the new edge.

removeEdge

public mxICell removeEdge(mxICell edge,
                          boolean isOutgoing)
Description copied from interface: mxICell
Removes the specified edge from the edge array and returns the edge. Will remove the respective terminal reference from the edge.

Specified by:
removeEdge in interface mxICell
Parameters:
edge - Cell to be removed from the edge array.
isOutgoing - Boolean that specifies if the edge is outgoing.
Returns:
Returns the edge that was removed.

removeFromTerminal

public void removeFromTerminal(boolean isSource)
Description copied from interface: mxICell
Removes the edge from its source or target terminal.

Specified by:
removeFromTerminal in interface mxICell
Parameters:
isSource - Boolean that specifies if the edge should be removed from its source or target terminal.

getAttribute

public String getAttribute(String name)
Returns the specified attribute from the user object if it is an XML node.

Parameters:
name - Name of the attribute whose value should be returned.
Returns:
Returns the value of the given attribute or null.

getAttribute

public String getAttribute(String name,
                           String defaultValue)
Returns the specified attribute from the user object if it is an XML node.

Parameters:
name - Name of the attribute whose value should be returned.
defaultValue - Default value to use if the attribute has no value.
Returns:
Returns the value of the given attribute or defaultValue.

setAttribute

public void setAttribute(String name,
                         String value)
Sets the specified attribute on the user object if it is an XML node.

Parameters:
name - Name of the attribute whose value should be set.
value - New value of the attribute.

clone

public Object clone()
             throws CloneNotSupportedException
Returns a clone of the cell.

Specified by:
clone in interface mxICell
Overrides:
clone in class Object
Returns:
Returns a clone of this cell.
Throws:
CloneNotSupportedException

cloneValue

protected Object cloneValue()
Returns a clone of the user object. This implementation clones any XML nodes or otherwise returns the same user object instance.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/package-summary.html0000664000175000017500000002460012176166726026635 0ustar sylvestresylvestre com.mxgraph.model (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.model

This package contains the classes that define a graph model.

See:
          Description

Interface Summary
mxGraphModel.Filter  
mxICell Defines the requirements for a cell that can be used in an mxGraphModel.
mxIGraphModel Defines the requirements for a graph model to be used with mxGraph.
 

Class Summary
mxCell Cells are the elements of the graph model.
mxCellPath Implements a mechanism for temporary cell Ids.
mxGeometry Represents the geometry of a cell.
mxGraphModel Extends mxEventSource to implement a graph model.
mxGraphModel.mxChildChange  
mxGraphModel.mxCollapseChange  
mxGraphModel.mxGeometryChange  
mxGraphModel.mxRootChange  
mxGraphModel.mxStyleChange  
mxGraphModel.mxTerminalChange  
mxGraphModel.mxValueChange  
mxGraphModel.mxVisibleChange  
mxIGraphModel.mxAtomicGraphModelChange Defines the interface for an atomic change of the graph model.
 

Package com.mxgraph.model Description

This package contains the classes that define a graph model.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/package-use.html0000664000175000017500000003142512176166726025737 0ustar sylvestresylvestre Uses of Package com.mxgraph.model (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.model

Packages that use com.mxgraph.model
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.model This package contains the classes that define a graph model. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
com.mxgraph.util This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history. 
com.mxgraph.view This package implements the graph component, represented by the mxGraph class. 
 

Classes in com.mxgraph.model used by com.mxgraph.io
mxCell
          Cells are the elements of the graph model.
mxICell
          Defines the requirements for a cell that can be used in an mxGraphModel.
 

Classes in com.mxgraph.model used by com.mxgraph.model
mxGeometry
          Represents the geometry of a cell.
mxGraphModel
          Extends mxEventSource to implement a graph model.
mxGraphModel.Filter
           
mxICell
          Defines the requirements for a cell that can be used in an mxGraphModel.
mxIGraphModel
          Defines the requirements for a graph model to be used with mxGraph.
mxIGraphModel.mxAtomicGraphModelChange
          Defines the interface for an atomic change of the graph model.
 

Classes in com.mxgraph.model used by com.mxgraph.sharing
mxGraphModel
          Extends mxEventSource to implement a graph model.
mxIGraphModel.mxAtomicGraphModelChange
          Defines the interface for an atomic change of the graph model.
 

Classes in com.mxgraph.model used by com.mxgraph.util
mxIGraphModel
          Defines the requirements for a graph model to be used with mxGraph.
 

Classes in com.mxgraph.model used by com.mxgraph.view
mxGeometry
          Represents the geometry of a cell.
mxIGraphModel
          Defines the requirements for a graph model to be used with mxGraph.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.html0000664000175000017500000052742312176166722026145 0ustar sylvestresylvestre mxGraphModel (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel

java.lang.Object
  extended by com.mxgraph.util.mxEventSource
      extended by com.mxgraph.model.mxGraphModel
All Implemented Interfaces:
mxIGraphModel, Serializable

public class mxGraphModel
extends mxEventSource
implements mxIGraphModel, Serializable

Extends mxEventSource to implement a graph model. The graph model acts as a wrapper around the cells which are in charge of storing the actual graph datastructure. The model acts as a transactional wrapper with event notification for all changes, whereas the cells contain the atomic operations for updating the actual datastructure. Layers: The cell hierarchy in the model must have a top-level root cell which contains the layers (typically one default layer), which in turn contain the top-level cells of the layers. This means each cell is contained in a layer. If no layers are required, then all new cells should be added to the default layer. Layers are useful for hiding and showing groups of cells, or for placing groups of cells on top of other cells in the display. To identify a layer, the function is used. It returns true if the parent of the given cell is the root of the model. This class fires the following events: mxEvent.CHANGE fires when an undoable edit is dispatched. The edit property contains the mxUndoableEdit. The changes property contains the list of undoable changes inside the undoable edit. The changes property is deprecated, please use edit.getChanges() instead. mxEvent.EXECUTE fires between begin- and endUpdate and after an atomic change was executed in the model. The change property contains the atomic change that was executed. mxEvent.BEGIN_UPDATE fires after the updateLevel was incremented in beginUpdate. This event contains no properties. mxEvent.END_UPDATE fires after the updateLevel was decreased in endUpdate but before any notification or change dispatching. The edit property contains the current mxUndoableEdit. mxEvent.BEFORE_UNDO fires before the change is dispatched after the update level has reached 0 in endUpdate. The edit property contains the current mxUndoableEdit. mxEvent.UNDO fires after the change was dispatched in endUpdate. The edit property contains the current mxUndoableEdit.

See Also:
Serialized Form

Nested Class Summary
static interface mxGraphModel.Filter
           
static class mxGraphModel.mxChildChange
           
static class mxGraphModel.mxCollapseChange
           
static class mxGraphModel.mxGeometryChange
           
static class mxGraphModel.mxRootChange
           
static class mxGraphModel.mxStyleChange
           
static class mxGraphModel.mxTerminalChange
           
static class mxGraphModel.mxValueChange
           
static class mxGraphModel.mxVisibleChange
           
 
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
 
Nested classes/interfaces inherited from interface com.mxgraph.model.mxIGraphModel
mxIGraphModel.mxAtomicGraphModelChange
 
Field Summary
protected  Map<String,Object> cells
          Maps from Ids to cells.
protected  boolean createIds
          Specifies if the model should automatically create Ids for new cells.
protected  mxUndoableEdit currentEdit
          Holds the changes for the current transaction.
protected  boolean endingUpdate
           
protected  boolean maintainEdgeParent
          Specifies if edges should automatically be moved into the nearest common ancestor of their terminals.
protected  int nextId
          Specifies the next Id to be created.
protected  mxICell root
          Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells.
protected  int updateLevel
          Counter for the depth of nested transactions.
 
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
 
Constructor Summary
mxGraphModel()
          Constructs a new empty graph model.
mxGraphModel(Object root)
          Constructs a new graph model.
 
Method Summary
 Object add(Object parent, Object child, int index)
          Adds the specified child to the parent at the given index.
 void beginUpdate()
          Increments the updateLevel by one.
protected  void cellAdded(Object cell)
          Invoked after a cell has been added to a parent.
protected  void cellRemoved(Object cell)
          Invoked after a cell has been removed from the model.
 void clear()
          Sets a new root using createRoot.
protected  Object cloneCell(Object cell, Map<Object,Object> mapping, boolean includeChildren)
          Inner helper method for cloning cells recursively.
 Object[] cloneCells(Object[] cells, boolean includeChildren)
          Returns an array of clones for the given array of cells.
protected  boolean collapsedStateForCellChanged(Object cell, boolean collapsed)
          Inner callback to update the collapsed state of the given mxCell using mxCell.setCollapsed and return the previous collapsed state.
 boolean contains(Object cell)
          Returns true if the model contains the given cell.
 String createId(Object cell)
          Creates a new Id for the given cell and increments the global counter for creating new Ids.
 Object createRoot()
          Creates a new root cell with a default layer (child 0).
protected  mxUndoableEdit createUndoableEdit()
          Creates a new undoable edit.
 void endUpdate()
          Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0.
 void execute(mxIGraphModel.mxAtomicGraphModelChange change)
          Executes the given atomic change and adds it to the current edit.
static Object[] filterCells(Object[] cells, mxGraphModel.Filter filter)
           
static Collection<Object> filterDescendants(mxIGraphModel model, mxGraphModel.Filter filter)
          Creates a collection of cells using the visitor pattern.
static Collection<Object> filterDescendants(mxIGraphModel model, mxGraphModel.Filter filter, Object parent)
          Creates a collection of cells using the visitor pattern.
protected  mxGeometry geometryForCellChanged(Object cell, mxGeometry geometry)
          Inner callback to update the mxGeometry of the given mxCell using mxCell.setGeometry and return the previous mxGeometry.
 Object getCell(String id)
          Returns the cell for the specified Id or null if no cell can be found for the given Id.
 Map<String,Object> getCells()
          Returns the internal lookup table that is used to map from Ids to cells.
 Object getChildAt(Object parent, int index)
          Returns the child of the given parent at the given index.
static Object[] getChildCells(mxIGraphModel model, Object parent, boolean vertices, boolean edges)
          Returns the children of the given cell that are vertices and/or edges depending on the arguments.
 int getChildCount(Object cell)
          Returns the number of children in the given cell.
static Object[] getChildEdges(mxIGraphModel model, Object parent)
          Returns the child edges of the given parent.
static Object[] getChildren(mxIGraphModel model, Object parent)
          Returns all children of the given cell regardless of their type.
static Object[] getChildVertices(mxIGraphModel model, Object parent)
          Returns the child vertices of the given parent.
static Object[] getConnections(mxIGraphModel model, Object cell)
          Returns all edges connected to this cell without loops.
static Collection<Object> getDescendants(mxIGraphModel model, Object parent)
          Returns a all descendants of the given cell and the cell itself as a collection.
static int getDirectedEdgeCount(mxIGraphModel model, Object cell, boolean outgoing)
          Returns the number of incoming or outgoing edges.
static int getDirectedEdgeCount(mxIGraphModel model, Object cell, boolean outgoing, Object ignoredEdge)
          Returns the number of incoming or outgoing edges, ignoring the given edge.
 Object getEdgeAt(Object parent, int index)
          Returns the edge of cell at the given index.
 int getEdgeCount(Object cell)
          Returns the number of distinct edges connected to the given cell.
static Object[] getEdges(mxIGraphModel model, Object cell)
          Returns all edges connected to this cell including loops.
static Object[] getEdges(mxIGraphModel model, Object cell, boolean incoming, boolean outgoing, boolean includeLoops)
          Returns all distinct edges connected to this cell.
static Object[] getEdgesBetween(mxIGraphModel model, Object source, Object target)
          Returns all edges from the given source to the given target.
static Object[] getEdgesBetween(mxIGraphModel model, Object source, Object target, boolean directed)
          Returns all edges between the given source and target pair.
 mxGeometry getGeometry(Object cell)
          Returns the geometry of the given cell.
static Object[] getIncomingEdges(mxIGraphModel model, Object cell)
          Returns the incoming edges of the given cell without loops.
 Object getNearestCommonAncestor(Object cell1, Object cell2)
          Returns the nearest common ancestor for the specified cells.
static Object[] getOpposites(mxIGraphModel model, Object[] edges, Object terminal)
          Returns all opposite cells of terminal for the given edges.
static Object[] getOpposites(mxIGraphModel model, Object[] edges, Object terminal, boolean sources, boolean targets)
          Returns all opposite vertices wrt terminal for the given edges, only returning sources and/or targets as specified.
 mxPoint getOrigin(Object cell)
          Returns the absolute, accumulated origin for the children inside the given parent.
static Object[] getOutgoingEdges(mxIGraphModel model, Object cell)
          Returns the outgoing edges of the given cell without loops.
 Object getParent(Object child)
          Returns the parent of the given cell.
static Object[] getParents(mxIGraphModel model, Object[] cells)
           
 Object getRoot()
          Returns the root of the model or the topmost parent of the given cell.
 String getStyle(Object cell)
          Returns the style of the given cell.
 Object getTerminal(Object edge, boolean isSource)
          Returns the source or target terminal of the given edge depending on the value of the boolean parameter.
static Object[] getTopmostCells(mxIGraphModel model, Object[] cells)
          Function: getTopmostCells Returns the topmost cells of the hierarchy in an array that contains no desceandants for each that it contains.
 int getUpdateLevel()
           
 Object getValue(Object cell)
          Returns the user object of the given cell.
 boolean isAncestor(Object parent, Object child)
          Returns true if the given parent is an ancestor of the given child.
 boolean isCollapsed(Object cell)
          Returns true if the given cell is collapsed.
 boolean isConnectable(Object cell)
          Returns true if the given cell is connectable.
 boolean isCreateIds()
          Returns true if the model automatically creates Ids and resolves Id collisions.
 boolean isEdge(Object cell)
          Returns true if the given cell is an edge.
 boolean isMaintainEdgeParent()
          Returns true if the model automatically update parents of edges so that the edge is contained in the nearest-common-ancestor of its terminals.
 boolean isVertex(Object cell)
          Returns true if the given cell is a vertex.
 boolean isVisible(Object cell)
          Returns true if the given cell is visible.
 void mergeChildren(mxICell from, mxICell to, boolean cloneAllEdges)
          Merges the children of the given cell into the given target cell inside this model.
protected  void mergeChildrenImpl(mxICell from, mxICell to, boolean cloneAllEdges, Hashtable<Object,Object> mapping)
          Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.
protected  Object parentForCellChanged(Object cell, Object parent, int index)
          Inner callback to update the parent of a cell using mxCell.insert on the parent and return the previous parent.
 Object remove(Object cell)
          Removes the specified cell from the model.
protected  void restoreClone(Object clone, Object cell, Map<Object,Object> mapping)
          Inner helper method for restoring the connections in a network of cloned cells.
protected  Object rootChanged(Object root)
          Inner callback to change the root of the model and update the internal datastructures, such as cells and nextId.
 boolean setCollapsed(Object cell, boolean collapsed)
          Sets the collapsed state of the given cell.
 void setCreateIds(boolean value)
          Specifies if the model automatically creates Ids for new cells and resolves Id collisions.
 mxGeometry setGeometry(Object cell, mxGeometry geometry)
          Sets the geometry of the given cell.
 void setMaintainEdgeParent(boolean maintainEdgeParent)
          Specifies if the model automatically updates parents of edges so that the edge is contained in the nearest-common-ancestor of its terminals.
 Object setRoot(Object root)
          Sets the root of the model and resets all structures.
 String setStyle(Object cell, String style)
          Sets the style of the given cell.
 Object setTerminal(Object edge, Object terminal, boolean isSource)
          Sets the source or target terminal of the given edge using.
static void setTerminals(mxIGraphModel model, Object edge, Object source, Object target)
          Sets the source and target of the given edge in a single atomic change.
 Object setValue(Object cell, Object value)
          Sets the user object of then given cell.
 boolean setVisible(Object cell, boolean visible)
          Sets the visible state of the given cell.
protected  String styleForCellChanged(Object cell, String style)
          Inner callback to update the style of the given mxCell using mxCell.setStyle and return the previous style.
protected  Object terminalForCellChanged(Object edge, Object terminal, boolean isSource)
          Inner helper function to update the terminal of the edge using mxCell.insertEdge and return the previous terminal.
 void updateEdgeParent(Object edge, Object root)
          Inner helper method to update the parent of the specified edge to the nearest-common-ancestor of its two terminals.
 void updateEdgeParents(Object cell)
          Updates the parents of the edges connected to the given cell and all its descendants so that each edge is contained in the nearest common ancestor.
 void updateEdgeParents(Object cell, Object root)
          Updates the parents of the edges connected to the given cell and all its descendants so that the edge is contained in the nearest-common-ancestor.
protected  Object valueForCellChanged(Object cell, Object value)
          Inner callback to update the user object of the given mxCell using mxCell.setValue and return the previous value, that is, the return value of mxCell.getValue.
protected  boolean visibleStateForCellChanged(Object cell, boolean visible)
          Sets the visible state of the given mxCell using mxVisibleChange and adds the change to the current transaction.
 
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mxgraph.model.mxIGraphModel
addListener, removeListener, removeListener
 

Field Detail

root

protected mxICell root
Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. That is, the actual element of the diagram are supposed to live in the third generation of cells and below.


cells

protected Map<String,Object> cells
Maps from Ids to cells.


maintainEdgeParent

protected boolean maintainEdgeParent
Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. Default is true.


createIds

protected boolean createIds
Specifies if the model should automatically create Ids for new cells. Default is true.


nextId

protected int nextId
Specifies the next Id to be created. Initial value is 0.


currentEdit

protected transient mxUndoableEdit currentEdit
Holds the changes for the current transaction. If the transaction is closed then a new object is created for this variable using createUndoableEdit.


updateLevel

protected transient int updateLevel
Counter for the depth of nested transactions. Each call to beginUpdate increments this counter and each call to endUpdate decrements it. When the counter reaches 0, the transaction is closed and the respective events are fired. Initial value is 0.


endingUpdate

protected transient boolean endingUpdate
Constructor Detail

mxGraphModel

public mxGraphModel()
Constructs a new empty graph model.


mxGraphModel

public mxGraphModel(Object root)
Constructs a new graph model. If no root is specified then a new root mxCell with a default layer is created.

Parameters:
root - Cell that represents the root cell.
Method Detail

clear

public void clear()
Sets a new root using createRoot.


getUpdateLevel

public int getUpdateLevel()

createRoot

public Object createRoot()
Creates a new root cell with a default layer (child 0).


getCells

public Map<String,Object> getCells()
Returns the internal lookup table that is used to map from Ids to cells.


getCell

public Object getCell(String id)
Returns the cell for the specified Id or null if no cell can be found for the given Id.

Parameters:
id - A string representing the Id of the cell.
Returns:
Returns the cell for the given Id.

isMaintainEdgeParent

public boolean isMaintainEdgeParent()
Returns true if the model automatically update parents of edges so that the edge is contained in the nearest-common-ancestor of its terminals.

Returns:
Returns true if the model maintains edge parents.

setMaintainEdgeParent

public void setMaintainEdgeParent(boolean maintainEdgeParent)
Specifies if the model automatically updates parents of edges so that the edge is contained in the nearest-common-ancestor of its terminals.

Parameters:
maintainEdgeParent - Boolean indicating if the model should maintain edge parents.

isCreateIds

public boolean isCreateIds()
Returns true if the model automatically creates Ids and resolves Id collisions.

Returns:
Returns true if the model creates Ids.

setCreateIds

public void setCreateIds(boolean value)
Specifies if the model automatically creates Ids for new cells and resolves Id collisions.

Parameters:
value - Boolean indicating if the model should created Ids.

getRoot

public Object getRoot()
Description copied from interface: mxIGraphModel
Returns the root of the model or the topmost parent of the given cell.

Specified by:
getRoot in interface mxIGraphModel
Returns:
Returns the root cell.

setRoot

public Object setRoot(Object root)
Description copied from interface: mxIGraphModel
Sets the root of the model and resets all structures.

Specified by:
setRoot in interface mxIGraphModel
Parameters:
root - Cell that specifies the new root.

rootChanged

protected Object rootChanged(Object root)
Inner callback to change the root of the model and update the internal datastructures, such as cells and nextId. Returns the previous root.


createUndoableEdit

protected mxUndoableEdit createUndoableEdit()
Creates a new undoable edit.


cloneCells

public Object[] cloneCells(Object[] cells,
                           boolean includeChildren)
Description copied from interface: mxIGraphModel
Returns an array of clones for the given array of cells. Depending on the value of includeChildren, a deep clone is created for each cell. Connections are restored based if the corresponding cell is contained in the passed in array.

Specified by:
cloneCells in interface mxIGraphModel
Parameters:
cells - Array of cells to be cloned.
includeChildren - Boolean indicating if the cells should be cloned with all descendants.
Returns:
Returns a cloned array of cells.

cloneCell

protected Object cloneCell(Object cell,
                           Map<Object,Object> mapping,
                           boolean includeChildren)
                    throws CloneNotSupportedException
Inner helper method for cloning cells recursively.

Throws:
CloneNotSupportedException

restoreClone

protected void restoreClone(Object clone,
                            Object cell,
                            Map<Object,Object> mapping)
Inner helper method for restoring the connections in a network of cloned cells.


isAncestor

public boolean isAncestor(Object parent,
                          Object child)
Description copied from interface: mxIGraphModel
Returns true if the given parent is an ancestor of the given child.

Specified by:
isAncestor in interface mxIGraphModel
Parameters:
parent - Cell that specifies the parent.
child - Cell that specifies the child.
Returns:
Returns true if child is an ancestor of parent.

contains

public boolean contains(Object cell)
Description copied from interface: mxIGraphModel
Returns true if the model contains the given cell.

Specified by:
contains in interface mxIGraphModel
Parameters:
cell - Cell to be checked.
Returns:
Returns true if the cell is in the model.

getParent

public Object getParent(Object child)
Description copied from interface: mxIGraphModel
Returns the parent of the given cell.

Specified by:
getParent in interface mxIGraphModel
Parameters:
child - Cell whose parent should be returned.
Returns:
Returns the parent of the given cell.

add

public Object add(Object parent,
                  Object child,
                  int index)
Description copied from interface: mxIGraphModel
Adds the specified child to the parent at the given index. If no index is specified then the child is appended to the parent's array of children.

Specified by:
add in interface mxIGraphModel
Parameters:
parent - Cell that specifies the parent to contain the child.
child - Cell that specifies the child to be inserted.
index - Integer that specifies the index of the child.
Returns:
Returns the inserted child.

cellAdded

protected void cellAdded(Object cell)
Invoked after a cell has been added to a parent. This recursively creates an Id for the new cell and/or resolves Id collisions.

Parameters:
cell - Cell that has been added.

createId

public String createId(Object cell)
Creates a new Id for the given cell and increments the global counter for creating new Ids.

Parameters:
cell - Cell for which a new Id should be created.
Returns:
Returns a new Id for the given cell.

remove

public Object remove(Object cell)
Description copied from interface: mxIGraphModel
Removes the specified cell from the model. This operation will remove the cell and all of its children from the model.

Specified by:
remove in interface mxIGraphModel
Parameters:
cell - Cell that should be removed.
Returns:
Returns the removed cell.

cellRemoved

protected void cellRemoved(Object cell)
Invoked after a cell has been removed from the model. This recursively removes the cell from its terminals and removes the mapping from the Id to the cell.

Parameters:
cell - Cell that has been removed.

parentForCellChanged

protected Object parentForCellChanged(Object cell,
                                      Object parent,
                                      int index)
Inner callback to update the parent of a cell using mxCell.insert on the parent and return the previous parent.


getChildCount

public int getChildCount(Object cell)
Description copied from interface: mxIGraphModel
Returns the number of children in the given cell.

Specified by:
getChildCount in interface mxIGraphModel
Parameters:
cell - Cell whose number of children should be returned.
Returns:
Returns the number of children in the given cell.

getChildAt

public Object getChildAt(Object parent,
                         int index)
Description copied from interface: mxIGraphModel
Returns the child of the given parent at the given index.

Specified by:
getChildAt in interface mxIGraphModel
Parameters:
parent - Cell that represents the parent.
index - Integer that specifies the index of the child to be returned.
Returns:
Returns the child at index in parent.

getTerminal

public Object getTerminal(Object edge,
                          boolean isSource)
Description copied from interface: mxIGraphModel
Returns the source or target terminal of the given edge depending on the value of the boolean parameter.

Specified by:
getTerminal in interface mxIGraphModel
Parameters:
edge - Cell that specifies the edge.
isSource - Boolean indicating which end of the edge should be returned.
Returns:
Returns the source or target of the given edge.

setTerminal

public Object setTerminal(Object edge,
                          Object terminal,
                          boolean isSource)
Description copied from interface: mxIGraphModel
Sets the source or target terminal of the given edge using.

Specified by:
setTerminal in interface mxIGraphModel
Parameters:
edge - Cell that specifies the edge.
terminal - Cell that specifies the new terminal.
isSource - Boolean indicating if the terminal is the new source or target terminal of the edge.
Returns:
Returns the new terminal.

terminalForCellChanged

protected Object terminalForCellChanged(Object edge,
                                        Object terminal,
                                        boolean isSource)
Inner helper function to update the terminal of the edge using mxCell.insertEdge and return the previous terminal.


updateEdgeParents

public void updateEdgeParents(Object cell)
Updates the parents of the edges connected to the given cell and all its descendants so that each edge is contained in the nearest common ancestor.

Parameters:
cell - Cell whose edges should be checked and updated.

updateEdgeParents

public void updateEdgeParents(Object cell,
                              Object root)
Updates the parents of the edges connected to the given cell and all its descendants so that the edge is contained in the nearest-common-ancestor.

Parameters:
cell - Cell whose edges should be checked and updated.
root - Root of the cell hierarchy that contains all cells.

updateEdgeParent

public void updateEdgeParent(Object edge,
                             Object root)
Inner helper method to update the parent of the specified edge to the nearest-common-ancestor of its two terminals.

Parameters:
edge - Specifies the edge to be updated.
root - Current root of the model.

getOrigin

public mxPoint getOrigin(Object cell)
Returns the absolute, accumulated origin for the children inside the given parent.


getNearestCommonAncestor

public Object getNearestCommonAncestor(Object cell1,
                                       Object cell2)
Returns the nearest common ancestor for the specified cells.

Parameters:
cell1 - Cell that specifies the first cell in the tree.
cell2 - Cell that specifies the second cell in the tree.
Returns:
Returns the nearest common ancestor of the given cells.

getEdgeCount

public int getEdgeCount(Object cell)
Description copied from interface: mxIGraphModel
Returns the number of distinct edges connected to the given cell.

Specified by:
getEdgeCount in interface mxIGraphModel
Parameters:
cell - Cell that represents the vertex.
Returns:
Returns the number of edges connected to cell.

getEdgeAt

public Object getEdgeAt(Object parent,
                        int index)
Description copied from interface: mxIGraphModel
Returns the edge of cell at the given index.

Specified by:
getEdgeAt in interface mxIGraphModel
Parameters:
parent - Cell that specifies the vertex.
index - Integer that specifies the index of the edge to return.
Returns:
Returns the edge at the given index.

isVertex

public boolean isVertex(Object cell)
Description copied from interface: mxIGraphModel
Returns true if the given cell is a vertex.

Specified by:
isVertex in interface mxIGraphModel
Parameters:
cell - Cell that represents the possible vertex.
Returns:
Returns true if the given cell is a vertex.

isEdge

public boolean isEdge(Object cell)
Description copied from interface: mxIGraphModel
Returns true if the given cell is an edge.

Specified by:
isEdge in interface mxIGraphModel
Parameters:
cell - Cell that represents the possible edge.
Returns:
Returns true if the given cell is an edge.

isConnectable

public boolean isConnectable(Object cell)
Description copied from interface: mxIGraphModel
Returns true if the given cell is connectable.

Specified by:
isConnectable in interface mxIGraphModel
Parameters:
cell - Cell whose connectable state should be returned.
Returns:
Returns the connectable state of the given cell.

getValue

public Object getValue(Object cell)
Description copied from interface: mxIGraphModel
Returns the user object of the given cell.

Specified by:
getValue in interface mxIGraphModel
Parameters:
cell - Cell whose user object should be returned.
Returns:
Returns the user object of the given cell.

setValue

public Object setValue(Object cell,
                       Object value)
Description copied from interface: mxIGraphModel
Sets the user object of then given cell.

Specified by:
setValue in interface mxIGraphModel
Parameters:
cell - Cell whose user object should be changed.
value - Object that defines the new user object.
Returns:
Returns the new value.

valueForCellChanged

protected Object valueForCellChanged(Object cell,
                                     Object value)
Inner callback to update the user object of the given mxCell using mxCell.setValue and return the previous value, that is, the return value of mxCell.getValue.


getGeometry

public mxGeometry getGeometry(Object cell)
Description copied from interface: mxIGraphModel
Returns the geometry of the given cell.

Specified by:
getGeometry in interface mxIGraphModel
Parameters:
cell - Cell whose geometry should be returned.
Returns:
Returns the geometry of the given cell.

setGeometry

public mxGeometry setGeometry(Object cell,
                              mxGeometry geometry)
Description copied from interface: mxIGraphModel
Sets the geometry of the given cell.

Specified by:
setGeometry in interface mxIGraphModel
Parameters:
cell - Cell whose geometry should be changed.
geometry - Object that defines the new geometry.
Returns:
Returns the new geometry.

geometryForCellChanged

protected mxGeometry geometryForCellChanged(Object cell,
                                            mxGeometry geometry)
Inner callback to update the mxGeometry of the given mxCell using mxCell.setGeometry and return the previous mxGeometry.


getStyle

public String getStyle(Object cell)
Description copied from interface: mxIGraphModel
Returns the style of the given cell.

Specified by:
getStyle in interface mxIGraphModel
Parameters:
cell - Cell whose style should be returned.
Returns:
Returns the style of the given cell.

setStyle

public String setStyle(Object cell,
                       String style)
Description copied from interface: mxIGraphModel
Sets the style of the given cell.

Specified by:
setStyle in interface mxIGraphModel
Parameters:
cell - Cell whose style should be changed.
style - String of the form stylename[;key=value] to specify the new cell style.
Returns:
Returns the new style.

styleForCellChanged

protected String styleForCellChanged(Object cell,
                                     String style)
Inner callback to update the style of the given mxCell using mxCell.setStyle and return the previous style.


isCollapsed

public boolean isCollapsed(Object cell)
Description copied from interface: mxIGraphModel
Returns true if the given cell is collapsed.

Specified by:
isCollapsed in interface mxIGraphModel
Parameters:
cell - Cell whose collapsed state should be returned.
Returns:
Returns the collapsed state of the given cell.

setCollapsed

public boolean setCollapsed(Object cell,
                            boolean collapsed)
Description copied from interface: mxIGraphModel
Sets the collapsed state of the given cell.

Specified by:
setCollapsed in interface mxIGraphModel
Parameters:
cell - Cell whose collapsed state should be changed.
collapsed - Boolean that specifies the new collpased state.
Returns:
Returns the new collapsed state.

collapsedStateForCellChanged

protected boolean collapsedStateForCellChanged(Object cell,
                                               boolean collapsed)
Inner callback to update the collapsed state of the given mxCell using mxCell.setCollapsed and return the previous collapsed state.


isVisible

public boolean isVisible(Object cell)
Description copied from interface: mxIGraphModel
Returns true if the given cell is visible.

Specified by:
isVisible in interface mxIGraphModel
Parameters:
cell - Cell whose visible state should be returned.
Returns:
Returns the visible state of the given cell.

setVisible

public boolean setVisible(Object cell,
                          boolean visible)
Description copied from interface: mxIGraphModel
Sets the visible state of the given cell.

Specified by:
setVisible in interface mxIGraphModel
Parameters:
cell - Cell whose visible state should be changed.
visible - Boolean that specifies the new visible state.
Returns:
Returns the new visible state.

visibleStateForCellChanged

protected boolean visibleStateForCellChanged(Object cell,
                                             boolean visible)
Sets the visible state of the given mxCell using mxVisibleChange and adds the change to the current transaction.


execute

public void execute(mxIGraphModel.mxAtomicGraphModelChange change)
Executes the given atomic change and adds it to the current edit.

Parameters:
change - Atomic change to be executed.

beginUpdate

public void beginUpdate()
Description copied from interface: mxIGraphModel
Increments the updateLevel by one. The event notification is queued until updateLevel reaches 0 by use of endUpdate.

Specified by:
beginUpdate in interface mxIGraphModel

endUpdate

public void endUpdate()
Description copied from interface: mxIGraphModel
Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0.

Specified by:
endUpdate in interface mxIGraphModel

mergeChildren

public void mergeChildren(mxICell from,
                          mxICell to,
                          boolean cloneAllEdges)
                   throws CloneNotSupportedException
Merges the children of the given cell into the given target cell inside this model. All cells are cloned unless there is a corresponding cell in the model with the same id, in which case the source cell is ignored and all edges are connected to the corresponding cell in this model. Edges are considered to have no identity and are always cloned unless the cloneAllEdges flag is set to false, in which case edges with the same id in the target model are reconnected to reflect the terminals of the source edges.

Parameters:
from -
to -
cloneAllEdges -
Throws:
CloneNotSupportedException

mergeChildrenImpl

protected void mergeChildrenImpl(mxICell from,
                                 mxICell to,
                                 boolean cloneAllEdges,
                                 Hashtable<Object,Object> mapping)
                          throws CloneNotSupportedException
Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.

Throws:
CloneNotSupportedException

getDirectedEdgeCount

public static int getDirectedEdgeCount(mxIGraphModel model,
                                       Object cell,
                                       boolean outgoing)
Returns the number of incoming or outgoing edges.

Parameters:
model - Graph model that contains the connection data.
cell - Cell whose edges should be counted.
outgoing - Boolean that specifies if the number of outgoing or incoming edges should be returned.
Returns:
Returns the number of incoming or outgoing edges.

getDirectedEdgeCount

public static int getDirectedEdgeCount(mxIGraphModel model,
                                       Object cell,
                                       boolean outgoing,
                                       Object ignoredEdge)
Returns the number of incoming or outgoing edges, ignoring the given edge.

Parameters:
model - Graph model that contains the connection data.
cell - Cell whose edges should be counted.
outgoing - Boolean that specifies if the number of outgoing or incoming edges should be returned.
ignoredEdge - Object that represents an edge to be ignored.
Returns:
Returns the number of incoming or outgoing edges.

getEdges

public static Object[] getEdges(mxIGraphModel model,
                                Object cell)
Returns all edges connected to this cell including loops.

Parameters:
model - Model that contains the connection information.
cell - Cell whose connections should be returned.
Returns:
Returns the array of connected edges for the given cell.

getConnections

public static Object[] getConnections(mxIGraphModel model,
                                      Object cell)
Returns all edges connected to this cell without loops.

Parameters:
model - Model that contains the connection information.
cell - Cell whose connections should be returned.
Returns:
Returns the connected edges for the given cell.

getIncomingEdges

public static Object[] getIncomingEdges(mxIGraphModel model,
                                        Object cell)
Returns the incoming edges of the given cell without loops.

Parameters:
model - Graphmodel that contains the edges.
cell - Cell whose incoming edges should be returned.
Returns:
Returns the incoming edges for the given cell.

getOutgoingEdges

public static Object[] getOutgoingEdges(mxIGraphModel model,
                                        Object cell)
Returns the outgoing edges of the given cell without loops.

Parameters:
model - Graphmodel that contains the edges.
cell - Cell whose outgoing edges should be returned.
Returns:
Returns the outgoing edges for the given cell.

getEdges

public static Object[] getEdges(mxIGraphModel model,
                                Object cell,
                                boolean incoming,
                                boolean outgoing,
                                boolean includeLoops)
Returns all distinct edges connected to this cell.

Parameters:
model - Model that contains the connection information.
cell - Cell whose connections should be returned.
incoming - Specifies if incoming edges should be returned.
outgoing - Specifies if outgoing edges should be returned.
includeLoops - Specifies if loops should be returned.
Returns:
Returns the array of connected edges for the given cell.

getEdgesBetween

public static Object[] getEdgesBetween(mxIGraphModel model,
                                       Object source,
                                       Object target)
Returns all edges from the given source to the given target.

Parameters:
model - The graph model that contains the graph.
source - Object that defines the source cell.
target - Object that defines the target cell.
Returns:
Returns all edges from source to target.

getEdgesBetween

public static Object[] getEdgesBetween(mxIGraphModel model,
                                       Object source,
                                       Object target,
                                       boolean directed)
Returns all edges between the given source and target pair. If directed is true, then only edges from the source to the target are returned, otherwise, all edges between the two cells are returned.

Parameters:
model - The graph model that contains the graph.
source - Object that defines the source cell.
target - Object that defines the target cell.
directed - Boolean that specifies if the direction of the edge should be taken into account.
Returns:
Returns all edges between the given source and target.

getOpposites

public static Object[] getOpposites(mxIGraphModel model,
                                    Object[] edges,
                                    Object terminal)
Returns all opposite cells of terminal for the given edges.

Parameters:
model - Model that contains the connection information.
edges - Array of edges to be examined.
terminal - Cell that specifies the known end of the edges.
Returns:
Returns the opposite cells of the given terminal.

getOpposites

public static Object[] getOpposites(mxIGraphModel model,
                                    Object[] edges,
                                    Object terminal,
                                    boolean sources,
                                    boolean targets)
Returns all opposite vertices wrt terminal for the given edges, only returning sources and/or targets as specified. The result is returned as an array of mxCells.

Parameters:
model - Model that contains the connection information.
edges - Array of edges to be examined.
terminal - Cell that specifies the known end of the edges.
sources - Boolean that specifies if source terminals should be contained in the result. Default is true.
targets - Boolean that specifies if target terminals should be contained in the result. Default is true.
Returns:
Returns the array of opposite terminals for the given edges.

setTerminals

public static void setTerminals(mxIGraphModel model,
                                Object edge,
                                Object source,
                                Object target)
Sets the source and target of the given edge in a single atomic change.

Parameters:
edge - Cell that specifies the edge.
source - Cell that specifies the new source terminal.
target - Cell that specifies the new target terminal.

getChildren

public static Object[] getChildren(mxIGraphModel model,
                                   Object parent)
Returns all children of the given cell regardless of their type.

Parameters:
model - Model that contains the hierarchical information.
parent - Cell whose child vertices or edges should be returned.
Returns:
Returns the child vertices and/or edges of the given parent.

getChildVertices

public static Object[] getChildVertices(mxIGraphModel model,
                                        Object parent)
Returns the child vertices of the given parent.

Parameters:
model - Model that contains the hierarchical information.
parent - Cell whose child vertices should be returned.
Returns:
Returns the child vertices of the given parent.

getChildEdges

public static Object[] getChildEdges(mxIGraphModel model,
                                     Object parent)
Returns the child edges of the given parent.

Parameters:
model - Model that contains the hierarchical information.
parent - Cell whose child edges should be returned.
Returns:
Returns the child edges of the given parent.

getChildCells

public static Object[] getChildCells(mxIGraphModel model,
                                     Object parent,
                                     boolean vertices,
                                     boolean edges)
Returns the children of the given cell that are vertices and/or edges depending on the arguments. If both arguments are false then all children are returned regardless of their type.

Parameters:
model - Model that contains the hierarchical information.
parent - Cell whose child vertices or edges should be returned.
vertices - Boolean indicating if child vertices should be returned.
edges - Boolean indicating if child edges should be returned.
Returns:
Returns the child vertices and/or edges of the given parent.

getParents

public static Object[] getParents(mxIGraphModel model,
                                  Object[] cells)

filterCells

public static Object[] filterCells(Object[] cells,
                                   mxGraphModel.Filter filter)

getDescendants

public static Collection<Object> getDescendants(mxIGraphModel model,
                                                Object parent)
Returns a all descendants of the given cell and the cell itself as a collection.


filterDescendants

public static Collection<Object> filterDescendants(mxIGraphModel model,
                                                   mxGraphModel.Filter filter)
Creates a collection of cells using the visitor pattern.


filterDescendants

public static Collection<Object> filterDescendants(mxIGraphModel model,
                                                   mxGraphModel.Filter filter,
                                                   Object parent)
Creates a collection of cells using the visitor pattern.


getTopmostCells

public static Object[] getTopmostCells(mxIGraphModel model,
                                       Object[] cells)
Function: getTopmostCells Returns the topmost cells of the hierarchy in an array that contains no desceandants for each that it contains. Duplicates should be removed in the cells array to improve performance. Parameters: cells - Array of whose topmost ancestors should be returned.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/package-tree.html0000664000175000017500000002474412176166726026110 0ustar sylvestresylvestre com.mxgraph.model Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.model

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxTerminalChange.html0000664000175000017500000006320512176166722031363 0ustar sylvestresylvestre mxGraphModel.mxTerminalChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxTerminalChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxTerminalChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxTerminalChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  Object previous
           
protected  boolean source
           
protected  Object terminal
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxTerminalChange()
           
mxGraphModel.mxTerminalChange(mxGraphModel model, Object cell, Object terminal, boolean source)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 Object getPrevious()
           
 Object getTerminal()
           
 boolean isSource()
           
 void setCell(Object value)
           
 void setPrevious(Object value)
           
 void setSource(boolean value)
           
 void setTerminal(Object value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

terminal

protected Object terminal

previous

protected Object previous

source

protected boolean source
Constructor Detail

mxGraphModel.mxTerminalChange

public mxGraphModel.mxTerminalChange()

mxGraphModel.mxTerminalChange

public mxGraphModel.mxTerminalChange(mxGraphModel model,
                                     Object cell,
                                     Object terminal,
                                     boolean source)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setTerminal

public void setTerminal(Object value)

getTerminal

public Object getTerminal()
Returns:
the terminal

setPrevious

public void setPrevious(Object value)

getPrevious

public Object getPrevious()
Returns:
the previous

setSource

public void setSource(boolean value)

isSource

public boolean isSource()
Returns:
the isSource

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxChildChange.html0000664000175000017500000010357712176166722030642 0ustar sylvestresylvestre mxGraphModel.mxChildChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxChildChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxChildChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxChildChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object child
           
protected  int index
           
protected  Object parent
           
protected  Object previous
           
protected  int previousIndex
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxChildChange()
           
mxGraphModel.mxChildChange(mxGraphModel model, Object parent, Object child)
           
mxGraphModel.mxChildChange(mxGraphModel model, Object parent, Object child, int index)
           
 
Method Summary
protected  void connect(Object cell, boolean isConnect)
           
 void execute()
          Changes the root of the model.
 Object getChild()
           
protected  int getChildIndex(Object parent, Object child)
          Returns the index of the given child inside the given parent.
 int getIndex()
           
 Object getParent()
           
 Object getPrevious()
           
 int getPreviousIndex()
           
protected  Object getTerminal(Object edge, boolean source)
          Gets the source or target terminal field for the given edge even if the edge is not stored as an incoming or outgoing edge in the respective terminal.
 void setChild(Object value)
           
 void setIndex(int value)
           
 void setParent(Object value)
           
 void setPrevious(Object value)
           
 void setPreviousIndex(int value)
           
protected  void setTerminal(Object edge, Object terminal, boolean source)
          Sets the source or target terminal field for the given edge without inserting an incoming or outgoing edge in the respective terminal.
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected Object parent

previous

protected Object previous

child

protected Object child

index

protected int index

previousIndex

protected int previousIndex
Constructor Detail

mxGraphModel.mxChildChange

public mxGraphModel.mxChildChange()

mxGraphModel.mxChildChange

public mxGraphModel.mxChildChange(mxGraphModel model,
                                  Object parent,
                                  Object child)

mxGraphModel.mxChildChange

public mxGraphModel.mxChildChange(mxGraphModel model,
                                  Object parent,
                                  Object child,
                                  int index)
Method Detail

setParent

public void setParent(Object value)

getParent

public Object getParent()
Returns:
the parent

setPrevious

public void setPrevious(Object value)

getPrevious

public Object getPrevious()
Returns:
the previous

setChild

public void setChild(Object value)

getChild

public Object getChild()
Returns:
the child

setIndex

public void setIndex(int value)

getIndex

public int getIndex()
Returns:
the index

setPreviousIndex

public void setPreviousIndex(int value)

getPreviousIndex

public int getPreviousIndex()
Returns:
the previousIndex

getTerminal

protected Object getTerminal(Object edge,
                             boolean source)
Gets the source or target terminal field for the given edge even if the edge is not stored as an incoming or outgoing edge in the respective terminal.


setTerminal

protected void setTerminal(Object edge,
                           Object terminal,
                           boolean source)
Sets the source or target terminal field for the given edge without inserting an incoming or outgoing edge in the respective terminal.


connect

protected void connect(Object cell,
                       boolean isConnect)

getChildIndex

protected int getChildIndex(Object parent,
                            Object child)
Returns the index of the given child inside the given parent.


execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxICell.html0000664000175000017500000011355312176166722025106 0ustar sylvestresylvestre mxICell (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Interface mxICell

All Known Implementing Classes:
mxCell

public interface mxICell

Defines the requirements for a cell that can be used in an mxGraphModel.


Method Summary
 Object clone()
          Returns a clone of this cell.
 mxICell getChildAt(int index)
          Returns the child at the specified index.
 int getChildCount()
          Returns the number of child cells.
 mxICell getEdgeAt(int index)
          Returns the edge at the specified index in the edge array.
 int getEdgeCount()
          Returns the number of edges in the edge array.
 int getEdgeIndex(mxICell edge)
          Returns the index of the specified edge in the edge array.
 mxGeometry getGeometry()
          Returns the object that describes the geometry.
 String getId()
          Returns the Id of the cell as a string.
 int getIndex(mxICell child)
          Returns the index of the specified child in the child array.
 mxICell getParent()
          Returns the cell's parent.
 String getStyle()
          Returns the string that describes the style.
 mxICell getTerminal(boolean source)
          Returns the source or target terminal.
 Object getValue()
          Returns the user object of the cell.
 mxICell insert(mxICell child)
          Appends the specified child into the child array and updates the parent reference of the child.
 mxICell insert(mxICell child, int index)
          Inserts the specified child into the child array at the specified index and updates the parent reference of the child.
 mxICell insertEdge(mxICell edge, boolean isOutgoing)
          Inserts the specified edge into the edge array and returns the edge.
 boolean isCollapsed()
          Returns true if the cell is collapsed.
 boolean isConnectable()
          Returns true if the cell is connectable.
 boolean isEdge()
          Returns true if the cell is an edge.
 boolean isVertex()
          Returns true if the cell is a vertex.
 boolean isVisible()
          Returns true if the cell is visibile.
 mxICell remove(int index)
          Removes the child at the specified index from the child array and returns the child that was removed.
 mxICell remove(mxICell child)
          Removes the given child from the child array and returns it.
 mxICell removeEdge(mxICell edge, boolean isOutgoing)
          Removes the specified edge from the edge array and returns the edge.
 void removeFromParent()
          Removes the cell from its parent.
 void removeFromTerminal(boolean isSource)
          Removes the edge from its source or target terminal.
 void setCollapsed(boolean collapsed)
          Sets the collapsed state.
 void setGeometry(mxGeometry geometry)
          Sets the object to be used as the geometry.
 void setId(String id)
          Sets the Id of the cell to the given string.
 void setParent(mxICell parent)
          Sets the parent cell.
 void setStyle(String style)
          Sets the string to be used as the style.
 mxICell setTerminal(mxICell terminal, boolean isSource)
          Sets the source or target terminal and returns the new terminal.
 void setValue(Object value)
          Sets the user object of the cell.
 void setVisible(boolean visible)
          Specifies if the cell is visible.
 

Method Detail

getId

String getId()
Returns the Id of the cell as a string.

Returns:
Returns the Id.

setId

void setId(String id)
Sets the Id of the cell to the given string.

Parameters:
id - String that represents the new Id.

getValue

Object getValue()
Returns the user object of the cell.

Returns:
Returns the user object.

setValue

void setValue(Object value)
Sets the user object of the cell.

Parameters:
value - Object that represents the new value.

getGeometry

mxGeometry getGeometry()
Returns the object that describes the geometry.

Returns:
Returns the cell geometry.

setGeometry

void setGeometry(mxGeometry geometry)
Sets the object to be used as the geometry.


getStyle

String getStyle()
Returns the string that describes the style.

Returns:
Returns the cell style.

setStyle

void setStyle(String style)
Sets the string to be used as the style.


isVertex

boolean isVertex()
Returns true if the cell is a vertex.

Returns:
Returns true if the cell is a vertex.

isEdge

boolean isEdge()
Returns true if the cell is an edge.

Returns:
Returns true if the cell is an edge.

isConnectable

boolean isConnectable()
Returns true if the cell is connectable.

Returns:
Returns the connectable state.

isVisible

boolean isVisible()
Returns true if the cell is visibile.

Returns:
Returns the visible state.

setVisible

void setVisible(boolean visible)
Specifies if the cell is visible.

Parameters:
visible - Boolean that specifies the new visible state.

isCollapsed

boolean isCollapsed()
Returns true if the cell is collapsed.

Returns:
Returns the collapsed state.

setCollapsed

void setCollapsed(boolean collapsed)
Sets the collapsed state.

Parameters:
collapsed - Boolean that specifies the new collapsed state.

getParent

mxICell getParent()
Returns the cell's parent.

Returns:
Returns the parent cell.

setParent

void setParent(mxICell parent)
Sets the parent cell.

Parameters:
parent - Cell that represents the new parent.

getTerminal

mxICell getTerminal(boolean source)
Returns the source or target terminal.

Parameters:
source - Boolean that specifies if the source terminal should be returned.
Returns:
Returns the source or target terminal.

setTerminal

mxICell setTerminal(mxICell terminal,
                    boolean isSource)
Sets the source or target terminal and returns the new terminal.

Parameters:
terminal - Cell that represents the new source or target terminal.
isSource - Boolean that specifies if the source or target terminal should be set.
Returns:
Returns the new terminal.

getChildCount

int getChildCount()
Returns the number of child cells.

Returns:
Returns the number of children.

getIndex

int getIndex(mxICell child)
Returns the index of the specified child in the child array.

Parameters:
child - Child whose index should be returned.
Returns:
Returns the index of the given child.

getChildAt

mxICell getChildAt(int index)
Returns the child at the specified index.

Parameters:
index - Integer that specifies the child to be returned.
Returns:
Returns the child at the given index.

insert

mxICell insert(mxICell child)
Appends the specified child into the child array and updates the parent reference of the child. Returns the appended child.

Parameters:
child - Cell to be appended to the child array.
Returns:
Returns the new child.

insert

mxICell insert(mxICell child,
               int index)
Inserts the specified child into the child array at the specified index and updates the parent reference of the child. Returns the inserted child.

Parameters:
child - Cell to be inserted into the child array.
index - Integer that specifies the index at which the child should be inserted into the child array.
Returns:
Returns the new child.

remove

mxICell remove(int index)
Removes the child at the specified index from the child array and returns the child that was removed. Will remove the parent reference of the child.

Parameters:
index - Integer that specifies the index of the child to be removed.
Returns:
Returns the child that was removed.

remove

mxICell remove(mxICell child)
Removes the given child from the child array and returns it. Will remove the parent reference of the child.

Parameters:
child - Cell that represents the child to be removed.
Returns:
Returns the child that was removed.

removeFromParent

void removeFromParent()
Removes the cell from its parent.


getEdgeCount

int getEdgeCount()
Returns the number of edges in the edge array.

Returns:
Returns the number of edges.

getEdgeIndex

int getEdgeIndex(mxICell edge)
Returns the index of the specified edge in the edge array.

Parameters:
edge - Cell whose index should be returned.
Returns:
Returns the index of the given edge.

getEdgeAt

mxICell getEdgeAt(int index)
Returns the edge at the specified index in the edge array.

Parameters:
index - Integer that specifies the index of the edge to be returned.
Returns:
Returns the edge at the given index.

insertEdge

mxICell insertEdge(mxICell edge,
                   boolean isOutgoing)
Inserts the specified edge into the edge array and returns the edge. Will update the respective terminal reference of the edge.

Parameters:
edge - Cell to be inserted into the edge array.
isOutgoing - Boolean that specifies if the edge is outgoing.
Returns:
Returns the new edge.

removeEdge

mxICell removeEdge(mxICell edge,
                   boolean isOutgoing)
Removes the specified edge from the edge array and returns the edge. Will remove the respective terminal reference from the edge.

Parameters:
edge - Cell to be removed from the edge array.
isOutgoing - Boolean that specifies if the edge is outgoing.
Returns:
Returns the edge that was removed.

removeFromTerminal

void removeFromTerminal(boolean isSource)
Removes the edge from its source or target terminal.

Parameters:
isSource - Boolean that specifies if the edge should be removed from its source or target terminal.

clone

Object clone()
             throws CloneNotSupportedException
Returns a clone of this cell.

Returns:
Returns a clone of this cell.
Throws:
CloneNotSupportedException

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGraphModel.mxGeometryChange.html0000664000175000017500000005674212176166722031413 0ustar sylvestresylvestre mxGraphModel.mxGeometryChange (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGraphModel.mxGeometryChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxGeometryChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxGeometryChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  mxGeometry geometry
           
protected  mxGeometry previous
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxGeometryChange()
           
mxGraphModel.mxGeometryChange(mxGraphModel model, Object cell, mxGeometry geometry)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 mxGeometry getGeometry()
           
 mxGeometry getPrevious()
           
 void setCell(Object value)
           
 void setGeometry(mxGeometry value)
           
 void setPrevious(mxGeometry value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

geometry

protected mxGeometry geometry

previous

protected mxGeometry previous
Constructor Detail

mxGraphModel.mxGeometryChange

public mxGraphModel.mxGeometryChange()

mxGraphModel.mxGeometryChange

public mxGraphModel.mxGeometryChange(mxGraphModel model,
                                     Object cell,
                                     mxGeometry geometry)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setGeometry

public void setGeometry(mxGeometry value)

getGeometry

public mxGeometry getGeometry()
Returns:
the geometry

setPrevious

public void setPrevious(mxGeometry value)

getPrevious

public mxGeometry getPrevious()
Returns:
the previous

execute

public void execute()
Changes the root of the model.

Specified by:
execute in interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxGeometry.html0000664000175000017500000011604712176166722025712 0ustar sylvestresylvestre mxGeometry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxGeometry

java.lang.Object
  extended by com.mxgraph.util.mxPoint
      extended by com.mxgraph.util.mxRectangle
          extended by com.mxgraph.model.mxGeometry
All Implemented Interfaces:
Serializable, Cloneable

public class mxGeometry
extends mxRectangle

Represents the geometry of a cell. For vertices, the geometry consists of the x- and y-location, as well as the width and height. For edges, the geometry either defines the source- and target-terminal, or it defines the respective terminal points. For edges, if the geometry is relative (default), then the x-coordinate is used to describe the distance from the center of the edge from -1 to 1 with 0 being the center of the edge and the default value, and the y-coordinate is used to describe the absolute, orthogonal distance in pixels from that point. In addition, the offset is used as an absolute offset vector from the resulting point.

See Also:
Serialized Form

Field Summary
protected  mxRectangle alternateBounds
          Stores alternate values for x, y, width and height in a rectangle.
protected  mxPoint offset
          Holds the offset of the label for edges.
protected  List<mxPoint> points
          List of mxPoints which specifies the control points along the edge.
protected  boolean relative
          Specifies if the coordinates in the geometry are to be interpreted as relative coordinates.
protected  mxPoint sourcePoint
          Defines the source- and target-point of the edge.
protected  mxPoint targetPoint
          Defines the source- and target-point of the edge.
static boolean TRANSLATE_CONTROL_POINTS
          Global switch to translate the points in translate.
 
Fields inherited from class com.mxgraph.util.mxRectangle
height, width
 
Fields inherited from class com.mxgraph.util.mxPoint
x, y
 
Constructor Summary
mxGeometry()
          Constructs a new geometry at (0, 0) with the width and height set to 0.
mxGeometry(double x, double y, double width, double height)
          Constructs a geometry using the given parameters.
 
Method Summary
 Object clone()
          Returns a clone of the cell.
 mxRectangle getAlternateBounds()
          Returns the alternate bounds.
 mxPoint getOffset()
          Returns the offset.
 List<mxPoint> getPoints()
          Returns the list of control points.
 mxPoint getSourcePoint()
          Returns the source point.
 mxPoint getTargetPoint()
          Returns the target point.
 mxPoint getTerminalPoint(boolean isSource)
          Returns the point representing the source or target point of this edge.
 boolean isRelative()
          Returns true of the geometry is relative.
 void setAlternateBounds(mxRectangle rect)
          Sets the alternate bounds to the given rectangle.
 void setOffset(mxPoint offset)
          Sets the offset to the given point.
 void setPoints(List<mxPoint> value)
          Sets the list of control points to the given list.
 void setRelative(boolean value)
          Sets the relative state of the geometry.
 void setSourcePoint(mxPoint sourcePoint)
          Sets the source point.
 void setTargetPoint(mxPoint targetPoint)
          Sets the target point.
 mxPoint setTerminalPoint(mxPoint point, boolean isSource)
          Sets the sourcePoint or targetPoint to the given point and returns the new point.
 void swap()
          Swaps the x, y, width and height with the values stored in alternateBounds and puts the previous values into alternateBounds as a rectangle.
 void translate(double dx, double dy)
          Translates the geometry by the specified amount.
 
Methods inherited from class com.mxgraph.util.mxRectangle
add, contains, equals, getCenterX, getCenterY, getHeight, getRectangle, getWidth, grow, intersectLine, setHeight, setRect, setWidth, toString
 
Methods inherited from class com.mxgraph.util.mxPoint
getPoint, getX, getY, setX, setY
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRANSLATE_CONTROL_POINTS

public static transient boolean TRANSLATE_CONTROL_POINTS
Global switch to translate the points in translate. Default is true.


alternateBounds

protected mxRectangle alternateBounds
Stores alternate values for x, y, width and height in a rectangle. Default is null.


sourcePoint

protected mxPoint sourcePoint
Defines the source- and target-point of the edge. This is used if the corresponding edge does not have a source vertex. Otherwise it is ignored. Default is null.


targetPoint

protected mxPoint targetPoint
Defines the source- and target-point of the edge. This is used if the corresponding edge does not have a source vertex. Otherwise it is ignored. Default is null.


points

protected List<mxPoint> points
List of mxPoints which specifies the control points along the edge. These points are the intermediate points on the edge, for the endpoints use targetPoint and sourcePoint or set the terminals of the edge to a non-null value. Default is null.


offset

protected mxPoint offset
Holds the offset of the label for edges. This is the absolute vector between the center of the edge and the top, left point of the label. Default is null.


relative

protected boolean relative
Specifies if the coordinates in the geometry are to be interpreted as relative coordinates. Default is false. This is used to mark a geometry with an x- and y-coordinate that is used to describe an edge label position, or a relative location with respect to a parent cell's width and height.

Constructor Detail

mxGeometry

public mxGeometry()
Constructs a new geometry at (0, 0) with the width and height set to 0.


mxGeometry

public mxGeometry(double x,
                  double y,
                  double width,
                  double height)
Constructs a geometry using the given parameters.

Parameters:
x - X-coordinate of the new geometry.
y - Y-coordinate of the new geometry.
width - Width of the new geometry.
height - Height of the new geometry.
Method Detail

getAlternateBounds

public mxRectangle getAlternateBounds()
Returns the alternate bounds.


setAlternateBounds

public void setAlternateBounds(mxRectangle rect)
Sets the alternate bounds to the given rectangle.

Parameters:
rect - Rectangle to be used for the alternate bounds.

getSourcePoint

public mxPoint getSourcePoint()
Returns the source point.

Returns:
Returns the source point.

setSourcePoint

public void setSourcePoint(mxPoint sourcePoint)
Sets the source point.

Parameters:
sourcePoint - Source point to be used.

getTargetPoint

public mxPoint getTargetPoint()
Returns the target point.

Returns:
Returns the target point.

setTargetPoint

public void setTargetPoint(mxPoint targetPoint)
Sets the target point.

Parameters:
targetPoint - Target point to be used.

getPoints

public List<mxPoint> getPoints()
Returns the list of control points.


setPoints

public void setPoints(List<mxPoint> value)
Sets the list of control points to the given list.

Parameters:
value - List that contains the new control points.

getOffset

public mxPoint getOffset()
Returns the offset.


setOffset

public void setOffset(mxPoint offset)
Sets the offset to the given point.

Parameters:
offset - Point to be used for the offset.

isRelative

public boolean isRelative()
Returns true of the geometry is relative.


setRelative

public void setRelative(boolean value)
Sets the relative state of the geometry.

Parameters:
value - Boolean value to be used as the new relative state.

swap

public void swap()
Swaps the x, y, width and height with the values stored in alternateBounds and puts the previous values into alternateBounds as a rectangle. This operation is carried-out in-place, that is, using the existing geometry instance. If this operation is called during a graph model transactional change, then the geometry should be cloned before calling this method and setting the geometry of the cell using mxGraphModel.setGeometry.


getTerminalPoint

public mxPoint getTerminalPoint(boolean isSource)
Returns the point representing the source or target point of this edge. This is only used if the edge has no source or target vertex.

Parameters:
isSource - Boolean that specifies if the source or target point should be returned.
Returns:
Returns the source or target point.

setTerminalPoint

public mxPoint setTerminalPoint(mxPoint point,
                                boolean isSource)
Sets the sourcePoint or targetPoint to the given point and returns the new point.

Parameters:
point - Point to be used as the new source or target point.
isSource - Boolean that specifies if the source or target point should be set.
Returns:
Returns the new point.

translate

public void translate(double dx,
                      double dy)
Translates the geometry by the specified amount. That is, x and y of the geometry, the sourcePoint, targetPoint and all elements of points are translated by the given amount. X and y are only translated if the geometry is not relative. If TRANSLATE_CONTROL_POINTS is false, then are not modified by this function.

Parameters:
dx - Integer that specifies the x-coordinate of the translation.
dy - Integer that specifies the y-coordinate of the translation.

clone

public Object clone()
Returns a clone of the cell.

Overrides:
clone in class mxRectangle

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/model/mxCellPath.html0000664000175000017500000004512512176166722025611 0ustar sylvestresylvestre mxCellPath (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.model
Class mxCellPath

java.lang.Object
  extended by com.mxgraph.model.mxCellPath

public class mxCellPath
extends Object

Implements a mechanism for temporary cell Ids.


Field Summary
static String PATH_SEPARATOR
          Defines the separator between the path components.
 
Constructor Summary
mxCellPath()
           
 
Method Summary
static int compare(String cp1, String cp2)
          Compares the given cell paths and returns -1 if cp1 is smaller, 0 if cp1 is equal and 1 if cp1 is greater than cp2.
static String create(mxICell cell)
          Creates the cell path for the given cell.
static String getParentPath(String path)
          Returns the path for the parent of the cell represented by the given path.
static mxICell resolve(mxICell root, String path)
          Returns the cell for the specified cell path using the given root as the root of the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static String PATH_SEPARATOR
Defines the separator between the path components. Default is ..

Constructor Detail

mxCellPath

public mxCellPath()
Method Detail

create

public static String create(mxICell cell)
Creates the cell path for the given cell. The cell path is a concatenation of the indices of all cells on the (finite) path to the root, eg. "0.0.0.1".

Parameters:
cell - Cell whose path should be returned.
Returns:
Returns the string that represents the path.

getParentPath

public static String getParentPath(String path)
Returns the path for the parent of the cell represented by the given path. Returns null if the given path has no parent.

Parameters:
path - Path whose parent path should be returned.

resolve

public static mxICell resolve(mxICell root,
                              String path)
Returns the cell for the specified cell path using the given root as the root of the path.

Parameters:
root - Root cell of the path to be resolved.
path - String that defines the path.
Returns:
Returns the cell that is defined by the path.

compare

public static int compare(String cp1,
                          String cp2)
Compares the given cell paths and returns -1 if cp1 is smaller, 0 if cp1 is equal and 1 if cp1 is greater than cp2.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/0000775000175000017500000000000012176166726025313 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/mxGeneratorRandomIntFunction.html0000664000175000017500000003550212176166720034015 0ustar sylvestresylvestre mxGeneratorRandomIntFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.generatorfunction
Class mxGeneratorRandomIntFunction

java.lang.Object
  extended by com.mxgraph.generatorfunction.mxGeneratorFunction
      extended by com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction
All Implemented Interfaces:
mxICostFunction

public class mxGeneratorRandomIntFunction
extends mxGeneratorFunction


Constructor Summary
mxGeneratorRandomIntFunction(double minWeight, double maxWeight)
           
 
Method Summary
 double getCost(mxCellState state)
          Evaluates the cost of the given cell state.
 double getMaxWeight()
           
 double getMinWeight()
           
 void setWeightRange(double minWeight, double maxWeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGeneratorRandomIntFunction

public mxGeneratorRandomIntFunction(double minWeight,
                                    double maxWeight)
Method Detail

getCost

public double getCost(mxCellState state)
Description copied from interface: mxICostFunction
Evaluates the cost of the given cell state.

Parameters:
state - The cell state to be evaluated
Returns:
Returns the cost to traverse the given cell state.

getMaxWeight

public double getMaxWeight()

setWeightRange

public void setWeightRange(double minWeight,
                           double maxWeight)

getMinWeight

public double getMinWeight()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/0000775000175000017500000000000012176166726027212 5ustar sylvestresylvestre././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorRandomIntFunction.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorRandomIntFunctio0000664000175000017500000001426012176166726034577 0ustar sylvestresylvestre Uses of Class com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction

No usage of com.mxgraph.generatorfunction.mxGeneratorRandomIntFunction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorRandomFunction.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorRandomFunction.h0000664000175000017500000001422212176166726034526 0ustar sylvestresylvestre Uses of Class com.mxgraph.generatorfunction.mxGeneratorRandomFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.generatorfunction.mxGeneratorRandomFunction

No usage of com.mxgraph.generatorfunction.mxGeneratorRandomFunction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootlibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorConstFunction.htmllibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorConstFunction.ht0000664000175000017500000001421012176166726034555 0ustar sylvestresylvestre Uses of Class com.mxgraph.generatorfunction.mxGeneratorConstFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.generatorfunction.mxGeneratorConstFunction

No usage of com.mxgraph.generatorfunction.mxGeneratorConstFunction


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/class-use/mxGeneratorFunction.html0000664000175000017500000003052512176166726034106 0ustar sylvestresylvestre Uses of Class com.mxgraph.generatorfunction.mxGeneratorFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.generatorfunction.mxGeneratorFunction

Packages that use mxGeneratorFunction
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.generatorfunction   
 

Uses of mxGeneratorFunction in com.mxgraph.analysis
 

Methods in com.mxgraph.analysis that return mxGeneratorFunction
 mxGeneratorFunction mxGraphGenerator.getGeneratorFunction()
           
static mxGeneratorFunction mxGraphGenerator.getGeneratorFunction(mxGraph graph, boolean weighted, double minWeight, double maxWeight)
           
 

Constructors in com.mxgraph.analysis with parameters of type mxGeneratorFunction
mxGraphGenerator(mxGeneratorFunction generatorFunction, mxCostFunction costFunction)
           
 

Uses of mxGeneratorFunction in com.mxgraph.generatorfunction
 

Subclasses of mxGeneratorFunction in com.mxgraph.generatorfunction
 class mxGeneratorConstFunction
           
 class mxGeneratorRandomFunction
           
 class mxGeneratorRandomIntFunction
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/package-frame.html0000664000175000017500000000255512176166726030673 0ustar sylvestresylvestre com.mxgraph.generatorfunction (JGraph X 2.1.0.7 API Specification) com.mxgraph.generatorfunction
Classes 
mxGeneratorConstFunction
mxGeneratorFunction
mxGeneratorRandomFunction
mxGeneratorRandomIntFunction
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/mxGeneratorRandomFunction.html0000664000175000017500000004034412176166720033342 0ustar sylvestresylvestre mxGeneratorRandomFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.generatorfunction
Class mxGeneratorRandomFunction

java.lang.Object
  extended by com.mxgraph.generatorfunction.mxGeneratorFunction
      extended by com.mxgraph.generatorfunction.mxGeneratorRandomFunction
All Implemented Interfaces:
mxICostFunction

public class mxGeneratorRandomFunction
extends mxGeneratorFunction


Constructor Summary
mxGeneratorRandomFunction(double minWeight, double maxWeight, int roundToDecimals)
           
 
Method Summary
 double getCost(mxCellState state)
          Evaluates the cost of the given cell state.
 double getMaxWeight()
           
 double getMinWeight()
           
 int getRoundToDecimals()
           
 void setRoundToDecimals(int roundToDecimals)
           
 void setWeightRange(double minWeight, double maxWeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGeneratorRandomFunction

public mxGeneratorRandomFunction(double minWeight,
                                 double maxWeight,
                                 int roundToDecimals)
Method Detail

getCost

public double getCost(mxCellState state)
Description copied from interface: mxICostFunction
Evaluates the cost of the given cell state.

Parameters:
state - The cell state to be evaluated
Returns:
Returns the cost to traverse the given cell state.

getMaxWeight

public double getMaxWeight()

setWeightRange

public void setWeightRange(double minWeight,
                           double maxWeight)

getMinWeight

public double getMinWeight()

getRoundToDecimals

public int getRoundToDecimals()

setRoundToDecimals

public void setRoundToDecimals(int roundToDecimals)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/mxGeneratorConstFunction.html0000664000175000017500000003170412176166720033210 0ustar sylvestresylvestre mxGeneratorConstFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.generatorfunction
Class mxGeneratorConstFunction

java.lang.Object
  extended by com.mxgraph.generatorfunction.mxGeneratorFunction
      extended by com.mxgraph.generatorfunction.mxGeneratorConstFunction
All Implemented Interfaces:
mxICostFunction

public class mxGeneratorConstFunction
extends mxGeneratorFunction


Constructor Summary
mxGeneratorConstFunction(double cost)
           
 
Method Summary
 double getCost(mxCellState state)
          Evaluates the cost of the given cell state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGeneratorConstFunction

public mxGeneratorConstFunction(double cost)
Method Detail

getCost

public double getCost(mxCellState state)
Description copied from interface: mxICostFunction
Evaluates the cost of the given cell state.

Parameters:
state - The cell state to be evaluated
Returns:
Returns the cost to traverse the given cell state.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/package-summary.html0000664000175000017500000001606512176166726031277 0ustar sylvestresylvestre com.mxgraph.generatorfunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.generatorfunction

Class Summary
mxGeneratorConstFunction  
mxGeneratorFunction  
mxGeneratorRandomFunction  
mxGeneratorRandomIntFunction  
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/package-use.html0000664000175000017500000001745312176166726030400 0ustar sylvestresylvestre Uses of Package com.mxgraph.generatorfunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.generatorfunction

Packages that use com.mxgraph.generatorfunction
com.mxgraph.analysis This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. 
com.mxgraph.generatorfunction   
 

Classes in com.mxgraph.generatorfunction used by com.mxgraph.analysis
mxGeneratorFunction
           
 

Classes in com.mxgraph.generatorfunction used by com.mxgraph.generatorfunction
mxGeneratorFunction
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/package-tree.html0000664000175000017500000001614412176166726030537 0ustar sylvestresylvestre com.mxgraph.generatorfunction Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.generatorfunction

Package Hierarchies:
All Packages

Class Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/generatorfunction/mxGeneratorFunction.html0000664000175000017500000003130112176166720032172 0ustar sylvestresylvestre mxGeneratorFunction (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.generatorfunction
Class mxGeneratorFunction

java.lang.Object
  extended by com.mxgraph.generatorfunction.mxGeneratorFunction
All Implemented Interfaces:
mxICostFunction
Direct Known Subclasses:
mxGeneratorConstFunction, mxGeneratorRandomFunction, mxGeneratorRandomIntFunction

public abstract class mxGeneratorFunction
extends Object
implements mxICostFunction


Constructor Summary
mxGeneratorFunction()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mxgraph.analysis.mxICostFunction
getCost
 

Constructor Detail

mxGeneratorFunction

public mxGeneratorFunction()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/0000775000175000017500000000000012176166726022166 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/0000775000175000017500000000000012176166726023620 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlUtils.html0000664000175000017500000007123512176166720027430 0ustar sylvestresylvestre mxGraphMlUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlUtils

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlUtils

public class mxGraphMlUtils
extends Object

This class implements several GML utility methods.


Constructor Summary
mxGraphMlUtils()
           
 
Method Summary
static boolean childsHasTag(Element element, String tag)
          Checks if the childrens of element has a Node with name = tag.
static Element childsTag(Element element, String tag)
          Returns the first Element that has name = tag in the childrens of element.
static List<Element> childsTags(Element element, String tag)
          Returns a list with the elements included in the childrens of element that have name = tag.
static List<Node> copyNodeList(NodeList nodeList)
          Copy a given NodeList into a List
static HashMap<String,Object> getStyleMap(String style, String asig)
          Create a style map from a String with style definitions.
static String getStyleString(Map<String,Object> styleMap, String asig)
          Returns the string that represents the content of a given style map.
static boolean nodeListHasTag(NodeList nl, String tag)
          Checks if the NodeList has a Node with name = tag.
static Element nodeListTag(NodeList nl, String tag)
          Returns the first Element that has name = tag in Node List.
static List<Element> nodeListTags(NodeList nl, String tag)
          Returns a list with the elements included in the Node List that have name = tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlUtils

public mxGraphMlUtils()
Method Detail

nodeListHasTag

public static boolean nodeListHasTag(NodeList nl,
                                     String tag)
Checks if the NodeList has a Node with name = tag.

Parameters:
nl - NodeList
tag - Name of the node.
Returns:
Returns true if the Node List has a Node with name = tag.

nodeListTag

public static Element nodeListTag(NodeList nl,
                                  String tag)
Returns the first Element that has name = tag in Node List.

Parameters:
nl - NodeList
tag - Name of the Element
Returns:
Element with name = 'tag'.

nodeListTags

public static List<Element> nodeListTags(NodeList nl,
                                         String tag)
Returns a list with the elements included in the Node List that have name = tag.

Parameters:
nl - NodeList
tag - name of the Element.
Returns:
List with the indicated elements.

childsHasTag

public static boolean childsHasTag(Element element,
                                   String tag)
Checks if the childrens of element has a Node with name = tag.

Parameters:
element - Element
tag - Name of the node.
Returns:
Returns true if the childrens of element has a Node with name = tag.

childsTag

public static Element childsTag(Element element,
                                String tag)
Returns the first Element that has name = tag in the childrens of element.

Parameters:
element - Element
tag - Name of the Element
Returns:
Element with name = 'tag'.

childsTags

public static List<Element> childsTags(Element element,
                                       String tag)
Returns a list with the elements included in the childrens of element that have name = tag.

Parameters:
element - Element
tag - name of the Element.
Returns:
List with the indicated elements.

copyNodeList

public static List<Node> copyNodeList(NodeList nodeList)
Copy a given NodeList into a List

Parameters:
nodeList - Node List.
Returns:
List with the elements of nodeList.

getStyleMap

public static HashMap<String,Object> getStyleMap(String style,
                                                 String asig)
Create a style map from a String with style definitions.

Parameters:
style - Definition of the style.
asig - Asignation simbol used in 'style'.
Returns:
Map with the style properties.

getStyleString

public static String getStyleString(Map<String,Object> styleMap,
                                    String asig)
Returns the string that represents the content of a given style map.

Parameters:
styleMap - Map with the styles values
Returns:
string that represents the style.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlShapeNode.html0000664000175000017500000006404512176166720030177 0ustar sylvestresylvestre mxGraphMlShapeNode (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlShapeNode

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlShapeNode

public class mxGraphMlShapeNode
extends Object


Constructor Summary
mxGraphMlShapeNode()
          Construct an empty shape Node
mxGraphMlShapeNode(Element shapeNodeElement)
          Construct a Shape Node from a xml Shape Node Element.
mxGraphMlShapeNode(String dataHeight, String dataWidth, String dataX, String dataY, String dataStyle)
          Construct a shape Node with the given parameters
 
Method Summary
 Element generateElement(Document document)
          Generates a Shape Node Element from this class.
 String getDataHeight()
           
 String getDataLabel()
           
 String getDataStyle()
           
 String getDataWidth()
           
 String getDataX()
           
 String getDataY()
           
 void setDataHeight(String dataHeight)
           
 void setDataLabel(String dataLabel)
           
 void setDataStyle(String dataStyle)
           
 void setDataWidth(String dataWidth)
           
 void setDataX(String dataX)
           
 void setDataY(String dataY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlShapeNode

public mxGraphMlShapeNode(String dataHeight,
                          String dataWidth,
                          String dataX,
                          String dataY,
                          String dataStyle)
Construct a shape Node with the given parameters

Parameters:
dataHeight - Node's Height
dataWidth - Node's Width
dataX - Node's X coordinate.
dataY - Node's Y coordinate.
dataStyle - Node's style.

mxGraphMlShapeNode

public mxGraphMlShapeNode()
Construct an empty shape Node


mxGraphMlShapeNode

public mxGraphMlShapeNode(Element shapeNodeElement)
Construct a Shape Node from a xml Shape Node Element.

Parameters:
shapeNodeElement - Xml Shape Node Element.
Method Detail

generateElement

public Element generateElement(Document document)
Generates a Shape Node Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

getDataHeight

public String getDataHeight()

setDataHeight

public void setDataHeight(String dataHeight)

getDataWidth

public String getDataWidth()

setDataWidth

public void setDataWidth(String dataWidth)

getDataX

public String getDataX()

setDataX

public void setDataX(String dataX)

getDataY

public String getDataY()

setDataY

public void setDataY(String dataY)

getDataLabel

public String getDataLabel()

setDataLabel

public void setDataLabel(String dataLabel)

getDataStyle

public String getDataStyle()

setDataStyle

public void setDataStyle(String dataStyle)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlData.html0000664000175000017500000006351512176166720027203 0ustar sylvestresylvestre mxGraphMlData (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlData

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlData

public class mxGraphMlData
extends Object

Represents a Data element in the GML Structure.


Constructor Summary
mxGraphMlData()
          Construct an empty data.
mxGraphMlData(Element dataElement)
          Construct a data from one xml data element.
mxGraphMlData(String dataId, String dataKey, String dataValue, mxGraphMlShapeEdge dataShapeEdge, mxGraphMlShapeNode dataShapeNode)
          Construct a data with the params values.
 
Method Summary
 Element generateEdgeElement(Document document)
          Generates an Edge Data Element from this class.
 Element generateNodeElement(Document document)
          Generates an Node Data Element from this class.
 String getDataId()
           
 String getDataKey()
           
 mxGraphMlShapeEdge getDataShapeEdge()
           
 mxGraphMlShapeNode getDataShapeNode()
           
 String getDataValue()
           
 void setDataId(String dataId)
           
 void setDataKey(String dataKey)
           
 void setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge)
           
 void setDataShapeNode(mxGraphMlShapeNode dataShapeNode)
           
 void setDataValue(String dataValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlData

public mxGraphMlData(String dataId,
                     String dataKey,
                     String dataValue,
                     mxGraphMlShapeEdge dataShapeEdge,
                     mxGraphMlShapeNode dataShapeNode)
Construct a data with the params values.

Parameters:
dataId - Data's ID
dataKey - Reference to a Key Element ID
dataValue - Value of the data Element
dataShapeEdge - JGraph specific edge properties.
dataShapeNode - JGraph specific node properties.

mxGraphMlData

public mxGraphMlData(Element dataElement)
Construct a data from one xml data element.

Parameters:
dataElement - Xml Data Element.

mxGraphMlData

public mxGraphMlData()
Construct an empty data.

Method Detail

getDataId

public String getDataId()

setDataId

public void setDataId(String dataId)

getDataKey

public String getDataKey()

setDataKey

public void setDataKey(String dataKey)

getDataValue

public String getDataValue()

setDataValue

public void setDataValue(String dataValue)

getDataShapeNode

public mxGraphMlShapeNode getDataShapeNode()

setDataShapeNode

public void setDataShapeNode(mxGraphMlShapeNode dataShapeNode)

getDataShapeEdge

public mxGraphMlShapeEdge getDataShapeEdge()

setDataShapeEdge

public void setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge)

generateNodeElement

public Element generateNodeElement(Document document)
Generates an Node Data Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

generateEdgeElement

public Element generateEdgeElement(Document document)
Generates an Edge Data Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/0000775000175000017500000000000012176166726025517 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlUtils.html0000664000175000017500000001402112176166726031323 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlUtils (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlUtils

No usage of com.mxgraph.io.graphml.mxGraphMlUtils


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlShapeNode.html0000664000175000017500000002520112176166726032073 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlShapeNode (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlShapeNode

Packages that use mxGraphMlShapeNode
com.mxgraph.io.graphml   
 

Uses of mxGraphMlShapeNode in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return mxGraphMlShapeNode
 mxGraphMlShapeNode mxGraphMlData.getDataShapeNode()
           
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlShapeNode
 void mxGraphMlData.setDataShapeNode(mxGraphMlShapeNode dataShapeNode)
           
 

Constructors in com.mxgraph.io.graphml with parameters of type mxGraphMlShapeNode
mxGraphMlData(String dataId, String dataKey, String dataValue, mxGraphMlShapeEdge dataShapeEdge, mxGraphMlShapeNode dataShapeNode)
          Construct a data with the params values.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlData.html0000664000175000017500000004411212176166726031100 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlData (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlData

Packages that use mxGraphMlData
com.mxgraph.io.graphml   
 

Uses of mxGraphMlData in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return mxGraphMlData
static mxGraphMlData mxGraphMlGraph.dataEdgeKey(mxGraphMlEdge edge)
          Returns the data element inside the edge that references to the key element with name = KEY_EDGE_NAME.
static mxGraphMlData mxGraphMlGraph.dataNodeKey(mxGraphMlNode node)
          Returns the data element inside the node that references to the key element with name = KEY_NODE_NAME.
 mxGraphMlData mxGraphMlEdge.getEdgeData()
           
 mxGraphMlData mxGraphMlNode.getNodeData()
           
 

Methods in com.mxgraph.io.graphml that return types with arguments of type mxGraphMlData
 HashMap<String,mxGraphMlData> mxGraphMlEdge.getEdgeDataMap()
           
 HashMap<String,mxGraphMlData> mxGraphMlNode.getNodeDataMap()
           
 HashMap<String,mxGraphMlData> mxGraphMlPort.getPortDataMap()
           
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlData
 void mxGraphMlEdge.setEdgeData(mxGraphMlData egdeData)
           
 void mxGraphMlNode.setNodeData(mxGraphMlData nodeData)
           
 

Method parameters in com.mxgraph.io.graphml with type arguments of type mxGraphMlData
 void mxGraphMlEdge.setEdgeDataMap(HashMap<String,mxGraphMlData> nodeEdgeMap)
           
 void mxGraphMlNode.setNodeDataMap(HashMap<String,mxGraphMlData> nodeDataMap)
           
 void mxGraphMlPort.setPortDataMap(HashMap<String,mxGraphMlData> nodeDataMap)
           
 

Constructors in com.mxgraph.io.graphml with parameters of type mxGraphMlData
mxGraphMlNode(String nodeId, mxGraphMlData nodeData)
          Construct a node with Id and one data element
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlKey.keyForValues.html0000664000175000017500000003270412176166726033401 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlKey.keyForValues (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlKey.keyForValues

Packages that use mxGraphMlKey.keyForValues
com.mxgraph.io.graphml   
 

Uses of mxGraphMlKey.keyForValues in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return mxGraphMlKey.keyForValues
 mxGraphMlKey.keyForValues mxGraphMlKey.enumForValue(String value)
          Converts a String value in its corresponding enum value for the keyFor attribute.
 mxGraphMlKey.keyForValues mxGraphMlKey.getKeyFor()
           
static mxGraphMlKey.keyForValues mxGraphMlKey.keyForValues.valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGraphMlKey.keyForValues[] mxGraphMlKey.keyForValues.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlKey.keyForValues
 void mxGraphMlKey.setKeyFor(mxGraphMlKey.keyForValues keyFor)
           
 String mxGraphMlKey.stringForValue(mxGraphMlKey.keyForValues value)
          Converts a enum value in its corresponding String value for the keyFor attribute.
 

Constructors in com.mxgraph.io.graphml with parameters of type mxGraphMlKey.keyForValues
mxGraphMlKey(String keyId, mxGraphMlKey.keyForValues keyFor, String keyName, mxGraphMlKey.keyTypeValues keyType)
          Construct a key with the given parameters.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlEdge.html0000664000175000017500000003003012176166726031065 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlEdge (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlEdge

Packages that use mxGraphMlEdge
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.io.graphml   
 

Uses of mxGraphMlEdge in com.mxgraph.io
 

Methods in com.mxgraph.io with parameters of type mxGraphMlEdge
static void mxGraphMlCodec.addEdgeData(mxGraphMlEdge gmlEdge, mxCell v)
          Add the edge data in the gmlEdge.
 

Uses of mxGraphMlEdge in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return types with arguments of type mxGraphMlEdge
 List<mxGraphMlEdge> mxGraphMlGraph.getEdges()
           
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlEdge
static mxGraphMlData mxGraphMlGraph.dataEdgeKey(mxGraphMlEdge edge)
          Returns the data element inside the edge that references to the key element with name = KEY_EDGE_NAME.
 

Method parameters in com.mxgraph.io.graphml with type arguments of type mxGraphMlEdge
 void mxGraphMlGraph.setEdges(List<mxGraphMlEdge> edge)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlNode.html0000664000175000017500000003113112176166726031111 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlNode (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlNode

Packages that use mxGraphMlNode
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.io.graphml   
 

Uses of mxGraphMlNode in com.mxgraph.io
 

Methods in com.mxgraph.io with parameters of type mxGraphMlNode
static void mxGraphMlCodec.addNodeData(mxGraphMlNode gmlNode, mxCell v)
          Add the node data in the gmlNode.
 

Uses of mxGraphMlNode in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return types with arguments of type mxGraphMlNode
 List<mxGraphMlNode> mxGraphMlGraph.getNodes()
           
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlNode
static mxGraphMlData mxGraphMlGraph.dataNodeKey(mxGraphMlNode node)
          Returns the data element inside the node that references to the key element with name = KEY_NODE_NAME.
static boolean mxGraphMlGraph.hasData(mxGraphMlNode node)
          Checks if the node has data elements inside.
 

Method parameters in com.mxgraph.io.graphml with type arguments of type mxGraphMlNode
 void mxGraphMlGraph.setNodes(List<mxGraphMlNode> node)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlKeyManager.html0000664000175000017500000001774312176166726032264 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlKeyManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlKeyManager

Packages that use mxGraphMlKeyManager
com.mxgraph.io.graphml   
 

Uses of mxGraphMlKeyManager in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return mxGraphMlKeyManager
static mxGraphMlKeyManager mxGraphMlKeyManager.getInstance()
          Returns the instance of mxGmlKeyManager.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlGraph.html0000664000175000017500000003264412176166726031277 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlGraph (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlGraph

Packages that use mxGraphMlGraph
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.io.graphml   
 

Uses of mxGraphMlGraph in com.mxgraph.io
 

Methods in com.mxgraph.io that return mxGraphMlGraph
static mxGraphMlGraph mxGraphMlCodec.decodeGraph(mxGraph graph, Object parent, mxGraphMlGraph gmlGraph)
          Returns a Gml graph with the data of the vertexes and edges in the graph.
 

Methods in com.mxgraph.io with parameters of type mxGraphMlGraph
static mxGraphMlGraph mxGraphMlCodec.decodeGraph(mxGraph graph, Object parent, mxGraphMlGraph gmlGraph)
          Returns a Gml graph with the data of the vertexes and edges in the graph.
static Document mxGraphMlCodec.encodeXML(mxGraphMlGraph gmlGraph)
          Generates a Xml document with the gmlGraph.
 

Uses of mxGraphMlGraph in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return types with arguments of type mxGraphMlGraph
 List<mxGraphMlGraph> mxGraphMlNode.getNodeGraph()
           
 

Method parameters in com.mxgraph.io.graphml with type arguments of type mxGraphMlGraph
 void mxGraphMlNode.setNodeGraph(List<mxGraphMlGraph> nodeGraph)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlConstants.html0000664000175000017500000001407112176166726032204 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlConstants

No usage of com.mxgraph.io.graphml.mxGraphMlConstants


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlKey.html0000664000175000017500000002263712176166726030767 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlKey (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlKey

Packages that use mxGraphMlKey
com.mxgraph.io.graphml   
 

Uses of mxGraphMlKey in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return types with arguments of type mxGraphMlKey
 HashMap<String,mxGraphMlKey> mxGraphMlKeyManager.getKeyMap()
           
 

Method parameters in com.mxgraph.io.graphml with type arguments of type mxGraphMlKey
 void mxGraphMlKeyManager.setKeyMap(HashMap<String,mxGraphMlKey> keyMap)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlShapeEdge.html0000664000175000017500000002520112176166726032052 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlShapeEdge (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlShapeEdge

Packages that use mxGraphMlShapeEdge
com.mxgraph.io.graphml   
 

Uses of mxGraphMlShapeEdge in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return mxGraphMlShapeEdge
 mxGraphMlShapeEdge mxGraphMlData.getDataShapeEdge()
           
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlShapeEdge
 void mxGraphMlData.setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge)
           
 

Constructors in com.mxgraph.io.graphml with parameters of type mxGraphMlShapeEdge
mxGraphMlData(String dataId, String dataKey, String dataValue, mxGraphMlShapeEdge dataShapeEdge, mxGraphMlShapeNode dataShapeNode)
          Construct a data with the params values.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlPort.html0000664000175000017500000002264612176166726031163 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlPort (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlPort

Packages that use mxGraphMlPort
com.mxgraph.io.graphml   
 

Uses of mxGraphMlPort in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return types with arguments of type mxGraphMlPort
 HashMap<String,mxGraphMlPort> mxGraphMlNode.getNodePort()
           
 

Method parameters in com.mxgraph.io.graphml with type arguments of type mxGraphMlPort
 void mxGraphMlNode.setNodePort(HashMap<String,mxGraphMlPort> nodePort)
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/class-use/mxGraphMlKey.keyTypeValues.html0000664000175000017500000003276412176166726033602 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.graphml.mxGraphMlKey.keyTypeValues (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.graphml.mxGraphMlKey.keyTypeValues

Packages that use mxGraphMlKey.keyTypeValues
com.mxgraph.io.graphml   
 

Uses of mxGraphMlKey.keyTypeValues in com.mxgraph.io.graphml
 

Methods in com.mxgraph.io.graphml that return mxGraphMlKey.keyTypeValues
 mxGraphMlKey.keyTypeValues mxGraphMlKey.enumTypeValue(String value)
          Converts a String value in its corresponding enum value for the keyType attribute.
 mxGraphMlKey.keyTypeValues mxGraphMlKey.getKeyType()
           
static mxGraphMlKey.keyTypeValues mxGraphMlKey.keyTypeValues.valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGraphMlKey.keyTypeValues[] mxGraphMlKey.keyTypeValues.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Methods in com.mxgraph.io.graphml with parameters of type mxGraphMlKey.keyTypeValues
 void mxGraphMlKey.setKeyType(mxGraphMlKey.keyTypeValues keyType)
           
 String mxGraphMlKey.stringTypeValue(mxGraphMlKey.keyTypeValues value)
          Converts a enum value in its corresponding string value for the keyType attribute.
 

Constructors in com.mxgraph.io.graphml with parameters of type mxGraphMlKey.keyTypeValues
mxGraphMlKey(String keyId, mxGraphMlKey.keyForValues keyFor, String keyName, mxGraphMlKey.keyTypeValues keyType)
          Construct a key with the given parameters.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/package-frame.html0000664000175000017500000000475012176166726027177 0ustar sylvestresylvestre com.mxgraph.io.graphml (JGraph X 2.1.0.7 API Specification) com.mxgraph.io.graphml
Classes 
mxGraphMlConstants
mxGraphMlData
mxGraphMlEdge
mxGraphMlGraph
mxGraphMlKey
mxGraphMlKeyManager
mxGraphMlNode
mxGraphMlPort
mxGraphMlShapeEdge
mxGraphMlShapeNode
mxGraphMlUtils
Enums 
mxGraphMlKey.keyForValues
mxGraphMlKey.keyTypeValues
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlKey.keyForValues.html0000664000175000017500000005067512176166720031503 0ustar sylvestresylvestre mxGraphMlKey.keyForValues (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Enum mxGraphMlKey.keyForValues

java.lang.Object
  extended by java.lang.Enum<mxGraphMlKey.keyForValues>
      extended by com.mxgraph.io.graphml.mxGraphMlKey.keyForValues
All Implemented Interfaces:
Serializable, Comparable<mxGraphMlKey.keyForValues>
Enclosing class:
mxGraphMlKey

public static enum mxGraphMlKey.keyForValues
extends Enum<mxGraphMlKey.keyForValues>

Possibles values for the keyFor Attribute


Enum Constant Summary
ALL
           
EDGE
           
ENDPOINT
           
GRAPH
           
HYPEREDGE
           
NODE
           
PORT
           
 
Method Summary
static mxGraphMlKey.keyForValues valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGraphMlKey.keyForValues[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRAPH

public static final mxGraphMlKey.keyForValues GRAPH

NODE

public static final mxGraphMlKey.keyForValues NODE

EDGE

public static final mxGraphMlKey.keyForValues EDGE

HYPEREDGE

public static final mxGraphMlKey.keyForValues HYPEREDGE

PORT

public static final mxGraphMlKey.keyForValues PORT

ENDPOINT

public static final mxGraphMlKey.keyForValues ENDPOINT

ALL

public static final mxGraphMlKey.keyForValues ALL
Method Detail

values

public static mxGraphMlKey.keyForValues[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (mxGraphMlKey.keyForValues c : mxGraphMlKey.keyForValues.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static mxGraphMlKey.keyForValues valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlEdge.html0000664000175000017500000007433112176166720027174 0ustar sylvestresylvestre mxGraphMlEdge (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlEdge

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlEdge

public class mxGraphMlEdge
extends Object

Represents a Data element in the GML Structure.


Constructor Summary
mxGraphMlEdge(Element edgeElement)
          Construct an edge from a xml edge element.
mxGraphMlEdge(String edgeSource, String edgeTarget, String edgeSourcePort, String edgeTargetPort)
          Construct an edge with source and target.
 
Method Summary
 Element generateElement(Document document)
          Generates a Edge Element from this class.
 mxGraphMlData getEdgeData()
           
 HashMap<String,mxGraphMlData> getEdgeDataMap()
           
 String getEdgeDirected()
           
 String getEdgeId()
           
 String getEdgeSource()
           
 String getEdgeSourcePort()
           
 String getEdgeStyle()
          Returns if the edge has end arrow.
 String getEdgeTarget()
           
 String getEdgeTargetPort()
           
 void setEdgeData(mxGraphMlData egdeData)
           
 void setEdgeDataMap(HashMap<String,mxGraphMlData> nodeEdgeMap)
           
 void setEdgeDirected(String edgeDirected)
           
 void setEdgeId(String edgeId)
           
 void setEdgeSource(String edgeSource)
           
 void setEdgeSourcePort(String edgeSourcePort)
           
 void setEdgeTarget(String edgeTarget)
           
 void setEdgeTargetPort(String edgeTargetPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlEdge

public mxGraphMlEdge(String edgeSource,
                     String edgeTarget,
                     String edgeSourcePort,
                     String edgeTargetPort)
Construct an edge with source and target.

Parameters:
edgeSource - Source Node's ID.
edgeTarget - Target Node's ID.

mxGraphMlEdge

public mxGraphMlEdge(Element edgeElement)
Construct an edge from a xml edge element.

Parameters:
edgeElement - Xml edge element.
Method Detail

getEdgeDirected

public String getEdgeDirected()

setEdgeDirected

public void setEdgeDirected(String edgeDirected)

getEdgeId

public String getEdgeId()

setEdgeId

public void setEdgeId(String edgeId)

getEdgeSource

public String getEdgeSource()

setEdgeSource

public void setEdgeSource(String edgeSource)

getEdgeSourcePort

public String getEdgeSourcePort()

setEdgeSourcePort

public void setEdgeSourcePort(String edgeSourcePort)

getEdgeTarget

public String getEdgeTarget()

setEdgeTarget

public void setEdgeTarget(String edgeTarget)

getEdgeTargetPort

public String getEdgeTargetPort()

setEdgeTargetPort

public void setEdgeTargetPort(String edgeTargetPort)

getEdgeDataMap

public HashMap<String,mxGraphMlData> getEdgeDataMap()

setEdgeDataMap

public void setEdgeDataMap(HashMap<String,mxGraphMlData> nodeEdgeMap)

getEdgeData

public mxGraphMlData getEdgeData()

setEdgeData

public void setEdgeData(mxGraphMlData egdeData)

generateElement

public Element generateElement(Document document)
Generates a Edge Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

getEdgeStyle

public String getEdgeStyle()
Returns if the edge has end arrow.

Returns:
style that indicates the end arrow type(CLASSIC or NONE).

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlNode.html0000664000175000017500000006217112176166720027214 0ustar sylvestresylvestre mxGraphMlNode (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlNode

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlNode

public class mxGraphMlNode
extends Object

Represents a Data element in the GML Structure.


Constructor Summary
mxGraphMlNode(Element nodeElement)
          Construct a Node from a xml Node Element.
mxGraphMlNode(String nodeId, mxGraphMlData nodeData)
          Construct a node with Id and one data element
 
Method Summary
 Element generateElement(Document document)
          Generates a Key Element from this class.
 mxGraphMlData getNodeData()
           
 HashMap<String,mxGraphMlData> getNodeDataMap()
           
 List<mxGraphMlGraph> getNodeGraph()
           
 String getNodeId()
           
 HashMap<String,mxGraphMlPort> getNodePort()
           
 void setNodeData(mxGraphMlData nodeData)
           
 void setNodeDataMap(HashMap<String,mxGraphMlData> nodeDataMap)
           
 void setNodeGraph(List<mxGraphMlGraph> nodeGraph)
           
 void setNodeId(String nodeId)
           
 void setNodePort(HashMap<String,mxGraphMlPort> nodePort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlNode

public mxGraphMlNode(String nodeId,
                     mxGraphMlData nodeData)
Construct a node with Id and one data element

Parameters:
nodeId - Node`s ID
nodeData - Gml Data.

mxGraphMlNode

public mxGraphMlNode(Element nodeElement)
Construct a Node from a xml Node Element.

Parameters:
nodeElement - Xml Node Element.
Method Detail

getNodeId

public String getNodeId()

setNodeId

public void setNodeId(String nodeId)

getNodeDataMap

public HashMap<String,mxGraphMlData> getNodeDataMap()

setNodeDataMap

public void setNodeDataMap(HashMap<String,mxGraphMlData> nodeDataMap)

getNodeGraph

public List<mxGraphMlGraph> getNodeGraph()

setNodeGraph

public void setNodeGraph(List<mxGraphMlGraph> nodeGraph)

getNodePort

public HashMap<String,mxGraphMlPort> getNodePort()

setNodePort

public void setNodePort(HashMap<String,mxGraphMlPort> nodePort)

generateElement

public Element generateElement(Document document)
Generates a Key Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

getNodeData

public mxGraphMlData getNodeData()

setNodeData

public void setNodeData(mxGraphMlData nodeData)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlKeyManager.html0000664000175000017500000003637312176166720030357 0ustar sylvestresylvestre mxGraphMlKeyManager (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlKeyManager

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlKeyManager

public class mxGraphMlKeyManager
extends Object

This is a singleton class that contains a map with the key elements of the document. The key elements are wrapped in instances of mxGmlKey and may to be access by ID.


Method Summary
static mxGraphMlKeyManager getInstance()
          Returns the instance of mxGmlKeyManager.
 HashMap<String,mxGraphMlKey> getKeyMap()
           
 void initialise(Document doc)
          Load the map with the key elements in the document.
The keys are wrapped for instances of mxGmlKey.
 void setKeyMap(HashMap<String,mxGraphMlKey> keyMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static mxGraphMlKeyManager getInstance()
Returns the instance of mxGmlKeyManager. If no instance has been created until the moment, a new instance is returned. This method don't load the map.

Returns:
An instance of mxGmlKeyManager.

initialise

public void initialise(Document doc)
Load the map with the key elements in the document.
The keys are wrapped for instances of mxGmlKey.

Parameters:
doc - Document with the keys.

getKeyMap

public HashMap<String,mxGraphMlKey> getKeyMap()

setKeyMap

public void setKeyMap(HashMap<String,mxGraphMlKey> keyMap)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlGraph.html0000664000175000017500000007011212176166720027362 0ustar sylvestresylvestre mxGraphMlGraph (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlGraph

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlGraph

public class mxGraphMlGraph
extends Object

Represents a Graph element in the GML Structure.


Constructor Summary
mxGraphMlGraph()
          Constructs an empty graph.
mxGraphMlGraph(Element graphElement)
          Constructs a graph from a xml graph element.
mxGraphMlGraph(String id, String edgedefault)
          Constructs a graph with id and edge default direction.
 
Method Summary
 void addGraph(mxGraph graph, Object parent)
          Adds the elements represented for this graph model into the given graph.
static mxGraphMlData dataEdgeKey(mxGraphMlEdge edge)
          Returns the data element inside the edge that references to the key element with name = KEY_EDGE_NAME.
static mxGraphMlData dataNodeKey(mxGraphMlNode node)
          Returns the data element inside the node that references to the key element with name = KEY_NODE_NAME.
 Element generateElement(Document document)
          Generates a Key Element from this class.
 String getEdgedefault()
           
 List<mxGraphMlEdge> getEdges()
           
 String getId()
           
 List<mxGraphMlNode> getNodes()
           
static boolean hasData(mxGraphMlNode node)
          Checks if the node has data elements inside.
 boolean isEmpty()
          Checks if the graph has child nodes or edges.
 void setEdgedefault(String edgedefault)
           
 void setEdges(List<mxGraphMlEdge> edge)
           
 void setId(String id)
           
 void setNodes(List<mxGraphMlNode> node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlGraph

public mxGraphMlGraph(String id,
                      String edgedefault)
Constructs a graph with id and edge default direction.

Parameters:
id - Graph's ID
edgedefault - Edge Default direction.("directed" or "undirected")

mxGraphMlGraph

public mxGraphMlGraph()
Constructs an empty graph.


mxGraphMlGraph

public mxGraphMlGraph(Element graphElement)
Constructs a graph from a xml graph element.

Parameters:
graphElement - Xml graph element.
Method Detail

addGraph

public void addGraph(mxGraph graph,
                     Object parent)
Adds the elements represented for this graph model into the given graph.

Parameters:
graph - Graph where the elements will be located
parent - Parent of the cells to be added.

hasData

public static boolean hasData(mxGraphMlNode node)
Checks if the node has data elements inside.

Parameters:
node - Gml node element.
Returns:
Returns true if the node has data elements inside.

dataNodeKey

public static mxGraphMlData dataNodeKey(mxGraphMlNode node)
Returns the data element inside the node that references to the key element with name = KEY_NODE_NAME.

Parameters:
node - Gml Node element.
Returns:
The required data. null if not found.

dataEdgeKey

public static mxGraphMlData dataEdgeKey(mxGraphMlEdge edge)
Returns the data element inside the edge that references to the key element with name = KEY_EDGE_NAME.

Parameters:
edge - Gml Edge element.
Returns:
The required data. null if not found.

getEdgedefault

public String getEdgedefault()

setEdgedefault

public void setEdgedefault(String edgedefault)

getId

public String getId()

setId

public void setId(String id)

getNodes

public List<mxGraphMlNode> getNodes()

setNodes

public void setNodes(List<mxGraphMlNode> node)

getEdges

public List<mxGraphMlEdge> getEdges()

setEdges

public void setEdges(List<mxGraphMlEdge> edge)

isEmpty

public boolean isEmpty()
Checks if the graph has child nodes or edges.

Returns:
Returns true if the graph hasn't child nodes or edges.

generateElement

public Element generateElement(Document document)
Generates a Key Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlConstants.html0000664000175000017500000012661112176166720030303 0ustar sylvestresylvestre mxGraphMlConstants (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlConstants

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlConstants

public class mxGraphMlConstants
extends Object

This class contains constants used in the Import of gml documents.


Field Summary
static String ALL
           
static String DATA
           
static String EDGE
           
static String EDGE_DEFAULT
           
static String EDGE_DIRECTED
           
static String EDGE_SOURCE
           
static String EDGE_SOURCE_PORT
           
static String EDGE_TARGET
           
static String EDGE_TARGET_PORT
           
static String EDGE_UNDIRECTED
           
static String ENDPOINT
           
static String FILL
           
static String GEOMETRY
           
static String GRAPH
           
static String GRAPHML
           
static String HEIGHT
           
static String HYPEREDGE
           
static String ID
           
static String JGRAPH
           
static String JGRAPH_URL
           
static String KEY
           
static String KEY_EDGE_ID
           
static String KEY_EDGE_NAME
           
static String KEY_FOR
           
static String KEY_NAME
           
static String KEY_NODE_ID
           
static String KEY_NODE_NAME
           
static String KEY_TYPE
           
static String LABEL
           
static String NODE
           
static String PORT
           
static String PORT_NAME
           
static String PROPERTIES
           
static String SHAPE
           
static String SHAPEEDGE
           
static String SHAPENODE
           
static String SOURCETARGET
           
static String STYLE
           
static String TEXT
           
static String TYPE
           
static String WIDTH
           
static String X
           
static String Y
           
 
Constructor Summary
mxGraphMlConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static String ID

KEY_FOR

public static String KEY_FOR

KEY_NAME

public static String KEY_NAME

KEY_TYPE

public static String KEY_TYPE

GRAPH

public static String GRAPH

GRAPHML

public static String GRAPHML

NODE

public static String NODE

EDGE

public static String EDGE

HYPEREDGE

public static String HYPEREDGE

PORT

public static String PORT

ENDPOINT

public static String ENDPOINT

KEY

public static String KEY

DATA

public static String DATA

ALL

public static String ALL

EDGE_SOURCE

public static String EDGE_SOURCE

EDGE_SOURCE_PORT

public static String EDGE_SOURCE_PORT

EDGE_TARGET

public static String EDGE_TARGET

EDGE_TARGET_PORT

public static String EDGE_TARGET_PORT

EDGE_DIRECTED

public static String EDGE_DIRECTED

EDGE_UNDIRECTED

public static String EDGE_UNDIRECTED

EDGE_DEFAULT

public static String EDGE_DEFAULT

PORT_NAME

public static String PORT_NAME

HEIGHT

public static String HEIGHT

WIDTH

public static String WIDTH

X

public static String X

Y

public static String Y

JGRAPH

public static String JGRAPH

GEOMETRY

public static String GEOMETRY

FILL

public static String FILL

SHAPENODE

public static String SHAPENODE

SHAPEEDGE

public static String SHAPEEDGE

JGRAPH_URL

public static String JGRAPH_URL

KEY_NODE_ID

public static String KEY_NODE_ID

KEY_NODE_NAME

public static String KEY_NODE_NAME

KEY_EDGE_ID

public static String KEY_EDGE_ID

KEY_EDGE_NAME

public static String KEY_EDGE_NAME

STYLE

public static String STYLE

SHAPE

public static String SHAPE

TYPE

public static String TYPE

LABEL

public static String LABEL

TEXT

public static String TEXT

PROPERTIES

public static String PROPERTIES

SOURCETARGET

public static String SOURCETARGET
Constructor Detail

mxGraphMlConstants

public mxGraphMlConstants()

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/package-summary.html0000664000175000017500000002326112176166726027600 0ustar sylvestresylvestre com.mxgraph.io.graphml (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.io.graphml

Class Summary
mxGraphMlConstants This class contains constants used in the Import of gml documents.
mxGraphMlData Represents a Data element in the GML Structure.
mxGraphMlEdge Represents a Data element in the GML Structure.
mxGraphMlGraph Represents a Graph element in the GML Structure.
mxGraphMlKey Represents a Key element in the GML Structure.
mxGraphMlKeyManager This is a singleton class that contains a map with the key elements of the document.
mxGraphMlNode Represents a Data element in the GML Structure.
mxGraphMlPort Represents a Port element in the GML Structure.
mxGraphMlShapeEdge This class represents the properties of a JGraph edge.
mxGraphMlShapeNode  
mxGraphMlUtils This class implements several GML utility methods.
 

Enum Summary
mxGraphMlKey.keyForValues Possibles values for the keyFor Attribute
mxGraphMlKey.keyTypeValues Possibles values for the keyType Attribute.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/package-use.html0000664000175000017500000002643512176166726026705 0ustar sylvestresylvestre Uses of Package com.mxgraph.io.graphml (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.io.graphml

Packages that use com.mxgraph.io.graphml
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.io.graphml   
 

Classes in com.mxgraph.io.graphml used by com.mxgraph.io
mxGraphMlEdge
          Represents a Data element in the GML Structure.
mxGraphMlGraph
          Represents a Graph element in the GML Structure.
mxGraphMlNode
          Represents a Data element in the GML Structure.
 

Classes in com.mxgraph.io.graphml used by com.mxgraph.io.graphml
mxGraphMlData
          Represents a Data element in the GML Structure.
mxGraphMlEdge
          Represents a Data element in the GML Structure.
mxGraphMlGraph
          Represents a Graph element in the GML Structure.
mxGraphMlKey
          Represents a Key element in the GML Structure.
mxGraphMlKey.keyForValues
          Possibles values for the keyFor Attribute
mxGraphMlKey.keyTypeValues
          Possibles values for the keyType Attribute.
mxGraphMlKeyManager
          This is a singleton class that contains a map with the key elements of the document.
mxGraphMlNode
          Represents a Data element in the GML Structure.
mxGraphMlPort
          Represents a Port element in the GML Structure.
mxGraphMlShapeEdge
          This class represents the properties of a JGraph edge.
mxGraphMlShapeNode
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlKey.html0000664000175000017500000007475412176166720027071 0ustar sylvestresylvestre mxGraphMlKey (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlKey

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlKey

public class mxGraphMlKey
extends Object

Represents a Key element in the GML Structure.


Nested Class Summary
static class mxGraphMlKey.keyForValues
          Possibles values for the keyFor Attribute
static class mxGraphMlKey.keyTypeValues
          Possibles values for the keyType Attribute.
 
Constructor Summary
mxGraphMlKey(Element keyElement)
          Construct a key from a xml key element.
mxGraphMlKey(String keyId, mxGraphMlKey.keyForValues keyFor, String keyName, mxGraphMlKey.keyTypeValues keyType)
          Construct a key with the given parameters.
 
Method Summary
 mxGraphMlKey.keyForValues enumForValue(String value)
          Converts a String value in its corresponding enum value for the keyFor attribute.
 mxGraphMlKey.keyTypeValues enumTypeValue(String value)
          Converts a String value in its corresponding enum value for the keyType attribute.
 Element generateElement(Document document)
          Generates a Key Element from this class.
 String getKeyDefault()
           
 mxGraphMlKey.keyForValues getKeyFor()
           
 String getKeyId()
           
 String getKeyName()
           
 mxGraphMlKey.keyTypeValues getKeyType()
           
 void setKeyDefault(String keyDefault)
           
 void setKeyFor(mxGraphMlKey.keyForValues keyFor)
           
 void setKeyId(String keyId)
           
 void setKeyName(String keyName)
           
 void setKeyType(mxGraphMlKey.keyTypeValues keyType)
           
 String stringForValue(mxGraphMlKey.keyForValues value)
          Converts a enum value in its corresponding String value for the keyFor attribute.
 String stringTypeValue(mxGraphMlKey.keyTypeValues value)
          Converts a enum value in its corresponding string value for the keyType attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlKey

public mxGraphMlKey(String keyId,
                    mxGraphMlKey.keyForValues keyFor,
                    String keyName,
                    mxGraphMlKey.keyTypeValues keyType)
Construct a key with the given parameters.

Parameters:
keyId - Key's ID
keyFor - Scope of the key.
keyName - Key Name
keyType - Type of the values represented for this key.

mxGraphMlKey

public mxGraphMlKey(Element keyElement)
Construct a key from a xml key element.

Parameters:
keyElement - Xml key element.
Method Detail

getKeyDefault

public String getKeyDefault()

setKeyDefault

public void setKeyDefault(String keyDefault)

getKeyFor

public mxGraphMlKey.keyForValues getKeyFor()

setKeyFor

public void setKeyFor(mxGraphMlKey.keyForValues keyFor)

getKeyId

public String getKeyId()

setKeyId

public void setKeyId(String keyId)

getKeyName

public String getKeyName()

setKeyName

public void setKeyName(String keyName)

getKeyType

public mxGraphMlKey.keyTypeValues getKeyType()

setKeyType

public void setKeyType(mxGraphMlKey.keyTypeValues keyType)

generateElement

public Element generateElement(Document document)
Generates a Key Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

enumForValue

public mxGraphMlKey.keyForValues enumForValue(String value)
Converts a String value in its corresponding enum value for the keyFor attribute.

Parameters:
value - Value in String representation.
Returns:
Returns the value in its enum representation.

stringForValue

public String stringForValue(mxGraphMlKey.keyForValues value)
Converts a enum value in its corresponding String value for the keyFor attribute.

Parameters:
value - Value in enum representation.
Returns:
Returns the value in its String representation.

enumTypeValue

public mxGraphMlKey.keyTypeValues enumTypeValue(String value)
Converts a String value in its corresponding enum value for the keyType attribute.

Parameters:
value - Value in String representation.
Returns:
Returns the value in its enum representation.

stringTypeValue

public String stringTypeValue(mxGraphMlKey.keyTypeValues value)
Converts a enum value in its corresponding string value for the keyType attribute.

Parameters:
value - Value in enum representation.
Returns:
Returns the value in its String representation.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlShapeEdge.html0000664000175000017500000005302212176166720030147 0ustar sylvestresylvestre mxGraphMlShapeEdge (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlShapeEdge

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlShapeEdge

public class mxGraphMlShapeEdge
extends Object

This class represents the properties of a JGraph edge.


Constructor Summary
mxGraphMlShapeEdge()
          Construct an empty Shape Edge Element.
mxGraphMlShapeEdge(Element shapeEdgeElement)
          Constructs a ShapeEdge from a xml shapeEdgeElement.
mxGraphMlShapeEdge(String text, String style)
          Construct a Shape Edge with text and style.
 
Method Summary
 Element generateElement(Document document)
          Generates a ShapeEdge Element from this class.
 String getEdgeSource()
           
 String getEdgeTarget()
           
 String getStyle()
           
 String getText()
           
 void setEdgeSource(String edgeSource)
           
 void setEdgeTarget(String edgeTarget)
           
 void setStyle(String style)
           
 void setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlShapeEdge

public mxGraphMlShapeEdge(String text,
                          String style)
Construct a Shape Edge with text and style.

Parameters:
text -
style -

mxGraphMlShapeEdge

public mxGraphMlShapeEdge(Element shapeEdgeElement)
Constructs a ShapeEdge from a xml shapeEdgeElement.

Parameters:
shapeEdgeElement -

mxGraphMlShapeEdge

public mxGraphMlShapeEdge()
Construct an empty Shape Edge Element.

Method Detail

generateElement

public Element generateElement(Document document)
Generates a ShapeEdge Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

getText

public String getText()

setText

public void setText(String text)

getStyle

public String getStyle()

setStyle

public void setStyle(String style)

getEdgeSource

public String getEdgeSource()

setEdgeSource

public void setEdgeSource(String edgeSource)

getEdgeTarget

public String getEdgeTarget()

setEdgeTarget

public void setEdgeTarget(String edgeTarget)

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/package-tree.html0000664000175000017500000002220712176166726027041 0ustar sylvestresylvestre com.mxgraph.io.graphml Class Hierarchy (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Hierarchy For Package com.mxgraph.io.graphml

Package Hierarchies:
All Packages

Class Hierarchy

Enum Hierarchy


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlPort.html0000664000175000017500000004461712176166720027260 0ustar sylvestresylvestre mxGraphMlPort (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Class mxGraphMlPort

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlPort

public class mxGraphMlPort
extends Object

Represents a Port element in the GML Structure.


Constructor Summary
mxGraphMlPort(Element portElement)
          Construct a Port from a xml port Element.
mxGraphMlPort(String name)
          Construct a Port with name.
 
Method Summary
 Element generateElement(Document document)
          Generates a Key Element from this class.
 String getName()
           
 HashMap<String,mxGraphMlData> getPortDataMap()
           
 void setName(String name)
           
 void setPortDataMap(HashMap<String,mxGraphMlData> nodeDataMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGraphMlPort

public mxGraphMlPort(String name)
Construct a Port with name.

Parameters:
name - Port Name

mxGraphMlPort

public mxGraphMlPort(Element portElement)
Construct a Port from a xml port Element.

Parameters:
portElement - Xml port Element.
Method Detail

getName

public String getName()

setName

public void setName(String name)

getPortDataMap

public HashMap<String,mxGraphMlData> getPortDataMap()

setPortDataMap

public void setPortDataMap(HashMap<String,mxGraphMlData> nodeDataMap)

generateElement

public Element generateElement(Document document)
Generates a Key Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/graphml/mxGraphMlKey.keyTypeValues.html0000664000175000017500000004777412176166720031704 0ustar sylvestresylvestre mxGraphMlKey.keyTypeValues (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io.graphml
Enum mxGraphMlKey.keyTypeValues

java.lang.Object
  extended by java.lang.Enum<mxGraphMlKey.keyTypeValues>
      extended by com.mxgraph.io.graphml.mxGraphMlKey.keyTypeValues
All Implemented Interfaces:
Serializable, Comparable<mxGraphMlKey.keyTypeValues>
Enclosing class:
mxGraphMlKey

public static enum mxGraphMlKey.keyTypeValues
extends Enum<mxGraphMlKey.keyTypeValues>

Possibles values for the keyType Attribute.


Enum Constant Summary
BOOLEAN
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
STRING
           
 
Method Summary
static mxGraphMlKey.keyTypeValues valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGraphMlKey.keyTypeValues[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final mxGraphMlKey.keyTypeValues BOOLEAN

INT

public static final mxGraphMlKey.keyTypeValues INT

LONG

public static final mxGraphMlKey.keyTypeValues LONG

FLOAT

public static final mxGraphMlKey.keyTypeValues FLOAT

DOUBLE

public static final mxGraphMlKey.keyTypeValues DOUBLE

STRING

public static final mxGraphMlKey.keyTypeValues STRING
Method Detail

values

public static mxGraphMlKey.keyTypeValues[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (mxGraphMlKey.keyTypeValues c : mxGraphMlKey.keyTypeValues.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static mxGraphMlKey.keyTypeValues valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxCodec.html0000664000175000017500000012540712176166720024441 0ustar sylvestresylvestre mxCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxCodec

java.lang.Object
  extended by com.mxgraph.io.mxCodec

public class mxCodec
extends Object

XML codec for Java object graphs. In order to resolve forward references when reading files the XML document that contains the data must be passed to the constructor.


Field Summary
protected  Document document
          Holds the owner document of the codec.
protected  boolean encodeDefaults
          Specifies if default values should be encoded.
protected  Map<String,Object> objects
          Maps from IDs to objects.
 
Constructor Summary
mxCodec()
          Constructs an XML encoder/decoder with a new owner document.
mxCodec(Document document)
          Constructs an XML encoder/decoder for the specified owner document.
 
Method Summary
 Object decode(Node node)
          Decodes the given XML node using decode(Node, Object).
 Object decode(Node node, Object into)
          Decodes the given XML node.
 mxICell decodeCell(Node node, boolean restoreStructures)
          Decodes cells that have been encoded using inversion, ie.
 Node encode(Object obj)
          Encodes the specified object and returns the resulting XML node.
 void encodeCell(mxICell cell, Node node, boolean includeChildren)
          Encoding of cell hierarchies is built-into the core, but is a higher-level function that needs to be explicitely used by the respective object encoders (eg.
 Document getDocument()
          Returns the owner document of the codec.
 Node getElementById(String id)
          Returns the element with the given ID from the document.
 Node getElementById(String id, String attr)
          Returns the element with the given ID from document.
 String getId(Object obj)
          Returns the ID of the specified object.
 Object getObject(String id)
          Returns the decoded object for the element with the specified ID in document.
 Map<String,Object> getObjects()
          Returns the object lookup table.
 void insertIntoGraph(mxICell cell)
          Inserts the given cell into its parent and terminal cells.
 boolean isEncodeDefaults()
          Returns if default values of member variables should be encoded.
 Object lookup(String id)
          Hook for subclassers to implement a custom lookup mechanism for cell IDs.
 Object putObject(String id, Object object)
          Assoiates the given object with the given ID.
 String reference(Object obj)
          Hook for subclassers to implement a custom method for retrieving IDs from objects.
static void setAttribute(Node node, String attribute, Object value)
          Sets the attribute on the specified node to value.
 void setDocument(Document value)
          Sets the owner document of the codec.
 void setEncodeDefaults(boolean encodeDefaults)
          Sets if default values of member variables should be encoded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected Document document
Holds the owner document of the codec.


objects

protected Map<String,Object> objects
Maps from IDs to objects.


encodeDefaults

protected boolean encodeDefaults
Specifies if default values should be encoded. Default is false.

Constructor Detail

mxCodec

public mxCodec()
Constructs an XML encoder/decoder with a new owner document.


mxCodec

public mxCodec(Document document)
Constructs an XML encoder/decoder for the specified owner document.

Parameters:
document - Optional XML document that contains the data. If no document is specified then a new document is created using mxUtils.createDocument
Method Detail

getDocument

public Document getDocument()
Returns the owner document of the codec.

Returns:
Returns the owner document.

setDocument

public void setDocument(Document value)
Sets the owner document of the codec.


isEncodeDefaults

public boolean isEncodeDefaults()
Returns if default values of member variables should be encoded.


setEncodeDefaults

public void setEncodeDefaults(boolean encodeDefaults)
Sets if default values of member variables should be encoded.


getObjects

public Map<String,Object> getObjects()
Returns the object lookup table.


putObject

public Object putObject(String id,
                        Object object)
Assoiates the given object with the given ID.

Parameters:
id - ID for the object to be associated with.
object - Object to be associated with the ID.
Returns:
Returns the given object.

getObject

public Object getObject(String id)
Returns the decoded object for the element with the specified ID in document. If the object is not known then lookup(String) is used to find an object. If no object is found, then the element with the respective ID from the document is parsed using decode(Node).

Parameters:
id - ID of the object to be returned.
Returns:
Returns the object for the given ID.

lookup

public Object lookup(String id)
Hook for subclassers to implement a custom lookup mechanism for cell IDs. This implementation always returns null.

Parameters:
id - ID of the object to be returned.
Returns:
Returns the object for the given ID.

getElementById

public Node getElementById(String id)
Returns the element with the given ID from the document.

Parameters:
id - ID of the element to be returned.
Returns:
Returns the element for the given ID.

getElementById

public Node getElementById(String id,
                           String attr)
Returns the element with the given ID from document. The optional attr argument specifies the name of the ID attribute. Default is "id". The XPath expression used to find the element is //*[@attr='arg'] where attr is the name of the ID attribute and arg is the given id. Parameters: id - String that contains the ID. attr - Optional string for the attributename. Default is id.


getId

public String getId(Object obj)
Returns the ID of the specified object. This implementation calls reference first and if that returns null handles the object as an mxCell by returning their IDs using mxCell.getId. If no ID exists for the given cell, then an on-the-fly ID is generated using mxCellPath.create.

Parameters:
obj - Object to return the ID for.
Returns:
Returns the ID for the given object.

reference

public String reference(Object obj)
Hook for subclassers to implement a custom method for retrieving IDs from objects. This implementation always returns null.

Parameters:
obj - Object whose ID should be returned.
Returns:
Returns the ID for the given object.

encode

public Node encode(Object obj)
Encodes the specified object and returns the resulting XML node.

Parameters:
obj - Object to be encoded.
Returns:
Returns an XML node that represents the given object.

decode

public Object decode(Node node)
Decodes the given XML node using decode(Node, Object).

Parameters:
node - XML node to be decoded.
Returns:
Returns an object that represents the given node.

decode

public Object decode(Node node,
                     Object into)
Decodes the given XML node. The optional "into" argument specifies an existing object to be used. If no object is given, then a new instance is created using the constructor from the codec. The function returns the passed in object or the new instance if no object was given.

Parameters:
node - XML node to be decoded.
into - Optional object to be decodec into.
Returns:
Returns an object that represents the given node.

encodeCell

public void encodeCell(mxICell cell,
                       Node node,
                       boolean includeChildren)
Encoding of cell hierarchies is built-into the core, but is a higher-level function that needs to be explicitely used by the respective object encoders (eg. mxModelCodec, mxChildChangeCodec and mxRootChangeCodec). This implementation writes the given cell and its children as a (flat) sequence into the given node. The children are not encoded if the optional includeChildren is false. The function is in charge of adding the result into the given node and has no return value.

Parameters:
cell - mxCell to be encoded.
node - Parent XML node to add the encoded cell into.
includeChildren - Boolean indicating if the method should include all descendents.

decodeCell

public mxICell decodeCell(Node node,
                          boolean restoreStructures)
Decodes cells that have been encoded using inversion, ie. where the user object is the enclosing node in the XML, and restores the group and graph structure in the cells. Returns a new instance that represents the given node.

Parameters:
node - XML node that contains the cell data.
restoreStructures - Boolean indicating whether the graph structure should be restored by calling insert and insertEdge on the parent and terminals, respectively.
Returns:
Graph cell that represents the given node.

insertIntoGraph

public void insertIntoGraph(mxICell cell)
Inserts the given cell into its parent and terminal cells.


setAttribute

public static void setAttribute(Node node,
                                String attribute,
                                Object value)
Sets the attribute on the specified node to value. This is a helper method that makes sure the attribute and value arguments are not null.

Parameters:
node - XML node to set the attribute for.
attribute - Name of the attribute whose value should be set.
value - New value of the attribute.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxGenericChangeCodec.html0000664000175000017500000006465712176166720027055 0ustar sylvestresylvestre mxGenericChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxGenericChangeCodec

java.lang.Object
  extended by com.mxgraph.io.mxObjectCodec
      extended by com.mxgraph.io.mxGenericChangeCodec

public class mxGenericChangeCodec
extends mxObjectCodec

Codec for mxChildChanges. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry.


Field Summary
protected  String fieldname
           
 
Fields inherited from class com.mxgraph.io.mxObjectCodec
accessors, exclude, fields, idrefs, mapping, reverse, template
 
Constructor Summary
mxGenericChangeCodec(Object template, String fieldname)
          Constructs a new model codec.
mxGenericChangeCodec(Object template, String[] exclude, String[] idrefs, Map<String,String> mapping, String fieldname)
          Constructs a new model codec for the given arguments.
 
Method Summary
 Object afterDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to post-process the object after decoding.
 
Methods inherited from class com.mxgraph.io.mxObjectCodec
addObjectValue, afterEncode, beforeDecode, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isExcluded, isPrimitiveValue, isReference, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldname

protected String fieldname
Constructor Detail

mxGenericChangeCodec

public mxGenericChangeCodec(Object template,
                            String fieldname)
Constructs a new model codec.


mxGenericChangeCodec

public mxGenericChangeCodec(Object template,
                            String[] exclude,
                            String[] idrefs,
                            Map<String,String> mapping,
                            String fieldname)
Constructs a new model codec for the given arguments.

Method Detail

afterDecode

public Object afterDecode(mxCodec dec,
                          Node node,
                          Object obj)
Description copied from class: mxObjectCodec
Hook for subclassers to post-process the object after decoding. This implementation returns the given object without any changes. The return value of this method is returned to the decoder from mxObjectCodec.decode(mxCodec, Node).

Overrides:
afterDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
obj - Object that represents the default decoding.
Returns:
Returns the result of the decoding process.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxGdCodec.html0000664000175000017500000004151512176166720024711 0ustar sylvestresylvestre mxGdCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxGdCodec

java.lang.Object
  extended by com.mxgraph.io.mxGdCodec

public class mxGdCodec
extends Object

Parses a GD .txt file and imports it in the given graph.
This class depends from the classes contained in com.mxgraph.io.gd.


Nested Class Summary
static class mxGdCodec.mxGDParseState
          Represents the different states in the parse of a file.
 
Field Summary
protected static HashMap<String,Object> cellsMap
          Map with the vertex cells added in the addNode method.
 
Constructor Summary
mxGdCodec()
           
 
Method Summary
static void decode(String input, mxGraph graph)
          Parses simple GD format and populate the specified graph
static String encode(mxGraph graph)
          Generates a GD text output with the cells in the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellsMap

protected static HashMap<String,Object> cellsMap
Map with the vertex cells added in the addNode method.

Constructor Detail

mxGdCodec

public mxGdCodec()
Method Detail

decode

public static void decode(String input,
                          mxGraph graph)
Parses simple GD format and populate the specified graph

Parameters:
input - GD file to be parsed
graph - Graph where the parsed graph is included.

encode

public static String encode(mxGraph graph)
Generates a GD text output with the cells in the graph. The implementation only uses the cells located in the default parent.

Parameters:
graph - Graph with the cells.
Returns:
The GD document generated.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxCodecRegistry.html0000664000175000017500000006211512176166720026166 0ustar sylvestresylvestre mxCodecRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxCodecRegistry

java.lang.Object
  extended by com.mxgraph.io.mxCodecRegistry

public class mxCodecRegistry
extends Object

Singleton class that acts as a global registry for codecs. See mxCodec for an example.


Field Summary
protected static Hashtable<String,String> aliases
          Maps from classnames to codecnames.
protected static Hashtable<String,mxObjectCodec> codecs
          Maps from constructor names to codecs.
protected static List<String> packages
          Holds the list of known packages.
 
Constructor Summary
mxCodecRegistry()
           
 
Method Summary
static void addAlias(String classname, String codecname)
          Adds an alias for mapping a classname to a codecname.
static void addPackage(String packagename)
          Adds the given package name to the list of known package names.
static Class<?> getClassForName(String name)
          Returns a class that corresponds to the given name.
static mxObjectCodec getCodec(String name)
          Returns a codec that handles the given object, which can be an object instance or an XML node.
static Object getInstanceForName(String name)
          Creates and returns a new instance for the given class name.
static String getName(Object instance)
          Returns the name that identifies the codec associated with the given instance..
static mxObjectCodec register(mxObjectCodec codec)
          Registers a new codec and associates the name of the template constructor in the codec with the codec object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codecs

protected static Hashtable<String,mxObjectCodec> codecs
Maps from constructor names to codecs.


aliases

protected static Hashtable<String,String> aliases
Maps from classnames to codecnames.


packages

protected static List<String> packages
Holds the list of known packages. Packages are used to prefix short class names (eg. mxCell) in XML markup.

Constructor Detail

mxCodecRegistry

public mxCodecRegistry()
Method Detail

register

public static mxObjectCodec register(mxObjectCodec codec)
Registers a new codec and associates the name of the template constructor in the codec with the codec object. Automatically creates an alias if the codename and the classname are not equal.


addAlias

public static void addAlias(String classname,
                            String codecname)
Adds an alias for mapping a classname to a codecname.


getCodec

public static mxObjectCodec getCodec(String name)
Returns a codec that handles the given object, which can be an object instance or an XML node.

Parameters:
name - Java class name.

addPackage

public static void addPackage(String packagename)
Adds the given package name to the list of known package names.

Parameters:
packagename - Name of the package to be added.

getInstanceForName

public static Object getInstanceForName(String name)
Creates and returns a new instance for the given class name.

Parameters:
name - Name of the class to be instantiated.
Returns:
Returns a new instance of the given class.

getClassForName

public static Class<?> getClassForName(String name)
Returns a class that corresponds to the given name.

Parameters:
name -
Returns:
Returns the class for the given name.

getName

public static String getName(Object instance)
Returns the name that identifies the codec associated with the given instance.. The I/O system uses unqualified classnames, eg. for a com.mxgraph.model.mxCell this returns mxCell.

Parameters:
instance - Instance whose node name should be returned.
Returns:
Returns a string that identifies the codec.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/0000775000175000017500000000000012176166726024065 5ustar sylvestresylvestrelibjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxCodec.html0000664000175000017500000012753212176166726026347 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxCodec

Packages that use mxCodec
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Uses of mxCodec in com.mxgraph.io
 

Methods in com.mxgraph.io with parameters of type mxCodec
 Object mxRootChangeCodec.afterDecode(mxCodec dec, Node node, Object obj)
           
 Object mxChildChangeCodec.afterDecode(mxCodec dec, Node node, Object obj)
           
 Object mxGenericChangeCodec.afterDecode(mxCodec dec, Node node, Object obj)
           
 Object mxTerminalChangeCodec.afterDecode(mxCodec dec, Node node, Object obj)
           
 Object mxObjectCodec.afterDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to post-process the object after decoding.
 Node mxRootChangeCodec.afterEncode(mxCodec enc, Object obj, Node node)
           
 Node mxChildChangeCodec.afterEncode(mxCodec enc, Object obj, Node node)
           
 Node mxObjectCodec.afterEncode(mxCodec enc, Object obj, Node node)
          Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node.
 Node mxCellCodec.afterEncode(mxCodec enc, Object obj, Node node)
          Encodes an mxCell and wraps the XML up inside the XML of the user object (inversion).
 Node mxRootChangeCodec.beforeDecode(mxCodec dec, Node node, Object into)
          Reads the cells into the graph model.
 Node mxChildChangeCodec.beforeDecode(mxCodec dec, Node node, Object into)
          Reads the cells into the graph model.
 Node mxObjectCodec.beforeDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to pre-process the node for the specified object and return the node to be used for further processing by mxObjectCodec.decode(mxCodec, Node).
 Node mxCellCodec.beforeDecode(mxCodec dec, Node node, Object obj)
          Decodes an mxCell and uses the enclosing XML node as the user object for the cell (inversion).
 Node mxModelCodec.beforeDecode(mxCodec dec, Node node, Object into)
          Reads the cells into the graph model.
 Object mxObjectCodec.beforeEncode(mxCodec enc, Object obj, Node node)
          Hook for subclassers to pre-process the object before encoding.
 Object mxObjectCodec.decode(mxCodec dec, Node node)
          Parses the given node into the object or returns a new object representing the given node.
 Object mxStylesheetCodec.decode(mxCodec dec, Node node, Object into)
          Decodes the given mxStylesheet.
 Object mxObjectCodec.decode(mxCodec dec, Node node, Object into)
          Parses the given node into the object or returns a new object representing the given node.
protected  void mxObjectCodec.decodeAttribute(mxCodec dec, Node attr, Object obj)
          Reads the given attribute into the specified object.
protected  void mxObjectCodec.decodeAttributes(mxCodec dec, Node node, Object obj)
          Decodes all attributes of the given node using decodeAttribute.
protected  void mxObjectCodec.decodeChild(mxCodec dec, Node child, Object obj)
          Reads the specified child into the given object.
protected  void mxObjectCodec.decodeChildren(mxCodec dec, Node node, Object obj)
          Decodec all children of the given node using decodeChild.
protected  void mxObjectCodec.decodeNode(mxCodec dec, Node node, Object obj)
          Calls decodeAttributes and decodeChildren for the given node.
 Node mxStylesheetCodec.encode(mxCodec enc, Object obj)
          Encodes the given mxStylesheet.
 Node mxObjectCodec.encode(mxCodec enc, Object obj)
          Encodes the specified object and returns a node representing then given object.
protected  void mxObjectCodec.encodeElements(mxCodec enc, Object obj, Node node)
          Encodes the child objects of arrays, maps and collections.
protected  void mxObjectCodec.encodeFields(mxCodec enc, Object obj, Node node)
          Encodes the declared fields of the given object into the given node.
protected  void mxObjectCodec.encodeObject(mxCodec enc, Object obj, Node node)
          Encodes the value of each member in then given obj into the given node using mxObjectCodec.encodeFields(mxCodec, Object, Node) and mxObjectCodec.encodeElements(mxCodec, Object, Node).
protected  void mxModelCodec.encodeObject(mxCodec enc, Object obj, Node node)
          Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec.
protected  void mxObjectCodec.encodeValue(mxCodec enc, Object obj, String fieldname, Object value, Node node)
          Converts the given value according to the mappings and id-refs in this codec and uses mxObjectCodec.writeAttribute(mxCodec, Object, String, Object, Node) to write the attribute into the given node.
 boolean mxObjectCodec.processInclude(mxCodec dec, Node node, Object into)
          Returns true if the given node is an include directive and executes the include by decoding the XML document.
protected  void mxObjectCodec.writeAttribute(mxCodec enc, Object obj, String attr, Object value, Node node)
          Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value.
protected  void mxObjectCodec.writeComplexAttribute(mxCodec enc, Object obj, String attr, Object value, Node node)
          Writes the given value as a child node of the given node.
protected  void mxObjectCodec.writePrimitiveAttribute(mxCodec enc, Object obj, String attr, Object value, Node node)
          Writes the given value as an attribute of the given node.
 

Uses of mxCodec in com.mxgraph.sharing
 

Fields in com.mxgraph.sharing declared as mxCodec
protected  mxCodec mxSharedGraphModel.codec
           
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxGenericChangeCodec.html0000664000175000017500000001371212176166726030744 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxGenericChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxGenericChangeCodec

No usage of com.mxgraph.io.mxGenericChangeCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxGdCodec.html0000664000175000017500000001353412176166726026616 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxGdCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxGdCodec

No usage of com.mxgraph.io.mxGdCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxCodecRegistry.html0000664000175000017500000001363012176166726030071 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxCodecRegistry (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxCodecRegistry

No usage of com.mxgraph.io.mxCodecRegistry


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxRootChangeCodec.html0000664000175000017500000001365412176166726030320 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxRootChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxRootChangeCodec

No usage of com.mxgraph.io.mxRootChangeCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxChildChangeCodec.html0000664000175000017500000001366612176166726030423 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxChildChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxChildChangeCodec

No usage of com.mxgraph.io.mxChildChangeCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxCellCodec.html0000664000175000017500000001356012176166726027142 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxCellCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxCellCodec

No usage of com.mxgraph.io.mxCellCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxGdCodec.mxGDParseState.html0000664000175000017500000002113512176166726031444 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxGdCodec.mxGDParseState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxGdCodec.mxGDParseState

Packages that use mxGdCodec.mxGDParseState
com.mxgraph.io This package contains all classes for input/output. 
 

Uses of mxGdCodec.mxGDParseState in com.mxgraph.io
 

Methods in com.mxgraph.io that return mxGdCodec.mxGDParseState
static mxGdCodec.mxGDParseState mxGdCodec.mxGDParseState.valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGdCodec.mxGDParseState[] mxGdCodec.mxGDParseState.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxModelCodec.html0000664000175000017500000001357212176166726027326 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxModelCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxModelCodec

No usage of com.mxgraph.io.mxModelCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxObjectCodec.html0000664000175000017500000003347412176166726027477 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxObjectCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxObjectCodec

Packages that use mxObjectCodec
com.mxgraph.io This package contains all classes for input/output. 
 

Uses of mxObjectCodec in com.mxgraph.io
 

Subclasses of mxObjectCodec in com.mxgraph.io
 class mxCellCodec
          Codec for mxCells.
 class mxChildChangeCodec
          Codec for mxChildChanges.
 class mxGenericChangeCodec
          Codec for mxChildChanges.
 class mxModelCodec
          Codec for mxGraphModels.
 class mxRootChangeCodec
          Codec for mxChildChanges.
 class mxStylesheetCodec
          Codec for mxStylesheets.
 class mxTerminalChangeCodec
          Codec for mxChildChanges.
 

Fields in com.mxgraph.io with type parameters of type mxObjectCodec
protected static Hashtable<String,mxObjectCodec> mxCodecRegistry.codecs
          Maps from constructor names to codecs.
 

Methods in com.mxgraph.io that return mxObjectCodec
static mxObjectCodec mxCodecRegistry.getCodec(String name)
          Returns a codec that handles the given object, which can be an object instance or an XML node.
static mxObjectCodec mxCodecRegistry.register(mxObjectCodec codec)
          Registers a new codec and associates the name of the template constructor in the codec with the codec object.
 

Methods in com.mxgraph.io with parameters of type mxObjectCodec
static mxObjectCodec mxCodecRegistry.register(mxObjectCodec codec)
          Registers a new codec and associates the name of the template constructor in the codec with the codec object.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxStylesheetCodec.html0000664000175000017500000001365412176166726030420 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxStylesheetCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxStylesheetCodec

No usage of com.mxgraph.io.mxStylesheetCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxTerminalChangeCodec.html0000664000175000017500000001372412176166726031146 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxTerminalChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxTerminalChangeCodec

No usage of com.mxgraph.io.mxTerminalChangeCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/class-use/mxGraphMlCodec.html0000664000175000017500000001361612176166726027617 0ustar sylvestresylvestre Uses of Class com.mxgraph.io.mxGraphMlCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Class
com.mxgraph.io.mxGraphMlCodec

No usage of com.mxgraph.io.mxGraphMlCodec


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxRootChangeCodec.html0000664000175000017500000007235512176166720026416 0ustar sylvestresylvestre mxRootChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxRootChangeCodec

java.lang.Object
  extended by com.mxgraph.io.mxObjectCodec
      extended by com.mxgraph.io.mxRootChangeCodec

public class mxRootChangeCodec
extends mxObjectCodec

Codec for mxChildChanges. This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry.


Field Summary
 
Fields inherited from class com.mxgraph.io.mxObjectCodec
accessors, exclude, fields, idrefs, mapping, reverse, template
 
Constructor Summary
mxRootChangeCodec()
          Constructs a new model codec.
mxRootChangeCodec(Object template, String[] exclude, String[] idrefs, Map<String,String> mapping)
          Constructs a new model codec for the given arguments.
 
Method Summary
 Object afterDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to post-process the object after decoding.
 Node afterEncode(mxCodec enc, Object obj, Node node)
          Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node.
 Node beforeDecode(mxCodec dec, Node node, Object into)
          Reads the cells into the graph model.
 
Methods inherited from class com.mxgraph.io.mxObjectCodec
addObjectValue, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isExcluded, isPrimitiveValue, isReference, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxRootChangeCodec

public mxRootChangeCodec()
Constructs a new model codec.


mxRootChangeCodec

public mxRootChangeCodec(Object template,
                         String[] exclude,
                         String[] idrefs,
                         Map<String,String> mapping)
Constructs a new model codec for the given arguments.

Method Detail

afterEncode

public Node afterEncode(mxCodec enc,
                        Object obj,
                        Node node)
Description copied from class: mxObjectCodec
Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node. This implementation returns the input node. The return value of this method is returned to the encoder from . Parameters:

Overrides:
afterEncode in class mxObjectCodec
Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node that represents the default encoding.
Returns:
Returns the resulting node of the encoding.

beforeDecode

public Node beforeDecode(mxCodec dec,
                         Node node,
                         Object into)
Reads the cells into the graph model. All cells are children of the root element in the node.

Overrides:
beforeDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
into - Object to encode the node into.
Returns:
Returns the node used for the default decoding.

afterDecode

public Object afterDecode(mxCodec dec,
                          Node node,
                          Object obj)
Description copied from class: mxObjectCodec
Hook for subclassers to post-process the object after decoding. This implementation returns the given object without any changes. The return value of this method is returned to the decoder from mxObjectCodec.decode(mxCodec, Node).

Overrides:
afterDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
obj - Object that represents the default decoding.
Returns:
Returns the result of the decoding process.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/package-frame.html0000664000175000017500000000447712176166726025553 0ustar sylvestresylvestre com.mxgraph.io (JGraph X 2.1.0.7 API Specification) com.mxgraph.io
Classes 
mxCellCodec
mxChildChangeCodec
mxCodec
mxCodecRegistry
mxGdCodec
mxGenericChangeCodec
mxGraphMlCodec
mxModelCodec
mxObjectCodec
mxRootChangeCodec
mxStylesheetCodec
mxTerminalChangeCodec
Enums 
mxGdCodec.mxGDParseState
libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxChildChangeCodec.html0000664000175000017500000010005512176166720026503 0ustar sylvestresylvestre mxChildChangeCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxChildChangeCodec

java.lang.Object
  extended by com.mxgraph.io.mxObjectCodec
      extended by com.mxgraph.io.mxChildChangeCodec

public class mxChildChangeCodec
extends mxObjectCodec

Codec for mxChildChanges. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry.


Field Summary
 
Fields inherited from class com.mxgraph.io.mxObjectCodec
accessors, exclude, fields, idrefs, mapping, reverse, template
 
Constructor Summary
mxChildChangeCodec()
          Constructs a new model codec.
mxChildChangeCodec(Object template, String[] exclude, String[] idrefs, Map<String,String> mapping)
          Constructs a new model codec for the given arguments.
 
Method Summary
 Object afterDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to post-process the object after decoding.
 Node afterEncode(mxCodec enc, Object obj, Node node)
          Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node.
 Node beforeDecode(mxCodec dec, Node node, Object into)
          Reads the cells into the graph model.
 boolean isReference(Object obj, String attr, Object value, boolean isWrite)
          Returns true if the given fieldname is to be treated as a textual reference (ID).
 
Methods inherited from class com.mxgraph.io.mxObjectCodec
addObjectValue, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isExcluded, isPrimitiveValue, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxChildChangeCodec

public mxChildChangeCodec()
Constructs a new model codec.


mxChildChangeCodec

public mxChildChangeCodec(Object template,
                          String[] exclude,
                          String[] idrefs,
                          Map<String,String> mapping)
Constructs a new model codec for the given arguments.

Method Detail

isReference

public boolean isReference(Object obj,
                           String attr,
                           Object value,
                           boolean isWrite)
Description copied from class: mxObjectCodec
Returns true if the given fieldname is to be treated as a textual reference (ID). This implementation returns true if the given fieldname is in mxObjectCodec.idrefs.

Overrides:
isReference in class mxObjectCodec
Parameters:
obj - Object instance that contains the field.
attr - Fieldname of the field.
value - Value of the field.
isWrite - Boolean indicating if the field is being encoded or decoded. isWrite is true if the field is being encoded, else it is being decoded.
Returns:
Returns true if the given attribute should be handled as a reference.

afterEncode

public Node afterEncode(mxCodec enc,
                        Object obj,
                        Node node)
Description copied from class: mxObjectCodec
Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node. This implementation returns the input node. The return value of this method is returned to the encoder from . Parameters:

Overrides:
afterEncode in class mxObjectCodec
Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node that represents the default encoding.
Returns:
Returns the resulting node of the encoding.

beforeDecode

public Node beforeDecode(mxCodec dec,
                         Node node,
                         Object into)
Reads the cells into the graph model. All cells are children of the root element in the node.

Overrides:
beforeDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
into - Object to encode the node into.
Returns:
Returns the node used for the default decoding.

afterDecode

public Object afterDecode(mxCodec dec,
                          Node node,
                          Object obj)
Description copied from class: mxObjectCodec
Hook for subclassers to post-process the object after decoding. This implementation returns the given object without any changes. The return value of this method is returned to the decoder from mxObjectCodec.decode(mxCodec, Node).

Overrides:
afterDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
obj - Object that represents the default decoding.
Returns:
Returns the result of the decoding process.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxCellCodec.html0000664000175000017500000007153012176166720025236 0ustar sylvestresylvestre mxCellCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxCellCodec

java.lang.Object
  extended by com.mxgraph.io.mxObjectCodec
      extended by com.mxgraph.io.mxCellCodec

public class mxCellCodec
extends mxObjectCodec

Codec for mxCells. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry.


Field Summary
 
Fields inherited from class com.mxgraph.io.mxObjectCodec
accessors, exclude, fields, idrefs, mapping, reverse, template
 
Constructor Summary
mxCellCodec()
          Constructs a new cell codec.
mxCellCodec(Object template)
          Constructs a new cell codec for the given template.
mxCellCodec(Object template, String[] exclude, String[] idrefs, Map<String,String> mapping)
          Constructs a new cell codec for the given arguments.
 
Method Summary
 Node afterEncode(mxCodec enc, Object obj, Node node)
          Encodes an mxCell and wraps the XML up inside the XML of the user object (inversion).
 Node beforeDecode(mxCodec dec, Node node, Object obj)
          Decodes an mxCell and uses the enclosing XML node as the user object for the cell (inversion).
 boolean isExcluded(Object obj, String attr, Object value, boolean write)
          Excludes user objects that are XML nodes.
 
Methods inherited from class com.mxgraph.io.mxObjectCodec
addObjectValue, afterDecode, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isPrimitiveValue, isReference, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxCellCodec

public mxCellCodec()
Constructs a new cell codec.


mxCellCodec

public mxCellCodec(Object template)
Constructs a new cell codec for the given template.


mxCellCodec

public mxCellCodec(Object template,
                   String[] exclude,
                   String[] idrefs,
                   Map<String,String> mapping)
Constructs a new cell codec for the given arguments.

Method Detail

isExcluded

public boolean isExcluded(Object obj,
                          String attr,
                          Object value,
                          boolean write)
Excludes user objects that are XML nodes.

Overrides:
isExcluded in class mxObjectCodec
Parameters:
obj - Object instance that contains the field.
attr - Fieldname of the field.
value - Value of the field.
write - Boolean indicating if the field is being encoded or decoded. write is true if the field is being encoded, else it is being decoded.
Returns:
Returns true if the given attribute should be ignored.

afterEncode

public Node afterEncode(mxCodec enc,
                        Object obj,
                        Node node)
Encodes an mxCell and wraps the XML up inside the XML of the user object (inversion).

Overrides:
afterEncode in class mxObjectCodec
Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node that represents the default encoding.
Returns:
Returns the resulting node of the encoding.

beforeDecode

public Node beforeDecode(mxCodec dec,
                         Node node,
                         Object obj)
Decodes an mxCell and uses the enclosing XML node as the user object for the cell (inversion).

Overrides:
beforeDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
obj - Object to encode the node into.
Returns:
Returns the node used for the default decoding.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxGdCodec.mxGDParseState.html0000664000175000017500000004506612176166720027550 0ustar sylvestresylvestre mxGdCodec.mxGDParseState (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Enum mxGdCodec.mxGDParseState

java.lang.Object
  extended by java.lang.Enum<mxGdCodec.mxGDParseState>
      extended by com.mxgraph.io.mxGdCodec.mxGDParseState
All Implemented Interfaces:
Serializable, Comparable<mxGdCodec.mxGDParseState>
Enclosing class:
mxGdCodec

public static enum mxGdCodec.mxGDParseState
extends Enum<mxGdCodec.mxGDParseState>

Represents the different states in the parse of a file.


Enum Constant Summary
NUM_NODES
           
PARSING_EDGES
           
PARSING_NODES
           
START
           
 
Method Summary
static mxGdCodec.mxGDParseState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static mxGdCodec.mxGDParseState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START

public static final mxGdCodec.mxGDParseState START

NUM_NODES

public static final mxGdCodec.mxGDParseState NUM_NODES

PARSING_NODES

public static final mxGdCodec.mxGDParseState PARSING_NODES

PARSING_EDGES

public static final mxGdCodec.mxGDParseState PARSING_EDGES
Method Detail

values

public static mxGdCodec.mxGDParseState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (mxGdCodec.mxGDParseState c : mxGdCodec.mxGDParseState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static mxGdCodec.mxGDParseState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxModelCodec.html0000664000175000017500000006473412176166720025427 0ustar sylvestresylvestre mxModelCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxModelCodec

java.lang.Object
  extended by com.mxgraph.io.mxObjectCodec
      extended by com.mxgraph.io.mxModelCodec

public class mxModelCodec
extends mxObjectCodec

Codec for mxGraphModels. This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry.


Field Summary
 
Fields inherited from class com.mxgraph.io.mxObjectCodec
accessors, exclude, fields, idrefs, mapping, reverse, template
 
Constructor Summary
mxModelCodec()
          Constructs a new model codec.
mxModelCodec(Object template)
          Constructs a new model codec for the given template.
mxModelCodec(Object template, String[] exclude, String[] idrefs, Map<String,String> mapping)
          Constructs a new model codec for the given arguments.
 
Method Summary
 Node beforeDecode(mxCodec dec, Node node, Object into)
          Reads the cells into the graph model.
protected  void encodeObject(mxCodec enc, Object obj, Node node)
          Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec.
 
Methods inherited from class com.mxgraph.io.mxObjectCodec
addObjectValue, afterDecode, afterEncode, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encode, encodeElements, encodeFields, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isExcluded, isPrimitiveValue, isReference, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxModelCodec

public mxModelCodec()
Constructs a new model codec.


mxModelCodec

public mxModelCodec(Object template)
Constructs a new model codec for the given template.


mxModelCodec

public mxModelCodec(Object template,
                    String[] exclude,
                    String[] idrefs,
                    Map<String,String> mapping)
Constructs a new model codec for the given arguments.

Method Detail

encodeObject

protected void encodeObject(mxCodec enc,
                            Object obj,
                            Node node)
Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec. The sequence is wrapped-up in a node with the name root.

Overrides:
encodeObject in class mxObjectCodec
Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node that contains the encoded object.

beforeDecode

public Node beforeDecode(mxCodec dec,
                         Node node,
                         Object into)
Reads the cells into the graph model. All cells are children of the root element in the node.

Overrides:
beforeDecode in class mxObjectCodec
Parameters:
dec - Codec that controls the decoding process.
node - XML node to be decoded.
into - Object to encode the node into.
Returns:
Returns the node used for the default decoding.

JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/package-summary.html0000664000175000017500000002323112176166726026143 0ustar sylvestresylvestre com.mxgraph.io (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Package com.mxgraph.io

This package contains all classes for input/output.

See:
          Description

Class Summary
mxCellCodec Codec for mxCells.
mxChildChangeCodec Codec for mxChildChanges.
mxCodec XML codec for Java object graphs.
mxCodecRegistry Singleton class that acts as a global registry for codecs.
mxGdCodec Parses a GD .txt file and imports it in the given graph.
This class depends from the classes contained in com.mxgraph.io.gd.
mxGenericChangeCodec Codec for mxChildChanges.
mxGraphMlCodec Parses a GraphML .graphml file and imports it in the given graph.
See wikipedia.org/wiki/GraphML for more on GraphML.
mxModelCodec Codec for mxGraphModels.
mxObjectCodec Generic codec for Java objects.
mxRootChangeCodec Codec for mxChildChanges.
mxStylesheetCodec Codec for mxStylesheets.
mxTerminalChangeCodec Codec for mxChildChanges.
 

Enum Summary
mxGdCodec.mxGDParseState Represents the different states in the parse of a file.
 

Package com.mxgraph.io Description

This package contains all classes for input/output.


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/package-use.html0000664000175000017500000002015612176166726025245 0ustar sylvestresylvestre Uses of Package com.mxgraph.io (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


Uses of Package
com.mxgraph.io

Packages that use com.mxgraph.io
com.mxgraph.io This package contains all classes for input/output. 
com.mxgraph.sharing This package contains all classes required for concurrent diagram editing by multiple clients. 
 

Classes in com.mxgraph.io used by com.mxgraph.io
mxCodec
          XML codec for Java object graphs.
mxGdCodec.mxGDParseState
          Represents the different states in the parse of a file.
mxObjectCodec
          Generic codec for Java objects.
 

Classes in com.mxgraph.io used by com.mxgraph.sharing
mxCodec
          XML codec for Java object graphs.
 


JGraph X 2.1.0.7


Copyright (c) 2010 Gaudenz Alder. All rights reserved. libjgraphx-java-2.1.0.7/docs/api/com/mxgraph/io/mxObjectCodec.html0000664000175000017500000032015612176166720025566 0ustar sylvestresylvestre mxObjectCodec (JGraph X 2.1.0.7 API Specification)

JGraph X 2.1.0.7


com.mxgraph.io
Class mxObjectCodec

java.lang.Object
  extended by com.mxgraph.io.mxObjectCodec
Direct Known Subclasses:
mxCellCodec, mxChildChangeCodec, mxGenericChangeCodec, mxModelCodec, mxRootChangeCodec, mxStylesheetCodec, mxTerminalChangeCodec

public class mxObjectCodec
extends Object

Generic codec for Java objects. See below for a detailed description of the encoding/decoding scheme. Note: Since booleans are numbers in JavaScript, all boolean values are encoded into 1 for true and 0 for false.


Field Summary
protected  Map<String,Method> accessors
          Caches accessors for the given method names.
protected  Set<String> exclude
          Array containing the variable names that should be ignored by the codec.
protected  Map<Class,Map<String,Field>> fields
          Caches fields for faster access.
protected  Set<String> idrefs
          Array containing the variable names that should be turned into or converted from references.
protected  Map<String,String> mapping
          Maps from from fieldnames to XML attribute names.
protected  Map<String,String> reverse
          Maps from from XML attribute names to fieldnames.
protected  Object template
          Holds the template object associated with this codec.
 
Constructor Summary
mxObjectCodec(Object template)
          Constructs a new codec for the specified template object.
mxObjectCodec(Object template, String[] exclude, String[] idrefs, Map<String,String> mapping)
          Constructs a new codec for the specified template object.
 
Method Summary
protected  void addObjectValue(Object obj, String fieldname, Object value, Object template)
          Sets the decoded child node as a value of the given object.
 Object afterDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to post-process the object after decoding.
 Node afterEncode(mxCodec enc, Object obj, Node node)
          Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node.
 Node beforeDecode(mxCodec dec, Node node, Object obj)
          Hook for subclassers to pre-process the node for the specified object and return the node to be used for further processing by decode(mxCodec, Node).
 Object beforeEncode(mxCodec enc, Object obj, Node node)
          Hook for subclassers to pre-process the object before encoding.
protected  Object cloneTemplate(Node node)
          Returns a new instance of the template object for representing the given node.
protected  Object convertValueFromXml(Class<?> type, Object value)
          Converts XML attribute values to object of the given type.
protected  Object convertValueToXml(Object value)
          Converts true to "1" and false to "0".
 Object decode(mxCodec dec, Node node)
          Parses the given node into the object or returns a new object representing the given node.
 Object decode(mxCodec dec, Node node, Object into)
          Parses the given node into the object or returns a new object representing the given node.
protected  void decodeAttribute(mxCodec dec, Node attr, Object obj)
          Reads the given attribute into the specified object.
protected  void decodeAttributes(mxCodec dec, Node node, Object obj)
          Decodes all attributes of the given node using decodeAttribute.
protected  void decodeChild(mxCodec dec, Node child, Object obj)
          Reads the specified child into the given object.
protected  void decodeChildren(mxCodec dec, Node node, Object obj)
          Decodec all children of the given node using decodeChild.
protected  void decodeNode(mxCodec dec, Node node, Object obj)
          Calls decodeAttributes and decodeChildren for the given node.
 Node encode(mxCodec enc, Object obj)
          Encodes the specified object and returns a node representing then given object.
protected  void encodeElements(mxCodec enc, Object obj, Node node)
          Encodes the child objects of arrays, maps and collections.
protected  void encodeFields(mxCodec enc, Object obj, Node node)
          Encodes the declared fields of the given object into the given node.
protected  void encodeObject(mxCodec enc, Object obj, Node node)
          Encodes the value of each member in then given obj into the given node using encodeFields(mxCodec, Object, Node) and encodeElements(mxCodec, Object, Node).
protected  void encodeValue(mxCodec enc, Object obj, String fieldname, Object value, Node node)
          Converts the given value according to the mappings and id-refs in this codec and uses writeAttribute(mxCodec, Object, String, Object, Node) to write the attribute into the given node.
protected  Method getAccessor(Object obj, Field field, boolean isGetter)
          Returns the accessor (getter, setter) for the specified field.
protected  String getAttributeName(String fieldname)
          Returns the XML node attribute name for the given Java field name.
protected  Field getField(Object obj, String fieldname)
          Returns the field with the specified name.
protected  String getFieldName(String attributename)
          Returns the Java field name for the given XML attribute name.
protected  Object getFieldTemplate(Object obj, String fieldname, Node child)
          Returns the template instance for the given field.
protected  Object getFieldValue(Object obj, String fieldname)
          Returns the value of the field with the specified name in the specified object instance.
protected  Object getFieldValueWithAccessor(Object obj, Field field)
          Returns the value of the field using the accessor for the field if one exists.
protected  Method getMethod(Object obj, String methodname, Class[] params)
          Returns the method with the specified signature.
 String getName()
          Returns the name used for the nodenames and lookup of the codec when classes are encoded and nodes are decoded.
 Object getTemplate()
          Returns the template object associated with this codec.
 boolean isExcluded(Object obj, String attr, Object value, boolean write)
          Returns true if the given attribute is to be ignored by the codec.
protected  boolean isPrimitiveValue(Object value)
          Returns true if the given object is a primitive value.
 boolean isReference(Object obj, String attr, Object value, boolean isWrite)
          Returns true if the given fieldname is to be treated as a textual reference (ID).
 boolean processInclude(mxCodec dec, Node node, Object into)
          Returns true if the given node is an include directive and executes the include by decoding the XML document.
protected  void setFieldValue(Object obj, String fieldname, Object value)
          Sets the value of the field with the specified name in the specified object instance.
protected  void setFieldValueWithAccessor(Object obj, Field field, Object value)
          Sets the value of the given field using the accessor if one exists.
protected  void writeAttribute(mxCodec enc, Object obj, String attr, Object value, Node node)
          Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value.
protected  void writeComplexAttribute(mxCodec enc, Object obj, String attr, Object value, Node node)
          Writes the given value as a child node of the given node.
protected  void writePrimitiveAttribute(mxCodec enc, Object obj, String attr, Object value, Node node)
          Writes the given value as an attribute of the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected Object template
Holds the template object associated with this codec.


exclude

protected Set<String> exclude
Array containing the variable names that should be ignored by the codec.


idrefs

protected Set<String> idrefs
Array containing the variable names that should be turned into or converted from references. See and .


mapping

protected Map<String,String> mapping
Maps from from fieldnames to XML attribute names.


reverse

protected Map<String,String> reverse
Maps from from XML attribute names to fieldnames.


accessors

protected Map<String,Method> accessors
Caches accessors for the given method names.


fields

protected Map<Class,Map<String,Field>> fields
Caches fields for faster access.

Constructor Detail

mxObjectCodec

public mxObjectCodec(Object template)
Constructs a new codec for the specified template object.


mxObjectCodec

public mxObjectCodec(Object template,
                     String[] exclude,
                     String[] idrefs,
                     Map<String,String> mapping)
Constructs a new codec for the specified template object. The variables in the optional exclude array are ignored by the codec. Variables in the optional idrefs array are turned into references in the XML. The optional mapping may be used to map from variable names to XML attributes. The argument is created as follows:

Parameters:
template - Prototypical instance of the object to be encoded/decoded.
exclude - Optional array of fieldnames to be ignored.
idrefs - Optional array of fieldnames to be converted to/from references.
mapping - Optional mapping from field- to attributenames.
Method Detail

getName

public String getName()
Returns the name used for the nodenames and lookup of the codec when classes are encoded and nodes are decoded. For classes to work with this the codec registry automatically adds an alias for the classname if that is different than what this returns. The default implementation returns the classname of the template class. Here is an example on how to use this for renaming mxCell nodes: mxCodecRegistry.register(new mxCellCodec() { public String getName() { return "anotherName"; } });


getTemplate

public Object getTemplate()
Returns the template object associated with this codec.

Returns:
Returns the template object.

cloneTemplate

protected Object cloneTemplate(Node node)
Returns a new instance of the template object for representing the given node.

Parameters:
node - XML node that the object is going to represent.
Returns:
Returns a new template instance.

isExcluded

public boolean isExcluded(Object obj,
                          String attr,
                          Object value,
                          boolean write)
Returns true if the given attribute is to be ignored by the codec. This implementation returns true if the given fieldname is in exclude.

Parameters:
obj - Object instance that contains the field.
attr - Fieldname of the field.
value - Value of the field.
write - Boolean indicating if the field is being encoded or decoded. write is true if the field is being encoded, else it is being decoded.
Returns:
Returns true if the given attribute should be ignored.

isReference

public boolean isReference(Object obj,
                           String attr,
                           Object value,
                           boolean isWrite)
Returns true if the given fieldname is to be treated as a textual reference (ID). This implementation returns true if the given fieldname is in idrefs.

Parameters:
obj - Object instance that contains the field.
attr - Fieldname of the field.
value - Value of the field.
isWrite - Boolean indicating if the field is being encoded or decoded. isWrite is true if the field is being encoded, else it is being decoded.
Returns:
Returns true if the given attribute should be handled as a reference.

encode

public Node encode(mxCodec enc,
                   Object obj)
Encodes the specified object and returns a node representing then given object. Calls beforeEncode after creating the node and afterEncode with the resulting node after processing. Enc is a reference to the calling encoder. It is used to encode complex objects and create references. This implementation encodes all variables of an object according to the following rules: If no ID exists for a variable in idrefs or if an object cannot be encoded, a warning is printed to System.err.

Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
Returns:
Returns the resulting XML node that represents the given object.

encodeObject

protected void encodeObject(mxCodec enc,
                            Object obj,
                            Node node)
Encodes the value of each member in then given obj into the given node using encodeFields(mxCodec, Object, Node) and encodeElements(mxCodec, Object, Node).

Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node that contains the encoded object.

encodeFields

protected void encodeFields(mxCodec enc,
                            Object obj,
                            Node node)
Encodes the declared fields of the given object into the given node.

Parameters:
enc - Codec that controls the encoding process.
obj - Object whose fields should be encoded.
node - XML node that contains the encoded object.

encodeElements

protected void encodeElements(mxCodec enc,
                              Object obj,
                              Node node)
Encodes the child objects of arrays, maps and collections.

Parameters:
enc - Codec that controls the encoding process.
obj - Object whose child objects should be encoded.
node - XML node that contains the encoded object.

encodeValue

protected void encodeValue(mxCodec enc,
                           Object obj,
                           String fieldname,
                           Object value,
                           Node node)
Converts the given value according to the mappings and id-refs in this codec and uses writeAttribute(mxCodec, Object, String, Object, Node) to write the attribute into the given node.

Parameters:
enc - Codec that controls the encoding process.
obj - Object whose field is going to be encoded.
fieldname - Name if the field to be encoded.
value - Value of the property to be encoded.
node - XML node that contains the encoded object.

isPrimitiveValue

protected boolean isPrimitiveValue(Object value)
Returns true if the given object is a primitive value.

Parameters:
value - Object that should be checked.
Returns:
Returns true if the given object is a primitive value.

writeAttribute

protected void writeAttribute(mxCodec enc,
                              Object obj,
                              String attr,
                              Object value,
                              Node node)
Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value.


writePrimitiveAttribute

protected void writePrimitiveAttribute(mxCodec enc,
                                       Object obj,
                                       String attr,
                                       Object value,
                                       Node node)
Writes the given value as an attribute of the given node.


writeComplexAttribute

protected void writeComplexAttribute(mxCodec enc,
                                     Object obj,
                                     String attr,
                                     Object value,
                                     Node node)
Writes the given value as a child node of the given node.


convertValueToXml

protected Object convertValueToXml(Object value)
Converts true to "1" and false to "0". All other values are ignored.


convertValueFromXml

protected Object convertValueFromXml(Class<?> type,
                                     Object value)
Converts XML attribute values to object of the given type.


getAttributeName

protected String getAttributeName(String fieldname)
Returns the XML node attribute name for the given Java field name. That is, it returns the mapping of the field name.


getFieldName

protected String getFieldName(String attributename)
Returns the Java field name for the given XML attribute name. That is, it returns the reverse mapping of the attribute name.

Parameters:
attributename - The attribute name to be mapped.
Returns:
String that represents the mapped field name.

getField

protected Field getField(Object obj,
                         String fieldname)
Returns the field with the specified name.


getAccessor

protected Method getAccessor(Object obj,
                             Field field,
                             boolean isGetter)
Returns the accessor (getter, setter) for the specified field.


getMethod

protected Method getMethod(Object obj,
                           String methodname,
                           Class[] params)
Returns the method with the specified signature.


getFieldValue

protected Object getFieldValue(Object obj,
                               String fieldname)
Returns the value of the field with the specified name in the specified object instance.


getFieldValueWithAccessor

protected Object getFieldValueWithAccessor(Object obj,
                                           Field field)
Returns the value of the field using the accessor for the field if one exists.


setFieldValue

protected void setFieldValue(Object obj,
                             String fieldname,
                             Object value)
Sets the value of the field with the specified name in the specified object instance.


setFieldValueWithAccessor

protected void setFieldValueWithAccessor(Object obj,
                                         Field field,
                                         Object value)
Sets the value of the given field using the accessor if one exists.


beforeEncode

public Object beforeEncode(mxCodec enc,
                           Object obj,
                           Node node)
Hook for subclassers to pre-process the object before encoding. This returns the input object. The return value of this function is used in encode to perform the default encoding into the given node.

Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node to encode the object into.
Returns:
Returns the object to be encoded by the default encoding.

afterEncode

public Node afterEncode(mxCodec enc,
                        Object obj,
                        Node node)
Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node. This implementation returns the input node. The return value of this method is returned to the encoder from . Parameters:

Parameters:
enc - Codec that controls the encoding process.
obj - Object to be encoded.
node - XML node that represents the default encoding.
Returns:
Returns the resulting node of the encoding.

decode

public Object decode(mxCodec dec,
                     Node node)
Parses the given node into the object or returns a new object representing the given node.

Parameters:
dec - Codec that controls the encoding process.
node - XML node to be decoded.
Returns:
Returns the resulting object that represents the given XML node.

decode

public Object decode(mxCodec dec,
                     Node node,
                     Object into)
Parses the given node into the object or returns a new object representing the given node. Dec is a reference to the calling decoder. It is used to decode complex objects and resolve references. If a node has an id attribute then the object cache is checked for the object. If the object is not yet in the cache then it is constructed using the constructor of