public class ActiveBox extends AbstractBox implements Cloneable
ActiveBox
is determined by its
ActiveBoxContent
members. Most ActiveBoxes have only
one content, but some of them can have a secondary or "alternative" content, indicated
by the altContent
member. This content is used only when the alternative
flag of the ActiveBox
is on.
Active boxes can host video and interactive media content (specified in the mediaContent member of
the ActiveBoxContent
) through the hostedMediaPlayer
member.Rectangle2D.Double, Rectangle2D.Float
Modifier and Type | Field and Description |
---|---|
protected ActiveBoxContent |
altContent |
static boolean |
compressImages |
protected ActiveBoxContent |
content |
boolean |
hasHostedComponent |
protected ActiveMediaPlayer |
hostedMediaPlayer |
int |
idAss |
int |
idLoc |
int |
idOrder |
static boolean |
USE_TRANSFORM |
border, shape, specialShape
height, width, x, y
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor and Description |
---|
ActiveBox(AbstractBox parent,
JComponent container,
BoxBase boxBase)
Creates new ActiveBox
|
ActiveBox(AbstractBox parent,
JComponent container,
int setIdLoc,
Rectangle2D r,
BoxBase boxBase) |
clone, contains, drawBorder, finalize, getAbsoluteLocation, getAbsoulteMiddleLocation, getBorderBounds, getBoxBaseResolve, getBoxBaseX, getContainerResolve, getContainerX, getHostedComponent, getLocation, getParent, getShape, hasBorder, isAlternative, isFocused, isInactive, isInverted, isMarked, isTemporaryHidden, isVisible, repaint, setAlternative, setBorder, 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 static boolean compressImages
public static boolean USE_TRANSFORM
public int idOrder
public int idLoc
public int idAss
protected ActiveBoxContent content
protected ActiveBoxContent altContent
public boolean hasHostedComponent
protected ActiveMediaPlayer hostedMediaPlayer
public ActiveBox(AbstractBox parent, JComponent container, BoxBase boxBase)
public ActiveBox(AbstractBox parent, JComponent container, int setIdLoc, Rectangle2D r, BoxBase boxBase)
public void setHostedMediaPlayer(ActiveMediaPlayer amp)
public ActiveBoxContent getCurrentContent()
public ActiveBoxContent getContent()
public void clear()
public boolean isEquivalent(ActiveBox bx, boolean checkCase)
public boolean isCurrentContentEquivalent(ActiveBox bx, boolean checkCase)
public void exchangeLocation(ActiveBox bx)
public void copyContent(ActiveBox bx)
public void exchangeContent(ActiveBox bx)
public void setTextContent(String tx)
public void setIdOrder(int newIdOrder)
public void setIdAss(int newIdAss)
public void setDefaultIdAss()
public boolean isAtPlace()
public void setContent(ActiveBoxContent abc)
public void checkAutoStartMedia()
public void setAltContent(ActiveBoxContent abc)
public void setCurrentContent(ActiveBoxContent abc)
public void setContent(ActiveBagContent abc, int i)
public void setAltContent(ActiveBagContent abc, int i)
public boolean switchToAlt(ResourceBridge rb)
protected void checkHostedComponent()
checkHostedComponent
in class AbstractBox
public boolean updateContent(Graphics2D g2, Rectangle dirtyRegion, ImageObserver io)
updateContent
in class AbstractBox
public boolean playMedia(PlayStation ps)
public String getDescription()
public void setBounds(Rectangle2D r)
setBounds
in class AbstractBox
public void end()
end
in class AbstractBox
public static void checkOptions(Options options)
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.