Package | Description |
---|---|
cgif.generate |
Classes for the main translation work for CGIF.
|
cgif.parser |
Classes to support the parsing of CGIF.
|
charger |
The top level package for the editor.
|
charger.act |
Classes related to actor operations, activation and graph updating.
|
charger.cgx |
Classes for reading and writing CharGer graphs in XML format.
|
charger.history |
Classes to maintain a history for any graph object.
|
charger.layout |
Classes related to automatic re-arranging the appearance of Charger graphs.
|
charger.obj |
Classes for the graph objects themselves.
|
charger.prefs |
Classes needed for setting preferences by the user.
|
charger.util |
Utility classes for CharGer, dealing with fonts, strings and other general-purpose things.
|
kb |
Classes for managing CharGer or CRAFT elements as knowledge sources.
|
kb.hierarchy |
Classes for managing and manipulating type and relation hierarchies.
|
Modifier and Type | Method and Description |
---|---|
protected String |
CGIFWriter.generateComment(GraphObject go)
Returns a string representation of the comment for the specified object.
|
Modifier and Type | Field and Description |
---|---|
private HashMap<String,GraphObject> |
ReferentMap.objectmap
Key is a variable name (e.g., x1) or string referent
|
Modifier and Type | Method and Description |
---|---|
GraphObject |
ReferentMap.getObjectByReferent(String ref)
Look up the graph object that corresponds to the referent given.
|
Modifier and Type | Method and Description |
---|---|
void |
CGIFParserHelper.parseChargerLayout(String chargerComment,
GraphObject go) |
void |
ReferentMap.putObjectByReferent(String ref,
GraphObject go)
Insert the graph object into the list, using its referent as a key.
|
Modifier and Type | Field and Description |
---|---|
(package private) GraphObject |
EditFrame.currentObject
used so that mousepressed and mousereleased can communicate
|
private GraphObject |
EditFrame.cursorObject
the single object under the cursor
|
private GraphObject |
EditFrame.ObjectBeingDragged |
private GraphObject |
CanvasPanel.userEditedGraphObject
indicates which GNode whose text the user is currently editing; null if
no editing.
|
Modifier and Type | Field and Description |
---|---|
ArrayList<GraphObject> |
EditFrame.EFSelectedNodes
list containing all selected nodes; maintained as nodes are
selected/unselected
|
ArrayList<GraphObject> |
EditFrame.EFSelectedObjects
list containing all selected objects (including edges); maintained as
objects are selected/unselected
|
private Iterator<GraphObject> |
EditManager.findIterator |
private ArrayList<GraphObject> |
CGRule.involvedObjects |
Modifier and Type | Method and Description |
---|---|
GraphObject |
EditFrame.insideGEdge(Point2D.Double p)
Determine whether there is any GEdge whose display rectangle contains a
point on the canvas.
|
GraphObject |
EditFrame.insideGNode(Point2D.Double p)
Determine whether a given point is conntained in any GNode's display
rectangle.
|
GraphObject |
EditFrame.onTopOfGNode(Point2D.Double p)
Determine whether a given point is on top of a GNode's relevent portion.
|
GraphObject |
EditFrame.onTopOfObject(Point2D.Double p)
Determine whether an object's display rectangle contains a point on the
canvas.
|
static GraphObject |
IOManager.parseOneObject(String s,
Graph rootGraph,
boolean ignoreOwner,
Point translateBy,
boolean keepIDs)
Tokenizes and parses a string assuming it was written using the
saveGraph2 rules, then creates a correct CharGer graph object based on
what was parsed.
|
static GraphObject |
IOManager.parseOneObject2(String s,
Graph rootGraph,
boolean ignoreNesting,
Point translateBy,
boolean keepIDs)
Tokenizes and parses a string assuming it was written using the saveGraph
rules for version 2, then creates a correct CharGer graph object based on
what was parsed.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<GraphObject> |
CGRule.getInvolvedObjects() |
static ArrayList<GraphObject> |
IOManager.StringToGraph(String s,
Graph targetGraph,
Point translateBy,
boolean keepIDs)
Loads a graph from a CharGer formatted string
|
Modifier and Type | Method and Description |
---|---|
void |
EditFrame.addToSelection(GraphObject go)
Mark an object as being selected, and let the edit frame know that
something was selected.
|
String |
EditManager.arrowAllowed(GraphObject go1,
GraphObject go2)
Determines whether an arrow is allowed between the two objects.
|
boolean |
CanvasPanel.choicePossible(GraphObject go)
Determines whether a pull-down menu is possible for this object.
|
String |
EditManager.corefAllowed(GraphObject go1,
GraphObject go2)
Determines whether a coreferent link is allowed between the two objects.
|
boolean |
EditManager.enlargeObject(GraphObject go,
int increment)
Increases the graph object's size by an increment in pixels.
|
String |
EditManager.genspecAllowed(GraphObject subobj,
GraphObject superobj)
Determines whether a generalization/specialization link is allowed
between the two objects.
|
boolean |
OperManager.joinReferents(GraphObject go1,
GraphObject go2)
Used whenever a co-referent link appears, to bring referents into
consistency.
|
void |
EditFrame.takeFromSelection(GraphObject go)
If object is already selected, remove it from the selection.
|
void |
CanvasPanel.userStartedEditingText(GraphObject go,
Point2D.Double p)
Sets up the text field for a user to edit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EditFrame.unMakeContext(ArrayList<GraphObject> selectedNodes,
Rectangle2D.Double border)
Takes a single context and un-makes its border, moving all its contents
out one graph level.
|
Modifier and Type | Field and Description |
---|---|
private GraphObject |
GraphUpdater.GraphObjectToUpdate |
Modifier and Type | Method and Description |
---|---|
static boolean |
GraphUpdater.hasAttribute(GraphObject go,
Object attr)
Checks to see if the graph object has an executable procedure associated
with it.
|
private void |
GraphUpdater.setGraphObject(GraphObject go) |
void |
GraphUpdater.updateGraphObject(GraphObject go)
General routine for verifying/updating/validating any node.
|
Constructor and Description |
---|
GraphUpdater(EditFrame ef,
GraphObject go)
Creates an instance of the updater for a given graph object.
|
Modifier and Type | Method and Description |
---|---|
private GraphObject |
CGXParser.instantiateGraphObject(String tagname)
Factory to create a graph object from the given tagname.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<GraphObject> |
CGXParser.getParsedObjects() |
static ArrayList<GraphObject> |
CGXParser.parseForCopying(String cgxmlString,
Graph g)
Factory method for setting up a parser for a list of graph objects from a
string.
|
Modifier and Type | Method and Description |
---|---|
private static String |
CGXGenerator.colorXMLParms(GraphObject go) |
private static String |
CGXGenerator.fontXMLParms(GraphObject go) |
static String |
CGXGenerator.GraphObjectXML(GraphObject go,
String indent)
Generates any graph object into its XML version.
|
static String |
CGXGenerator.layoutInfoXML(GraphObject go,
String indent) |
void |
CGXParser.parseColorInfo(org.w3c.dom.Node node,
GraphObject go)
Assumes its node is a "color" tag generated by Charger.
|
void |
CGXParser.parseEdgeInfo(org.w3c.dom.Node node,
GraphObject go)
Handles the "edge" tag element for arrow height, width and edge thickness.
|
void |
CGXParser.parseFontInfo(org.w3c.dom.Node node,
GraphObject go)
Handles the "font" tag element for arrow height, width and edge thickness.
|
void |
CGXParser.parseGraphObjectElement(org.w3c.dom.Element goelem,
GraphObject go)
Handles any document element representing a GraphObject.
|
void |
CGXParser.parseHistoryInfo(org.w3c.dom.Element historyElem,
GraphObject go)
Handles the "history" tag element which contains one or more history event nodes..
|
void |
CGXParser.parseHistoryRecordInfo(org.w3c.dom.Element eventElem,
GraphObject go)
Parse an individual history event tag and add the history event to the given object.
|
void |
CGXParser.parseLayoutInfo(org.w3c.dom.Element layoutElem,
GraphObject go)
Handles the "layout" tag element for the rectangle, color, font and edge elements.
|
void |
CGXParser.parseLayoutOnly(GraphObject go)
Assume document consists of only layout information.
|
void |
CGXParser.parseRectangleInfo(org.w3c.dom.Node node,
GraphObject go)
Assumes its node is a rectangle tag from Charger.
|
void |
CGXParser.parseRectangleInfo(org.w3c.dom.Node node,
GraphObject go,
Point2D.Double offset)
Handles the "rectangle" tag element for arrow height, width and edge thickness.
|
void |
CGXParser.parseReferentInfo(org.w3c.dom.Element element,
GraphObject go)
Handles the "referent" tag element
|
void |
CGXParser.parseTypeInfo(org.w3c.dom.Element element,
GraphObject go)
Handles the "type" tag element for the type label and for
both generic descriptors and wordnet descriptors.
|
void |
CGXParser.setID(org.w3c.dom.Element elem,
GraphObject go)
Set the object's id, either by using its already-generated id or else by
the id attribute in the element.
|
Modifier and Type | Method and Description |
---|---|
void |
CGXParser.setParsedObjects(ArrayList<GraphObject> _parsedObjects) |
Modifier and Type | Method and Description |
---|---|
GraphObject |
GraphObjectHistoryRecord.getGraphObject() |
Modifier and Type | Method and Description |
---|---|
void |
GraphObjectHistoryRecord.setGraphObject(GraphObject graphObject) |
Constructor and Description |
---|
GraphObjectHistoryRecord(GraphObject graphObject) |
Modifier and Type | Method and Description |
---|---|
void |
SpringGraphLayout.addForceToNodeForces(Point2D.Double force,
GraphObject node)
For the given node, add the force to the current forces on it.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleGraphLayout.establishGrid(Iterator<GraphObject> iter)
Determine the rows and columns of the grid layout, and the max width and
height per grid cell.
|
void |
SimpleGraphLayout.naivePlacement(Iterator<GraphObject> iter)
Places nodes in row first, right-to-left order without regard to any links.
|
void |
SimpleGraphLayout.reduceEdgeLengthPlacement(Iterator<GraphObject> iter)
Places nodes in row first, right-to-left order without regard to any
links.
|
Modifier and Type | Class and Description |
---|---|
class |
Actor
Implements the actor construct.
|
class |
Arrow
Implements the link arrow which connects a concept to a relation or actor.
|
class |
Concept
Implements the concept construct.
|
class |
Coref
Implements a coreferent link.
|
class |
CustomEdge
Provides a custom edge that is not semantically constrained by the types of its nodes.
|
class |
GEdge
Abstract superclass for arrows and co-referent links.
|
class |
GenSpecLink
Implements an arrow from a subtype label to a supertype label.
|
class |
GNode
A GNode is the abstract superclass to handle concepts, relations, actors and
nested graphs.
|
class |
Graph
A Graph stores zero or more graph objects.
|
class |
Note
An arbitrary text node to annotate a graph.
|
class |
Relation
Implements the conceptual relation construct.
|
class |
RelationLabel
Implements the relation type construct in a hierarchy.
|
class |
TypeLabel
Implements the type construct in a hierarchy.
|
Modifier and Type | Field and Description |
---|---|
GraphObject |
GEdge.fromObj |
private GraphObject |
GraphObjectIterator.GraphObjectToMatch
Used when iterating objects of a particular class, rather than using an
integer type indicator
|
GraphObject |
GEdge.toObj |
Modifier and Type | Field and Description |
---|---|
HashMap<String,GraphObject> |
Graph.objectHashStore
Holds the list of objects owned by this graph.
|
private ArrayList<GraphObject> |
GraphObjectIterator.objectList
Holds the graph objects to be examined
|
Modifier and Type | Method and Description |
---|---|
GraphObject |
Graph.findByID(GraphObjectID ID)
Find an object by its ID at any level in the target graph.
|
GraphObject |
GEdge.linkedTo(GNode gn)
Tells whether the given node is linked at all with this GEdge.
|
GraphObject |
GraphObjectIterator.next() |
Modifier and Type | Method and Description |
---|---|
ArrayList<GraphObject> |
Graph.getGraphObjects() |
Iterator<GraphObject> |
Graph.graphObjects()
Get an iterator for all the given graph's objects (including edges).
|
Modifier and Type | Method and Description |
---|---|
int |
GraphObject.ObjectIDComparator.compare(GraphObject o1,
GraphObject o2)
Compares the object ID's of the two GraphObect's.
|
void |
Graph.forgetObject(GraphObject go)
Removes object from this graph, removes it from the knowledge base and
logically garbages the object.
|
protected Shape |
GEdge.getObjectShapeForClipping(GraphObject go)
Determines the appropriate rectangle to use as object boundaries when
drawing edges
|
void |
Graph.insertInCharGerGraph(GraphObject go)
Attaches the given graph object to a CharGer graph, but doesn't do any
consistency check.
|
void |
Graph.insertObject(GraphObject go)
Inserts an object into the graph, proposing the target graph as its
owner.
|
boolean |
GraphObject.putInCorrectContext(Graph g,
GraphObject go) |
static boolean |
GraphObject.putInCorrectContext(Graph g,
GraphObject go,
Point2D.Double newPos)
Puts an object in its correct logical context, constrained to be nested
in graph g.
|
void |
Graph.removeFromGraph(GraphObject go)
Detaches the given graph object from a CharGer graph.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Graph.containsGraphObjects(ArrayList<GraphObject> graphobjects)
Determines whether every node in the list is contained in the
graph.
|
static boolean |
Graph.forceMoveGraphObjects(ArrayList<GraphObject> objectsToMove,
Point2D.Double delta)
Forces an un-verified move of all objects, with identical moves for all objects.
|
EditingChangeState |
Graph.moveGraphObjects(ArrayList<GraphObject> objectsToMove,
Point2D.Double delta)
Moves a set of objects on the canvas through a common x,y displacement.
|
Constructor and Description |
---|
Arrow(GraphObject FromOne,
GraphObject ToOne)
Instantiates a link arrow from one graph object to another.
|
Coref(GraphObject FromOne,
GraphObject ToOne)
Create a coref edge between two objects.
|
CustomEdge(GraphObject FromOne,
GraphObject ToOne) |
DeepIterator(Graph g,
GraphObject go) |
GEdge(GraphObject FromOne,
GraphObject ToOne)
Constructs a new GEdge with label "-" going from one object to another.
|
GenSpecLink(GraphObject FromOne,
GraphObject ToOne) |
GraphObjectIterator(Graph g,
GraphObject go,
GraphObject.Kind kind,
boolean isDeep)
Collect graph objects to form an iteration.
|
ShallowIterator(Graph g,
GraphObject go) |
Modifier and Type | Field and Description |
---|---|
(package private) GraphObject |
ColorPreviewPanel.dummy1 |
(package private) GraphObject |
ColorPreviewPanel.dummy2 |
(package private) GraphObject |
ColorPreviewPanel.samplego |
Modifier and Type | Method and Description |
---|---|
static ArrayList<GraphObject> |
CGUtil.sortObjects(ArrayList<GraphObject> list)
Gather together all the selected nodes, edges and graphs into a list.
|
Modifier and Type | Method and Description |
---|---|
static ArrayList<GraphObject> |
CGUtil.sortObjects(ArrayList<GraphObject> list)
Gather together all the selected nodes, edges and graphs into a list.
|
Modifier and Type | Method and Description |
---|---|
static ArrayList |
ConceptManager.getAll(GraphObject pattern)
Finds all instances of the given kind of object in all available graphs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TypeHierarchy.removeSuperTypeFromType(GraphObject supertypeObject,
GraphObject subtypeObject)
Removes the super/sub type relationship between the nodes.
|