Groovy Documentation

griffon.coverflow.ui
[Java] Class ImageFlow

java.lang.Object
  java.awt.Component
      java.awt.Container
          javax.swing.JComponent
              javax.swing.JPanel
                  griffon.coverflow.ui.ImageFlow

public class ImageFlow
extends JPanel

About this Code

The original code is from Romain Guy's example "A Music Shelf in Java2D". It can be found here:

http://www.curious-creature.org/2005/07/09/a-music-shelf-in-java2d/

Updated Code This code has been updated by Kevin Long (codebeach.com) to make it more generic and more component like.

History:

2/17/2008 --------- - Changed name of class to ImageFlow from CDShelf - Removed hard coded strings for labels and images - Removed requirement for images to be included in the jar - Support for non-square images - Support for loading images from thumbnails - External methods to set and get currently selected item - Added support for ListSelectionListener

2/9/2011 -------- - Removed fixed sizes - Fixed repaint behaviour when changing size

2/25/2011 -------- - Added listener to dataModel to repaint after a change

Authors:
Romain.Guy
Kevin.Long
Andres.Almiray
Alexander.Klein


Nested Class Summary
private class ImageFlow.AutoScroller

private class ImageFlow.CursorChanger

private class ImageFlow.DamageManager

private class ImageFlow.DrawableItem

private class ImageFlow.FaderAction

private class ImageFlow.FocusGrabber

private class ImageFlow.ItemScroller

private class ImageFlow.KeyItemSelector

private class ImageFlow.KeyScroller

private class ImageFlow.MouseItemSelector

private class ImageFlow.MouseWheelScroller

private class ImageFlow.RepaintListDataListener

 
Field Summary
private static double ANIM_SCROLL_DELAY

private float alphaLevel

private int amount

private ImageFlow.CursorChanger cursorChanger

private boolean damaged

private ListModel dataModel

private ImageFlow.DrawableItem[] drawableItems

private double exp_member

private double exp_multiplier

private Timer faderTimer

private ImageFlow.FocusGrabber focusGrabber

private CrystalCaseFactory fx

private Font itemFont

private int itemIndex

private double itemPosition

private ImageFlow.ItemScroller itemScroller

private double itemSpacing

private String itemText

private Color itemTextColor

private ImageFlow.KeyItemSelector keyItemSelector

private ImageFlow.KeyScroller keyScroller

private List listSelectionListeners

private ImageFlow.MouseItemSelector mouseItemSelector

private ImageFlow.RepaintListDataListener repaintListDataListener

private double rho

private Timer scrollerTimer

private double sigma

private float textAlphaLevel

private float veilAlphaLevel

private ImageFlow.MouseWheelScroller wheelScroller

 
Fields inherited from class JPanel
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Constructor Summary
ImageFlow()

Constructs a ImageFlow with an empty, mutable, model.

ImageFlow(ImageFlowItem[] listData)

Constructs a ImageFlow that displays the elements in the specified array.

ImageFlow(List listData)

Constructs a ImageFlow that displays the elements in the specified List.

ImageFlow(ListModel dataModel)

Constructs a ImageFlow that displays elements from the specified, non-null, model.

 
Method Summary
private void addInputListeners()

void addListSelectionListener(ListSelectionListener listener)

Adds a listener to the list that's notified each time a change to the selection occur

private void adjust()

private void computeEquationParts()

private double computeModifier(double x)

private double computeModifierUnprotected(double x)

private void drawItemName(Graphics2D g2)

private void drawItems(Graphics2D g2, ImageFlow.DrawableItem[] drawableItems)

int getAmount()

private ImageFlow.DrawableItem getHitItem(int x, int y)

private ImageFlowItem getItemAt(int index)

Font getItemFont()

Returns the Font used for drawing an item's label.

double getItemSpacing()

Color getItemTextColor()

Returns the Color used to draw an item's label.

int getMaxSelectionIndex()

List Methods

int getMinSelectionIndex()

Returns the smallets selected cell index

Dimension getMinimumSize()

ListModel getModel()

Returns the data model that holds the list of items displayed by the ImageFlow component.

Dimension getPreferredSize()

int getSelectedIndex()

Returns the first selected index; returns -1 if there is no selected item

Object getSelectedValue()

Returns the first selected value, or null if the selection is empty.

double getSigma()

private void initInputListeners()

boolean isFocusable()

boolean isOpaque()

boolean isSelectedIndex(int index)

Returns true if the specified index is selected.

private Dimension maximalImageSize()

void next()

private void notifyListSelectionListener()

Notify the listeners when a selection event has occured

protected void paintChildren(Graphics g)

protected void paintComponent(Graphics g)

void previous()

