|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.ceryle.graph.GraphLayoutPanel
org.ceryle.graph.tm.TMLayoutPanel
org.ceryle.ui.graph.EditorLayoutPanel
public class EditorLayoutPanel
Extends TMLayoutPanel as an editing panel for visualized Topic Map objects. This allows presetting and limiting various features as appropriate to its editor functionality. This includes a built-in prototype graph whose features can be directly set, and also disables many of the "normal" navigation and editing listeners, since they aren't necessary in the editor.
| Nested Class Summary | |
|---|---|
protected class |
EditorLayoutPanel.EANode
|
class |
EditorLayoutPanel.EditorNavigateUI
Inner class EditorNavigateUI extends the GraphNavigateUI to provide minimal support for the Association Editor. |
protected class |
EditorLayoutPanel.ETNode
|
| Nested classes/interfaces inherited from class org.ceryle.graph.tm.TMLayoutPanel |
|---|
TMLayoutPanel.LocalityAdjustmentListener, TMLayoutPanel.TopicViewer |
| Nested classes/interfaces inherited from class org.ceryle.graph.GraphLayoutPanel |
|---|
GraphLayoutPanel.ButtonListener |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
ASSOC_TYPE
|
static String[] |
COMP_ID
|
ANode |
e_anode
|
GraphEdge |
e_edge_LA
|
GraphEdge |
e_edge_RA
|
TNode |
e_tnode_L
|
TNode |
e_tnode_R
|
TNode |
e_tnode_rL
|
TNode |
e_tnode_rR
|
static int |
INFO_DISPLAY
|
static int |
LEFT_PLAYER
|
static int |
LEFT_ROLE
|
static int |
RIGHT_PLAYER
|
static int |
RIGHT_ROLE
|
| Fields inherited from class org.ceryle.graph.tm.TMLayoutPanel |
|---|
anodes, btn_closeLeg, colorizeByDistance, defaultOntology, dirtyEvent, enableMakeConsistent, favInTransition, findTopicDlog, listenerList, m_aedlog, m_canEdit, m_clut, m_dirty, m_favorites, m_favoritesBox, m_legend, m_maxListSize, m_tmSysIDs, m_topicmaps, m_xidTxferHandler, maps, MIDDLE_ONTOLOGY, MINIMAL_ONTOLOGY, NO_BASE_ONTOLOGY, onodes, ovViewMode, rnodes, showAssociations, showEdges, showOccurrences, snodes, tedlog, tmlp, tmpedit, tmproc, tmviz, tnodes, UPPER_ONTOLOGY, useDragAndDrop |
| Fields inherited from class org.ceryle.graph.GraphLayoutPanel |
|---|
btn_hyper, btn_infinity, btn_locality, btn_rotate, btn_sequence, btn_zoom, DEFAULT_HYPERBOLIC, DEFAULT_LOCALITY, DEFAULT_SEQUENCE, defaultColor, editUI, gp, gPopupMenu, hvScroll, HYPER_SCROLL, hyperSB, hyperScroll, includeEdit, INFINITE_LOCALITY, lastClick, LOCALITY_SCROLL, localitySB, localityScroll, m_desktop, m_graphContainer, m_legendPanel, m_localityEnabled, m_mouseWheelListener, m_selectedSB, m_verbose, m_view, MAXIMUM_LOCALITY, mh, modeSelect, navigateUI, pm, popPanel, ROTATE_SCROLL, rotateSB, rotateScroll, scrollPanel, SEQUENCE_SCROLL, sequenceSB, sequenceScroll, srvs, tgLensSet, tgUIManager, UI_EDIT, UI_NAVIGATE, UI_ROTATEDRAG, zero, ZOOM_SCROLL, zoomSB, zoomScroll |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
EditorLayoutPanel(AssociationEditorDialog parent)
Constructor with a parent panel, whose visibility is used to determine whether the auto-centering is active. |
|
| Method Summary | |
|---|---|
protected void |
addUIs()
Extends org.ceryle.graph.GraphNavigateUI to use a TMNavigateUI. |
void |
clear()
Generically relabels and clears the TopicMap content from the graph objects. |
protected void |
droppedOnBackground(Point p,
String uri)
Called as a result of a drag 'n drop process, in this class the message is trapped and does nothing. |
protected void |
droppedOnNode(TMNode node,
String uri)
Called as a result of a drag 'n drop process, alters the dropped-upon Topic or Association based on the dropped Topic. |
protected String |
getLabel_AssocType()
Returns the label of the Association Type node. |
protected String |
getLabel_PlayerLeft()
Returns the label of the Player Left node. |
protected String |
getLabel_PlayerRight()
Returns the label of the Player Right node. |
protected String |
getLabel_RoleLeft()
Returns the label of the Role Left node. |
protected String |
getLabel_RoleRight()
Returns the label of the Role Right node. |
int |
getNodeID(TMNode node)
Provided a node, returns its String identifier. |
protected void |
resetPrototype()
Resets the graph parameters. |
void |
setAssociationMode(boolean mode)
Sets the display mode of this panel. |
protected void |
setLabel_AssocType(String label)
Sets the label of the Association Type node to the value of label. |
protected void |
setLabel_PlayerLeft(String label,
Color color)
Sets the label of the Player Left node to the value of label. |
protected void |
setLabel_PlayerRight(String label,
Color color)
Sets the label of the Player Right node to the value of label. |
protected void |
setLabel_RoleLeft(String label)
Sets the label of the Role Left node to the value of label. |
protected void |
setLabel_RoleRight(String label)
Sets the label of the Role Right node to the value of label. |
void |
setSelected(String id)
Select the Node whose ID matches the parameter. |
void |
setTopicMap(TopicMap topicmap)
Sets the TopicMap of this TMLayoutPanel to the provided parameter. |
void |
setTopicMapProcessor(TopicMapProcessor tmprocessor)
Sets the TopicMapProcessor of this TMLayoutPanel to the provided parameter. |
void |
updatePrototypeFont()
Updates the font of the prototype graph based on the current GraphNode font size. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ASSOC_TYPE
public static final int LEFT_PLAYER
public static final int LEFT_ROLE
public static final int RIGHT_PLAYER
public static final int RIGHT_ROLE
public static final int INFO_DISPLAY
public static final String[] COMP_ID
public ANode e_anode
public TNode e_tnode_L
public TNode e_tnode_R
public TNode e_tnode_rL
public TNode e_tnode_rR
public GraphEdge e_edge_LA
public GraphEdge e_edge_RA
| Constructor Detail |
|---|
public EditorLayoutPanel(AssociationEditorDialog parent)
throws TopicMapException
TopicMapException| Method Detail |
|---|
public void setTopicMap(TopicMap topicmap)
public void setTopicMapProcessor(TopicMapProcessor&nb