public class ActiveBoxBag extends BoxBag implements Cloneable
BoxBag
, containing only
ActiveBox
objects. In addition to the members and
methods of BoxBag
, it implements specific methods to deal with
ActiveBagContent
objects and with other specific
members of ActiveBox
, like its "ids" (idOrder
,
idLoc
and idAss
).Rectangle2D.Double, Rectangle2D.Float
backgroundBox, cells, preferredBounds
border, shape, specialShape
height, width, x, y
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor and Description |
---|
ActiveBoxBag(AbstractBox parent,
JComponent container,
BoxBase boxBase)
Creates new ActiveBoxBag
|
Modifier and Type | Method and Description |
---|---|
void |
addActiveBox(ActiveBox bx) |
boolean |
cellIsAtEquivalentPlace(ActiveBox bx,
boolean checkCase) |
void |
clearAll() |
int |
countCellsAtEquivalentPlace(boolean checkCase) |
int |
countCellsAtPlace() |
int |
countCellsWithIdAss(int idAss) |
int |
countInactiveCells() |
ActiveBox |
findActiveBox(Point2D p) |
ActiveBox |
getActiveBox(int idLoc) |
ActiveBox |
getActiveBoxWithIdLoc(int idLoc) |
ActiveBox |
getBackgroundActiveBox() |
int |
getNextItem(int currentItem) |
int |
getNextItem(int currentItem,
int idAssValid) |
void |
resetIds() |
void |
scrambleCells(int times,
boolean fitInArea) |
void |
setContent(ActiveBagContent abc) |
void |
setContent(ActiveBagContent abc,
ActiveBagContent altAbc) |
void |
setContent(ActiveBagContent abc,
ActiveBagContent altAbc,
int fromIndex,
int toCell,
int numCells) |
void |
setDefaultIdAss() |
addBox, boxIndex, clone, end, ensureCapacity, findBox, getBackgroundBox, getBox, getMinimumSize, getNumCells, getPreferredSize, getScaledSize, layoutDouble, layoutSingle, recalcSize, setAlternative, setBackgroundBox, setBorder, setBounds, setBoxBase, setContainer, setVisible, update, updateContent
checkHostedComponent, contains, drawBorder, finalize, getAbsoluteLocation, getAbsoulteMiddleLocation, getBorderBounds, getBoxBaseResolve, getBoxBaseX, getContainerResolve, getContainerX, getHostedComponent, getLocation, getParent, getShape, hasBorder, isAlternative, isFocused, isInactive, isInverted, isMarked, isTemporaryHidden, isVisible, repaint, setBounds, setFocused, setHostedComponent, setInactive, setInverted, setLocation, setLocation, setMarked, setParent, setShape, setSize, setSize, setTemporaryHidden, translate
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, toString
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
getBounds, getBounds2D, setBounds
public ActiveBoxBag(AbstractBox parent, JComponent container, BoxBase boxBase)
public final void addActiveBox(ActiveBox bx)
public ActiveBox getActiveBox(int idLoc)
public ActiveBox getBackgroundActiveBox()
public void setContent(ActiveBagContent abc)
public void setContent(ActiveBagContent abc, ActiveBagContent altAbc)
public void setContent(ActiveBagContent abc, ActiveBagContent altAbc, int fromIndex, int toCell, int numCells)
public void clearAll()
public int countCellsAtPlace()
public ActiveBox getActiveBoxWithIdLoc(int idLoc)
public boolean cellIsAtEquivalentPlace(ActiveBox bx, boolean checkCase)
public int countCellsAtEquivalentPlace(boolean checkCase)
public int countCellsWithIdAss(int idAss)
public int countInactiveCells()
countInactiveCells
in class BoxBag
public void setDefaultIdAss()
public void scrambleCells(int times, boolean fitInArea)
public void resetIds()
public int getNextItem(int currentItem)
public int getNextItem(int currentItem, int idAssValid)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.