private void promoteItemToDrawable(List drawables, int x, int y, int width, int height, int offset)

void removeListSelectionListener(ListSelectionListener listener)

Removes a listener from the list that's notified each time a change to the selection occurs

private void scrollAndAnimate(ImageFlow.DrawableItem item)

private void scrollAndAnimateBy(int increment)

private void scrollBy(int increment)

void setAmount(int amount)

void setItemFont(Font itemFont)

Sets the Font that is used for drawing an item's label, notifies property change listeners.

private void setItemIndex(int index)

private void setItemPosition(double itemPosition)

void setItemSpacing(double itemSpacing)

void setItemTextColor(Color itemTextColor)

private static final int CD_SIZE = 148; private int displayWidth = CD_SIZE; private int displayHeight = (int) (CD_SIZE * 2 / 1.12);

Sets the Color that is used for drawing an item's label, notifies property change listeners.

void setModel(ListModel model)

Sets the model that represents the contents or "value" of the list, notifies property change listeners.

void setSelectedIndex(int index)

Selects a single cell

void setSigma(double sigma)

private ImageFlow.DrawableItem[] sortItemsByDepth(int x, int y, int width, int height)

private void startFader()

 
Methods inherited from class JPanel
getAccessibleContext, setUI, updateUI, getUIClassID, getUI, contains, getLocation, print, getSize, isOpaque, enable, disable, update, getY, getX, getInsets, getInsets, setFont, getPreferredSize, getMinimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, getListeners, addNotify, removeNotify, setFocusTraversalKeys, requestFocus, requestFocus, firePropertyChange, firePropertyChange, firePropertyChange, setEnabled, isDoubleBuffered, setVisible, setForeground, setBackground, getBounds, reshape, getWidth, getHeight, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, getGraphics, getFontMetrics, repaint, repaint, printAll, requestFocusInWindow, addAncestorListener, setInheritsPopupMenu, getInheritsPopupMenu, setComponentPopupMenu, getComponentPopupMenu, isPaintingTile, isPaintingForPrint, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setBorder, getBorder, setAlignmentY, setAlignmentX, setInputVerifier, getInputVerifier, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, resetKeyboardActions, setInputMap, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, getDefaultLocale, setDefaultLocale, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, getPopupLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, setTransferHandler, getTransferHandler, getClientProperty, putClientProperty, isLightweightComponent, setOpaque, computeVisibleRect, getVisibleRect, addVetoableChangeListener, removeVetoableChangeListener, getVetoableChangeListeners, getTopLevelAncestor, removeAncestorListener, getAncestorListeners, revalidate, isValidateRoot, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, getRootPane, add, add, add, add, add, remove, remove, list, list, removeAll, getComponent, invalidate, validate, getComponentCount, countComponents, getComponents, insets, setComponentZOrder, getComponentZOrder, getLayout, setLayout, doLayout, layout, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, findComponentAt, findComponentAt, isAncestorOf, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, transferFocusBackward, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, addPropertyChangeListener, addPropertyChangeListener, add, toString, getName, contains, size, getParent, getLocation, remove, setName, list, list, list, getSize, resize, resize, setSize, setSize, enable, location, isValid, setLocale, action, getMousePosition, getGraphicsConfiguration, dispatchEvent, isVisible, isEnabled, isDisplayable, isFocusable, getTreeLock, isLightweight, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, getFocusCycleRootAncestor, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, setDropTarget, getDropTarget, getToolkit, enableInputMethods, show, show, hide, getForeground, isForegroundSet, getBackground, isBackgroundSet, isFontSet, getLocale, getColorModel, getLocationOnScreen, setLocation, setLocation, move, getBounds, bounds, setBounds, setBounds, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, nextFocus, transferFocusUpCycle, hasFocus, removePropertyChangeListener, removePropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, setComponentOrientation, getComponentOrientation, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class JComponent
contains, getLocation, print, getSize, isOpaque, enable, disable, update, getY, getX, getInsets, getInsets, setFont, getPreferredSize, getMinimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, getListeners, addNotify, removeNotify, setFocusTraversalKeys, requestFocus, requestFocus, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, setEnabled, isDoubleBuffered, setVisible, setForeground, setBackground, getBounds, reshape, getWidth, getHeight, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, getGraphics, getFontMetrics, repaint, repaint, printAll, requestFocusInWindow, updateUI, getUIClassID, addAncestorListener, setInheritsPopupMenu, getInheritsPopupMenu, setComponentPopupMenu, getComponentPopupMenu, isPaintingTile, isPaintingForPrint, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setBorder, getBorder, setAlignmentY, setAlignmentX, setInputVerifier, getInputVerifier, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, resetKeyboardActions, setInputMap, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, getDefaultLocale, setDefaultLocale, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, getPopupLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, setTransferHandler, getTransferHandler, getClientProperty, putClientProperty, isLightweightComponent, setOpaque, computeVisibleRect, getVisibleRect, addVetoableChangeListener, removeVetoableChangeListener, getVetoableChangeListeners, getTopLevelAncestor, removeAncestorListener, getAncestorListeners, revalidate, isValidateRoot, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, getRootPane, add, add, add, add, add, remove, remove, list, list, removeAll, getComponent, invalidate, validate, getComponentCount, countComponents, getComponents, insets, setComponentZOrder, getComponentZOrder, getLayout, setLayout, doLayout, layout, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, findComponentAt, findComponentAt, isAncestorOf, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, transferFocusBackward, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, addPropertyChangeListener, addPropertyChangeListener, add, toString, getName, contains, size, getParent, getLocation, remove, setName, list, list, list, getSize, resize, resize, setSize, setSize, enable, location, isValid, setLocale, action, getMousePosition, getGraphicsConfiguration, dispatchEvent, isVisible, isEnabled, isDisplayable, isFocusable, getTreeLock, isLightweight, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, getFocusCycleRootAncestor, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, setDropTarget, getDropTarget, getToolkit, enableInputMethods, show, show, hide, getForeground, isForegroundSet, getBackground, isBackgroundSet, isFontSet, getLocale, getColorModel, getLocationOnScreen, setLocation, setLocation, move, getBounds, bounds, setBounds, setBounds, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, nextFocus, transferFocusUpCycle, hasFocus, removePropertyChangeListener, removePropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, setComponentOrientation, getComponentOrientation, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Field Detail

