-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of typing, let's hope it was worth it
- Loading branch information
1 parent
8225184
commit 4c3177a
Showing
54 changed files
with
670 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.labelzoom.api.model; | ||
|
||
public enum BarcodeStyle | ||
{ | ||
Unknown(-1), | ||
Aztec(0), | ||
Code11(1), | ||
Interleaved2of5(2), | ||
Code39(3), | ||
Code49(4), | ||
PlanetCode(5), | ||
PDF417(7), | ||
EAN_8(8), | ||
UPC_E(9), | ||
Code93(10), | ||
CODABLOCK(11), | ||
Code128(12), | ||
UPSMaxiCode(13), | ||
EAN_13(14), | ||
Micro_PDF417(15), | ||
Industrial2of5(18), | ||
Standard2of5(19), | ||
ANSICodabar(20), | ||
LOGMARS(21), | ||
MSI(22), | ||
Aztec2(24), | ||
Plessey(25), | ||
QRCode(26), | ||
GS1Databar(27), | ||
UPC_EAN(28), | ||
UPC_A(30), | ||
DataMatrix(33), | ||
PostNet(35); | ||
|
||
private int value; | ||
BarcodeStyle(final int value) { | ||
this.value = value; | ||
} | ||
public int getValue() { | ||
return value; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/labelzoom/api/model/HorizontalAlignment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.labelzoom.api.model; | ||
|
||
public enum HorizontalAlignment | ||
{ | ||
Left, Center, Right | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.labelzoom.api.model; | ||
|
||
public enum Justification | ||
{ | ||
Left, Right, Auto | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.labelzoom.api.model; | ||
|
||
public enum Orientation | ||
{ | ||
Horizontal, Vertical; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/labelzoom/api/model/PageOrientation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.labelzoom.api.model; | ||
|
||
public enum PageOrientation | ||
{ | ||
Landscape (1), | ||
Portrait (2), | ||
ReverseLandscape (3), | ||
ReversePortrait (4); | ||
|
||
private final int value; | ||
PageOrientation(final int value) { | ||
this.value = value; | ||
} | ||
public int getValue() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.labelzoom.api.model; | ||
|
||
public enum PositioningMode | ||
{ | ||
Origin, Typeset | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/labelzoom/api/model/components/IAddressBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface IAddressBlock extends IFontComponent | ||
{ | ||
boolean isUseLocalizedAddressFormat(); | ||
void setUseLocalizedAddressFormat(boolean useLocalizedAddressFormat); | ||
|
||
int getStaticAddressFormat(); | ||
void setStaticAddressFormat(int addressFormat); | ||
|
||
boolean isShowContactName(); | ||
void setShowContactName(boolean showContactName); | ||
|
||
boolean isShowCountry(); | ||
void setShowCountry(boolean showCountry); | ||
|
||
String getAddressId(); | ||
void setAddressId(String addressId); | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/labelzoom/api/model/components/IComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import com.labelzoom.api.model.Justification; | ||
import com.labelzoom.api.model.PositioningMode; | ||
|
||
public interface IComponent extends Cloneable | ||
{ | ||
int getLeft(); | ||
void setLeft(int left); | ||
|
||
int getTop(); | ||
void setTop(int top); | ||
|
||
float getRotation(); | ||
void setRotation(float rotation); | ||
|
||
boolean isReverse(); | ||
void setReverse(); | ||
|
||
Justification getJustification(); | ||
void setJustification(Justification justification); | ||
|
||
PositioningMode getPositioningMode(); | ||
void setPositioningMode(PositioningMode positioningMode); | ||
|
||
int getZIndex(); | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/labelzoom/api/model/components/IContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface IContainer extends IComponent | ||
{ | ||
Iterable<IComponent> getChildren(); | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/labelzoom/api/model/components/IDataCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface IDataCommand extends Cloneable | ||
{ | ||
String getLanguage(); | ||
void setLanguage(String language); | ||
|
||
String getDataCommand(); | ||
void setDataCommand(String dataCommand); | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/labelzoom/api/model/components/IDynamicField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import java.util.regex.Pattern; | ||
|
||
public interface IDynamicField | ||
{ | ||
Pattern SIMPLE_EXPRESSION_PATTERN = Pattern.compile("\"\\$\\{([A-Za-z0-9_]+)\\}\""); | ||
Pattern VARIABLE_EXPRESSION_PATTERN = Pattern.compile("\\$\\{([A-Za-z0-9_]+)\\}"); | ||
Pattern VARIABLE_NAME_PATTERN = Pattern.compile("^([A-Za-z0-9_]+)$"); | ||
|
||
void setExpression(String expression); | ||
String getExpression(); | ||
|
||
void setFieldValue(String value); | ||
String getFieldValue(); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/labelzoom/api/model/components/IFontComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface IFontComponent extends IComponent, ISuppressible | ||
{ | ||
String getFont(); | ||
void setFont(String font); | ||
|
||
float getFontSize(); | ||
void setFontSize(float fontSize); | ||
|
||
float getHorizontalScaling(); | ||
void setHorizontalScaling(float horizontalScaling); | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/labelzoom/api/model/components/IImage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import java.awt.image.RenderedImage; | ||
|
||
public interface IImage extends IComponent | ||
{ | ||
IImageWrapper getImage(); | ||
void setImage(IImageWrapper imageWrapper); | ||
|
||
float getHorizontalScaling(); | ||
void setHorizontalScaling(float horizontalScaling); | ||
|
||
float getVerticalScaling(); | ||
void setVerticalScaling(float verticalScaling); | ||
|
||
interface IImageWrapper | ||
{ | ||
RenderedImage getImage(); | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
src/main/java/com/labelzoom/api/model/components/ILabel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import com.labelzoom.api.model.PageOrientation; | ||
|
||
import java.util.Comparator; | ||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public interface ILabel | ||
{ | ||
String DEFAULT_LAYER_NAME = "background"; | ||
|
||
int getWidth(); | ||
void setWidth(int width); | ||
|
||
int getHeight(); | ||
void setHeight(int height); | ||
|
||
boolean isHighRes(); | ||
void setHighRes(boolean highRes); | ||
|
||
PageOrientation getOrientation(); | ||
void setOrientation(PageOrientation orientation); | ||
|
||
List<ILayer> getLayers(); | ||
void setLayers(List<ILayer> layers); | ||
|
||
IDataCommand getDataCommand(); | ||
void setDataCommand(IDataCommand dataCommand); | ||
|
||
String getSchemaLocation(); | ||
void setSchemaLocation(String schemaLocation); | ||
|
||
String getSchemaVersion(); | ||
void setSchemaVersion(String schemaVersion); | ||
|
||
UUID getId(); | ||
void setId(UUID id); | ||
|
||
List<IComponent> getElements(); | ||
List<IComponent> getSortedElements(); | ||
void setElements(List<IComponent> elements); | ||
|
||
void addElement(IComponent element); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/labelzoom/api/model/components/ILayer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import java.util.List; | ||
|
||
public interface ILayer | ||
{ | ||
String getName(); | ||
void setName(String name); | ||
|
||
List<IComponent> getElements(); | ||
void setElements(List<IComponent> elements); | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/labelzoom/api/model/components/ILine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import com.labelzoom.api.model.Orientation; | ||
|
||
public interface ILine extends IComponent | ||
{ | ||
Orientation getOrientation(); | ||
void setOrientation(Orientation orientation); | ||
|
||
int getThickness(); | ||
void setThickness(int thickness); | ||
|
||
int getLength(); | ||
void setLength(int length); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/labelzoom/api/model/components/IRectangle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface IRectangle extends IComponent | ||
{ | ||
int getWidth(); | ||
void setWidth(int width); | ||
|
||
int getHeight(); | ||
void setHeight(int height); | ||
|
||
int getThickness(); | ||
void setThickness(int thickness); | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/labelzoom/api/model/components/IStaticText.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface IStaticText extends IFontComponent | ||
{ | ||
String getText(); | ||
void setText(String text); | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/labelzoom/api/model/components/ISuppressible.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
public interface ISuppressible | ||
{ | ||
boolean isBlankWhenNull(); | ||
void setBlankWhenNull(boolean blankWhenNull); | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/labelzoom/api/model/components/IVariableField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
/* Copyright (C) 2021, LabelZoom, a subsidiary of RJF Technology Solutions, Inc. | ||
* All rights reserved. Proprietary and confidential. | ||
* | ||
* This file is subject to the license terms found at | ||
* https://www.labelzoom.net/end-user-license-agreement/ | ||
* | ||
* The methods and techniques described herein are considered | ||
* confidential and/or trade secrets. | ||
* No part of this file may be copied, modified, propagated, | ||
* or distributed except as authorized by the license. | ||
*/ | ||
|
||
@Deprecated | ||
public interface IVariableField | ||
{ | ||
void setDataField(String fldnam); | ||
String getDataField(); | ||
|
||
void setFieldValue(String value); | ||
String getFieldValue(); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/labelzoom/api/model/components/IVariableText.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.labelzoom.api.model.components; | ||
|
||
import com.labelzoom.api.model.HorizontalAlignment; | ||
|
||
public interface IVariableText extends IFontComponent, IDynamicField | ||
{ | ||
boolean isAutoSize(); | ||
void setAutoSize(boolean autoSize); | ||
|
||
int getWidth(); | ||
void setWidth(int width); | ||
|
||
int getHeight(); | ||
void setHeight(int height); | ||
|
||
HorizontalAlignment getHorizontalAlignment(); | ||
void setHorizontalAlignment(HorizontalAlignment alignment); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/labelzoom/api/model/components/barcodes/IBarcode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.labelzoom.api.model.components.barcodes; | ||
|
||
import com.labelzoom.api.model.BarcodeStyle; | ||
import com.labelzoom.api.model.components.IComponent; | ||
import com.labelzoom.api.model.components.IDynamicField; | ||
import com.labelzoom.api.model.components.ISuppressible; | ||
|
||
public interface IBarcode extends IComponent, IDynamicField, ISuppressible | ||
{ | ||
BarcodeStyle getBarcodeStyle(); | ||
void setBarcodeStyle(BarcodeStyle barcodeStyle); | ||
} |
Oops, something went wrong.