public class FormattedText
extends java.lang.Object
Constructor and Description |
---|
FormattedText(FormattedText selectedtext,
Paragraph parent)
this will create a formattedtext with empty text and formatting consistent
with the selected text
|
FormattedText(RichTextSection section,
Paragraph parent)
creates a new formatted text
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.Node |
getNode() |
javafx.scene.paint.Color |
getSpecialcolor() |
java.lang.String |
getTextPayload() |
boolean |
isBold() |
boolean |
isDisplayed() |
boolean |
isItalic() |
void |
refreshText(java.lang.String newtext) |
void |
setBold(boolean bold) |
void |
setItalic(boolean italic) |
void |
setSection(RichTextSection section) |
void |
setSpecialcolor(javafx.scene.paint.Color specialcolor) |
void |
setString(java.lang.String newtext)
changes the text of this formatted text
|
public FormattedText(RichTextSection section, Paragraph parent)
section
- sectionparent
- parent paragraphpublic FormattedText(FormattedText selectedtext, Paragraph parent)
selectedtext
- public void setSection(RichTextSection section)
section
- public void setBold(boolean bold)
bold
- public void setItalic(boolean italic)
italic
- public void setSpecialcolor(javafx.scene.paint.Color specialcolor)
specialcolor
- public boolean isBold()
public boolean isItalic()
public javafx.scene.paint.Color getSpecialcolor()
public void refreshText(java.lang.String newtext)
newtext
- change the text being displayedpublic javafx.scene.Node getNode()
public java.lang.String getTextPayload()
public void setString(java.lang.String newtext)
newtext
- new textpublic boolean isDisplayed()