|
Higraph, v1.0, January 28, 2003 (02:22 PM) | |||||||||
PREV NEXT | FRAMES NO FRAMES |
SwingWorker
thread.
higraphGeometry
for removal.
higraphGeometry
for strong removal.
blob
to this using its id as key.
newBlobs
to blobs
.
true
if attrCell
can be inserted in the tree.
true
if at least one AttrCell
in attrCells
contains attrCell
.
true
if at least one AttrCell in
attrCells
contains attrCell
.
DefaultPort
to cell
.
DefaultGraphCell
having
default attributes as properties which can be
set either directly or via a Map
of attributes;
crucially, the class uses the bounds
property
to determine blob containement
(used in the insertion of new AttrCell
s).AttrCell
instance with a new
DefaultGraphCell
with a DefaultPort
attached and default attributes.
AttrCell
instance using the
DefaultGraphCell
and all attributes in
attrCell
, except for the bounds which are set to
the given Rectangle
bounds
.
AttrCell
instance and sets its
cell
.
AttrCell
using the
attributes in attributesMap
and setting its DefaultGraphCell
to cell
.
AttrCell
instance and sets its
cell
and bounds
.
AttrCell
instance setting its
cell to a new DefaultGraphCell
with a Port attached
and setting the bounds
property to the Rectangle
located at location
and with
HigraphConstants.DEFAULT_VERTEX_SIZE
.
AttrCell
instance setting its
cell to a new DefaultGraphCell
with a Port attached
and setting the bounds
property.
AttrCell
instance setting its
cell to a new DefaultGraphCell
with a Port attached
and labelled with label
; it also sets
the bounds
property.
AttrCell
s according to their location.Vertex
by adding a Blobs
reference
representing the contained sub-blobs.Blob
instance by calling the corresponding
superclass constructor.
Blob
instance calling the corresponding
superclass constructor.
Blob
instance calling the corresponding
superclass constructor.
Blob
instance by calling the corresponding
superclass constructor.
VertexRenderer
by overriding
paint(Graphics)
to draw rounded rectangles
instead of ordinary rectangles if BlobRenderer.BlobRenderer(boolean)
was invoked with argument true
.this(true)
.
isRoundRect
flag.
Map
of Blob
s with String id
s as keys.Blobs
instance
invoking the corresponding superclass constructor.
Blobs
instance.
Blobs
instance.
Blobs
instance.
VertexView
by overriding getRenderer()
to return a BlobRenderer
instead of a VertexRenderer
.BlobView
instance by invoking
the corresponding superclass constructor.
Blob
- a bridge between
JDOM Element
s and Blob
s.BlobXml
instance setting
blob
and using
blob
to populate element
.
BlobXml
instance setting
element
to e
and using
e
to populate blob
.
true
if the boundaries of
of the two arguments intersect.
true
if the boundary of attrCell
intersects the boundary of an AttrCell
in the
Iterator attrCells
.
Browser.Browser(String, String, Point)
with the origin as location.
Browser
instance at location
and pointing at
url
if that is a valid URL.
array
to an array of AttrCell
s.
Set
of AttrCell
s in this
.
Set
of AttrCell
s
in forest
.
AttrCell
s in the Node
s
of this
, excluding the one in the root node.
AttrCell
s ordered by breadth first
traversal of the tree.
AttrCell
s build in breadth-first.
Set
of bounds of the children cells
contained in this
.
Iterator
over the AttrCell
s
in the children of this node.
Set
of children AttrCells
which are contained in cell
.
Set
of children nodes
whose cells are contained in cell
.
EmbeddableContainmentTree
with as root
Node
a clone of the current root Node.
AttrCell
s in cells
.
EmbeddableContainmentTree
s in trees
.
source
and target
.
source
and target
.
edge
between source
and target
.
edge
between source
and target
.
source
and target
with an Edge
.
Port
of a JGraph
by
allowing to build an edge to the Port
where the mouse is dragged.Connector
instance
storing the graph
reference.
Set
of children cells
contained in this
.
Set
of children nodes
contained in this
.
true
if the bounding Rectangle
of this contains the
bounding Rectangle of attrCell
.
true
if attrCell
is contained
in this.
true
if the bounding Rectangle
of this contains rectangle
.
true
if this
contains
an AttrCell
with same bounds as attrCell
.
true
if point
lies on the boundary
of this
.
DefaultGraphCell
with a Port
attached.
DefaultGraphCell
with a Port
attached and labelled with label
.
BlobView
instead of
a simple VertexView
value.
EmbeddableContainmentTree
s.
attrCell
from attrCell
if it is contained in this
.
attrCell
from its parent if
attrCell
is contained in this
.
EmbeddableContainmentTree.detachSubtreeRootedAt(AttrCell)
but it suffices that an AttrCell
equivalent to
attrCell
is contained in this
.
true
if the the bounding Rectangle
of this contains rectangle
.
AttrCell
's in the vertex
containment tree using a JTree
.
Map
to store the edges of a JGraph
with proper cells, rather than ports, as source and targets.Edge
which returns
proper cells rather than ports as source and target.Edges
instance with the set of edges
of model
as elements.
Edge
s in the model.
GraphEdge
- a bridge between
JDOM Element
s and GraphEdge
s.EdgeXml
instance setting
element
to e
and edge
to the GraphEdge
with source and target Blob
s
derived from blobs
using the appropriate
attributes in e
.
- EdgeXml(GraphEdge) -
Constructor for class uk.ac.ed.inf.higraph.EdgeXml
- Creates a new
EdgeXml
instance setting edge
and then setting element
using the information in
edge
.
- EDITOR_MARGIN -
Static variable in interface uk.ac.ed.inf.higraph.HigraphConstants
-
- EmbeddableContainmentTree - class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.
- Encapsulates a tree of
AttrCell
s maintaining the
following properties. - EmbeddableContainmentTree.CellIsRootException - exception uk.ac.ed.inf.higraph.EmbeddableContainmentTree.CellIsRootException.
-
- EmbeddableContainmentTree.CellIsRootException(String) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.CellIsRootException
-
- EmbeddableContainmentTree.CellNotShiftInsertableException - exception uk.ac.ed.inf.higraph.EmbeddableContainmentTree.CellNotShiftInsertableException.
-
- EmbeddableContainmentTree.CellNotShiftInsertableException() -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.CellNotShiftInsertableException
-
- EmbeddableContainmentTree.NoAttrCellFoundException - exception uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoAttrCellFoundException.
-
- EmbeddableContainmentTree.NoAttrCellFoundException(String) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoAttrCellFoundException
-
- EmbeddableContainmentTree.NoChildrenException - exception uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoChildrenException.
-
- EmbeddableContainmentTree.NoChildrenException(String) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoChildrenException
-
- EmbeddableContainmentTree.NoContainerFoundError - error uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoContainerFoundError.
-
- EmbeddableContainmentTree.NoContainerFoundError(String) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoContainerFoundError
-
- EmbeddableContainmentTree.NoContainerFoundError(Throwable) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoContainerFoundError
-
- EmbeddableContainmentTree.NoContainerFoundException - exception uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoContainerFoundException.
-
- EmbeddableContainmentTree.NoContainerFoundException(String) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.NoContainerFoundException
-
- EmbeddableContainmentTree.Node - class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.Node.
DefaultMutableTreeNode
wrapper for AttrCell
.- EmbeddableContainmentTree.Node(AttrCell) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.Node
- Creates a new
Node
instance calling its
corresponding superclass constructor, hence setting
userObject
to attrCell
.
- EmbeddableContainmentTree() -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree
- Constructs an empty
ContainmentTree
.
- EmbeddableContainmentTree(AttrCell) -
Constructor for class uk.ac.ed.inf.higraph.EmbeddableContainmentTree
- Constructs a
EmbeddableContainmentTree
using
candidateRoot
as a candidate root cell for the tree.
- equal(DefaultMutableTreeNode, DefaultMutableTreeNode) -
Static method in class uk.ac.ed.inf.higraph.EmbeddableContainmentTree.Node
- Recursively checks whether the trees rooted at the two nodes
are equal.
- equals(Object) -
Method in class uk.ac.ed.inf.higraph.Blobs
- Returns
true
if o
is a Blobs
of the same size as this and with the same labels.
- equals(Object) -
Method in class uk.ac.ed.inf.higraph.EmbeddableContainmentTree
- Returns
true
if tree
's root
is equal to the current root according to
EmbeddableContainmentTree.Node.equal(DefaultMutableTreeNode, DefaultMutableTreeNode)
.
- error(SAXParseException) -
Method in class uk.ac.ed.inf.higraph.HigraphXml.SAXErrorHandler
- The
SAXBuilder
did not react to setting
its DTDHandler
, but this methods obviates
by setting the dtdNotValid
flag to true
if
an exception is raised during parsing whose message ends with
"must be declared.".
- expandCellAt(EmbeddableContainmentTree.Node, int, int) -
Method in class uk.ac.ed.inf.higraph.EmbeddableContainmentTree
- Expands the
AttrCell
associated with node
and,
subsequently, all the AttrCell
s
accossiated with the ancestors of
node
, by widthUnits
along their width
and by heightUnits
units along their height.
- expansiveInsert(AttrCell, int) -
Method in class uk.ac.ed.inf.higraph.EmbeddableContainmentTree
- Inserts
newAttrCell
into this
.
- extractFrom(Blobs) -
Method in class uk.ac.ed.inf.higraph.HigraphGeometry
- Sets the vertex containment tree to the content of
blobs
(and the canvas as root).
- extractFrom(DefaultGraphModel) -
Method in class uk.ac.ed.inf.higraph.HigraphGeometry
- Extracts the containment tree and the edges from
model
if it is valid
and sets them to be the tree and the edges of this
respectively.
Edges.Element
with key edge
.
Blobs
instance.
bounds
in the blobs and sub-blobs of this.
bounds
in the blobs and sub-blobs of this.
id
s in the blobs and sub-blobs of this.
id
s in the blobs and sub-blobs of this.
userObject
as an AttrCell
value.
AttrCell
containing cell
if it exists.
AttrCell
whose GraphCell
has hashCode
if it exists.
background
.
blob
.
blobs
.
blobs
.
borderColor
.
bounds
.
bounds
.
null
if the tree is empty and
the bounds of the root AttrCell otherwise.
Rectangle
corresponding to the bounds
stored in e
.
cell
.
Set
of AttrCell
s in the set of
nodes
.
Rectangle
containing the bounds of attrCell
.
Rectangle
containing point
.
Rectangle
containing rectangle
.
LinkedHashSet
of all cells in the tree
which contain the given attrCell
.
Rectangle
containing rectangle
.
Rectangle
containing point
.
EmbeddableContainmentTree.Node
with smallest bounds Rectangle
containing
rectangle
.
document
.
edge
.
edge
.
edge
.
edges
value, which is
a Set
of GraphEdge
s.
Edges
object representing
the edges in the model as a map of GraphEdge
s.
GraphCell
in cell
as either source or target.
element
.
element
.
higraph
.
higraphGeometry
.
id
.
GraphCell
in attrCell
as target.
cell
as target.
jHigraph
.
jHigraph
casting it to
a DefaultGraphModel
.
label
.
lastClickedPoint
.
bounds
.
DefaultGraphModel
for the higraph.
EmbeddableContainmentTree.Node
in this
which contains attrCell
.
GraphCell
in attrCell
as source.
cell
as source.
XMLOutputter
, creating it
if it does not already exist.
XMLOutputter
, creating it
if it does not already exist.
EmbeddableContainmentTree.Node
in this
which can be parent of all
trees
.
attrCell
if it exists.
VertexView
by
returning a BlobRenderer
instead of a
VertexRenderer
.
root
.
AttrCell
in the root node.
Set
of root Node
s
of trees
.
LinkedHashSet
of Node
s.
source
.
source
.
target
.
target
.
point
and returns its first Port as a PortView.
vertexContainmentTree
.
this
to become a listener of the JGraph model as follows.
(Edge
edge, Vertex
source, Vertex
target)
hence encapsulating the low level Edge
class.GraphEdge
instance setting edge,
source and target.
GraphEdge
instance setting
source and target.
true
if a node in this
contains attrCell
and a child of that node intersects newAttrCell
.
true
if the vertex containment tree is not
null
.
Blobs
object
and a Set
of GraphEdge
s.Higraph
instance initializing blobs and
edges with new instances.
Higraph
instance and sets
setting blobs and edges using the corresponding parameters.
Higraph
instance by inferring the blobs
from tree
and the edges from edges
and tree
.
Higraph
instance by calling
Higraph.Higraph(EmbeddableContainmentTree, Edges)
with the tree and the edges of geometry
.
AbstractAction
by setting the
cursor to Cursor.WAIT_CURSOR
when the action is performed.ActionEvent
to graph.JGraph
's model and ensures that the insertion
of new vertices does not violate the higraph containment constraints.ModelUpdater
instance which
first updates the old vertices and then inserts the new ones.
HigraphGeometry.shiftInsert(Point)
.HigraphGeometry
instance setting the
the vertexContainmentTree to consists only of a root with
the canvas as bounds.
HigraphGeometry
instance, setting its
model to model
(hence registering itself as listener for
model
)
and extracting the vertex containment tree and the edges
from model
.
HigraphGeometry
instance setting
its vertexContainmentTree to tree
Higraph
- a bridge between
JDOM Element
s and Higraph
s.MySAXErrorHandler
by intercepting exceptions
signalling that the document does not conform to
the DTD and setting the dtdNotValid
flag accordingly.HigraphXml
instance
setting the value of this.higraph
to a new
Higraph
HigraphXml
instance from the
XML representation stored in file
.
HigraphXml
instance
setting the value of this.higraph
to higraph
.
true
if the AttrCell in this
contains attrCell
and, moreover, none of its children
contains attrCell
.
newAttrCell
in the tree.
attrCell
as
userObject
and then
appends node
as a new child, but
first tries to assert
that
attrCell
can be immediately contained in this.
blobs
in this
and returns the inserted AttrCell
s
in the form of a Map
with entries of the form (id, attrCell)
, where
id
is the blob id.
node
as a new child, but
first tries to assert
that the AttrCell
in node
can be immediately contained in this.
point
and insert it into higraphGeometry
by calling its
shiftInsert(AttrCell)
.
AttrCell
s in newAttrCells
.
trees
as
siblings of a node in this
.
true
if the bounds of this
intersect the bounds of other
.
true
when the parsed document does not conform to
HigraphConstants.HIGRAPH_DTD
.
true
if cell
is an instance of
Edge
.
true
if cell
is an instance of
Edge
or Port
.
true
if the tree is empty.
true
, otherwise invokes superclass method.
true
if the x-coordinate of the location
of this is left
of or equal to the x-coordinate of point
.
true
if the x-coordinate of the location
of this is right
of or equal to the x-coordinate of point
.
true
if the x-coordinate of the location
of this is strictly left
of the x-coordinate of point
.
opaque
.
true
if cell
is an instance of
Port
.
true
if attrCell
equals
the root cell.
true
if the vertices in model
form a valid EmbeddableContainmentTree
.
visible
.
BlobView
s instead of VertexView
s
as the JGraph
class from which it inherits.JHigraph
instance by invoking
the corresponding superclass constructor and then setting
the MarqueeHandler to a new Connector
, and
setting various
other parameters.
file
.
higraphGeometry
for zooming.
HigraphEditor.HigraphEditor()
.
x
if x<y
, y
otherwise.
JMenuBar
for the GUI.
Set
of Node
s
in this
.
Set
of Node
s
in this
excluding the root node.
AttrCell
s excluding the root ordered according to
AttrCellLocationComparator
.
AttrCell
s ordered according to
AttrCellLocationComparator
.
VertexRenderer
by
drawing rounded rectangles
instead of ordinary rectangles only
if the isRoundRect
flag is set to true
by the constructor.
file
using SAXBuilder
and
HigraphXml.SAXErrorHandler
.
blob
using element
.
element
using blob
.
(edge, element)
in this,
where element
is a representation
of edge
inferred from model
which has proper cells, rather than ports, as source and targets.
element
with its associated edge as key.
attrCell
,
if contained in this
and attrCell
is not the root of this
.
cell
is an Edge then it removes it
both from the JGraph model and from the edges,
while if it is a vertex then it removes it only if there are
no edges attached to it.
true
if the bounds of parent and children of
attrCell1
in tree1
are those of
attrCell2
in tree2
.
userObject
to attrCell
.
AttrCell
constructor,
sets bounds
, borderColor
,
background
and opaque
using map
.
background
.
blob
.
blobs
.
blobs
.
higraph
using blobsEl
.
borderColor
.
bounds
.
cell
.
document
.
edge
.
edge
.
HigraphGeometry.getEdges()
.
edges
property,
having an Edges
object as parameter, rather than
a Set of GraphEdge
s.
higraph
using edgesEl
.
edges
value to v
.
element
.
element
.
higraph
.
higraphGeometry
.
id
.
jHigraph
.
label
.
lastClickedPoint
.
opaque
.
true
if either the tree is empty,
in which case sets root
to a new EmbeddableContainmentTree.Node
,
or if v
contains the root cell,
in which case sets the root cell to v
.
source
.
target
.
vertexContainmentTree
.
visible
.
attrCell
if contained in this
and it is not the root.
attrCell
as its associated AttrCell
.
HigraphGeometry.shiftInsert(AttrCell)
with a default
AttrCell
located at location
.
HigraphEditor.AbstractLongAction.longExecute()
terminates.
attrCell
's location.
point
.
side
of point
.
higraph
and saves it to file
.
cell
is an Edge then it removes it
both from the JGraph model and from the edges,
while if it is a vertex then it removes it together with all
the edges attached to it.
AttrCell
with bounds and label (if not null)
of this
.
GraphConstants
to create a Map
and populates it using its attributes.
this
.
o
.
Higraph
representation of the model
inferred from the containment tree and the edges
property.
JToolBar
for the GUI.
element
.
element
.
String
value.
Document
corresponding
to higraph
.
Element
corresponding
to higraph
by taking the root element
of HigraphXml.toXmlDocument()
.
Element
corresponding
to blob
.
String
corresponding to
the XML Element
produced by
HigraphXml.toXmlElement()
.
String
corresponding to
the XML Element
produced by
BlobXml.toXmlElement()
.
String
consisting of the XML representation
of the current higraph.
blobs
using EmbeddableContainmentTree.insert(Blobs)
, and finally returns
the inserted AttrCell
s
in the form of a Map
with entries of the form (id, attrCell)
, where
id
is the blob id.
higraph
and
then synchronises the model accordingly.
model
with this
.
GraphSelectionListener
by enabling the wastebasket icon when the graph selection
is not empty.
(id, label, bounds)
.Vertex
instance setting the id to
the hash code of attrCell
(preceded by underscore) and
the label and the bounds to the label and bounds
of attrCell
.
Vertex
instance setting the id to
hashCode
(preceded by underscore) and setting the
label to the empty string.
Vertex
instance setting the id to
the hash code of o
(preceded by underscore)
and setting the label to the empty string.
Vertex
instance setting id and empty label.
Vertex
instance setting id and label.
Vertex
instance
setting id, label, and bounds.
Set
of AttrCell
s corresponding
to the vertices in model
.
cell
and attaching to it all resulting dangling edges.
|
Higraph, v1.0, January 28, 2003 (02:22 PM) | |||||||||
PREV NEXT | FRAMES NO FRAMES |