ks.common.view
Class FanPileView

java.lang.Object
  extended byks.common.view.Widget
      extended byks.common.view.RowView
          extended byks.common.view.FanPileView
All Implemented Interfaces:
ElementListener

public class FanPileView
extends RowView

Represents a Fan of n cards from which only a single card may be selected, but there may be more than n cards in the model element column.

As soon as a card is selected, the n+1th card (if it exists) is made visible.

Closest relative is the RowView. Because FanPileView extends RowView, the returnWidget() method for RowView is used successfully.

Creation date: (12/1/01 9:03:44 AM)


Field Summary
 
Fields inherited from class ks.common.view.RowView
LEFT, RIGHT
 
Constructor Summary
FanPileView(int numCards, Column col)
          Construct a FanPileView of numCards, based on the given Column model element.
 
Methods inherited from class ks.common.view.RowView
getCardViewForTopCard, getDirection, getJustification, getRowView, redraw, returnWidget, setDirection, setJustification
 
Methods inherited from class ks.common.view.Widget
getBounds, getCardImages, getContainer, getHeight, getImage, getModelElement, getMouseManager, getName, getWidth, getX, getXY, getY, inBounds, isDirty, modelChanged, paint, paint, paint, refresh, refresh, setBounds, setBounds, setContainer, setDirty, setHeight, setImage, setMouseAdapter, setMouseManager, setMouseMotionAdapter, setName, setUndoAdapter, setWidth, setX, setXY, setY, toString, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ks.common.model.ElementListener
modelChanged
 

Constructor Detail

FanPileView

public FanPileView(int numCards,
                   Column col)
Construct a FanPileView of numCards, based on the given Column model element.

Parameters:
numCards - int
col - ks.common.model.Column