Class Topic
public class Topic extends Element
Represents a topic/"bubble" in the
MindMap
.-
Nested Class Summary
Nested classes/interfaces inherited from class rs.edu.raf.dsw.rudok.app.repository.IMapNode
IMapNode.Message
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Connection
connect(Topic target)
Map<Topic,Connection>
getConnections()
int
getHeight()
int
getWidth()
int
getX()
int
getY()
boolean
isSelected()
void
receive(Object message)
Receive data update from publisher.void
setHeight(int height)
void
setSelected(boolean selected)
void
setWidth(int width)
void
setX(int x)
void
setY(int y)
Methods inherited from class rs.edu.raf.dsw.rudok.app.repository.Element
addParent, getColor, getStroke, setColor, setParents, setStroke
Methods inherited from class rs.edu.raf.dsw.rudok.app.repository.IMapNode
getNodeName, getParents, removeParent, setNodeName, toString
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisher
addObserver, getObservers, publish, removeObserver, setObservers
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
addObserverGlobal, getObserversGlobal, removeObserverGlobal
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, removePublisher, setPublishers
-
Constructor Details
-
Topic
-
-
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
- Parameters:
target
-Topic
to connect to.- Returns:
Connection
.
-
getConnections
-
receive
Description copied from class:IObserver
Receive data update from publisher. Default implementation, should be overridden.
-