Class ElementCircle

java.lang.Object
org.opensourcephysics.display3d.simple3d.Element
org.opensourcephysics.display3d.simple3d.ElementCircle
All Implemented Interfaces:
Element, ElementCircle, InteractionSource

public class ElementCircle extends Element implements ElementCircle

Title: ElementCircle

Description: A Circle using the painter's algorithm

Version:
March 2005
Author:
Francisco Esquembre
  • Constructor Details

    • ElementCircle

      public ElementCircle()
  • Method Details

    • setRotationAngle

      public void setRotationAngle(double angle)
      Description copied from interface: ElementCircle
      Sets the rotation angle for the circle. Default is 0.
      Specified by:
      setRotationAngle in interface ElementCircle
      Parameters:
      angle - the rotation angle
    • getRotationAngle

      public double getRotationAngle()
      Description copied from interface: ElementCircle
      Gets the rotation angle for the circle
      Specified by:
      getRotationAngle in interface ElementCircle
    • getTargetHit

      protected InteractionTarget getTargetHit(int x, int y)
      Description copied from class: Element
      Gets the target that is under the (x,y) position of the screen
      Overrides:
      getTargetHit in class Element
      Parameters:
      x - int
      y - int
      Returns:
      InteractionTarget
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load object data.
      Returns:
      the XML.ObjectLoader