Class TopicPainter
java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
rs.edu.raf.dsw.rudok.app.observer.IPublisher
rs.edu.raf.dsw.rudok.app.gui.swing.painter.ElementPainter
rs.edu.raf.dsw.rudok.app.gui.swing.painter.TopicPainter
public class TopicPainter extends ElementPainter
-
Nested Class Summary
Nested classes/interfaces inherited from class rs.edu.raf.dsw.rudok.app.gui.swing.painter.ElementPainter
ElementPainter.Message
-
Constructor Summary
Constructors Constructor Description TopicPainter(Element element)
-
Method Summary
Methods inherited from class rs.edu.raf.dsw.rudok.app.gui.swing.painter.ElementPainter
getElement
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, receive, removePublisher, setPublishers
-
Constructor Details
-
TopicPainter
-
-
Method Details
-
draw
Description copied from class:ElementPainter
- Specified by:
draw
in classElementPainter
- Parameters:
g
-Graphics
canvas to paint on.
-
elementAt
Description copied from class:ElementPainter
Returns true if the element's shape includes the passedPoint
.- Specified by:
elementAt
in classElementPainter
- Parameters:
p
-Point
where the interaction happened.- Returns:
- True if the element was clicked, false otherwise.
-
getShape
Description copied from class:ElementPainter
The final paintedShape
. May be null.- Specified by:
getShape
in classElementPainter
- Returns:
- The final painted
Shape
. May be null.
-