ANIM_SCROLL_DELAY

private static final double ANIM_SCROLL_DELAY


alphaLevel

private float alphaLevel


amount

private int amount


cursorChanger

private ImageFlow.CursorChanger cursorChanger


damaged

private boolean damaged


dataModel

private ListModel dataModel


drawableItems

private ImageFlow.DrawableItem[] drawableItems


exp_member

private double exp_member


exp_multiplier

private double exp_multiplier


faderTimer

private Timer faderTimer


focusGrabber

private ImageFlow.FocusGrabber focusGrabber


fx

private CrystalCaseFactory fx


itemFont

private Font itemFont


itemIndex

private int itemIndex


itemPosition

private double itemPosition


itemScroller

private ImageFlow.ItemScroller itemScroller


itemSpacing

private double itemSpacing


itemText

private String itemText


itemTextColor

private Color itemTextColor


keyItemSelector

private ImageFlow.KeyItemSelector keyItemSelector


keyScroller

private ImageFlow.KeyScroller keyScroller


listSelectionListeners

private List listSelectionListeners


mouseItemSelector

private ImageFlow.MouseItemSelector mouseItemSelector


repaintListDataListener

private ImageFlow.RepaintListDataListener repaintListDataListener


rho

private double rho


scrollerTimer

private Timer scrollerTimer


sigma

private double sigma


textAlphaLevel

private float textAlphaLevel


veilAlphaLevel

private float veilAlphaLevel


wheelScroller

private ImageFlow.MouseWheelScroller wheelScroller


 
Constructor Detail

ImageFlow

public ImageFlow()
Constructs a ImageFlow with an empty, mutable, model.


ImageFlow

public ImageFlow(ImageFlowItem[] listData)
Constructs a ImageFlow that displays the elements in the specified array. This constructor creates a read-only model for the given array, and then delegates to the constructor that takes a ListModel.

Attempts to pass a null value to this method results in undefined behavior and, most likely, exceptions. The created model references the given array directly. Attempts to modify the array after constructing the list results in undefined behavior.

Parameters:
listData - the array of ImageFlowItems to be loaded into the data model, non-null


ImageFlow

public ImageFlow(List listData)
Constructs a ImageFlow that displays the elements in the specified List. This constructor creates a read-only model for the given List, and then delegates to the constructor that takes a ListModel.

Attempts to pass a null value to this method results in undefined behavior and, most likely, exceptions. The created model references the given List directly. Attempts to modify the List after constructing the list results in undefined behavior.

Parameters:
listData - the List to be loaded into the data model, non-null


ImageFlow

public ImageFlow(ListModel dataModel)
Constructs a ImageFlow that displays elements from the specified, non-null, model. All ImageFlow constructors delegate to this one.

throws:
IllegalArgumentException if the model is null
Parameters:
dataModel - the model for the list


 
Method Detail

addInputListeners

private void addInputListeners()


addListSelectionListener

public void addListSelectionListener(ListSelectionListener listener)
Adds a listener to the list that's notified each time a change to the selection occur
Parameters:
listener - ListSelectionListener


