Class AbstractShapeModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource
Direct Known Subclasses:
AbstractPolyModel, ArcModel, EllipseModel, RectangleModel, RoundedRectangleModel

public abstract class AbstractShapeModel extends AbstractPVWidgetModel
The abstract widget model for all shape based widgets.
  • Field Details

  • Constructor Details

    • AbstractShapeModel

      public AbstractShapeModel()
  • Method Details

    • configureProperties

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

      public final boolean isAntiAlias()
      Returns:
      true if the graphics's antiAlias is on.
    • getAlpha

      public int getAlpha()
    • getFillLevel

      public double getFillLevel()
      Returns the fill grade.
      Returns:
      the fill grade
    • setFillLevel

      public void setFillLevel(double value)
      set the fill level
      Parameters:
      value -
    • isHorizontalFill

      public boolean isHorizontalFill()
    • setHoizontalFill

      public void setHoizontalFill(boolean value)
    • getLineWidth

      public int getLineWidth()
      Gets the width of the line.
      Returns:
      int The width of the line
    • setLineWidth

      public void setLineWidth(int width)
    • setLineStyle

      public void setLineStyle(int style)
      Parameters:
      style - the integer value corresponding to LineStyle
    • getLineStyle

      public int getLineStyle()
      Gets the style of the line.
      Returns:
      int The style of the line
    • getLineColor

      public Color getLineColor()
    • isTransparent

      public boolean isTransparent()
      Returns, if this widget should have a transparent background.
      Returns:
      boolean True, if it should have a transparent background, false otherwise
    • setTransparent

      public void setTransparent(boolean value)