Class RadArcItem

All Implemented Interfaces:
IFeedbackProvider, IDrawable, EventListener

public class RadArcItem extends PolygonItem
  • Constructor Details

  • Method Details

    • updateFocus

      protected void updateFocus()
      Description copied from class: AItem
      Hook called when geometry changes and the focus should be recomputed. The default implementation is a no-op.
      Overrides:
      updateFocus in class PathBasedItem
    • reshape

      protected void reshape()
      Description copied from class: PolygonItem
      Reshape the polygon based on the modification. Not much we can do to a polygon except move the selected point. Keep in mind that if control or shift was pressed, the polygon will scale rather than coming here.
      Overrides:
      reshape in class PolygonItem
    • getSelectionPoints

      public Point[] getSelectionPoints(IContainer container)
      Description copied from class: AItem
      Return the selection handles for this item in screen coordinates.

      The default uses the vertices of AItem._lastDrawnPolygon if available, otherwise the four corners of AItem.getBounds(edu.cnu.mdi.container.IContainer).

      Overrides:
      getSelectionPoints in class AItem
      Parameters:
      container - the container rendering this item
      Returns:
      array of handle points, or null if bounds are unavailable
    • getRotatePoint

      public Point getRotatePoint(IContainer container)
      Description copied from class: PathBasedItem
      Get the rotation point
      Overrides:
      getRotatePoint in class PathBasedItem
      Parameters:
      container - the container bing rendered
      Returns:
      the rotation point where rotations are initiated