org.alchemy.core
Class AlcCanvas

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.alchemy.core.AlcCanvas
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, jpen.event.PenListener, AlcConstants

public class AlcCanvas
extends javax.swing.JPanel
implements AlcConstants, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, jpen.event.PenListener, java.awt.print.Printable

The Alchemy canvas
Stores all shapes created and handles all graphics related stuff
Think saving pdfs, printing, and of course displaying!

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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.util.ArrayList<AlcShape> affectShapes
          Array list containing shapes currently in use by affect modules
 java.util.ArrayList<AlcShape> createShapes
          Array list containing shapes currently in use by create modules
 java.util.ArrayList<AlcShape> guideShapes
          Array list containing shapes used as visual guides - not actual geometry
 java.util.ArrayList<AlcShape> shapes
          Array list containing shapes that have been commited.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.alchemy.core.AlcConstants
COLOR_UI_BG, COLOR_UI_BOX, COLOR_UI_END, COLOR_UI_HIGHLIGHT, COLOR_UI_LINE, COLOR_UI_LINE_ALPHA, COLOR_UI_START, CURSOR_ARROW, CURSOR_BLANK, CURSOR_CIRCLE, CURSOR_CROSS, CURSOR_EYEDROPPER, CURSOR_HAND, CURSOR_MOVE, CURSOR_TEXT, CURSOR_WAIT, DIR_DESKTOP, DIR_HOME, DIR_SEPARATOR, DIR_TEMP, FONT_LARGE, FONT_LARGE_BOLD, FONT_MEDIUM, FONT_MEDIUM_BOLD, FONT_SMALL, FONT_SMALL_BOLD, FONT_SMALLER, JAVA_VERSION, JAVA_VERSION_NAME, KEY_MODIFIER, LOCALE, MATH_DEG_TO_RAD, MATH_HALF_PI, MATH_PI, MATH_QUARTER_PI, MATH_RAD_TO_DEG, MATH_THIRD_PI, MATH_TWO_PI, MODULE_AFFECT, MODULE_CREATE, OS_LINUX, OS_MAC, OS_NAME, OS_OTHER, OS_WINDOWS, PEN_CURSOR, PEN_ERASER, PEN_STYLUS, STYLE_BOTH, STYLE_CLIP, STYLE_FILL, STYLE_STROKE, TOOLKIT, USER_NAME
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 void clear()
          Clear all shapes and then redraws the canvas
 void commitAffectShapes()
          Commit all affect shapes to the main shapes array
 void commitCreateShapes()
          Commit all create shapes to the main shapes array
 void commitShapes()
          Commit all shapes to the main shapes array and render the image buffer
 void forceRedraw()
          Force the canvas to redraw regardless of the current redraw setting
 int getAlpha()
          Get the current alpha value
 java.awt.Color getBackgroundColor()
          Get the background color
 java.awt.Color getColor()
          Get the current color
 AlcShape getCurrentAffectShape()
          Returns the most recently added affect shape
 AlcShape getCurrentCreateShape()
          Returns the most recently added create shape
 AlcShape getCurrentGuideShape()
          Returns the most recently added guide shape
 AlcShape getCurrentShape()
          Returns the most recently added shape
 java.awt.Color getForegroundColor()
          Get the current forground color This method returns the foreground color even if it is not currently active.
 java.awt.Image getImage()
          Get the current image
 java.awt.Point getImageLocation()
          Get the location where the image is displayed on the canvas
 float getLineWidth()
          Get the current line width
 java.awt.geom.Point2D.Float getPenLocation()
          Pen Location as a new Point2D.Float object.
 float getPenPressure()
          Get the pen pressure (if available)
 java.awt.geom.Point2D.Float getPenTilt()
          Pen Tilt if available
 int getPenType()
          The type of pen being used
 int getStyle()
          Get the current style
 boolean hasAffectShapes()
          Check if there are affectShapes available
 boolean hasCreateShapes()
          Check if there are createShapes available
 boolean hasShapes()
          Check if there are shapes available
 boolean isBackgroundColorActive()
          Whether the background is active or not
 boolean isImageDisplayEnabled()
          Check if image display is enabled
 boolean isImageSet()
          Check if an Image is defined or not
 boolean isMouseDown()
          Pen (or mouse) down or up
 boolean isPenDown()
          Pen (or mouse) down or up
 boolean isPenLocationChanged()
          Has the pen location changed - useful for filtering out repeats
 boolean isRecordIndicatorEnabled()
          Returns if the record indicator (used with session auto-saving) is enabled
 boolean isRedraw()
          Get the canvas redraw state
 void mouseClicked(java.awt.event.MouseEvent event)
           
 void mouseDragged(java.awt.event.MouseEvent event)
           
 void mouseEntered(java.awt.event.MouseEvent event)
           
 void mouseExited(java.awt.event.MouseEvent event)
           
 void mouseMoved(java.awt.event.MouseEvent event)
           
 void mousePressed(java.awt.event.MouseEvent event)
           
 void mouseReleased(java.awt.event.MouseEvent event)
           
 void paintComponent(java.awt.Graphics g)
          Bitmap Canvas Draws all current shapes on top of the buffered image
 void penButtonEvent(jpen.PButtonEvent arg0)
           
 void penKindEvent(jpen.PKindEvent ev)
           
 void penLevelEvent(jpen.PLevelEvent ev)
           
 void penScrollEvent(jpen.PScrollEvent arg0)
           
 void penTock(long arg0)
           
 int print(java.awt.Graphics g, java.awt.print.PageFormat format, int pageIndex)
          This is the method defined by the Printable interface.
 void redraw()
          Redraw the canvas
 void redraw(boolean fullRedraw)
          Redraw the canvas
 void removeCurrentAffectShape()
          Removes the most recently added affect shape
 void removeCurrentCreateShape()
          Removes the most recently added create shape
 void removeCurrentGuideShape()
          Removes the most recently added guide shape
 void removeCurrentShape()
          Removes the most recently added shape
 void resetImageLocation()
          Reset the image location back to zero
 void resizeCanvas(java.awt.Dimension windowSize)
          Resize the canvas - called when the window is resized
 void restoreCursor()
          Restore the cursor
 void setAffectEvents(boolean affectEvents)
          Turn on/off mouse/pen events being sent to affect modules
 void setAlpha(int alpha)
          Set the current alpha value
 void setBackgroundColor(java.awt.Color color)
          Set the background Color
 void setBackgroundColorActive(boolean backgroundActive)
          Set the background color to be active
 void setColor(java.awt.Color color)
          Set the current color
 void setCreateEvents(boolean createEvents)
          Turn on/off mouse/pen events being sent to create modules
 void setCurrentAffectShape(AlcShape shape)
          Sets the most recently added affect shape
 void setCurrentCreateShape(AlcShape shape)
          Sets the most recently added create shape
 void setCurrentGuideShape(AlcShape shape)
          Sets the most recently added guide shape
 void setCurrentShape(AlcShape shape)
          Sets the most recently added shape
 void setEvents(boolean events)
          Turn on/off mouse/pen events being sent to modules
 void setForegroundColor(java.awt.Color color)
          Set the foreground color
 void setImage(java.awt.image.BufferedImage image)
          Set the Image to be drawn on the canvas
 void setImageDisplay(boolean imageDisplay)
          Set image display to on or off
 void setImageLocation(int x, int y)
          Set the location for the image to be displayed on the canvas
 void setImageLocation(java.awt.Point p)
          Set the location for the image to be displayed on the canvas
 void setLineWidth(float lineWidth)
          Set the current line width
 void setRecordIndicator(boolean recordIndicator)
          Set the display of the record indicator (used with session auto-saving)
 void setRedraw(boolean redraw)
          Set the canvas redraw state
 void setStyle(int style)
          Set the current style
 void setTempCursor(java.awt.Cursor cursor)
          Set the cursor temporarily - can be restored with restoreCursor()
 void toggleStyle()
          Toggle the style between line and solid
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, 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

