|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
com.lizardtech.djview.Applet
public class Applet
A class for displaying djvu documents. Very simmular to the LizardTech DjVu plugin.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.applet.Applet |
|---|
java.applet.Applet.AccessibleApplet |
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
java.awt.Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
java.awt.CardLayout |
cardLayout
The cardlayout which displays either the image or the hidden text. |
protected Document |
document
The current document being displayed. |
protected boolean |
first
True until the first time the mouse is moved over the applet. |
static int |
FIT_PAGE
Magic scale value used to zoom to fit page. |
static int |
FIT_WIDTH
Magic scale value used to zoom to fit width. |
static java.lang.String |
IMAGE_STRING
Constant string indicating the image should be displayed. |
java.lang.String |
jarName
The jar file which we should run, if main is invoked. |
java.lang.String |
mainClass
The main class to use, if main is invoked and the jar file is not available. |
protected int |
scale
The current zoom factor. |
protected java.awt.Container |
scrollPane
This container will contain a scrollable DjVu Image |
static java.lang.String |
TEXT_STRING
Constant string indicating the hidden text should be displayed. |
protected java.net.URL |
url
The current URL being displayed. |
protected boolean |
useScrollPane
True if a scrollpane should be used. |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Applet()
Creates a new Applet object. |
|
| Method Summary | |
|---|---|
java.awt.CardLayout |
getCardLayout()
Query and/or create the cardlayout for displaying text or image. |
java.awt.Container |
getCenterPane()
Query and/or create the center pane. |
DjVuBean |
getDjVuBean()
Query and/or create the DjVuBean being displayed. |
java.lang.String[][] |
getParameterInfo()
Method to obtain an array of parameters accepted by this applet. |
java.awt.Component |
getScrollPane()
Query and/or create the component to use as scroll pane by the DjVuBean. |
java.awt.Component |
getSplitPane(java.awt.Component leftPane,
java.awt.Component centerPane)
Called to create a split pane for displaying outline navigation along side of the DjVuBean. |
java.net.URL |
getURL()
Query the URL displayed by this applet. |
void |
init()
Initialize the currently selected url, and render the first page of the document. |
boolean |
isValidDjVu()
Query if a DjVu document has been successfully initialized. |
static void |
main(java.lang.String[] args)
This applet may also be invoked as a program using javaw. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Called when a DjVuBean propery has changed. |
void |
run()
Perform regular garbage collection... |
void |
setURL(java.net.URL url)
Set the url to be rendered. |
| Methods inherited from class java.applet.Applet |
|---|
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FIT_WIDTH
public static final int FIT_PAGE
public static final java.lang.String IMAGE_STRING
public static final java.lang.String TEXT_STRING
public final java.lang.String jarName
public final java.lang.String mainClass
public java.awt.CardLayout cardLayout
protected java.awt.Container scrollPane
protected Document document
protected java.net.URL url
protected boolean first
protected boolean useScrollPane
protected int scale
| Constructor Detail |
|---|
public Applet()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Should contain the target URL to view.
public java.awt.CardLayout getCardLayout()
throws java.io.IOException
java.io.IOException - if an error occures decoding the document
public java.awt.Container getCenterPane()
throws java.io.IOException
java.io.IOException - if an error occures decoding the document
public DjVuBean getDjVuBean()
throws java.io.IOException
java.io.IOException - if an error occures decoding the documentpublic java.lang.String[][] getParameterInfo()
getParameterInfo in class java.applet.Applet
public java.awt.Component getScrollPane()
throws java.io.IOException
java.io.IOException - if an error occures decoding the document
public java.awt.Component getSplitPane(java.awt.Component leftPane,
java.awt.Component centerPane)
leftPane - outline navigation.centerPane - DjVuBean.
public void setURL(java.net.URL url)
url - to render.public java.net.URL getURL()
public boolean isValidDjVu()
public void init()
init in class java.applet.Appletpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerevent - describing the property change.public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||