Package com.independentsoft.office.odf
Class Ruby
java.lang.Object
com.independentsoft.office.odf.Ruby
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents additional text that is displayed above or below a base text. The purpose of a ruby is to annotate a base text or provide information about its pronunciation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Annotation annotation)Adds an Annotation object to the content.voidadd(AttributedText attributedText)Adds an AttributedText object to the content.voidAdds a Bookmark object to the content.voidadd(BookmarkEnd bookmarkEnd)Adds a BookmarkEnd object to the content.voidadd(BookmarkStart bookmarkStart)Adds a BookmarkStart object to the content.voidAdds a Change object to the content.voidAdds a ChangeEnd object to the content.voidadd(ChangeStart changeStart)Adds a ChangeStart object to the content.voidAdds a Shape object to the content.voidAdds a Field object to the content.voidAdds a Hyperlink object to the content.voidadd(IParagraphContent paragraphContent)Adds an IParagraphContent object to the content.voidAdds a Note object to the content.voidadd(PointReference pointReference)Adds a PointReference object to the content.voidadd(RangeReference rangeReference)Adds a RangeReference object to the content.voidAdds a Ruby object to the content.voidAdds a Text object to the content.voidAdds a String object to the content.voidAdds a single line break to the content.voidaddSpace()Adds a single space to the content.voidaddSpace(int spaceCount)Adds a single space to the content.voidaddTab()Adds a single tab to the content.clone()Creates a new object that is a deep copy of the current instance.Contains the ruby content.Returns all content elements.Returns the parent content element.Gets an annotation text.getStyle()Gets the style for ruby which shall be a style with family of ruby.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRubyText(RubyText rubyText)Sets an annotation text.voidSets the style for ruby which shall be a style with family of ruby.toString()Converts the value of the current Ruby object to its equivalent string representation.
-
Constructor Details
-
Ruby
public Ruby()Initializes a new instance of the Ruby class.
-
-
Method Details
-
addSpace
public void addSpace()Adds a single space to the content. -
addSpace
public void addSpace(int spaceCount)Adds a single space to the content.- Parameters:
spaceCount- the space count
-
addTab
public void addTab()Adds a single tab to the content. -
addLineBreak
public void addLineBreak()Adds a single line break to the content. -
add
Adds a String object to the content.- Parameters:
text- the text
-
add
Adds a Text object to the content.- Parameters:
text- the text
-
add
Adds an Annotation object to the content.- Parameters:
annotation- the annotation
-
add
Adds an AttributedText object to the content.- Parameters:
attributedText- the attributed text
-
add
Adds a Hyperlink object to the content.- Parameters:
hyperlink- the hyperlink
-
add
Adds a Field object to the content.- Parameters:
field- the field
-
add
Adds a Bookmark object to the content.- Parameters:
bookmark- the bookmark
-
add
Adds a BookmarkStart object to the content.- Parameters:
bookmarkStart- the bookmark start
-
add
Adds a BookmarkEnd object to the content.- Parameters:
bookmarkEnd- the bookmark end
-
add
Adds a Change object to the content.- Parameters:
change- the change
-
add
Adds a ChangeEnd object to the content.- Parameters:
changeEnd- the change end
-
add
Adds a ChangeStart object to the content.- Parameters:
changeStart- the change start
-
add
Adds a Shape object to the content.- Parameters:
shape- the shape
-
add
Adds a Note object to the content.- Parameters:
note- the note
-
add
Adds a Ruby object to the content.- Parameters:
ruby- the ruby
-
add
Adds a PointReference object to the content.- Parameters:
pointReference- the point reference
-
add
Adds a RangeReference object to the content.- Parameters:
rangeReference- the range reference
-
add
Adds an IParagraphContent object to the content.- Parameters:
paragraphContent- the paragraph content
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Ruby object to its equivalent string representation. -
getContent
Contains the ruby content.- Returns:
- the content
-
getStyle
Gets the style for ruby which shall be a style with family of ruby.- Returns:
- the style
-
setStyle
Sets the style for ruby which shall be a style with family of ruby.- Parameters:
style- the new style
-
getRubyText
Gets an annotation text.- Returns:
- the ruby text
-
setRubyText
Sets an annotation text.- Parameters:
rubyText- the new ruby text
-