shapes

public java.util.ArrayList<AlcShape> shapes
Array list containing shapes that have been commited. Shapes in this list are generally rendered to the image buffer to improve performance


createShapes

public java.util.ArrayList<AlcShape> createShapes
Array list containing shapes currently in use by create modules


affectShapes

public java.util.ArrayList<AlcShape> affectShapes
Array list containing shapes currently in use by affect modules


guideShapes

public java.util.ArrayList<AlcShape> guideShapes
Array list containing shapes used as visual guides - not actual geometry

Method Detail

paintComponent

public void paintComponent(java.awt.Graphics g)
Bitmap Canvas Draws all current shapes on top of the buffered image

Overrides:
paintComponent in class javax.swing.JComponent
Parameters:
g - Graphics Object to draw on

redraw

public void redraw()
Redraw the canvas


redraw

public void redraw(boolean fullRedraw)
Redraw the canvas

Parameters:
fullRedraw - Specify if the full set of vector shapes should be redrawn or just add the new shape to the existing buffer image

forceRedraw

public void forceRedraw()
Force the canvas to redraw regardless of the current redraw setting


setRedraw

public void setRedraw(boolean redraw)
Set the canvas redraw state

Parameters:
redraw - Redraw state

isRedraw

public boolean isRedraw()
Get the canvas redraw state

