synergynetframework.appsystem.contentsystem.items
Class DocViewer

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.DocViewer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IDocViewerImplementation, IFrameImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener
Direct Known Subclasses:
PDFViewer, PPTViewer

public class DocViewer
extends Frame
implements IDocViewerImplementation

The Class DocViewer.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Method Summary
 void changePage()
          Change page.
 void cursorClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor clicked.
 void cursorPressed(ContentItem item, long id, float x, float y, float pressure)
          Cursor pressed.
 void cursorReleased(ContentItem item, long id, float x, float y, float pressure)
          Cursor released.
 void firstPage()
          First page.
 int getCurrentPageIndex()
          Gets the current page index.
 int getPageCount()
          Gets the page count.
 void gotoPage(int pageIndex)
          Goto page.
 void lastPage()
          Last page.
 void nextPage()
          Next page.
 void previousPage()
          Previous page.
 void setPageCount(int pageCount)
          Sets the page count.
 
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, clone, 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, cursorDoubleClicked, cursorLongHeld, cursorRightClicked, enableMultiTouchElementListeners, fireCursorChanged, fireCursorClicked, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorPressed, fireCursorReleased, 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.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
 

Method Detail

changePage

public void changePage()
Description copied from interface: IDocViewerImplementation
Change page.

Specified by:
changePage in interface IDocViewerImplementation

cursorClicked

public void cursorClicked(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor clicked.

Specified by:
cursorClicked in interface ItemListener
Overrides:
cursorClicked in class OrthoContentItem
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorPressed

public void cursorPressed(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor pressed.

Specified by:
cursorPressed in interface ItemListener
Overrides:
cursorPressed in class OrthoContentItem
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorReleased

public void cursorReleased(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor released.

Specified by:
cursorReleased in interface ItemListener
Overrides:
cursorReleased in class OrthoContentItem
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

firstPage

public void firstPage()
First page.


getCurrentPageIndex

public int getCurrentPageIndex()
Gets the current page index.

Returns:
the current page index

getPageCount

public int getPageCount()
Gets the page count.

Returns:
the page count

gotoPage

public void gotoPage(int pageIndex)
Goto page.

Parameters:
pageIndex - the page index

lastPage

public void lastPage()
Last page.


nextPage

public void nextPage()
Next page.


previousPage

public void previousPage()
Previous page.


setPageCount

public void setPageCount(int pageCount)
Sets the page count.

Parameters:
pageCount - the new page count