| Revision 2,
846 bytes
checked in by jdalbey, 10 years ago
(diff) |
|
Initial Import of project files
|
| Line | |
|---|
| 1 | package tmcsim.client.cadscreens.view; |
|---|
| 2 | |
|---|
| 3 | import tmcsim.common.CADEnums.TEXT_STYLES; |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * CADDocElement is a container class used in creation of document elements |
|---|
| 7 | * for display in CADMainView Screens. The CADDocElement contains a text |
|---|
| 8 | * and style pair. The style TEXT_STYLES enumeration value is used to |
|---|
| 9 | * reference a specific style that has been initialized in the StylePane |
|---|
| 10 | * that will be used for displaying the text. |
|---|
| 11 | * |
|---|
| 12 | * @author Matthew Cechini |
|---|
| 13 | * @version |
|---|
| 14 | */ |
|---|
| 15 | public class CADDocElement { |
|---|
| 16 | |
|---|
| 17 | /** Document element text. */ |
|---|
| 18 | public String text; |
|---|
| 19 | |
|---|
| 20 | /** Document element style. */ |
|---|
| 21 | public TEXT_STYLES style; |
|---|
| 22 | |
|---|
| 23 | /** |
|---|
| 24 | * Constructor. |
|---|
| 25 | * |
|---|
| 26 | * @param t New text String. |
|---|
| 27 | * @param s New style. |
|---|
| 28 | */ |
|---|
| 29 | public CADDocElement(String t, TEXT_STYLES s) { |
|---|
| 30 | text = t; |
|---|
| 31 | style = s; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.