Returns:
Redraw state on or off

setEvents

public void setEvents(boolean events)
Turn on/off mouse/pen events being sent to modules

Parameters:
events -

setCreateEvents

public void setCreateEvents(boolean createEvents)
Turn on/off mouse/pen events being sent to create modules

Parameters:
createEvents -

setAffectEvents

public void setAffectEvents(boolean affectEvents)
Turn on/off mouse/pen events being sent to affect modules

Parameters:
affectEvents -

isPenDown

public boolean isPenDown()
Pen (or mouse) down or up

Returns:
The state of the pen or mouse

isMouseDown

public boolean isMouseDown()
Pen (or mouse) down or up

Returns:
The state of the pen or mouse

getPenPressure

public float getPenPressure()
Get the pen pressure (if available)

Returns:

getPenTilt

public java.awt.geom.Point2D.Float getPenTilt()
Pen Tilt if available

Returns:
Point2D.Float with tilt information

getPenLocation

public java.awt.geom.Point2D.Float getPenLocation()
Pen Location as a new Point2D.Float object.
If a pen tablet is available, this method will return more accurate information on the pen location than the standard MouseEvent

Returns:
Point2D.Float with pen location information

isPenLocationChanged

public boolean isPenLocationChanged()
Has the pen location changed - useful for filtering out repeats

Returns:
Boolean indicating if the pen location has changed or not

getPenType

public int getPenType()
The type of pen being used

Returns:
AlcConstants.PEN_STYLUS, AlcConstants.PEN_ERASER, AlcConstants.PEN_CURSOR or ZERO for unknown

resizeCanvas

public void resizeCanvas(java.awt.Dimension windowSize)
Resize the canvas - called when the window is resized

Parameters:
windowSize - The new window size

clear

public void clear()
Clear all shapes and then redraws the canvas


setTempCursor

public void setTempCursor(java.awt.Cursor cursor)
Set the cursor temporarily - can be restored with restoreCursor()

Parameters:
cursor - New temp cursor

restoreCursor

public void restoreCursor()
Restore the cursor


commitShapes

public void commitShapes()
Commit all shapes to the main shapes array and render the image buffer


hasShapes

public boolean hasShapes()
Check if there are shapes available

Returns:
True if there are shapes available, else false

getCurrentShape

public AlcShape getCurrentShape()
Returns the most recently added shape

Returns:
The current shape

setCurrentShape

public void setCurrentShape(AlcShape shape)
Sets the most recently added shape

Parameters:
shape - (@link AlcShape} to become the current shape

removeCurrentShape

public void removeCurrentShape()
Removes the most recently added shape


hasCreateShapes

public boolean hasCreateShapes()
Check if there are createShapes available

Returns:
True if there are create shapes available, else false

getCurrentCreateShape

public AlcShape getCurrentCreateShape()
Returns the most recently added create shape

Returns:
The current create shape

setCurrentCreateShape

public void setCurrentCreateShape(AlcShape shape)
Sets the most recently added create shape

Parameters:
shape - (@link AlcShape} to become the current create shape

removeCurrentCreateShape

public void removeCurrentCreateShape()
Removes the most recently added create shape


commitCreateShapes

public void commitCreateShapes()
Commit all create shapes to the main shapes array


hasAffectShapes

public boolean hasAffectShapes()
Check if there are affectShapes available

Returns:
True if there are affect shapes available, else false

getCurrentAffectShape

public AlcShape getCurrentAffectShape()
Returns the most recently added affect shape

Returns:
The current create shape

setCurrentAffectShape

public void setCurrentAffectShape(AlcShape shape)
Sets the most recently added affect shape

Parameters:
shape - (@link AlcShape} to become the current affect shape

removeCurrentAffectShape

public void removeCurrentAffectShape()
Removes the most recently added affect shape


commitAffectShapes

public void commitAffectShapes()
Commit all affect shapes to the main shapes array


getCurrentGuideShape

public AlcShape getCurrentGuideShape()
Returns the most recently added guide shape

Returns:
The current guide shape

setCurrentGuideShape

