Class NodeIcon

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class NodeIcon extends JComponent
See Also:
  • Field Details

    • boundingRect

      public Rectangle boundingRect
    • sourceHandleRect

      public Rectangle sourceHandleRect
    • destHandleRect

      public Rectangle destHandleRect
    • isSelected

      public boolean isSelected
    • isTarget

      public boolean isTarget
    • isGroupSelected

      public boolean isGroupSelected
    • source

      public NodeIcon source
    • sources

      public Vector sources
    • destinations

      public Vector destinations
    • destRouteAlgs

      public Vector destRouteAlgs
    • srcRouteAlgs

      public Vector srcRouteAlgs
    • routingLines

      public Vector routingLines
    • alarmed

      public boolean alarmed
    • started

      public boolean started
    • CC_ICON

      public static final String CC_ICON
      See Also:
    • EP_ICON

      public static final String EP_ICON
      See Also:
    • AP_ICON

      public static final String AP_ICON
      See Also:
    • DC_ICON

      public static final String DC_ICON
      See Also:
  • Constructor Details

    • NodeIcon

      public NodeIcon(com.nt.udc.admin.NodeInfo ni, Component containingComponent)
    • NodeIcon

      public NodeIcon(int x, int y, Image image, Component containingComponent)
  • Method Details

    • getShowRoutingLabels

      public boolean getShowRoutingLabels()
    • getShowNodeNames

      public boolean getShowNodeNames()
    • getShowNodeTypes

      public boolean getShowNodeTypes()
    • getShowNodeHosts

      public boolean getShowNodeHosts()
    • getShowHostIPAndPort

      public boolean getShowHostIPAndPort()
    • getShowAlarms

      public boolean getShowAlarms()
    • getShowState

      public boolean getShowState()
    • getShowNodeId

      public boolean getShowNodeId()
    • hasMoved

      public boolean hasMoved()
    • getNodeInfo

      public com.nt.udc.admin.NodeInfo getNodeInfo()
    • getRoutingLines

      public Vector getRoutingLines()
    • setShowRoutingLabels

      public void setShowRoutingLabels(boolean b)
    • setShowNodeNames

      public void setShowNodeNames(boolean b)
    • setShowNodeTypes

      public void setShowNodeTypes(boolean b)
    • setShowNodeHosts

      public void setShowNodeHosts(boolean b)
    • setShowHostIPAndPort

      public void setShowHostIPAndPort(boolean b)
    • setShowAlarms

      public void setShowAlarms(boolean b)
    • setShowState

      public void setShowState(boolean b)
    • setShowNodeId

      public void setShowNodeId(boolean b)
    • setMoved

      public void setMoved(boolean b)
    • setNodeInfo

      public void setNodeInfo(com.nt.udc.admin.NodeInfo ni)
    • isGhost

      public boolean isGhost()
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • setSource

      public void setSource(NodeIcon newSource)
    • addSource

      public void addSource(NodeIcon newSource)
    • addSource

      public void addSource(NodeIcon newSource, String routingAlgorithm)
    • removeSource

      public boolean removeSource(NodeIcon source)
    • addDestination

      public void addDestination(NodeIcon newDestination)
    • addDestination

      public void addDestination(NodeIcon newDestination, String routingAlgorithm)
    • setRoutingLine

      public void setRoutingLine(RoutingLine line)
    • removeDestination

      public boolean removeDestination(NodeIcon destination)
    • encloses

      public boolean encloses(int x, int y)
    • moveTo

      public void moveTo(int x, int y)
    • move

      public void move(int xOffset, int yOffset)
      Overrides:
      move in class Component
    • drawSelf

      public void drawSelf(Graphics gc, Color bgColor)
    • getSrcHandle

      public Rectangle getSrcHandle()
    • getDestHandle

      public Rectangle getDestHandle()
    • drawSelfLabel

      public void drawSelfLabel(Graphics gc)
    • drawLinesToDestinations

      public void drawLinesToDestinations(Graphics gc, Color bgColor)
    • drawLinesToSources

      public void drawLinesToSources(Graphics gc, Color bgColor)
    • eraseLineToDestination

      public void eraseLineToDestination(Graphics gc, Color bgColor, NodeIcon destination)
    • eraseLineToSource

      public void eraseLineToSource(Graphics gc, Color bgColor, NodeIcon source)
    • equals

      public boolean equals(NodeIcon compare)