Class GMovable
- java.lang.Object
-
- edu.ubo.graphicLayer.GElement
-
- edu.ubo.graphicLayer.GBounded
-
- edu.ubo.graphicLayer.GRect
-
- edu.ubo.satellitebeacons.main.simulation.components.GMovable
-
- All Implemented Interfaces:
GContainer
- Direct Known Subclasses:
GBeacon
,GSatellite
public class GMovable extends GRect
Basic graphic element which represents a movable.- See Also:
GBeacon
,GSatellite
-
-
Constructor Summary
Constructors Constructor Description GMovable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(java.awt.Graphics2D g)
void
drawNothing(java.awt.Graphics2D g)
Draw none animationvoid
drawSyncAnim(java.awt.Graphics2D g)
Draw the synchronisation animation.void
onPositionChangedEvent(PositionChangedEvent event)
Position changed listener.void
onStartSync(StartSyncEvent event)
Synchronization between beacon and satellite is starting.void
onStopSync(StopSyncEvent event)
Synchronization between beacon and satellite is stopping.-
Methods inherited from class edu.ubo.graphicLayer.GRect
defaultBorderColor, defaultStroke, setBorderColor, setBorderWidth, setStroke, withBackground, withBorder, withoutBackground, withoutBorder
-
Methods inherited from class edu.ubo.graphicLayer.GBounded
addElement, addMouseListener, clear, dispatchMouseClicked, dispatchMouseEntered, dispatchMouseExited, dispatchMousePressed, dispatchMouseReleased, drawContents, getBounds, getDimension, getGlobalBounds, getGlobalPosition, getHeight, getPosition, getRawContents, getWidth, getX, getY, removeElement, setDimension, setHeight, setPosition, setWidth, setX, setY, translate, whenMouseClicked, whenMouseEntered, whenMouseExited, whenMousePressed, whenMouseReleased
-
Methods inherited from class edu.ubo.graphicLayer.GElement
defaultColor, getContainer, repaint, setColor, setContainer
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.ubo.graphicLayer.GContainer
repaint
-
-
-
-
Method Detail
-
onPositionChangedEvent
public void onPositionChangedEvent(PositionChangedEvent event)
Position changed listener.- Parameters:
event
-
-
onStartSync
public void onStartSync(StartSyncEvent event)
Synchronization between beacon and satellite is starting. Start the synchronization animation.- Parameters:
event
-
-
onStopSync
public void onStopSync(StopSyncEvent event)
Synchronization between beacon and satellite is stopping. Stop the synchronization animation.- Parameters:
event
-
-
drawSyncAnim
public void drawSyncAnim(java.awt.Graphics2D g)
Draw the synchronisation animation.- Parameters:
g
-- See Also:
draw
-
drawNothing
public void drawNothing(java.awt.Graphics2D g)
Draw none animation- Parameters:
g
-- See Also:
draw
-
-