public class BoxStyle extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultColor |
static String |
defaultFontStyle |
static String |
defaultFontWeight |
static String |
defaultPosition |
static String |
transparentColor |
| Constructor and Description |
|---|
BoxStyle(BoxStyle src) |
BoxStyle(String units)
Creates a new style using the specified units for lengths.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
formatLength(float length) |
String |
getColor() |
String |
getFontFamily() |
float |
getFontSize() |
String |
getFontStyle() |
String |
getFontWeight() |
float |
getLeft() |
float |
getLetterSpacing() |
float |
getLineHeight() |
String |
getStrokeColor() |
float |
getTop() |
String |
getUnits() |
float |
getWordSpacing() |
int |
hashCode() |
void |
setColor(String color) |
void |
setFontFamily(String fontFamily) |
void |
setFontSize(float fontSize) |
void |
setFontStyle(String fontStyle) |
void |
setFontWeight(String fontWeight) |
void |
setLeft(float left) |
void |
setLetterSpacing(float letterSpacing) |
void |
setLineHeight(float lineHeight) |
void |
setStrokeColor(String strokeColor) |
void |
setTop(float top) |
void |
setUnits(String units) |
void |
setWordSpacing(float wordSpacing) |
String |
toString() |
public static final String defaultColor
public static final String defaultFontWeight
public static final String defaultFontStyle
public static final String defaultPosition
public static final String transparentColor
public BoxStyle(String units)
units - Units used for lengths (e.g. 'pt')public BoxStyle(BoxStyle src)
public String formatLength(float length)
public String getUnits()
public void setUnits(String units)
units - the units to setpublic String getFontFamily()
public void setFontFamily(String fontFamily)
fontFamily - the fontFamily to setpublic float getFontSize()
public void setFontSize(float fontSize)
fontSize - the fontSize to setpublic String getFontWeight()
public void setFontWeight(String fontWeight)
fontWeight - the fontWeight to setpublic String getFontStyle()
public void setFontStyle(String fontStyle)
fontStyle - the fontStyle to setpublic float getLineHeight()
public void setLineHeight(float lineHeight)
lineHeight - the lineHeight to setpublic float getWordSpacing()
public void setWordSpacing(float wordSpacing)
wordSpacing - the wordSpacing to setpublic float getLetterSpacing()
public void setLetterSpacing(float letterSpacing)
letterSpacing - the letterSpacing to setpublic String getColor()
public void setColor(String color)
color - the color to setpublic String getStrokeColor()
public void setStrokeColor(String strokeColor)
strokeColor - the strokeColor to setpublic float getLeft()
public void setLeft(float left)
left - the left to setpublic float getTop()
public void setTop(float top)
top - the top to setCopyright © 2016. All rights reserved.