diff options
Diffstat (limited to 'src/org/uic/barcode/staticFrame/ticketLayoutBarcode')
3 files changed, 0 insertions, 145 deletions
diff --git a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java b/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java deleted file mode 100644 index e6b9414..0000000 --- a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.uic.barcode.staticFrame.ticketLayoutBarcode;
-
-
-public enum FormatType {
- NORMAL("NORMAL"),
- BOLD("BOLD"),
- ITALIC("ITALIC"),
- BOLDITALIC("BOLDITALIC"),
- SMALL("SMALL"),
- SMALLBOLD("SMALLBOLD"),
- SMALLITALIC("SMALLITALIC"),
- SMALLBOLDITALIC("SMALLBOLDITALIC");
-
-
-
- public String text;
-
- FormatType(String text) {
- this.text = text;
- }
-
- public static FormatType getFormatType(int i) {
- try {
- return FormatType.values()[i];
- } catch (Exception e) {
- return null;
- }
- }
-
- public String toString(){
- return text;
- }
-
-}
diff --git a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java b/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java deleted file mode 100644 index 861629d..0000000 --- a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.uic.barcode.staticFrame.ticketLayoutBarcode;
-
-public class LayoutElement {
-
- private int column;
- private int line;
- private int height;
- private int width;
- private String text;
- private FormatType format = FormatType.NORMAL;
-
- public int getColumn() {
- return column;
- }
- public void setColumn(int column) {
- this.column = column;
- }
- public int getLine() {
- return line;
- }
- public void setLine(int line) {
- this.line = line;
- }
- public int getHeight() {
- return height;
- }
- public void setHeight(int height) {
- this.height = height;
- }
- public int getWidth() {
- return width;
- }
- public void setWidth(int width) {
- this.width = width;
- }
- public String getText() {
- return text;
- }
- public void setText(String text) {
- this.text = text;
- }
- public FormatType getFormat() {
- return format;
- }
- public void setFormat(FormatType format) {
- this.format = format;
- }
-
-
-}
diff --git a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java b/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java deleted file mode 100644 index 8ca8083..0000000 --- a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.uic.barcode.staticFrame.ticketLayoutBarcode;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class TicketLayout {
-
- private String layoutStandard = "RCT2";
-
- /** The layout elements. */
- private List<LayoutElement> elements = new ArrayList<LayoutElement>();
-
-
- /**
- * Gets the layout standard.
- *
- * @return the layout standard
- */
- public String getLayoutStandard() {
- if (layoutStandard == null || layoutStandard.length() != 4) {
- layoutStandard = "RCT2";
- }
- return layoutStandard;
- }
-
- /**
- * Sets the layout standard.
- *
- * @param layoutStandard the new layout standard
- */
- public void setLayoutStandard(String layoutStandard) {
- this.layoutStandard = layoutStandard;
- }
-
- /**
- * Adds the layout element.
- *
- * @param element the element
- */
- public void addLayoutElement(LayoutElement element){
- elements.add(element);
- }
-
- /**
- * Removes the layout elements.
- */
- public void removeLayoutElements(){
- elements.clear();
- }
-
- /**
- * Gets the elements.
- *
- * @return the elements
- */
- public List<LayoutElement> getElements(){
- return elements;
- }
-
-
-}
|