Class ScriptPaint
- java.lang.Object
-
- org.rspeer.game.script.meta.paint.ScriptPaint
-
- All Implemented Interfaces:
BotMouseListener
public final class ScriptPaint extends Object implements BotMouseListener
-
-
Constructor Summary
Constructors Constructor Description ScriptPaint(Script script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmouseClicked(MouseEvent e)Invoked when the mouse button has been clicked (pressed and released) on the canvas.booleanmouseDragged(MouseEvent e)Invoked when a mouse button is pressed on the canvas and then dragged.booleanmouseEntered(MouseEvent e)Invoked when the mouse enters the canvas.booleanmouseExited(MouseEvent e)Invoked when the mouse exits the canvas.booleanmouseMoved(MouseEvent e)Invoked when the mouse cursor has been moved onto the canvas but no buttons have been pushed.booleanmousePressed(MouseEvent e)Invoked when a mouse button has been pressed on the canvas.booleanmouseReleased(MouseEvent e)Invoked when a mouse button has been released on the canvas.voidonRenderEvent(RenderEvent evt)voidonTickEvent(TickEvent evt)voidonTimelineEvent(PaintTimelineEvent event)voidsubscribe()voidunsubscribe()
-
-
-
Constructor Detail
-
ScriptPaint
public ScriptPaint(Script script)
-
-
Method Detail
-
onTickEvent
public void onTickEvent(TickEvent evt)
-
onRenderEvent
public void onRenderEvent(RenderEvent evt)
-
onTimelineEvent
public void onTimelineEvent(PaintTimelineEvent event)
-
mouseClicked
public boolean mouseClicked(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when the mouse button has been clicked (pressed and released) on the canvas.- Specified by:
mouseClickedin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
mousePressed
public boolean mousePressed(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when a mouse button has been pressed on the canvas.- Specified by:
mousePressedin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
mouseReleased
public boolean mouseReleased(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when a mouse button has been released on the canvas.- Specified by:
mouseReleasedin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
mouseDragged
public boolean mouseDragged(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when a mouse button is pressed on the canvas and then dragged.MOUSE_DRAGGEDevents will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).Due to platform-dependent Drag&Drop implementations,
MOUSE_DRAGGEDevents may not be delivered during a native Drag&Drop operation.- Specified by:
mouseDraggedin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
mouseEntered
public boolean mouseEntered(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when the mouse enters the canvas.- Specified by:
mouseEnteredin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
mouseExited
public boolean mouseExited(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when the mouse exits the canvas.- Specified by:
mouseExitedin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
mouseMoved
public boolean mouseMoved(MouseEvent e)
Description copied from interface:BotMouseListenerInvoked when the mouse cursor has been moved onto the canvas but no buttons have been pushed.- Specified by:
mouseMovedin interfaceBotMouseListener- Parameters:
e- the event to be processed- Returns:
- true to consume the event
-
subscribe
public void subscribe()
-
unsubscribe
public void unsubscribe()
-
-