mxGraph 2.1.0.8


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.


mxGraph 2.1.0.8


Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.