synergynetframework.appsystem.contentsystem.items
Class SimpleButton

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.QuadContentItem
              extended by synergynetframework.appsystem.contentsystem.items.Frame
                  extended by synergynetframework.appsystem.contentsystem.items.TextLabel
                      extended by synergynetframework.appsystem.contentsystem.items.SimpleButton
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IFrameImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ISimpleButton, ITextLabelImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class SimpleButton
extends TextLabel
implements ItemListener, ISimpleButton

The Class SimpleButton.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class synergynetframework.appsystem.contentsystem.items.TextLabel
TextLabel.Alignment
 
Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
SimpleButton(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new simple button.
 
Method Summary
 void addButtonListener(SimpleButtonListener l)
          Adds the button listener.
 void fireButtonClicked(long id, float x, float y, float pressure)
          Fire button clicked.
 void fireButtonDragged(long id, float x, float y, float pressure)
          Fire button dragged.
 void fireButtonPressed(long id, float x, float y, float pressure)
          Fire button pressed.
 void fireButtonReleased(long id, float x, float y, float pressure)
          Fire button released.
 void fireCursorChanged(long id, float x, float y, float pressure)
          Fire cursor changed.
 void fireCursorClicked(long id, float x, float y, float pressure)
          Fire cursor clicked.
 void fireCursorPressed(long id, float x, float y, float pressure)
          Fire cursor pressed.
 void fireCursorReleased(long id, float x, float y, float pressure)
          Fire cursor released.
 void removeButtonListeners()
          Removes the button listeners.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.TextLabel
clone, getAlignment, getFont, getText, getTextColour, setAlignment, setFont, setText, setTextColour
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.Frame
drawImage, drawImage, flushGraphics, getGraphicsContext, getImageResources, getImages, removeAllImages, removeImage
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.QuadContentItem
addSizeChangeListener, getHeight, getWidth, isAutoFitSize, removeSizeChangeListener, setAutoFit, setAutoFitSize, setHeight, setWidth
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, compareTo, cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked, enableMultiTouchElementListeners, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorRightClicked, fireScreenCursorChanged, fireScreenCursorClicked, fireScreenCursorPressed, fireScreenCursorReleased, flick, getBringToTopListeners, getFlickDeceleration, getFlickListeners, getItemListeners, getLocation, getMaxScale, getMinScale, getOrder, getOrthoControlPointRotateTranslateScaleListeners, getOrthoSnapListeners, getParent, getScaleMotionDeceleration, getScaleMotionListeners, getSpinListeners, isBringToTopEnabled, isFlickable, isRotateTranslateScaleEnabled, isSingleTouchRotateTranslate, isSnapEnabled, itemBringToToped, itemFlicked, itemRotated, itemScaled, itemScaleMotioned, itemSnapped, itemSpun, itemTranslated, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeBringToTopListeners, removeFlickListeners, removeFlickListeners, removeItemListerner, removeItemListerners, removeOrthoControlPointRotateTranslateScaleListeners, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setScaleMotionListeners, setSingleTouchRotateTranslate, setSnapable, setSpinListeners, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.listener.ItemListener
cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.ITextLabelImplementation
getAlignment, setAlignment, setFont, setText, setTextColour
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IFrameImplementation
drawImage, drawImage, flushGraphics, getGraphicsContext, getImages, removeAllImages, removeImage
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IQuadContentItemImplementation
setAutoFitSize, setHeight, setWidth
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

SimpleButton

public SimpleButton(ContentSystem contentSystem,
                    java.lang.String name)
Instantiates a new simple button.

Parameters:
contentSystem - the content system
name - the name
Method Detail

addButtonListener

public void addButtonListener(SimpleButtonListener l)
Adds the button listener.

Parameters:
l - the l

fireButtonClicked

public void fireButtonClicked(long id,
                              float x,
                              float y,
                              float pressure)
Fire button clicked.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireButtonDragged

public void fireButtonDragged(long id,
                              float x,
                              float y,
                              float pressure)
Fire button dragged.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireButtonPressed

public void fireButtonPressed(long id,
                              float x,
                              float y,
                              float pressure)
Fire button pressed.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireButtonReleased

public void fireButtonReleased(long id,
                               float x,
                               float y,
                               float pressure)
Fire button released.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorChanged

public void fireCursorChanged(long id,
                              float x,
                              float y,
                              float pressure)
Description copied from class: OrthoContentItem
Fire cursor changed.

Overrides:
fireCursorChanged in class OrthoContentItem
Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorClicked

public void fireCursorClicked(long id,
                              float x,
                              float y,
                              float pressure)
Description copied from class: OrthoContentItem
Fire cursor clicked.

Overrides:
fireCursorClicked in class OrthoContentItem
Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorPressed

public void fireCursorPressed(long id,
                              float x,
                              float y,
                              float pressure)
Description copied from class: OrthoContentItem
Fire cursor pressed.

Overrides:
fireCursorPressed in class OrthoContentItem
Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorReleased

public void fireCursorReleased(long id,
                               float x,
                               float y,
                               float pressure)
Description copied from class: OrthoContentItem
Fire cursor released.

Overrides:
fireCursorReleased in class OrthoContentItem
Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

removeButtonListeners

public void removeButtonListeners()
Removes the button listeners.