edu.psu.geovista.app.spacefill
Class SpaceFillCanvas

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byedu.psu.geovista.app.spacefill.SpaceFillCanvas
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, edu.psu.geovista.ui.event.SelectionListener, java.io.Serializable
Direct Known Subclasses:
SpaceFillMatrixElement

public class SpaceFillCanvas
extends javax.swing.JPanel
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.ComponentListener, edu.psu.geovista.ui.event.SelectionListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
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
static java.lang.String COMMAND_COLOR_CLASSFICIATION
           
static java.lang.String COMMAND_SELECTION
           
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SpaceFillCanvas()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          adds an ActionListener to the component
 void addIndicationListener(edu.psu.geovista.ui.event.IndicationListener l)
          adds an IndicationListener to the component
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 void fireActionPerformed(java.lang.String command)
          Notify all listeners that have registered interest for notification on this event type.
 void fireIndicationChanged(int indication)
          Notify all listeners that have registered interest for notification on this event type.
 edu.psu.geovista.symbolization.BivariateColorSymbolClassification getBivarColorClasser()
           
 java.awt.Color getColorIndication()
           
 java.awt.Color getColorNotInStudyArea()
           
 java.awt.Color getColorNull()
           
 java.awt.Color getColorOutOfFocus()
           
 java.awt.Color[] getColors()
           
 java.awt.Color getColorSelection()
           
 int getCurrColorColumn()
           
 int getCurrOrderColumn()
           
 java.lang.Object[] getData()
           
 int getFillOrder()
           
 int getIndication()
           
 java.lang.String[] getObservationNames()
           
 java.awt.image.BufferedImage getPixelBuff()
           
 java.util.Vector getSelectedObservations()
           
 int[] getSelectedObservationsInt()
           
 int[] getSelections()
           
 boolean getSelOriginalColorMode()
           
 boolean getUseDrawingShapes()
           
 java.lang.String[] getVariableNames()
           
 void makeGeographicShapes(java.awt.Shape[] originalShapes)
           
 void mouseClicked(java.awt.event.MouseEvent e)
          noop
 void mouseDragged(java.awt.event.MouseEvent e)
          Draws a bounding box for selection.
 void mouseEntered(java.awt.event.MouseEvent e)
          makes crosshair cursor
 void mouseExited(java.awt.event.MouseEvent e)
          resets cursor
 void mouseMoved(java.awt.event.MouseEvent e)
          Activates a tool tip.
 void mousePressed(java.awt.event.MouseEvent e)
          Inits selection bounding box.
 void mouseReleased(java.awt.event.MouseEvent e)
          Makes selection.
 void paintBuffer()
          This method reconstructs the contents of the drawingBuff.
 void paintComponent(java.awt.Graphics g)
          This method only paints the current contents of the drawingBuff.
 void remakeDrawingBuff()
           
 void removeActionListener(java.awt.event.ActionListener l)
          removes an ActionListener from the component
 void removeIndicationListener(edu.psu.geovista.ui.event.IndicationListener l)
          removes an IndicationListener from the component
 void selectionChanged(edu.psu.geovista.ui.event.SelectionEvent e)
           
 void setBackground(java.awt.Color c)
           
 void setBivarColorClasser(edu.psu.geovista.symbolization.BivariateColorSymbolClassification bivarColorClasser, boolean reverseColor)
           
 void setColorIndication(java.awt.Color colorIndication)
           
 void setColorNotInStudyArea(java.awt.Color colorNotInStudyArea)
           
 void setColorNull(java.awt.Color colorNull)
           
 void setColorOutOfFocus(java.awt.Color colorOutOfFocus)
           
 void setColors(java.awt.Color[] colors)
           
 void setColorSelection(java.awt.Color colorSelection)
           
 void setColorSymbolizer(edu.psu.geovista.symbolization.ColorSymbolClassification colorSymbolizer)
           
 void setConditionArray(int[] conditionArray)
           
 void setCurrColorColumn(int currColorColumn)
           
 void setCurrOrderColumn(int currOrderColumn)
           
 void setData(java.lang.Object[] dataIn)
           
 void setFillOrder(int fillOrder)
           
 void setIndication(int indication)
           
 void setObservationNames(java.lang.String[] observationNames)
           
 void setPixelBuff(java.awt.image.BufferedImage pixelBuff)
           
 void setSelectedObservations(java.util.Vector selectedObservations)
           
 void setSelectedObservationsInt(int[] selectedObservations)
           
 void setSelections(int[] selections)
           
 void setSelOriginalColorMode(boolean selOriginalColorMode)
           
 void setUseDrawingShapes(boolean useDrawingShapes)
           
 void setVariableNames(java.lang.String[] variableNames)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, 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, 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, addImpl, 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, 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
 

Field Detail

COMMAND_SELECTION

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

