GraphObject.Kind, GraphObject.ObjectIDComparator| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
refDone
Whether the type and referent are current
|
(package private) Referent |
referent
The concepts' referent (possibly null)
|
static int |
TEXT_HEIGHT |
static int |
TEXT_WIDTH |
borderOutlineWidth, 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 |
|---|
Concept()
Instantiates a default concept with label "T".
|
| 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)
Draws a concept on the given graphics context.
|
protected void |
finalize() |
String |
getReferent()
Finds the referent part of this concept's text label.
|
Shape |
getShape()
Obtain the Shape object that represents the selectable region of this
object.
|
String |
getTypeLabel()
Get just the type label portion of the concept's text label.
|
void |
parseTextLabel()
Breaks up text label into its constituents, removes leading and trailing
spaces, and replaces all embedded spaces with underscore '_' characters.
|
void |
setReferent(String newref) |
void |
setReferent(String newref,
boolean changing)
Sets this concept's referent designator as a string.
|
void |
setTextLabel(String label)
Define a complete text label for the concept; type and referent are
extracted.
|
void |
setTypeLabel(String newlabel) |
void |
setTypeLabel(String newlabel,
boolean resize)
Define the type label for the concept.
|
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, getDisplayRect, getEdges, getLinkedNodes, getLinkedNodes, getSize, getTypeDescriptor, getTypeDescriptors, isActive, isChanged, setActive, setCenter, setCenter, setChanged, setTypeDescriptor, setTypeDescriptorsaddHistoryRecord, 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 static int TEXT_WIDTH
public static int TEXT_HEIGHT
Referent referent
boolean refDone
protected void finalize()
throws Throwable
public Shape getShape()
GraphObjectgetShape in class GraphObjectGraphObject.getShape()public void draw(Graphics2D g,
boolean printing)
public void parseTextLabel()
public String getTypeLabel()
getTypeLabel in class GNodepublic void setTextLabel(String label)
setTextLabel in class GraphObjectlabel - The new text label for the conceptpublic void setTypeLabel(String newlabel)
setTypeLabel in class GNodepublic void setTypeLabel(String newlabel,
boolean resize)
setTypeLabel in class GNodenewlabel - type label only.resize - whether to bother with adjusting the concept's size or not.public void setReferent(String newref)
public void setReferent(String newref,
boolean changing)
newref - the string for the new referentchanging - whether to look for changes in a referent; * if true then try resizing concept, etc. Need to
indicate whether the referent is changing; otherwise every setting of a
referent (including initial value setting) will force resizing, which may
not make sense if the concept doesn't even have a size yet.public String getReferent()
parseTextLabel()public boolean commitToKnowledgeBase(KnowledgeBase kb)
commitToKnowledgeBase in class GraphObjectkb - public boolean UnCommitFromKnowledgeBase(KnowledgeBase kb)
kb -