Class RoundedRectangleModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class RoundedRectangleModel extends AbstractShapeModel
The model for a rounded rectangle widget.
  • Field Details

  • Constructor Details

    • RoundedRectangleModel

      public RoundedRectangleModel()
  • Method Details

    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • configureProperties

      protected void configureProperties()
      Description copied from class: AbstractWidgetModel
      Configure the properties of the widget. Subclass should add new properties in this method.
      Overrides:
      configureProperties in class AbstractShapeModel
    • getCornerWidth

      public final int getCornerWidth()
      Returns:
      the corner width
    • getCornerHeight

      public final int getCornerHeight()
      Returns:
      the corner height
    • isGradient

      public boolean isGradient()
    • getBackgroundGradientStartColor

      public Color getBackgroundGradientStartColor()
    • getForegroundGradientStartColor

      public Color getForegroundGradientStartColor()