askalon.graph.chartpack
Class Diagram3D

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JLayeredPane
                  extended byjavax.swing.JDesktopPane
                      extended byaskalon.graph.chartpack.Diagram
                          extended byaskalon.graph.chartpack.Diagram3D
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
Direct Known Subclasses:
MultipleSurfaceDiagram

public abstract class Diagram3D
extends Diagram
implements java.awt.event.MouseListener, java.awt.event.ActionListener

Copyright (c) 2002 Thomas Fahringer, Institute for Software Science, University of Vienna, Austria

We provide the ASKALON Visualization Diagramm Class Library (below described as ASKALON") on an AS IS basis, and do not warrant its validity or performance. We reserve the right to update, modify, or discontinue this software at any time. We shall have no obligation to supply such updates or modifications or any other form of support to you.

This license is for research uses. For such uses, there is no charge. We define "research use" to mean you may freely use it inside your organization for whatever purposes you see fit. But you may not re-distribute ASKALON or parts of ASKALON, in any form source or binary (including derivatives), electronic or otherwise, to any other organization or entity without our permission. (for other uses, please contact us at tf@par.univie.ac.at)

All warranties, including without limitation, any warranty of merchantability or fitness for a particular purpose, are hereby excluded.

By your use of ASKALON, you understand and agree that we (or any other person or entity with proprietary rights in ASKALON) are under no obligation to provide either maintenance services, update services, notices of latent defects, or correction of defects for ASKALON.

Even if advised of the possibility of such damages, under no circumstances shall we (or any other person or entity with proprietary rights in the software licensed hereunder) be liable to you or any third party for direct, indirect, or consequential damages of any character regardless of type of action, including, without limitation, loss of profits, loss of use, loss of good will, or computer failure or malfunction. You agree to indemnify us (and any other person or entity with proprietary rights in the software licensed hereunder) for any and all liability it may incur to third parties resulting from your use of ASKALON.


Abstract Diagram Class for 3D Diagrams: Provides basic functionality to draw a coordinate system or calculate the diagram area.

Version:
$Revision: 1.16 $ / $Date: 2004/03/24 08:25:52 $.
Author:
Sascha Nemecek/9825915.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JDesktopPane
javax.swing.JDesktopPane.AccessibleJDesktopPane
 
Nested classes inherited from class javax.swing.JLayeredPane
javax.swing.JLayeredPane.AccessibleJLayeredPane
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  double factZ
           
protected  boolean invertMouseX
           
protected  boolean invertMouseY
           
protected  double maxZ
           
protected  double maxZvalue
           
protected  double minZ
           
protected  double minZvalue
           
 int OFF_MASK_ROTATE
           
 int OFF_MASK_SCALE_XZ
           
 int OFF_MASK_SCALE_Y
           
 int OFF_MASK_ZOOM
           
 int ON_MASK_ROTATE
           
 int ON_MASK_SCALE_XZ
           
 int ON_MASK_SCALE_Y
           
 int ON_MASK_ZOOM
           
protected  Portal3D p3D
           
static java.lang.String PARAM_CAPTION_Z
           
protected  java.lang.String param_captionZ
           
static java.lang.String PARAM_INVERT_MOUSE_X
           
static java.lang.String PARAM_INVERT_MOUSE_Y
           
static java.lang.String PARAM_NUMBER_OF_FRACTION_DIGITS
           
static java.lang.String PARAM_NUMBER_OF_TICKS_Y
           
protected  int param_numberOfFractionDigits
           
protected  int param_numberOfTicksY
           
static java.lang.String PARAM_SHOW_GRID_X
           
static java.lang.String PARAM_SHOW_GRID_Y
           
static java.lang.String PARAM_SHOW_GRID_Z
           
static java.lang.String PARAM_SHOW_LABEL_X
           
static java.lang.String PARAM_SHOW_LABEL_Y
           
static java.lang.String PARAM_SHOW_LABEL_Z
           
protected  boolean param_showGridX
           
protected  boolean param_showGridY
           
protected  boolean param_showGridZ
           
protected  boolean param_showLabelX
           
protected  boolean param_showLabelY
           
protected  boolean param_showLabelZ
           
protected  double[] polZ
           
protected  Scene3D s3D
           
protected  java.util.List ticksX
           
protected  java.util.List ticksY
           
protected  java.util.List ticksZ
           
protected  double widthCaptionZ
           
 
Fields inherited from class askalon.graph.chartpack.Diagram
at, axisLabelLength, bottomBorder, buffImg, captionPadding, diagramLegend, diagramPanel, dut, factX, factY, fm, fontHeight, fontsize, g2, gbi, h, HALIGN_CENTER, HALIGN_LEFT, HALIGN_RIGHT, jPopupMenu, jTooltip, leftBorder, legendData, lnkData, lnkParameters, maxX, maxXvalue, maxY, maxYvalue, minX, minXvalue, minY, minYvalue, N, numberOfXLabels, numberOfYLabels, oldPaint, oldStroke, PARAM_ANTI_ALIASING, param_axisColor, param_bgColor, PARAM_CAPTION_X, PARAM_CAPTION_Y, param_captionX, param_captionY, PARAM_COLOR_AXES, PARAM_COLOR_BACKGROUND, PARAM_COLOR_DATA, PARAM_COLOR_GRAPH_BACKGROUND, PARAM_COLOR_TITLE, PARAM_COLORS, PARAM_CURRENT_DIAGRAM, param_datetime_format, PARAM_DATETIME_FORMAT, param_diagramTitle, PARAM_PADDING_X, PARAM_PADDING_Y, param_timebased, PARAM_TIMEBASED, PARAM_TITLE, param_titleColor, PARAM_TYPE, PARAM_UPDATE_RATE, parent, polX, polY, polygon, rightBorder, tempfact, topBorder, ttm, validMappers, VALIGN_BOTTOM, VALIGN_MIDDLE, VALIGN_TOP, values, w, widthCaptionX, widthCaptionY, widthTitle
 
Fields inherited from class javax.swing.JDesktopPane
LIVE_DRAG_MODE, OUTLINE_DRAG_MODE
 
Fields inherited from class javax.swing.JLayeredPane
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
 
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.Container
 
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
Diagram3D(javax.swing.JFrame parent, Data d, askalon.graph.chartpack.parameters.ParameterManager p, java.lang.String diagramtype, java.lang.String diagramname)
          Initializes the diagram.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Invoked when an action occurs.
 void addSetParameters()
          This method adds and sets the general diagram parameters.
 void beforePaint()
          Things to do befor we draw the diagram.
 void clear()
          Clears the diagrams data structure.
 void customDiagramPopupMenu(javax.swing.JPopupMenu jpm)
          In this method you can add custom popupmenuitems to the popup-menu.
 void dispose()
          Dispose this object and clean up.
protected  void drawCoordinateSystem()
          Overrides the 2D drawCoordinateSystem method which paints the 2D coordinate system, and paint a 3D coordinate system instead.
protected  void drawCoordinateSystem(boolean withXLabels, boolean withYLabels)
          Overrides the 2D drawCoordinateSystem method which paints the 2D coordinate system, and paint a 3D coordinate system instead.
protected  void drawCoordinateSystem(boolean withXLabels, boolean withYLabels, boolean withZLabels)
          Paints a 3D coordinate system.
abstract  double getRealMaxZvalue()
          Returns the real maximum Z value.
abstract  double getRealMinZvalue()
          Returns the real minimum Z value.
abstract  java.util.List getTicksX()
          Retrieves the x-axis ticks.
abstract  java.util.List getTicksY()
          Retrieves the y-axis ticks.
abstract  java.util.List getTicksZ()
          Retrieves the z-axis ticks.
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when the mouse button has been clicked (pressed and released) on a component.
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse exits a component.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void setView(int viewmode)
          Sets the position of the camera.
 
Methods inherited from class askalon.graph.chartpack.Diagram
addDataObject, afterPaint, calcDiagramArea, createDiagram, createMapper, drawArrow, drawString, drawString, getCurrentDiagram, getCustomLegendPopupMenu, getData, getDiagramPanel, getLegend, getLegendPanel, getNativeDataGeneratorThread, getNativeDataObject, getObserver, getParameterInt, getParameters, getRealMaxXvalue, getRealMaxYvalue, getRealMinXvalue, getRealMinYvalue, getResolutionX, getZoomX, getZoomY, initDataGeneratorParameters, isMapperValidated, openHelpWindow, openParameterEditor, paintComponent, paintDiagram, paintLegend, renderShape, setData, setMapper, start, start, start, stopUpdater, subClassFinder
 
Methods inherited from class javax.swing.JDesktopPane
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, isOpaque, paramString, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI
 
Methods inherited from class javax.swing.JLayeredPane
addImpl, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, remove, setLayer, setLayer, setPosition
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseMoved
 

Field Detail

widthCaptionZ

protected double widthCaptionZ

maxZ

protected double maxZ

minZ

protected double minZ

maxZvalue

protected double maxZvalue

factZ

protected double factZ

minZvalue

protected double minZvalue

polZ

protected double[] polZ

ticksX

protected java.util.List ticksX

ticksY

protected java.util.List ticksY

ticksZ

protected java.util.List ticksZ

p3D

protected Portal3D p3D

s3D

protected Scene3D s3D

invertMouseX

protected boolean invertMouseX

invertMouseY

protected boolean invertMouseY

param_showGridX

protected boolean param_showGridX

param_showGridY

protected boolean param_showGridY

param_showGridZ

protected boolean param_showGridZ

param_showLabelX

protected boolean param_showLabelX

param_showLabelY

protected boolean param_showLabelY

param_showLabelZ

protected boolean param_showLabelZ

param_numberOfFractionDigits

protected int param_numberOfFractionDigits

param_numberOfTicksY

protected int param_numberOfTicksY

param_captionZ

protected java.lang.String param_captionZ

PARAM_CAPTION_Z

public static final java.lang.String PARAM_CAPTION_Z
See Also:
Constant Field Values

PARAM_INVERT_MOUSE_X

public static final java.lang.String PARAM_INVERT_MOUSE_X
See Also:
Constant Field Values

PARAM_INVERT_MOUSE_Y

public static final java.lang.String PARAM_INVERT_MOUSE_Y
See Also:
Constant Field Values

PARAM_NUMBER_OF_FRACTION_DIGITS

public static final java.lang.String PARAM_NUMBER_OF_FRACTION_DIGITS
See Also:
Constant Field Values

PARAM_NUMBER_OF_TICKS_Y

public static final java.lang.String PARAM_NUMBER_OF_TICKS_Y
See Also:
Constant Field Values

PARAM_SHOW_GRID_X

public static final java.lang.String PARAM_SHOW_GRID_X
See Also:
Constant Field Values

PARAM_SHOW_GRID_Y

public static final java.lang.String PARAM_SHOW_GRID_Y
See Also:
Constant Field Values

PARAM_SHOW_GRID_Z

public static final java.lang.String PARAM_SHOW_GRID_Z
See Also:
Constant Field Values

PARAM_SHOW_LABEL_X

public static final java.lang.String PARAM_SHOW_LABEL_X
See Also:
Constant Field Values

PARAM_SHOW_LABEL_Y

public static final java.lang.String PARAM_SHOW_LABEL_Y
See Also:
Constant Field Values

PARAM_SHOW_LABEL_Z

public static final java.lang.String PARAM_SHOW_LABEL_Z
See Also:
Constant Field Values

ON_MASK_ROTATE

public final int ON_MASK_ROTATE
See Also:
Constant Field Values

ON_MASK_SCALE_XZ

public final int ON_MASK_SCALE_XZ
See Also:
Constant Field Values

ON_MASK_SCALE_Y

public final int ON_MASK_SCALE_Y
See Also:
Constant Field Values

ON_MASK_ZOOM

public final int ON_MASK_ZOOM
See Also:
Constant Field Values

OFF_MASK_ROTATE

public final int OFF_MASK_ROTATE
See Also:
Constant Field Values

OFF_MASK_SCALE_XZ

public final int OFF_MASK_SCALE_XZ
See Also:
Constant Field Values

OFF_MASK_SCALE_Y

public final int OFF_MASK_SCALE_Y
See Also:
Constant Field Values

OFF_MASK_ZOOM

public final int OFF_MASK_ZOOM
See Also:
Constant Field Values
Constructor Detail

Diagram3D

public Diagram3D(javax.swing.JFrame parent,
                 Data d,
                 askalon.graph.chartpack.parameters.ParameterManager p,
                 java.lang.String diagramtype,
                 java.lang.String diagramname)
Initializes the diagram. The following actions are performed: - register parameter type and initializes the parameters - initialize DataUpdateThread - register observers The diagram class observes the following observables: - the data instance - the diagram parameters in the parameter instance - the default parameters in the parameter instance

Parameters:
parent - The parent JFrame.
d - The data object. It contains the data to be displayed.
p - The parameter manager object. It's used to access the parameters.
diagramtype - The diagramtype given by the calling sub-class.
diagramname - The diagram's name (e.g. LinearChart).
Method Detail

getRealMaxZvalue

public abstract double getRealMaxZvalue()
Returns the real maximum Z value. "real" means that factors that change the size of the data value will be considered. This includes zoom factors, barwidth, ...

Returns:
The maximum Z value.

getRealMinZvalue

public abstract double getRealMinZvalue()
Returns the real minimum Z value. "real" means that factors that change the size of the data value will be considered. This includes zoom factors, barwidth, ...

Returns:
The minimum Z value.

getTicksX

public abstract java.util.List getTicksX()
Retrieves the x-axis ticks.

Returns:
The list of Doubles containing the x-axis ticks.

getTicksY

public abstract java.util.List getTicksY()
Retrieves the y-axis ticks.

Returns:
The list of Doubles containing the y-axis ticks.

getTicksZ

public abstract java.util.List getTicksZ()
Retrieves the z-axis ticks.

Returns:
The list of Doubles containing the z-axis ticks.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Invoked when an action occurs. (Implementation of ActionListener)

Specified by:
actionPerformed in interface java.awt.event.ActionListener

addSetParameters

public void addSetParameters()
This method adds and sets the general diagram parameters.

Overrides:
addSetParameters in class Diagram

beforePaint

public void beforePaint()
Things to do befor we draw the diagram.

Overrides:
beforePaint in class Diagram

clear

public void clear()
Clears the diagrams data structure.

Overrides:
clear in class Diagram

dispose

public void dispose()
Dispose this object and clean up.

Overrides:
dispose in class Diagram

customDiagramPopupMenu

public void customDiagramPopupMenu(javax.swing.JPopupMenu jpm)
In this method you can add custom popupmenuitems to the popup-menu.

Specified by:
customDiagramPopupMenu in class Diagram
Parameters:
jpm - The JPopupMenu.

drawCoordinateSystem

protected void drawCoordinateSystem()
Overrides the 2D drawCoordinateSystem method which paints the 2D coordinate system, and paint a 3D coordinate system instead. This method only exists to avoid conflicts and should not be used for real 3D diagrams! Paints the diagram with the default parameters: X-, Y- and Z-axis captions enabled.

Overrides:
drawCoordinateSystem in class Diagram

drawCoordinateSystem

protected void drawCoordinateSystem(boolean withXLabels,
                                    boolean withYLabels)
Overrides the 2D drawCoordinateSystem method which paints the 2D coordinate system, and paint a 3D coordinate system instead. The withZLables value is assumed to be enabled. This method only exists to avoid conflicts and should not be used for real 3D diagrams!

Overrides:
drawCoordinateSystem in class Diagram
Parameters:
withXLabels - With X-axis labels.
withYLabels - With Y-axis labels.

drawCoordinateSystem

protected void drawCoordinateSystem(boolean withXLabels,
                                    boolean withYLabels,
                                    boolean withZLabels)
Paints a 3D coordinate system.

Parameters:
withXLabels - With X-axis labels.
withYLabels - With Y-axis labels.
withZLabels - With Z-axis labels.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - The MouseEvent.

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
e - The Mouse Event.

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - The Mouse Event.

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - The Mouse Event.

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - The Mouse Event.

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - The Mouse Event.

setView

public void setView(int viewmode)
Sets the position of the camera.

Parameters:
viewmode - The position of the camera.