adjust

private void adjust()


computeEquationParts

private void computeEquationParts()


computeModifier

private double computeModifier(double x)


computeModifierUnprotected

private double computeModifierUnprotected(double x)


drawItemName

private void drawItemName(Graphics2D g2)


drawItems

private void drawItems(Graphics2D g2, ImageFlow.DrawableItem[] drawableItems)


getAmount

public int getAmount()


getHitItem

private ImageFlow.DrawableItem getHitItem(int x, int y)


getItemAt

private ImageFlowItem getItemAt(int index)


getItemFont

public Font getItemFont()
Returns the Font used for drawing an item's label.
Returns:
the Font used for drawing an item's label.
See Also:
setItemFont


getItemSpacing

public double getItemSpacing()


getItemTextColor

public Color getItemTextColor()
Returns the Color used to draw an item's label.
Returns:
the Color used to draw an item's label.


getMaxSelectionIndex

public int getMaxSelectionIndex()
List Methods


getMinSelectionIndex

public int getMinSelectionIndex()
Returns the smallets selected cell index
Returns:
int the largest selected cell index


getMinimumSize

@Override
public Dimension getMinimumSize()


getModel

public ListModel getModel()
Returns the data model that holds the list of items displayed by the ImageFlow component.
Returns:
the ListModel that provides the displayed list of items
See Also:
setModel


getPreferredSize

@Override
public Dimension getPreferredSize()


getSelectedIndex

public int getSelectedIndex()
Returns the first selected index; returns -1 if there is no selected item
Returns:
int


getSelectedValue

public Object getSelectedValue()
Returns the first selected value, or null if the selection is empty.
Returns:
Object


getSigma

public double getSigma()


initInputListeners

private void initInputListeners()


isFocusable

@Override
public boolean isFocusable()


isOpaque

@Override
public boolean isOpaque()


isSelectedIndex

public boolean isSelectedIndex(int index)
Returns true if the specified index is selected.
Parameters:
index - int
Returns:
boolean


maximalImageSize

private Dimension maximalImageSize()


next

public void next()


notifyListSelectionListener

private void notifyListSelectionListener()
Notify the listeners when a selection event has occured


paintChildren

@Override
protected void paintChildren(Graphics g)


paintComponent

@Override
protected void paintComponent(Graphics g)


previous

public void previous()


promoteItemToDrawable

private void promoteItemToDrawable(List drawables, int x, int y, int width, int height, int offset)


removeListSelectionListener

public void removeListSelectionListener(ListSelectionListener listener)
Removes a listener from the list that's notified each time a change to the selection occurs
Parameters:
listener - ListSelectionListener


scrollAndAnimate

private void scrollAndAnimate(ImageFlow.DrawableItem item)


scrollAndAnimateBy

private void scrollAndAnimateBy(int increment)


scrollBy

private void scrollBy(int increment)


setAmount

public void setAmount(int amount)


setItemFont

public void setItemFont(Font itemFont)
Sets the Font that is used for drawing an item's label, notifies property change listeners.

This is a JavaBeans bound property.

beaninfo:
bound: true attribute: visualUpdate true description: The font for drawing item labels.
Parameters:
itemFont - the Font that will be used to draw an item's label.
See Also:
getItemFont


setItemIndex

private void setItemIndex(int index)


setItemPosition

private void setItemPosition(double itemPosition)


setItemSpacing

public void setItemSpacing(double itemSpacing)


setItemTextColor

public void setItemTextColor(Color itemTextColor)
private static final int CD_SIZE = 148; private int displayWidth = CD_SIZE; private int displayHeight = (int) (CD_SIZE * 2 / 1.12);

Sets the Color that is used for drawing an item's label, notifies property change listeners.

This is a JavaBeans bound property.

beaninfo:
bound: true attribute: visualUpdate true description: The color for drawing item labels.
Parameters:
itemTextColor - the Color that will be used to draw an item's label.
See Also:
getItemTextColor


setModel

public void setModel(ListModel model)
Sets the model that represents the contents or "value" of the list, notifies property change listeners.

This is a JavaBeans bound property.

throws:
IllegalArgumentException if model is null
beaninfo:
bound: true attribute: visualUpdate true description: The object that contains the data to be drawn by this ImageFlow.
Parameters:
model - the ListModel that provides the list of items for display
See Also:
getModel


setSelectedIndex

public void setSelectedIndex(int index)
Selects a single cell
Parameters:
index - int


setSigma

public void setSigma(double sigma)


sortItemsByDepth

private ImageFlow.DrawableItem[] sortItemsByDepth(int x, int y, int width, int height)


startFader

private void startFader()


 

Groovy Documentation