public class ActiveBoxGrid extends ActiveBoxBag implements Cloneable
ActiveBoxBag
with constructors that
take an argument of type Shaper
to build
all its ActiveBox
elements. It also mantains info about
the number of "rows" and "columns", useful to compute appropiate (integer) values when
resizing the ActiveBoxBag
and its ActiveBox
children.Rectangle2D.Double, Rectangle2D.Float
Modifier and Type | Field and Description |
---|---|
int |
nCols |
int |
nRows |
backgroundBox, cells, preferredBounds
border, shape, specialShape
height, width, x, y
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor and Description |
---|
ActiveBoxGrid(AbstractBox parent,
JComponent container,
double px,
double py,
double setWidth,
double setHeight,
Shaper sh,
BoxBase boxBase) |
Modifier and Type | Method and Description |
---|---|
static ActiveBoxGrid |
createEmptyGrid(AbstractBox parent,
JComponent container,
double px,
double py,
ActiveBagContent abc,
Shaper sh,
BoxBase boxBase) |
static ActiveBoxGrid |
createEmptyGrid(ActiveBox parent,
JComponent container,
double px,
double py,
ActiveBagContent abc) |
Point |
getCoord(ActiveBox bx) |
Point |
getCoordDist(ActiveBox src,
ActiveBox dest) |
Dimension |
getMinimumSize() |
Dimension |
getScaledSize(double scale) |
addActiveBox, cellIsAtEquivalentPlace, clearAll, countCellsAtEquivalentPlace, countCellsAtPlace, countCellsWithIdAss, countInactiveCells, findActiveBox, getActiveBox, getActiveBoxWithIdLoc, getBackgroundActiveBox, getNextItem, getNextItem, resetIds, scrambleCells, setContent, setContent, setContent, setDefaultIdAss
addBox, boxIndex, clone, end, ensureCapacity, findBox, getBackgroundBox, getBox, getNumCells, getPreferredSize, 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 ActiveBoxGrid(AbstractBox parent, JComponent container, double px, double py, double setWidth, double setHeight, Shaper sh, BoxBase boxBase)
public Dimension getMinimumSize()
getMinimumSize
in interface Resizable
getMinimumSize
in class BoxBag
public Dimension getScaledSize(double scale)
getScaledSize
in interface Resizable
getScaledSize
in class BoxBag
public static ActiveBoxGrid createEmptyGrid(AbstractBox parent, JComponent container, double px, double py, ActiveBagContent abc, Shaper sh, BoxBase boxBase)
public static ActiveBoxGrid createEmptyGrid(ActiveBox parent, JComponent container, double px, double py, ActiveBagContent abc)
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.