public class Topic
extends Element
Represents a topic/"bubble" in the MindMap.
  • Constructor Details

    • Topic

      public Topic​(String nodeName, int stroke, String color, int x, int y, int w, int h)
  • Method Details

    • getWidth

      public int getWidth()
    • setWidth

      public void setWidth​(int width)
    • getHeight

      public int getHeight()
    • setHeight

      public void setHeight​(int height)
    • getX

      public int getX()
    • setX

      public void setX​(int x)
    • getY

      public int getY()
    • setY

      public void setY​(int y)
    • isSelected

      public boolean isSelected()
    • setSelected

      public void setSelected​(boolean selected)
    • connect

      public Connection connect​(Topic target)
      Connects this Topic to the passed Topic.
      Parameters:
      target - Topic to connect to.
      Returns:
      Connection.
    • getConnections

      public Map<Topic,​Connection> getConnections()
    • receive

      public void receive​(Object message)
      Description copied from class: IObserver
      Receive data update from publisher. Default implementation, should be overridden.
      Overrides:
      receive in class IMapNode
      Parameters:
      message - Data sent by publisher.