Class ConnectionPainter
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.ConnectionPainter
public class ConnectionPainter 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 ConnectionPainter(Element element) -
Method Summary
Methods inherited from class rs.edu.raf.dsw.rudok.app.gui.swing.painter.ElementPainter
getElementMethods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisher
addObserver, getObservers, publish, removeObserver, setObserversMethods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
addObserverGlobal, getObserversGlobal, removeObserverGlobalMethods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, receive, removePublisher, setPublishers
-
Constructor Details
-
ConnectionPainter
-
-
Method Details
-
draw
Description copied from class:ElementPainter- Specified by:
drawin classElementPainter- Parameters:
g-Graphicscanvas to paint on.
-
elementAt
Description copied from class:ElementPainterReturns true if the element's shape includes the passedPoint.- Specified by:
elementAtin classElementPainter- Parameters:
p-Pointwhere the interaction happened.- Returns:
- True if the element was clicked, false otherwise.
-
getShape
Description copied from class:ElementPainterThe final paintedShape. May be null.- Specified by:
getShapein classElementPainter- Returns:
- The final painted
Shape. May be null.
-