|
|||||||||
| Home >> All >> jmat >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jmat.data
Class Text

java.lang.Objectjmat.data.Text
- All Implemented Interfaces:
- java.io.Serializable
- public class Text
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
The Text Class is just designed to provide easy-to-use string operations like building log files, displaying text in a window, converting matrix to String format...
- Version:
- 2.0
| Field Summary | |
private java.lang.String |
string
String for internal storage. |
| Constructor Summary | |
Text(Matrix X)
Construct a text. |
|
Text(java.lang.String str)
Construct a text. |
|
| Method Summary | |
static Text |
fromFile(java.io.File file)
Save the text from a file. |
static Text |
fromFile(java.lang.String fileName)
Load the text from a file. |
java.lang.String |
getString()
Provides access to the string of the text. |
void |
merge(Matrix X)
Merge the Matrix. |
void |
merge(java.lang.String s)
Merge the string. |
void |
merge(Text text)
Merge the two Texts. |
void |
setString(Matrix X)
|
void |
setString(java.lang.String str)
Provides access to the string of the text. |
void |
toCommandLine()
Print the Text in the Command Line. |
void |
toFile(java.io.File file)
Save the text in a file. |
void |
toFile(java.lang.String fileName)
Save the Text in a file. |
void |
toFrame(java.lang.String title)
Display the text in a Window in a Frame. |
javax.swing.JPanel |
toPanel()
Display the text in a Window. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
string
private java.lang.String string
- String for internal storage.
| Constructor Detail |
Text
public Text(java.lang.String str)
- Construct a text.
Text
public Text(Matrix X)
- Construct a text.
| Method Detail |
setString
public void setString(java.lang.String str)
- Provides access to the string of the text.
setString
public void setString(Matrix X)
getString
public java.lang.String getString()
- Provides access to the string of the text.
fromFile
public static Text fromFile(java.lang.String fileName)
- Load the text from a file.
fromFile
public static Text fromFile(java.io.File file)
- Save the text from a file.
merge
public void merge(Text text)
- Merge the two Texts.
merge
public void merge(Matrix X)
- Merge the Matrix.
merge
public void merge(java.lang.String s)
- Merge the string.
toCommandLine
public void toCommandLine()
- Print the Text in the Command Line.
toFile
public void toFile(java.lang.String fileName)
- Save the Text in a file.
toFile
public void toFile(java.io.File file)
- Save the text in a file.
toFrame
public void toFrame(java.lang.String title)
- Display the text in a Window in a Frame.
toPanel
public javax.swing.JPanel toPanel()
- Display the text in a Window.
|
|||||||||
| Home >> All >> jmat >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jmat.data.Text