COMMAND_COLOR_CLASSFICIATION

public static final java.lang.String COMMAND_COLOR_CLASSFICIATION
See Also:
Constant Field Values
Constructor Detail

SpaceFillCanvas

public SpaceFillCanvas()
Method Detail

makeGeographicShapes

public void makeGeographicShapes(java.awt.Shape[] originalShapes)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Draws a bounding box for selection.

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

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Activates a tool tip.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
e -

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Inits selection bounding box.

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

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Makes selection.

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

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
makes crosshair cursor

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

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
resets cursor

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

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
noop

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

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

selectionChanged

public void selectionChanged(edu.psu.geovista.ui.event.SelectionEvent e)
Specified by:
selectionChanged in interface edu.psu.geovista.ui.event.SelectionListener

remakeDrawingBuff

public void remakeDrawingBuff()

setBackground

public void setBackground(java.awt.Color c)

setBivarColorClasser

public void setBivarColorClasser(edu.psu.geovista.symbolization.BivariateColorSymbolClassification bivarColorClasser,
                                 boolean reverseColor)

getBivarColorClasser

public edu.psu.geovista.symbolization.BivariateColorSymbolClassification getBivarColorClasser()

setColorSymbolizer

public void setColorSymbolizer(edu.psu.geovista.symbolization.ColorSymbolClassification colorSymbolizer)

setData

public void setData(java.lang.Object[] dataIn)

getData

public java.lang.Object[] getData()

setPixelBuff

public void setPixelBuff(java.awt.image.BufferedImage pixelBuff)

getPixelBuff

public java.awt.image.BufferedImage getPixelBuff()

setCurrOrderColumn

public void setCurrOrderColumn(int currOrderColumn)

getCurrOrderColumn

public int getCurrOrderColumn()

setCurrColorColumn

public void setCurrColorColumn(int currColorColumn)

getCurrColorColumn

public int getCurrColorColumn()

setColorSelection

public void setColorSelection(java.awt.Color colorSelection)

getColorSelection

public java.awt.Color getColorSelection()

getSelOriginalColorMode

public boolean getSelOriginalColorMode()

setSelOriginalColorMode

public void setSelOriginalColorMode(boolean selOriginalColorMode)

setColorIndication

public void setColorIndication(java.awt.Color colorIndication)

getColorIndication

public java.awt.Color getColorIndication()

setIndication

public void setIndication(int indication)

getIndication

public int getIndication()

setColorNull

public void setColorNull(java.awt.Color colorNull)

getColorNull

public java.awt.Color getColorNull()

setColorOutOfFocus

public void setColorOutOfFocus(java.awt.Color colorOutOfFocus)

getColorOutOfFocus

public java.awt.Color getColorOutOfFocus()

setColorNotInStudyArea

public void setColorNotInStudyArea(java.awt.Color colorNotInStudyArea)

getColorNotInStudyArea

public java.awt.Color getColorNotInStudyArea()

setVariableNames

public void setVariableNames(java.lang.String[] variableNames)

getVariableNames

public java.lang.String[] getVariableNames()

setConditionArray

public void setConditionArray(int[] conditionArray)

setSelectedObservations

public void setSelectedObservations(java.util.Vector selectedObservations)

setSelections

public void setSelections(int[] selections)

getSelections

public int[] getSelections()

getSelectedObservations

public java.util.Vector getSelectedObservations()

setSelectedObservationsInt

public void setSelectedObservationsInt(int[] selectedObservations)

getSelectedObservationsInt

public int[] getSelectedObservationsInt()

setFillOrder

public void setFillOrder(int fillOrder)

getFillOrder

public int getFillOrder()

setColors

public void setColors(java.awt.Color[] colors)

getColors

public java.awt.Color[] getColors()

setObservationNames

public void setObservationNames(java.lang.String[] observationNames)

getObservationNames

public java.lang.String[] getObservationNames()

setUseDrawingShapes

public void setUseDrawingShapes(boolean useDrawingShapes)

getUseDrawingShapes

public boolean getUseDrawingShapes()

paintBuffer

public void paintBuffer()
This method reconstructs the contents of the drawingBuff.


paintComponent

public void paintComponent(java.awt.Graphics g)
This method only paints the current contents of the drawingBuff.

Parameters:
g -

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
adds an ActionListener to the component


removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
removes an ActionListener from the component


fireActionPerformed

public void fireActionPerformed(java.lang.String command)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList

addIndicationListener

public void addIndicationListener(edu.psu.geovista.ui.event.IndicationListener l)
adds an IndicationListener to the component


removeIndicationListener

public void removeIndicationListener(edu.psu.geovista.ui.event.IndicationListener l)
removes an IndicationListener from the component


fireIndicationChanged

public void fireIndicationChanged(int indication)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList


Copyright © 1996-2003 GeoVista Center. All Rights Reserved.