Class WordArtImpl

java.lang.Object
io.keikai.model.impl.WordArtImpl
All Implemented Interfaces:
SWordArt, Serializable

public class WordArtImpl extends Object implements SWordArt, Serializable
Default implementation of SWordArt.
Since:
7.0.0
See Also:
  • Constructor Details

    • WordArtImpl

      public WordArtImpl(SWordArt.PresetType presetType, String text, SFont font, String fillColor, String outlineColor, ViewAnchor anchor)
      Constructs a WordArt object.
      Parameters:
      presetType - the text warp preset type
      text - the display text
      font - the font
      fillColor - the fill color (HTML string, e.g., "#FF0000")
      outlineColor - the outline color (HTML string)
      anchor - the position anchor on the sheet
  • Method Details

    • getPresetType

      public SWordArt.PresetType getPresetType()
      Description copied from interface: SWordArt
      Returns the preset text warp type.
      Specified by:
      getPresetType in interface SWordArt
      Returns:
      the preset type
    • getText

      public String getText()
      Description copied from interface: SWordArt
      Returns the display text.
      Specified by:
      getText in interface SWordArt
      Returns:
      the text content
    • setText

      public void setText(String text)
      Description copied from interface: SWordArt
      Sets the display text.
      Specified by:
      setText in interface SWordArt
      Parameters:
      text - the new text content
    • getFont

      public SFont getFont()
      Description copied from interface: SWordArt
      Returns the font used for this WordArt.
      Specified by:
      getFont in interface SWordArt
      Returns:
      the font
    • getFillColor

      public String getFillColor()
      Description copied from interface: SWordArt
      Returns the fill color as an HTML color string (e.g., "#FF0000").
      Specified by:
      getFillColor in interface SWordArt
      Returns:
      the fill color, or null if no fill
    • getOutlineColor

      public String getOutlineColor()
      Description copied from interface: SWordArt
      Returns the outline color as an HTML color string (e.g., "#000000").
      Specified by:
      getOutlineColor in interface SWordArt
      Returns:
      the outline color, or null if no outline
    • getAnchor

      public ViewAnchor getAnchor()
      Description copied from interface: SWordArt
      Returns the anchor that positions this WordArt on the sheet.
      Specified by:
      getAnchor in interface SWordArt
      Returns:
      the view anchor