Class ArcModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class ArcModel extends AbstractShapeModel
The widget model
  • Field Details

  • Constructor Details

    • ArcModel

      public ArcModel()
  • 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.
      Overrides:
      configureProperties in class AbstractShapeModel
    • getTypeID

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

      public boolean isFill()
    • setFill

      public void setFill(boolean value)
    • getStartAngle

      public int getStartAngle()
    • setStartAngle

      public void setStartAngle(int angle)
    • getTotalAngle

      public int getTotalAngle()
    • setTotalAngle

      public void setTotalAngle(int angle)
    • flipHorizontally

      public void flipHorizontally()
      Description copied from class: AbstractWidgetModel
      Flip the widget figure horizontally.
      Overrides:
      flipHorizontally in class AbstractWidgetModel
    • flipHorizontally

      public void flipHorizontally(int centerX)
      Description copied from class: AbstractWidgetModel
      Flip the widget figure horizontally.
      Overrides:
      flipHorizontally in class AbstractWidgetModel
      Parameters:
      centerX - the center X coordinate
    • flipVertically

      public void flipVertically()
      Description copied from class: AbstractWidgetModel
      Flip the widget figure vertically.
      Overrides:
      flipVertically in class AbstractWidgetModel
    • flipVertically

      public void flipVertically(int centerY)
      Description copied from class: AbstractWidgetModel
      Flip the widget figure horizontally.
      Overrides:
      flipVertically in class AbstractWidgetModel
      Parameters:
      centerY - the center Y coordinate
    • rotate90

      public void rotate90(boolean clockwise)
      Description copied from class: AbstractWidgetModel
      Rotate the widget figure 90 degree.
      Overrides:
      rotate90 in class AbstractWidgetModel
      Parameters:
      clockwise - true if rotate clockwise. false if counterclockwise.
    • rotate90

      public void rotate90(boolean clockwise, org.eclipse.draw2d.geometry.Point center)
      Description copied from class: AbstractWidgetModel
      Rotate the widget figure 90 degree.
      Overrides:
      rotate90 in class AbstractWidgetModel
      Parameters:
      clockwise - true if rotate clockwise. false if counterclockwise.