2021-11-12 10:54:37 +01:00
#Texteditor
Texteditor is a program to edit a text by using the input and is then able to output it as desired via the console.
2021-11-12 18:06:35 +01:00
##Usermanual
###ADD a paragraph
2021-11-11 23:36:58 +01:00
```ADD```
2021-11-12 15:15:38 +01:00
Adds a paragraph with custom text.< br / > < br / >
2021-11-12 10:54:37 +01:00
Enter the command add to add a new paragraph at the end of text. After submitting the add command you will be prompted to enter the text to add as last paragraph.
2021-11-11 23:36:58 +01:00
```ADD [n]```
2021-11-12 15:15:38 +01:00
Adds a paragraph with custom text at a specific position in text.< br / > < br / >
2021-11-12 10:54:37 +01:00
Enter the command add with the paragraph number where it should be added.
After submitting the add [n] command you will be prompted to enter the text to add in the corresponding paragraph.
2021-11-11 23:36:58 +01:00
2021-11-12 18:06:35 +01:00
###DUMMY Text
2021-11-11 23:36:58 +01:00
```DUMMY```
2021-11-12 15:15:38 +01:00
Inserts a paragraph with dummy text at the end of the text.< br / > < br / >
2021-11-12 10:54:37 +01:00
Enter the command dummy to enter a pre-written paragraph into the text as your last paragraph.
2021-11-11 23:36:58 +01:00
```DUMMY [n]```
2021-11-12 15:15:38 +01:00
Inserts a paragraph with dummy text at a specific position.< br / > < br / >
Enter the command dummy with a paragraph number to insert a pre-written dummy text paragraph to a spcific position.
2021-11-11 23:36:58 +01:00
2021-11-12 18:06:35 +01:00
###REPLACE a Text
2021-11-11 23:36:58 +01:00
```REPLACE```
2021-11-12 15:15:38 +01:00
Replaces desired words in the last paragraph with a desired replacement.< br / > < br / >
2021-11-12 10:54:37 +01:00
Enter the command replace, after submitting the command replace enter the characters that should be replaced. After submitting the characters you will be
need to input the characters wich will replace the previous characters.
2021-11-11 23:36:58 +01:00
```REPLACE [n]```
2021-11-12 10:54:37 +01:00
Replaces desired words in the chosen paragraph [n] text with a desired replacement.< br / > < br / >
Enter the command replace with a desired paragraph where the characters should be replaced,
after submitting the command replace enter the characters that should be replaced. After submitting the characters you will be
need to input the characters wich will replace the previous characters.
2021-11-11 23:36:58 +01:00
2021-11-12 18:06:35 +01:00
###DELETE a Text
2021-11-11 23:36:58 +01:00
```DEL```
2021-11-12 10:54:37 +01:00
Deletes the last paragraph.< br / > < br / >
Enter the command del to delete the last paragraph.
2021-11-11 23:36:58 +01:00
```DEL [n]```
2021-11-12 10:54:37 +01:00
Deletes the selected paragraph.< br / > < br / >
Enter the command del with a paragraph number, the corresponding paragraph will then be deleted.
2021-11-12 10:37:38 +01:00
2021-11-12 18:06:35 +01:00
###INDEX the words
2021-11-12 09:51:37 +01:00
```INDEX```
2021-11-12 10:54:37 +01:00
Diplays the index of words used 3 times or more.< br / > < br / >
2021-11-12 15:15:38 +01:00
Enter the command index to display the words that are displayed more than three times in the text with their corresponding paragraphs.
2021-11-12 10:37:38 +01:00
2021-11-12 18:06:35 +01:00
###Print the Text
2021-11-11 23:36:58 +01:00
```PRINT```
2021-11-12 10:54:37 +01:00
Prints the text with the previously set format option.< br / > < br / >
Enter the command print to print out the current text you have. The Text will be printed with the settings set before (see FORMAT the Text).
2021-11-12 15:15:38 +01:00
If no settings have been set the standard to output is the FIX format and a line length of 20.
2021-11-11 23:36:58 +01:00
2021-11-12 18:06:35 +01:00
###FORMAT the Text
2021-11-12 09:51:37 +01:00
```FORMAT RAW```
2021-11-12 10:54:37 +01:00
Sets the format to raw.< br / > < br / >
Enter the command format raw to change the print format to raw. After you changed the format to raw you can use the command ```PRINT``` again
and each paragraph will be printed on one line with its corresponding paragraph number.
2021-11-11 23:36:58 +01:00
2021-11-12 09:51:37 +01:00
```FORMAT FIX [n]```
2021-11-12 10:54:37 +01:00
Sets the format fix with the maximum line length.< br / > < br / >
Enter the command format fix and the max line length which will be used. After you changed the format to fix you can use the command ```PRINT``` again
and the text will be displayed with the max length in mind and a new line will be created if no space is left for a paragraph.
2021-11-12 15:15:38 +01:00
If a word is too long to fit the line length, it will be displayed as whole, ignoring the max length.
2021-11-12 10:54:37 +01:00
2021-11-12 18:06:35 +01:00
##Classdiagramm
< div class = "mxgraph" style = "max-width:100%;border:1px solid transparent;" data-mxgraph = "{"highlight":"#0000ff","nav":true,"resize":true,"toolbar":"zoom layers lightbox & quot ;,& quot ; edit & quot ; : & quot ; _blank & quot ;,& quot ; xml & quot ; : & quot ;& lt ; mxfile host = \"drawio-plugin \" modified = \"2021-11-12T16:51:33.181Z \" agent = \"5.0 ( Windows NT 6 . 2 ; Win64 ; x64 ) AppleWebKit / 537 . 36 ( KHTML , like Gecko ) Chrome / 89 . 0 . 4389 . 114 Safari / 537 . 36 \" ; etag = \"UV4OUhXHOZGBUB76x4mF \" version = \"14.7.4 \" type = \"embed \"><diagram id = \"eWy9IwHxbh3JgAdMnOEg \" name = \"Seite-1 \"><mxGraphModel dx = \"2606 \" dy = \"774 \" grid = \"1 \" gridSize = \"10 \" guides = \"1 \" tooltips = \"1 \" connect = \"1 \" arrows = \"1 \" fold = \"1 \" page = \"1 \" pageScale = \"1 \" pageWidth = \"827 \" pageHeight = \"1169 \" math = \"0 \" shadow = \"0 \"><root><mxCell id = \"0 \"/><mxCell id = \"1 \" parent = \"0 \"/><mxCell id = \"9L6EbMpzsWciNYXeLQUw-5 \" value = \"TextEditor \" style = \"swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0; \" parent = \"1 \" vertex = \"1 \"><mxGeometry x = \"50 \" y = \"350 \" width = \"220 \" height = \"60 \" as = \"geometry \"/></mxCell><mxCell id = \"9L6EbMpzsWciNYXeLQUw-7 \" value = \" \" style = \"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest; \" parent = \"9L6EbMpzsWciNYXeLQUw-5 \" vertex = \"1 \"><mxGeometry y = \"26 \" width = \"220 \" height = \"8 \" as = \"geometry \"/></mxCell><mxCell id = \"9L6EbMpzsWciNYXeLQUw-8 \" value = \"private static void Main ( String [] args ) \" ; style = \"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest; \" parent = \"9L6EbMpzsWciNYXeLQUw-5 \" vertex = \"1 \"><mxGeometry y = \"34 \" width = \"220 \" height = \"26 \" as = \"geometry \"/></mxCell><mxCell id = \"9L6EbMpzsWciNYXeLQUw-12 \" value = \"Text \" style = \"swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0; \" parent = \"1 \" vertex = \"1 \"><mxGeometry x = \"690 \" y = \"210 \" width = \"310 \" height = \"198 \" as = \"geometry \"/></mxCell><mxCell id = \"3 \" value = \"- text:ArrayList & amp ; lt ; String & amp ; gt ;{ final } \" ; style = \"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontStyle=0 \" parent = \"9L6EbMpzsWciNYXeLQUw-12 \" vertex = \"1 \"><mxGeometry y = \"26 \" width = \"310 \" height = \"20 \" as = \"geometry \"/></mxCell><mxCell id = \"2 \" value = \"- dummyText { final } \" ; style = \"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontStyle=4 \" parent = \"9L6EbMpzsWciNYXeLQUw-12 \" vertex = \"1 \"><mxGeometry y = \"46 \" width = \"310 \" height = \"20 \" as = \"geometry \"/></mxCell><mxCell id = \
< script type = "text/javascript" src = "https://viewer.diagrams.net/js/viewer-static.min.js" > < / script >
![Classdiagramm ](docs/PM2_ClassDiagram.drawio.svg )