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.
|
CSSConstants |
This interface defines constants for CSS.
|
DefaultErrorHandler |
This class provides a default implementation of ErrorHandler.
|
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.
|
mxActorShape |
|
mxAnalysisGraph |
Implements a collection of utility methods abstracting the graph structure
taking into account graph properties such as visible/non-visible traversal
|
mxAnimation |
Baseclass for all timer-based animations.
|
mxArrowShape |
|
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.
|
mxBasicCanvas |
|
mxBasicShape |
|
mxCell |
Cells are the elements of the graph model.
|
mxCellCodec |
Codec for mxCells.
|
mxCellEditor |
To control this editor, use mxGraph.invokesStopCellEditing, mxGraph.
|
mxCellHandler |
|
mxCellMarker |
Implements a mouse tracker that marks cells under the mouse.
|
mxCellOverlay |
|
mxCellPath |
Implements a mechanism for temporary cell Ids.
|
mxCellRenderer |
|
mxCellRenderer.CanvasFactory |
|
mxCellState |
Represents the current state of a cell in a given graph view.
|
mxCellStatePreview |
Represents the current state of a cell in a given graph view.
|
mxCellTracker |
Event handler that highlights cells.
|
mxChildChangeCodec |
Codec for mxChildChanges.
|
mxCircleLayout |
|
mxCloudShape |
|
mxCodec |
XML codec for Java object graphs.
|
mxCodecRegistry |
Singleton class that acts as a global registry for codecs.
|
mxCompactTreeLayout |
|
mxCompactTreeLayout.Polygon |
|
mxCompactTreeLayout.Polyline |
|
mxCompactTreeLayout.TreeNode |
|
mxConnectionConstraint |
Defines an object that contains the constraints about how to connect one
side of an edge to its terminal.
|
mxConnectionHandler |
Connection handler creates new connections between cells.
|
mxConnectorShape |
|
mxConnectPreview |
Connection handler creates new connections between cells.
|
mxConstantCostFunction |
Implements a cost function for a constant cost per traversed cell.
|
mxConstants |
Contains all global constants.
|
mxConstCostFunction |
|
mxCoordinateAssignment |
Sets the horizontal locations of node and edge dummy nodes on each layer.
|
mxCostFunction |
|
mxCurve |
|
mxCurveLabelShape |
Draws the edge label along a curve derived from the curve describing
the edge's path
|
mxCurveShape |
|
mxCylinderShape |
|
mxDefaultTextShape |
|
mxDistanceCostFunction |
Implements a cost function for the Euclidean length of an edge.
|
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());
|
mxDomOutputParser.IElementHandler |
|
mxDomUtils |
Contains various DOM API helper methods for use with mxGraph.
|
mxDoubleEllipseShape |
|
mxDoubleRectangleShape |
|
mxDoubleValCostFunction |
A cost function that assumes that edge value is of type "double" or "String" and returns that value.
|
mxEdgeHandler |
|
mxEdgeLabelLayout |
|
mxEdgeStyle |
Provides various edge styles to be used as the values for
mxConstants.STYLE_EDGE in a cell style.
|
mxEdgeStyle.mxEdgeStyleFunction |
Defines the requirements for an edge style function.
|
mxElbowEdgeHandler |
|
mxEllipseShape |
|
mxEvent |
Contains all global constants.
|
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.
|
mxFastOrganicLayout |
Fast organic layout algorithm.
|
mxFibonacciHeap |
This class implements a priority queue.
|
mxFibonacciHeap.Node |
Implements a node of the Fibonacci heap.
|
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.
|
mxGdCodec.mxGDParseState |
Represents the different states in the parse of a file.
|
mxGeneratorConstFunction |
|
mxGeneratorFunction |
|
mxGeneratorRandomFunction |
|
mxGeneratorRandomIntFunction |
|
mxGenericChangeCodec |
Codec for mxChildChanges.
|
mxGeometry |
Represents the geometry of a cell.
|
mxGraph |
Implements a graph object that allows to create diagrams from a graph model
and stylesheet.
|
mxGraph.mxICellVisitor |
|
mxGraphAbstractHierarchyCell |
An abstraction of an internal hierarchy node or edge
|
mxGraphActions |
|
mxGraphActions.DeleteAction |
|
mxGraphActions.DrillAction |
|
mxGraphActions.EditAction |
|
mxGraphActions.FoldAction |
|
mxGraphActions.GroupAction |
|
mxGraphActions.LayerAction |
|
mxGraphActions.RemoveFromParentAction |
|
mxGraphActions.SelectAction |
|
mxGraphActions.UngroupAction |
|
mxGraphActions.UpdateGroupBoundsAction |
|
mxGraphActions.ZoomAction |
|
mxGraphAnalysis |
A singleton class that provides algorithms for graphs.
|
mxGraphComponent |
For setting the preferred size of the viewport for scrolling, use
mxGraph.setMinimumGraphSize.
|
mxGraphComponent.mxMouseRedirector |
|
mxGraphGenerator |
|
mxGraphHandler |
|
mxGraphHierarchyEdge |
An abstraction of a hierarchical edge for the hierarchy layout
|
mxGraphHierarchyModel |
Internal model of a hierarchical graph.
|
mxGraphHierarchyModel.CellVisitor |
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 |
An abstraction of an internal node in the hierarchy layout
|
mxGraphHierarchyRank |
An abstraction of a rank in the hierarchy layout.
|
mxGraphics2DCanvas |
An implementation of a canvas that uses Graphics2D for painting.
|
mxGraphicsCanvas2D |
Used for exporting images.
|
mxGraphLayout |
Abstract bass class for layouts
|
mxGraphModel |
Extends mxEventSource to implement a graph model.
|
mxGraphModel.Filter |
|
mxGraphModel.mxChildChange |
|
mxGraphModel.mxCollapseChange |
|
mxGraphModel.mxGeometryChange |
|
mxGraphModel.mxRootChange |
|
mxGraphModel.mxStyleChange |
|
mxGraphModel.mxTerminalChange |
|
mxGraphModel.mxValueChange |
|
mxGraphModel.mxVisibleChange |
|
mxGraphOutline |
An outline view for a specific graph component.
|
mxGraphProperties |
Constants for graph structure properties
|
mxGraphProperties.GraphType |
|
mxGraphSelectionModel |
Implements the selection model for a graph.
|
mxGraphSelectionModel.mxSelectionChange |
|
mxGraphStructure |
|
mxGraphTransferable |
|
mxGraphTransferHandler |
|
mxGraphView |
Implements a view for the graph.
|
mxGraphView.mxCurrentRootChange |
Action to change the current root in a view.
|
mxGraphViewImageReader |
A converter that renders display XML data onto a graphics canvas.
|
mxGraphViewReader |
An abstract converter that renders display XML data onto a canvas.
|
mxHexagonShape |
|
mxHierarchicalLayout |
The top level compound layout of the hierarchical layout.
|
mxHierarchicalLayoutStage |
The specific layout interface for hierarchical layouts.
|
mxHtmlCanvas |
An implementation of a canvas that uses HTML for painting.
|
mxHtmlColor |
Contains various helper methods for use with mxGraph.
|
mxHtmlTextShape |
To set global CSS for all HTML labels, use the following code:
|
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)
|
mxICell |
Defines the requirements for a cell that can be used in an mxGraphModel.
|
mxICellEditor |
|
mxICellOverlay |
|
mxICostFunction |
The cost function takes a cell and returns it's cost as a double.
|
mxIGraphLayout |
Defines the requirements for an object that implements a graph layout.
|
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.
|
mxImage |
Implements a 2-dimensional point with double precision coordinates.
|
mxImageBundle |
Maps from keys to base64 encoded images or file locations.
|
mxImageCanvas |
An implementation of a canvas that uses Graphics2D for painting.
|
mxImageShape |
A rectangular shape that contains a single image.
|
mxIMarker |
|
mxInsertHandler |
|
mxInteractiveCanvas |
|
mxIShape |
|
mxITextShape |
|
mxKeyboardHandler |
|
mxLabelShape |
|
mxLayoutManager |
Implements a layout manager that updates the layout for a given transaction.
|
mxLightweightLabel |
|
mxLine |
Implements a line with double precision coordinates.
|
mxLineShape |
|
mxMarkerRegistry |
|
mxMedianHybridCrossingReduction |
Performs a vertex ordering within ranks as described by Gansner et al 1993
|
mxMinimumCycleRemover |
An implementation of the first stage of the Sugiyama layout.
|
mxModelCodec |
Codec for mxGraphModels.
|
mxMorphing |
Provides animation effects.
|
mxMouseAdapter |
|
mxMovePreview |
Connection handler creates new connections between cells.
|
mxMultiplicity |
|
mxObjectCodec |
Generic codec for Java objects.
|
mxOrganicLayout |
An implementation of a simulated annealing layout, based on "Drawing Graphs
Nicely Using Simulated Annealing" by Davidson and Harel (1996).
|
mxOrthogonalLayout |
|
mxOrthogonalModel |
A custom graph model
|
mxPanningHandler |
|
mxParallelEdgeLayout |
|
mxPartitionLayout |
|
mxPerimeter |
Provides various perimeter functions to be used in a style
as the value of mxConstants.STYLE_PERIMETER.
|
mxPerimeter.mxPerimeterFunction |
Defines the requirements for a perimeter function.
|
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
|
mxPoint |
Implements a 2-dimensional point with double precision coordinates.
|
mxPointPair |
|
mxPointSequence |
|
mxRectangle |
Implements a 2-dimensional rectangle with double precision coordinates.
|
mxRectangleShape |
|
mxResources |
|
mxRhombusShape |
|
mxRootChangeCodec |
Codec for mxChildChanges.
|
mxRotationHandler |
Basic example of implementing a handler for rotation.
|
mxRubberband |
Implements a rubberband selection.
|
mxSaxOutputHandler |
XMLReader reader = SAXParserFactory.newInstance().newSAXParser()
.getXMLReader();
reader.setContentHandler(new mxSaxExportHandler(
new mxGraphicsExportCanvas(g2)));
reader.parse(new InputSource(new StringReader(xml)));
|
mxSaxOutputHandler.IElementHandler |
|
mxSegment |
|
mxSelectionCellsHandler |
|
mxSpline |
|
mxSpline1D |
One dimension of a spline curve
|
mxStackLayout |
|
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.
|
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.
|
mxStylesheetCodec |
Codec for mxStylesheets.
|
mxStyleUtils |
Contains various style helper methods for use with mxGraph.
|
mxSvgCanvas |
An implementation of a canvas that uses SVG for painting.
|
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.
|
mxSwimlaneShape |
|
mxSwingConstants |
|
mxTemporaryCellStates |
|
mxTerminalChangeCodec |
Codec for mxChildChanges.
|
mxTraversal |
Implements a collection of utility methods for traversing the
graph structure.
|
mxTriangleShape |
|
mxUndoableEdit |
Implements a 2-dimensional rectangle with double precision coordinates.
|
mxUndoableEdit.mxUndoableChange |
Defines the requirements for an undoable change.
|
mxUndoManager |
Implements an undo history.
|
mxUnionFind |
Implements a union find structure that uses union by rank and path
compression.
|
mxUtils |
Contains various helper methods for use with mxGraph.
|
mxVertexHandler |
|
mxVmlCanvas |
An implementation of a canvas that uses VML for painting.
|
mxXmlUtils |
Contains various XML helper methods for use with mxGraph.
|
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.
|
PathParser |
This class implements an event-based parser for the SVG path's d
attribute values.
|
PointsHandler |
This interface must be implemented and then registred as the
handler of a PointsParser instance in order to be
notified of parsing events.
|
PointsParser |
This class implements an event-based parser for the SVG points
attribute values (used with polyline and polygon elements).
|
ShapeProducer |
This interface represents objects which creates Shape objects.
|
StringNormalizingReader |
This class represents a NormalizingReader which handles Strings.
|
StructuralException |
|