public void setCurrentGuideShape(AlcShape shape)
Sets the most recently added guide shape

Parameters:
shape - Shape to become the current guide shape

removeCurrentGuideShape

public void removeCurrentGuideShape()
Removes the most recently added guide shape


getColor

public java.awt.Color getColor()
Get the current color

Returns:
The current color

setColor

public void setColor(java.awt.Color color)
Set the current color

Parameters:
color -

isBackgroundColorActive

public boolean isBackgroundColorActive()
Whether the background is active or not

Returns:
State of the background

setBackgroundColorActive

public void setBackgroundColorActive(boolean backgroundActive)
Set the background color to be active

Parameters:
backgroundActive -

getBackgroundColor

public java.awt.Color getBackgroundColor()
Get the background color

Returns:
Color object of the background color

setBackgroundColor

public void setBackgroundColor(java.awt.Color color)
Set the background Color

Parameters:
color -

getForegroundColor

public java.awt.Color getForegroundColor()
Get the current forground color This method returns the foreground color even if it is not currently active. E.g. The active color is the background color

Returns:

setForegroundColor

public void setForegroundColor(java.awt.Color color)
Set the foreground color

Parameters:
color -

getAlpha

public int getAlpha()
Get the current alpha value

Returns:

setAlpha

public void setAlpha(int alpha)
Set the current alpha value

Parameters:
alpha -

getStyle

public int getStyle()
Get the current style

Returns:

setStyle

public void setStyle(int style)
Set the current style

Parameters:
style -

toggleStyle

public void toggleStyle()
Toggle the style between line and solid


getLineWidth

public float getLineWidth()
Get the current line width

Returns:

setLineWidth

public void setLineWidth(float lineWidth)
Set the current line width

Parameters:
lineWidth -

isRecordIndicatorEnabled

public boolean isRecordIndicatorEnabled()
Returns if the record indicator (used with session auto-saving) is enabled

Returns:

setRecordIndicator

public void setRecordIndicator(boolean recordIndicator)
Set the display of the record indicator (used with session auto-saving)

Parameters:
recordIndicator - On or off

setImage

public void setImage(java.awt.image.BufferedImage image)
Set the Image to be drawn on the canvas

Parameters:
image - Image to be drawn

getImage

public java.awt.Image getImage()
Get the current image

Returns:
The current image

isImageSet

public boolean isImageSet()
Check if an Image is defined or not

Returns:
Image display on or off

setImageDisplay

public void setImageDisplay(boolean imageDisplay)
Set image display to on or off

Parameters:
imageDisplay - Image display on or off

isImageDisplayEnabled

public boolean isImageDisplayEnabled()
Check if image display is enabled

Returns:

setImageLocation

public void setImageLocation(java.awt.Point p)
Set the location for the image to be displayed on the canvas

Parameters:
p -

setImageLocation

public void setImageLocation(int x,
                             int y)
Set the location for the image to be displayed on the canvas

Parameters:
x -
y -

getImageLocation

public java.awt.Point getImageLocation()
Get the location where the image is displayed on the canvas

Returns:
Point - x & y location

resetImageLocation

public void resetImageLocation()
Reset the image location back to zero


print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat format,
                 int pageIndex)
          throws java.awt.print.PrinterException
This is the method defined by the Printable interface. It prints the canvas to the specified Graphics object, respecting the paper size and margins specified by the PageFormat. If the specified pdfReadPage number is not pdfReadPage 0, it returns a code saying that printing is complete. The method must be prepared to be called multiple times per printing request This code is based on code from the book Java Examples in a Nutshell, 2nd Edition. Copyright (c) 2000 David Flanagan.

Specified by:
print in interface java.awt.print.Printable
Parameters:
g -
format -
pageIndex -
Returns:
Throws:
java.awt.print.PrinterException

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent event)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent event)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent event)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

penKindEvent

public void penKindEvent(jpen.PKindEvent ev)
Specified by:
penKindEvent in interface jpen.event.PenListener

penLevelEvent

public void penLevelEvent(jpen.PLevelEvent ev)
Specified by:
penLevelEvent in interface jpen.event.PenListener

penButtonEvent

public void penButtonEvent(jpen.PButtonEvent arg0)
Specified by:
penButtonEvent in interface jpen.event.PenListener

penScrollEvent

public void penScrollEvent(jpen.PScrollEvent arg0)
Specified by:
penScrollEvent in interface jpen.event.PenListener

penTock

public void penTock(long arg0)
Specified by:
penTock in interface jpen.event.PenListener