Class Circle
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Circle
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a circular drawing shape.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCircle()Initializes a new instance of the Circle class.Circle(InternalXMLStreamReader reader)Instantiates a new circle. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a IDrawText object to the content.voidAdds a List object to the content.voidAdds a Paragraph object to the content.clone()Creates a new object that is a deep copy of the current instance.Gets the X coordinate of a ellipse center.Gets the Y coordinate of a ellipse center.Contains a collection of IDrawText objects.Returns all content elements.doubleGets the end angle of a arc, cut, or section for ellipse.Contains an attachment of an event listener to a drawing shape.Contains the designated point in the area of a drawing object to which a connector shape can connect.getKind()Gets the appearance of a circle.Returns the parent content element.Gets the radius of a circle.Gets height of a drawing object as a relative value within a frame.Gets width of a drawing object as a relative value within a frame.doubleGets the start angle of a section, cut, or arc for ellipse.voidsetCenterX(String centerX)Sets the X coordinate of a ellipse center.voidsetCenterY(String centerY)Sets the Y coordinate of a ellipse center.voidsetEndAngle(double endAngle)Sets the end angle of a arc, cut, or section for ellipse.voidSets the appearance of a circle.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the radius of a circle.voidsetRelativeHeight(String relativeHeight)Sets height of a drawing object as a relative value within a frame.voidsetRelativeWidth(String relativeWidth)Sets width of a drawing object as a relative value within a frame.voidsetStartAngle(double startAngle)Sets the start angle of a section, cut, or arc for ellipse.toString()Converts the value of the current Circle object to its equivalent string representation.
-
Constructor Details
-
Circle
public Circle()Initializes a new instance of the Circle class. -
Circle
Instantiates a new circle.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
add
Adds a List object to the content.- Parameters:
list- the list
-
add
Adds a Paragraph object to the content.- Parameters:
paragraph- the paragraph
-
add
Adds a IDrawText object to the content.- Parameters:
drawText- the draw text
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classShape- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classShape- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classShape- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIIndexContent- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein interfaceITextContent- Specified by:
clonein classShape- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Circle object to its equivalent string representation. -
getContent
Contains a collection of IDrawText objects.- Returns:
- the content
-
getEventListeners
Contains an attachment of an event listener to a drawing shape.- Returns:
- the event listeners
-
getGluePoints
Contains the designated point in the area of a drawing object to which a connector shape can connect.- Returns:
- the glue points
-
getRelativeWidth
Gets width of a drawing object as a relative value within a frame.- Returns:
- the relative width
-
setRelativeWidth
Sets width of a drawing object as a relative value within a frame.- Parameters:
relativeWidth- the new relative width
-
getRelativeHeight
Gets height of a drawing object as a relative value within a frame.- Returns:
- the relative height
-
setRelativeHeight
Sets height of a drawing object as a relative value within a frame.- Parameters:
relativeHeight- the new relative height
-
getCenterX
Gets the X coordinate of a ellipse center.- Returns:
- the center x
-
setCenterX
Sets the X coordinate of a ellipse center.- Parameters:
centerX- the new center x
-
getCenterY
Gets the Y coordinate of a ellipse center.- Returns:
- the center y
-
setCenterY
Sets the Y coordinate of a ellipse center.- Parameters:
centerY- the new center y
-
getRadius
Gets the radius of a circle.- Returns:
- the radius
-
setRadius
Sets the radius of a circle.- Parameters:
radius- the new radius
-
getKind
Gets the appearance of a circle.- Returns:
- the kind
-
setKind
Sets the appearance of a circle.- Parameters:
kind- the new kind
-
getStartAngle
public double getStartAngle()Gets the start angle of a section, cut, or arc for ellipse.- Returns:
- the start angle
-
setStartAngle
public void setStartAngle(double startAngle)Sets the start angle of a section, cut, or arc for ellipse.- Parameters:
startAngle- the new start angle
-
getEndAngle
public double getEndAngle()Gets the end angle of a arc, cut, or section for ellipse.- Returns:
- the end angle
-
setEndAngle
public void setEndAngle(double endAngle)Sets the end angle of a arc, cut, or section for ellipse.- Parameters:
endAngle- the new end angle
-