public class ActiveBoxContent extends Object implements Cloneable, Domable
ActiveBox
objects. This content can be a text, an image, a fragment of an image or a
combination of text and images. The style (colours, font and size, etc.) can be specified
in a BoxBase
object. It stores also information about
the optimal size and location of the ActiveBox
.Modifier and Type | Field and Description |
---|---|
ActiveMediaPlayer |
amp |
boolean |
animated |
protected static String |
AVOID_OVERLAPPING |
boolean |
avoidOverlapping |
BoxBase |
bb |
Boolean |
border |
protected static String |
BORDER |
Dimension |
dimension |
static String |
ELEMENT_NAME |
static int |
EMPTY_CELL |
protected static ActiveBoxContent |
EMPTY_CONTENT |
static int |
HAS_CONTENT |
protected static String |
HEIGHT |
String |
htmlText |
int |
id |
protected static String |
ID |
protected static String |
IMAGE |
Image |
img |
int[] |
imgAlign |
protected static String |
IMGALIGN |
Shape |
imgClip |
String |
imgName |
String |
innerHtmlText |
int |
item |
protected static String |
ITEM |
MediaContent |
mediaContent |
static int |
ONLY_ID |
String |
rawText |
String |
text |
int[] |
txtAlign |
protected static String |
TXTALIGN |
Object |
userData |
protected static String |
WIDTH |
Constructor and Description |
---|
ActiveBoxContent()
Creates new ActiveBoxContent
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkHtmlText(MediaBag mediaBag) |
Object |
clone() |
protected void |
copyRawDataFrom(ActiveBoxContent src) |
void |
copyStyleTo(ActiveBoxContent abc) |
boolean |
equals(Object o) |
static ActiveBoxContent |
getActiveBoxContent(Element e,
MediaBag mediaBag) |
String |
getDescription() |
Dimension |
getDimension() |
static ActiveBoxContent |
getEmptyContent() |
Element |
getJDomElement() |
boolean |
isEmpty() |
boolean |
isEquivalent(ActiveBoxContent abc,
boolean checkCase) |
static void |
listReferences(Element e,
Map<String,String> map) |
void |
prepareMedia(PlayStation ps) |
void |
realizeContent(MediaBag mediaBag) |
void |
setBorder(boolean b) |
void |
setBoxBase(BoxBase boxBase) |
void |
setDimension(Dimension d) |
void |
setImgAlign(int[] align) |
void |
setImgAlign(int h,
int v) |
void |
setImgContent(Image setImg,
Shape setImgClip) |
void |
setProperties(Element e,
Object aux) |
void |
setTextContent(String tx) |
void |
setTxtAlign(int[] align) |
void |
setTxtAlign(int h,
int v) |
int |
testCellContents() |
public BoxBase bb
public Dimension dimension
public Boolean border
public String text
public String imgName
public Shape imgClip
public MediaContent mediaContent
public int[] imgAlign
public int[] txtAlign
public boolean avoidOverlapping
public int id
public int item
public Image img
protected static ActiveBoxContent EMPTY_CONTENT
public Object userData
public String rawText
public String htmlText
public String innerHtmlText
public boolean animated
public ActiveMediaPlayer amp
public static final String ELEMENT_NAME
protected static final String ID
protected static final String ITEM
protected static final String WIDTH
protected static final String HEIGHT
protected static final String BORDER
protected static final String IMAGE
protected static final String TXTALIGN
protected static final String IMGALIGN
protected static final String AVOID_OVERLAPPING
public static final int EMPTY_CELL
public static final int ONLY_ID
public static final int HAS_CONTENT
protected void copyRawDataFrom(ActiveBoxContent src)
public static ActiveBoxContent getEmptyContent()
public Element getJDomElement()
getJDomElement
in interface Domable
public int testCellContents()
public static ActiveBoxContent getActiveBoxContent(Element e, MediaBag mediaBag) throws Exception
Exception
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
Exception
public boolean isEmpty()
public boolean isEquivalent(ActiveBoxContent abc, boolean checkCase)
public void setTextContent(String tx)
protected void checkHtmlText(MediaBag mediaBag)
public void setImgAlign(int[] align)
public void setImgAlign(int h, int v)
public void setTxtAlign(int[] align)
public void setTxtAlign(int h, int v)
public void prepareMedia(PlayStation ps)
public void setBoxBase(BoxBase boxBase)
public void setDimension(Dimension d)
public Dimension getDimension()
public void setBorder(boolean b)
public void copyStyleTo(ActiveBoxContent abc)
public String getDescription()
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.