public class Counter extends AbstractBox
Rectangle2D.Double, Rectangle2D.Float
border, shape, specialShape
height, width, x, y
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor and Description |
---|
Counter(AbstractBox parent,
JComponent container,
Rectangle2D r,
BoxBase boxBase)
Creates new Counter
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
void |
incValue() |
boolean |
isEnabled() |
void |
setCountDown(int maxValue) |
void |
setEnabled(boolean bEnabled) |
void |
setSource(Image setImg,
Point setOrigin,
Dimension setDigitSize) |
void |
setValue(int newValue) |
boolean |
updateContent(Graphics2D g2,
Rectangle dirtyRegion,
ImageObserver io) |
checkHostedComponent, clone, contains, drawBorder, end, finalize, getAbsoluteLocation, getAbsoulteMiddleLocation, getBorderBounds, getBoxBaseResolve, getBoxBaseX, getContainerResolve, getContainerX, getHostedComponent, getLocation, getParent, getShape, hasBorder, isAlternative, isFocused, isInactive, isInverted, isMarked, isTemporaryHidden, isVisible, repaint, setAlternative, setBorder, setBounds, setBounds, setBoxBase, setContainer, setFocused, setHostedComponent, setInactive, setInverted, setLocation, setLocation, setMarked, setParent, setShape, setSize, setSize, setTemporaryHidden, setVisible, translate, update
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
public Counter(AbstractBox parent, JComponent container, Rectangle2D r, BoxBase boxBase)
public void setEnabled(boolean bEnabled)
public boolean isEnabled()
public void setCountDown(int maxValue)
public void incValue()
public void setValue(int newValue)
public int getValue()
public boolean updateContent(Graphics2D g2, Rectangle dirtyRegion, ImageObserver io)
updateContent
in class AbstractBox
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.