Package org.ivoa.dm.adqlgeom
Class Circle
java.lang.Object
org.ivoa.dm.adqlgeom.Shape
org.ivoa.dm.adqlgeom.Circle
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="adqlgeom:Circle",
role=dataType)
public class Circle
extends Shape
implements org.ivoa.vodml.jpa.JPAManipulations
a circular region on the sky.
dataType: Circle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Circle, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Circlecreate a Circle in functional builder style.voidReturns center Attribute.Returns radius Attribute.voidSet center Attribute.voidSet radius Attribute.voidupdateUsing(Circle other) Update this object with the content of the given object.withCenter(Point pCenter) fluent setter for center Attribute.withRadius(Double pRadius) fluent setter for radius Attribute.Methods inherited from class org.ivoa.dm.adqlgeom.Shape
updateUsing
-
Field Details
-
center
@VoDml(id="adqlgeom:Circle.center", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected Point centerthe centre of the circle. : Attribute center : multiplicity 1 -
radius
@VoDml(id="adqlgeom:Circle.radius", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double radiusthe radius of the circle. : Attribute radius : multiplicity 1
-
-
Constructor Details
-
Circle
public Circle()Creates a new Circle -
Circle
full parameter constructor.- Parameters:
center- the centre of the circle.radius- the radius of the circle.
-
Circle
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
Circle
Constructor from supertype instance.- Parameters:
superinstance- The supertype.center- the centre of the circle.radius- the radius of the circle.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type. -
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getCenter
Returns center Attribute.- Returns:
- center Attribute
-
setCenter
Set center Attribute.- Parameters:
pCenter- value to set
-
withCenter
fluent setter for center Attribute.- Parameters:
pCenter- value to set- Returns:
- Circle
-
getRadius
Returns radius Attribute.- Returns:
- radius Attribute
-
setRadius
Set radius Attribute.- Parameters:
pRadius- value to set
-
withRadius
fluent setter for radius Attribute.- Parameters:
pRadius- value to set- Returns:
- Circle
-
createCircle
create a Circle in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()
-