Class BoxStyle


  • public class BoxStyle
    extends Object
    This class represents a style of a text box.
    Author:
    radek
    • Constructor Detail

      • BoxStyle

        public BoxStyle​(String units)
        Creates a new style using the specified units for lengths.
        Parameters:
        units - Units used for lengths (e.g. 'pt')
      • BoxStyle

        public BoxStyle​(BoxStyle src)
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object