Package org.fit.pdfdom
Class BoxStyle
- java.lang.Object
-
- org.fit.pdfdom.BoxStyle
-
public class BoxStyle extends Object
This class represents a style of a text box.- Author:
- radek
-
-
Field Summary
Fields Modifier and Type Field Description static StringdefaultColorstatic StringdefaultFontStylestatic StringdefaultFontWeightstatic StringdefaultPositionstatic StringtransparentColor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringformatLength(float length)StringgetColor()StringgetFontFamily()floatgetFontSize()StringgetFontStyle()StringgetFontWeight()floatgetLeft()floatgetLetterSpacing()floatgetLineHeight()StringgetStrokeColor()floatgetTop()StringgetUnits()floatgetWordSpacing()inthashCode()voidsetColor(String color)voidsetFontFamily(String fontFamily)voidsetFontSize(float fontSize)voidsetFontStyle(String fontStyle)voidsetFontWeight(String fontWeight)voidsetLeft(float left)voidsetLetterSpacing(float letterSpacing)voidsetLineHeight(float lineHeight)voidsetStrokeColor(String strokeColor)voidsetTop(float top)voidsetUnits(String units)voidsetWordSpacing(float wordSpacing)StringtoString()
-
-
-
Field Detail
-
defaultColor
public static final String defaultColor
- See Also:
- Constant Field Values
-
defaultFontWeight
public static final String defaultFontWeight
- See Also:
- Constant Field Values
-
defaultFontStyle
public static final String defaultFontStyle
- See Also:
- Constant Field Values
-
defaultPosition
public static final String defaultPosition
- See Also:
- Constant Field Values
-
transparentColor
public static final String transparentColor
- See Also:
- Constant Field Values
-
-
Method Detail
-
formatLength
public String formatLength(float length)
-
getUnits
public String getUnits()
- Returns:
- the units
-
setUnits
public void setUnits(String units)
- Parameters:
units- the units to set
-
getFontFamily
public String getFontFamily()
- Returns:
- the fontFamily
-
setFontFamily
public void setFontFamily(String fontFamily)
- Parameters:
fontFamily- the fontFamily to set
-
getFontSize
public float getFontSize()
- Returns:
- the fontSize
-
setFontSize
public void setFontSize(float fontSize)
- Parameters:
fontSize- the fontSize to set
-
getFontWeight
public String getFontWeight()
- Returns:
- the fontWeight
-
setFontWeight
public void setFontWeight(String fontWeight)
- Parameters:
fontWeight- the fontWeight to set
-
getFontStyle
public String getFontStyle()
- Returns:
- the fontStyle
-
setFontStyle
public void setFontStyle(String fontStyle)
- Parameters:
fontStyle- the fontStyle to set
-
getLineHeight
public float getLineHeight()
- Returns:
- the lineHeight
-
setLineHeight
public void setLineHeight(float lineHeight)
- Parameters:
lineHeight- the lineHeight to set
-
getWordSpacing
public float getWordSpacing()
- Returns:
- the wordSpacing
-
setWordSpacing
public void setWordSpacing(float wordSpacing)
- Parameters:
wordSpacing- the wordSpacing to set
-
getLetterSpacing
public float getLetterSpacing()
- Returns:
- the letterSpacing
-
setLetterSpacing
public void setLetterSpacing(float letterSpacing)
- Parameters:
letterSpacing- the letterSpacing to set
-
getColor
public String getColor()
- Returns:
- the color
-
setColor
public void setColor(String color)
- Parameters:
color- the color to set
-
getStrokeColor
public String getStrokeColor()
- Returns:
- the strokeColor
-
setStrokeColor
public void setStrokeColor(String strokeColor)
- Parameters:
strokeColor- the strokeColor to set
-
getLeft
public float getLeft()
- Returns:
- the left
-
setLeft
public void setLeft(float left)
- Parameters:
left- the left to set
-
getTop
public float getTop()
- Returns:
- the top
-
setTop
public void setTop(float top)
- Parameters:
top- the top to set
-
-