public class BoxBase extends Object implements Cloneable, Domable
AbstractBox
objects: background and foreground color
and gradient, colors for special states (inactive, alternative, disabled...),
mrgins, fonts, strokes for borders, etc. Objects derived from AbstractBox
can have inheritance: boxes that act as "containers" of other boxes
(like BoxBag
). Most of the attributes of BoxBase
can be null, meaning that the value of the ancestor, or a default value
if the box has no ancestors, must be taken.Constructor and Description |
---|
BoxBase()
Creates new BoxBase
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object o) |
Stroke |
getBorder() |
float |
getBorderWidth() |
static BoxBase |
getBoxBase(Element e) |
static Font |
getDefaultFont() |
float |
getDynFontSize() |
Font |
getFont() |
Element |
getJDomElement() |
Stroke |
getMarker() |
float |
getMarkerWidth() |
Font |
getOriginalFont() |
boolean |
reduceFont() |
static void |
resetAllFonts() |
void |
resetFont() |
void |
setBorderWidth(float w) |
void |
setFont(Font newFont) |
void |
setMarkerWidth(float w) |
void |
setProperties(Element e,
Object aux) |
public Color backColor
public Gradient bgGradient
public Color textColor
public Color shadowColor
public Color borderColor
public Color inactiveColor
public Color alternativeColor
public boolean shadow
public boolean transparent
public int textMargin
protected BasicStroke borderStroke
protected BasicStroke markerStroke
public static final float MIN_FONT_SIZE
public static boolean flagFontReduced
public static final Stroke DEFAULT_STROKE
public static final Color DEFAULT_BACK_COLOR
public static final Color DEFAULT_TEXT_COLOR
public static final Color DEFAULT_SHADOW_COLOR
public static final Color DEFAULT_INACTIVE_COLOR
public static final Color DEFAULT_ALTERNATIVE_COLOR
public static final Color DEFAULT_BORDER_COLOR
public static final float DEFAULT_BORDER_STROKE_WIDTH
public static final BasicStroke DEFAULT_BORDER_STROKE
public static final float DEFAULT_MARKER_STROKE_WIDTH
public static final BasicStroke DEFAULT_MARKER_STROKE
public static BoxBase DEFAULT_BOX_BASE
public static final String ELEMENT_NAME
public static final String COLOR
public static final String FOREGROUND
public static final String BACKGROUND
public static final String SHADOW
public static final String INACTIVE
public static final String ALTERNATIVE
public static final String BORDER
public static final String TRANSPARENT
public static final String MARGIN
public static final String BORDER_STROKE
public static final String MARKER_STROKE
public static Font getDefaultFont()
public Element getJDomElement()
getJDomElement
in interface Domable
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
Exception
public Stroke getBorder()
public float getBorderWidth()
public void setBorderWidth(float w)
public Stroke getMarker()
public float getMarkerWidth()
public void setMarkerWidth(float w)
public static void resetAllFonts()
public void setFont(Font newFont)
public void resetFont()
public Font getFont()
public Font getOriginalFont()
public float getDynFontSize()
public boolean reduceFont()
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.