Package jade.gui
Class AgentTree
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- jade.gui.AgentTree
-
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible
public class AgentTree extends JPanel
- Version:
- $Date$ $Revision$
- Author:
- Francisco Regi, Andrea Soracchi - Universita' di Parma
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAgentTree.AgentNodeInner class AgentNodeclassAgentTree.ContainerNodeInner class ContainerNodeclassAgentTree.LocalPlatformFolderNodeInner class localPlatformFolderNodeclassAgentTree.NodeInner class Node Common base class for all AgentTree nodesclassAgentTree.RemoteAgentNodeInner class RemoteAgentNodeclassAgentTree.RemotePlatformNodeInner class RemotePlatformNodeclassAgentTree.RemotePlatformsFolderNodeInner class RemotePlatformsFolderNodeclassAgentTree.SuperContainerInner class SuperContainer-
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static StringAGENT_TYPEstatic StringCONTAINER_TYPEstatic StringDAFAULT_LOCAL_PLATFORM_NAMEstatic StringFROZEN_AGENT_TYPEstatic StringFROZEN_AGENTS_FOLDER_NAMEstatic StringFROZEN_CONTAINER_TYPEstatic StringLOCAL_PLATFORM_TYPEstatic StringREMOTE_AGENT_TYPEstatic StringREMOTE_PLATFORM_TYPEstatic StringREMOTE_PLATFORMS_FOLDER_NAMEstatic StringREMOTE_PLATFORMS_FOLDER_TYPEJTreetreestatic StringTREE_ROOT_NAMEstatic StringTREE_ROOT_TYPE-
Fields inherited from class javax.swing.JComponent
listenerList, 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
accessibleContext, 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAgentNode(AgentTree.AgentNode node, String containerName, String agentName, String agentAddress, String agentType)Deprecated.Use addAgentNode(String, String, String) insteadvoidaddAgentNode(String agentName, String agentAddress, String containerName)voidaddAgentNode(String agentName, String agentAddress, String containerName, String agentState, String ownership)voidaddContainerNode(AgentTree.ContainerNode node, String typeContainer, InetAddress addr)Deprecated.Use addContainerNode(String, InetAddress) insteadvoidaddContainerNode(String containerName, InetAddress addr)voidaddRemoteAgentNode(AMSAgentDescription agent, String HAP)voidaddRemotePlatformNode(AID ams, APDescription desc)voidaddRemotePlatformsFolderNode()voidclearLocalPlatform()voidclearRemotePlatformAgents(String HAP)AgentTree.AgentNodecreateAgentNode(String name)AgentTree.ContainerNodecreateContainerNode(String name)AgentTree.NodecreateNewNode(String name, int i)Deprecated.Use createAgentNode() and createContainerNode() insteadvoidfreezeAgentNode(String oldContainerName, String newContainerName, String agentName)protected StringgetIconAgent(String key)AgentTreeModelgetModel()JPopupMenugetPopupMenu(String key)AgentTree.NodegetSelectedNode()voidmodifyAgentNode(String containerName, String agentName, String address, String state, String ownership)voidmoveAgentNode(String fromContainerName, String toContainerName, String agentName)voidrefreshLocalPlatformName(String newName)voidregister(String key, JPopupMenu popmenu, String pathImage)voidremoveAgentNode(String containerName, String agentName)voidremoveContainerNode(String nameNode)voidremoveRemotePlatformNode(String name)voidsetNewPopupMenu(String key, JPopupMenu pop)voidthawAgentNode(String oldContainerName, String newContainerName, String agentName)-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
TREE_ROOT_TYPE
public static final String TREE_ROOT_TYPE
- See Also:
- Constant Field Values
-
LOCAL_PLATFORM_TYPE
public static final String LOCAL_PLATFORM_TYPE
- See Also:
- Constant Field Values
-
AGENT_TYPE
public static final String AGENT_TYPE
- See Also:
- Constant Field Values
-
FROZEN_AGENT_TYPE
public static final String FROZEN_AGENT_TYPE
- See Also:
- Constant Field Values
-
CONTAINER_TYPE
public static final String CONTAINER_TYPE
- See Also:
- Constant Field Values
-
FROZEN_CONTAINER_TYPE
public static final String FROZEN_CONTAINER_TYPE
- See Also:
- Constant Field Values
-
REMOTE_PLATFORMS_FOLDER_TYPE
public static final String REMOTE_PLATFORMS_FOLDER_TYPE
- See Also:
- Constant Field Values
-
REMOTE_PLATFORM_TYPE
public static final String REMOTE_PLATFORM_TYPE
- See Also:
- Constant Field Values
-
REMOTE_AGENT_TYPE
public static final String REMOTE_AGENT_TYPE
- See Also:
- Constant Field Values
-
TREE_ROOT_NAME
public static final String TREE_ROOT_NAME
- See Also:
- Constant Field Values
-
DAFAULT_LOCAL_PLATFORM_NAME
public static final String DAFAULT_LOCAL_PLATFORM_NAME
- See Also:
- Constant Field Values
-
REMOTE_PLATFORMS_FOLDER_NAME
public static final String REMOTE_PLATFORMS_FOLDER_NAME
- See Also:
- Constant Field Values
-
FROZEN_AGENTS_FOLDER_NAME
public static final String FROZEN_AGENTS_FOLDER_NAME
- See Also:
- Constant Field Values
-
tree
public JTree tree
-
-
Constructor Detail
-
AgentTree
public AgentTree()
-
AgentTree
public AgentTree(Font f)
-
-
Method Detail
-
createAgentNode
public AgentTree.AgentNode createAgentNode(String name)
-
createContainerNode
public AgentTree.ContainerNode createContainerNode(String name)
-
createNewNode
public AgentTree.Node createNewNode(String name, int i)
Deprecated.Use createAgentNode() and createContainerNode() instead
-
refreshLocalPlatformName
public void refreshLocalPlatformName(String newName)
-
clearLocalPlatform
public void clearLocalPlatform()
-
addContainerNode
public void addContainerNode(String containerName, InetAddress addr)
-
addContainerNode
public void addContainerNode(AgentTree.ContainerNode node, String typeContainer, InetAddress addr)
Deprecated.Use addContainerNode(String, InetAddress) instead
-
removeContainerNode
public void removeContainerNode(String nameNode)
-
addRemotePlatformsFolderNode
public void addRemotePlatformsFolderNode()
-
addAgentNode
public void addAgentNode(String agentName, String agentAddress, String containerName, String agentState, String ownership)
-
addAgentNode
public void addAgentNode(AgentTree.AgentNode node, String containerName, String agentName, String agentAddress, String agentType)
Deprecated.Use addAgentNode(String, String, String) instead
-
modifyAgentNode
public void modifyAgentNode(String containerName, String agentName, String address, String state, String ownership)
-
moveAgentNode
public void moveAgentNode(String fromContainerName, String toContainerName, String agentName)
-
freezeAgentNode
public void freezeAgentNode(String oldContainerName, String newContainerName, String agentName)
-
thawAgentNode
public void thawAgentNode(String oldContainerName, String newContainerName, String agentName)
-
addRemotePlatformNode
public void addRemotePlatformNode(AID ams, APDescription desc)
-
removeRemotePlatformNode
public void removeRemotePlatformNode(String name)
-
addRemoteAgentNode
public void addRemoteAgentNode(AMSAgentDescription agent, String HAP)
-
clearRemotePlatformAgents
public void clearRemotePlatformAgents(String HAP)
-
getSelectedNode
public AgentTree.Node getSelectedNode()
-
getModel
public AgentTreeModel getModel()
-
register
public void register(String key, JPopupMenu popmenu, String pathImage)
-
getPopupMenu
public JPopupMenu getPopupMenu(String key)
-
setNewPopupMenu
public void setNewPopupMenu(String key, JPopupMenu pop)
-
-