JGraph X 1.3.0.0

# Serialized Form

Package com.mxgraph.layout.hierarchical.model

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

serialVersionUID: -2781491210687143878L

Package com.mxgraph.layout.hierarchical.stage

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

Serialized Fields

### cells

    java.util.Set<E> cells

Package com.mxgraph.model

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

serialVersionUID: 910211337632342672L

Serialized Fields

### id

    java.lang.String id

  Holds the Id. Default is null.

### value

    java.lang.Object value

  Holds the user object. Default is null.

### geometry

    mxGeometry geometry

  Holds the geometry. Default is null.

### style

    java.lang.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

    java.util.List<E> children

  Holds the child cells and connected edges.

### edges

    java.util.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

    java.util.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.

Package com.mxgraph.swing

Class com.mxgraph.swing.mxGraphComponent extends javax.swing.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

### subHandler

    mxSubHandler subHandler

### graphHandler

    mxGraphHandler graphHandler

### backgroundImage

    javax.swing.ImageIcon backgroundImage

  Specifies the <mxImage> to be returned by <getBackgroundImage>. Default is null.

### pageFormat

    java.awt.print.PageFormat pageFormat

  Background page format.

### canvas

    mxInteractiveCanvas canvas

### tripleBuffer

    java.awt.image.BufferedImage tripleBuffer

### tripleBufferGraphics

    java.awt.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.

### pageBreakVisible

    boolean pageBreakVisible

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

### 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

    java.awt.Color pageBackgroundColor

  Color of the background area if layout view.

### pageShadowColor

    java.awt.Color pageShadowColor

### pageBorderColor

    java.awt.Color pageBorderColor

### gridVisible

    boolean gridVisible

  Specifies if the grid is visible. Default is false.

### gridColor

    java.awt.Color gridColor

### 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

    javax.swing.ImageIcon expandedIcon

### collapsedIcon

    javax.swing.ImageIcon collapsedIcon

### warningIcon

    javax.swing.ImageIcon warningIcon

### antiAlias

    boolean antiAlias

### textAntiAlias

    boolean textAntiAlias

### escapeEnabled

    boolean escapeEnabled

  Specifies <escape> 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 <mxKeyHandler> 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

    java.util.Hashtable<K,V> components

  Maps from cells to lists of heavyweights.

### overlays

    java.util.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

    java.beans.PropertyChangeListener viewChangeHandler

### scaleHandler

    mxEventSource.mxIEventListener scaleHandler

  Resets the zoom policy if the scale is changed manually.

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

serialVersionUID: -8916603170766739124L

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

serialVersionUID: -2521103946905154267L

Serialized Fields

### graphComponent

    mxGraphComponent graphComponent

### tripleBuffer

    java.awt.image.BufferedImage tripleBuffer

  TODO: Not yet implemented.

### tripleBufferGraphics

    java.awt.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

    java.awt.Rectangle finderBounds

### zoomHandleLocation

    java.awt.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

    java.awt.Point translate

### repaintHandler

    mxEventSource.mxIEventListener repaintHandler

### componentHandler

    java.awt.event.ComponentListener componentHandler

### adjustmentHandler

    java.awt.event.AdjustmentListener adjustmentHandler

Package com.mxgraph.swing.handler

Class com.mxgraph.swing.handler.mxCellMarker extends javax.swing.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

    java.awt.Color validColor

  Specifies the valid- and invalidColor for the marker.

### invalidColor

    java.awt.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.mxConnectionHandler extends mxMouseControl implements Serializable

serialVersionUID: -2543899557644889853L

Serialized Fields

### graphComponent

    mxGraphComponent graphComponent

### connectIcon

    javax.swing.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

    int handleSize

  Specifies the size of the handle to be used for creating new connections. Default is mxConstants.CONNECT_HANDLE_SIZE.

### handleEnabled

    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

    boolean select

### createTarget

    boolean createTarget

  Specifies if the source should be cloned and used as a target if no target was selected. Default is false.

### keepOnTop

    boolean keepOnTop

  Appearance and event handling order wrt subhandles.

Class com.mxgraph.swing.handler.mxGraphHandler extends mxMouseControl implements Serializable

serialVersionUID: 3241109976696510225L

Serialized Fields

### graphComponent

    mxGraphComponent graphComponent

  Reference to the enclosing graph component.

### cloneEnabled

    boolean cloneEnabled

  Specifies if cloning by control-drag is enabled. Default is true.

### moveEnabled

    boolean moveEnabled

  Specifies if moving is enabled. Default is true.

### selectEnabled

    boolean selectEnabled

  Specifies if moving is enabled. Default is true.

### removeCellsFromParent

    boolean removeCellsFromParent

  Specifies if cells may be moved out of their parents. Default is true.

### imagePreview

    boolean imagePreview

  Specifies if an image should be used for preview. Default is true.

### centerPreview

    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

    boolean keepOnTop

  Specifies if this handler should be painted on top of all other components. Default is true.

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

serialVersionUID: -6443287704811197675L

Serialized Fields

### originalCells

    java.lang.Object[] originalCells

  Reference to the original cells for removal after a move.

### lastImported

    java.lang.Object[] lastImported

  Reference to the last imported cell array.

### 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

    java.awt.Color transferImageBackground

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

### location

    java.awt.Point location

### offset

    java.awt.Point offset

Class com.mxgraph.swing.handler.mxPanningHandler extends mxMouseControl implements Serializable

serialVersionUID: 7969814728058376339L

Serialized Fields

### graphComponent

    mxGraphComponent graphComponent

Class com.mxgraph.swing.handler.mxSubHandler extends mxMouseControl implements Serializable

serialVersionUID: -882368002120921842L

Serialized Fields

### graphComponent

    mxGraphComponent graphComponent

  Reference to the enclosing graph component.

### maxHandlers

    int maxHandlers

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

Package com.mxgraph.swing.util

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

serialVersionUID: 921991820491141221L

Serialized Fields

### imageIcon

    javax.swing.ImageIcon imageIcon

### align

    java.lang.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

    java.lang.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 javax.swing.AbstractAction implements Serializable

serialVersionUID: -8212339796803275529L

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

serialVersionUID: 5464382323663870291L

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

serialVersionUID: 4610112721356742702L

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

serialVersionUID: 4078517503905239901L

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

serialVersionUID: -4718086600089409092L

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

serialVersionUID: 562519299806253741L

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

serialVersionUID: 7169443038859140811L

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

serialVersionUID: 6501585024845668187L

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

serialVersionUID: 2247770767961318251L

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

serialVersionUID: -4718086600089409092L

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

serialVersionUID: -7500195051313272384L

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

serialVersionUID: 5123819419918087664L

Serialized Fields

### cells

    java.lang.Object[] cells

### bounds

    mxRectangle bounds

### image

    javax.swing.ImageIcon image

Class com.mxgraph.swing.util.mxMouseControl extends javax.swing.JComponent implements Serializable

serialVersionUID: -6413162217897819199L

Package com.mxgraph.util

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

serialVersionUID: 8541229679513497585L

Serialized Fields

### src

    java.lang.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.mxLightweightTextPane extends javax.swing.JLabel implements Serializable

serialVersionUID: -6771477489533614010L

Class com.mxgraph.util.mxPoint extends java.lang.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.view

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

serialVersionUID: 7588335615324083354L

Serialized Fields

### view

    mxGraphView view

  Reference to the enclosing graph view.

### cell

    java.lang.Object cell

  Reference to the cell that is represented by this state.

### style

    java.util.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

    java.util.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.

JGraph X 1.3.0.0

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