|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.view.Widget
ks.common.view.BuildablePileView
Visually represents a BuildablePile element on the screen. A BuildablePile is a Model Element that contains a pile of cards face down, and then a face up card that can be built into a column.
Cards are extracted from a BuildablePileView as ColumnView widgets; thus a single card pulled off a BuildablePileView is still a ColumnView.
returnWidget(Widget w)
returns the dragged widget back to its source.
Constructor Summary | |
BuildablePileView(Element me)
BuildablePileView constructor comment. |
Method Summary | |
ColumnView |
getColumnView(java.awt.event.MouseEvent me)
If the MouseEvent falls on a faceup card for this BuildablePileView, remove the Column and return a ColumnView widget to manage the Column as it is dragged on the screen. |
void |
redraw()
Redraw a buildable pile. |
boolean |
returnWidget(Widget w)
Return the ColumnView widget's model element back onto the underlying BuildablePile. |
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 |
Constructor Detail |
public BuildablePileView(Element me)
me
- ks.common.model.ElementMethod Detail |
public ColumnView getColumnView(java.awt.event.MouseEvent me)
If no faceup cards are available, then a null ColumnView is returned.
Note: The BuildablePile Model will be altered by this method if the mouseEvent maps to a faceup card in this model.
me
- java.awt.event.MouseEventpublic void redraw()
If empty, a border outline is drawn (since v1.6.10).
redraw
in class Widget
public boolean returnWidget(Widget w)
The only dragged Widget from a BuildablePileView is a ColumnView.
returnWidget
in class Widget
w
- ks.common.view.Widget
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |