public class RelationLabel extends GNode
GraphObject.Kind, GraphObject.ObjectIDComparatorborderOutlineWidth, dashpattern, descriptors, mark, myedges, showBoringDebugInfoFont, typeLabelbackColor, defaultDim, defaultSelectColor, defaultWrapColumns, defaultWrapLabels, displayRect3D, foreColor, highlightColor, history, isSelected, labelFont, myKind, objectID, objectMargin, ownerGraph, TerritorialLimit, textLabel, textLabelLowerLeftPt| Constructor and Description |
|---|
RelationLabel()
Instantiates a relation type with default label "link".
|
RelationLabel(String label)
Instantiates a relation type with the given label.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
commitToKnowledgeBase(KnowledgeBase kb)
Perform whatever activities are required for this concept to be committed to a knowledge base.
|
void |
draw(Graphics2D g,
boolean printing)
Handles generic drawing for all nodes, and usually invokes the node's
class method "draw"
|
Shape |
getShape()
Obtain the Shape object that represents the selectable region of this
object.
|
private void |
init(String label) |
void |
setTextLabel(String label)
Sets the text label of this relation.
|
boolean |
UnCommitFromKnowledgeBase(KnowledgeBase kb)
Perform whatever activities are required for this concept to be committed to a knowledge base.
|
abandonObject, adjustEdges, attachGEdge, CGIFStringGNodeEdges, clearDescriptors, deleteGEdge, drawActivated, drawBorder, drawDebuggingInfo, finalize, getDisplayRect, getEdges, getLinkedNodes, getLinkedNodes, getSize, getTypeDescriptor, getTypeDescriptors, getTypeLabel, isActive, isChanged, setActive, setCenter, setCenter, setChanged, setTypeDescriptor, setTypeDescriptors, setTypeLabel, setTypeLabeladdHistoryRecord, adjustCustomDisplayRect, findDominantContext, forceMove, forgetObject, getBestFontMetrics, getCenter, getColor, getDepth, getDim, getDisplayRect3D, getHistory, getLabelFont, getMinimumContentSize, getObjectLocator, getOutermostGraph, getOwnerFrame, getOwnerGraph, getShapeForDrawing, getTextLabel, getTextLabelSize, getUpperLeft, getWrapColumns, getWrapLabels, isNegated, isNegativelyNested, listToString, listToStringXML, putInCorrectContext, putInCorrectContext, resizeIfNecessary, resizeIfNecessary, selfCleanup, setBackground, setCenterOnly, setColor, setColor, setDepth, setDim, setDim, setDisplayRect, setDisplayRect, setDisplayRect3D, setForeground, setLabelFont, setNegated, setOwnerGraph, setTextLabel, setTextLabel, setUpperLeft, setUpperLeft, toString, unCommitFromKnowledgeBasepublic RelationLabel()
public RelationLabel(String label)
label - the relation label's string valueprivate void init(String label)
public Shape getShape()
GraphObjectgetShape in class GraphObjectGraphObject.getShape()public void draw(Graphics2D g,
boolean printing)
GNodepublic void setTextLabel(String label)
setTextLabel in class GraphObjectlabel - new text label (erases the old text label)public boolean commitToKnowledgeBase(KnowledgeBase kb)
commitToKnowledgeBase in class GraphObjectkb - public boolean UnCommitFromKnowledgeBase(KnowledgeBase kb)
kb -