A print plane is a 2-dimensional plane with a ruler for object placement and printer resolution needed to correlate ruler units to native printer dots. More...
Public Member Functions | |
| PrintPlane () | |
| PrintPlane (IRuler ruler) | |
| PrintPlane (IRuler ruler, IPrintResolution printResolution) | |
| IPrintResolution | GetPrinterResolution () |
| The printer resolution used for all objects on plane. More... | |
| void | SetPrinterResolution (IPrintResolution printerResolution) |
| IRuler | GetRuler () |
| The ruler used by all objects if a specific ruler is not changed or provided. More... | |
| void | SetRuler (IRuler ruler) |
| float | DotsPerUnit (IRuler ruler, IPrintResolution resolution) |
| float | DotsPerUnit (IRuler ruler) |
| float | DotsToPoints (float dots, IPrintResolution resolution) |
| float | DotsToPoints (float dots) |
| float | InchToDots (float inchValue, IPrintResolution resolution) |
| float | InchToDots (float inchValue) |
| float | InchToPoints (float inchValue, IPrintResolution resolution) |
| float | InchToPoints (float inchValue) |
| float | MMToDots (float mmValue, IPrintResolution resolution) |
| float | MMToDots (float mmValue) |
| float | MMToPoints (float mmValue, IPrintResolution resolution) |
| float | MMToPoints (float mmValue) |
| float | ToPoints (float scaledNumber, IRuler ruler, IPrintResolution resolution) |
| float | ToPoints (float scaledNumber, IRuler ruler) |
| float | ToPoints (float scaledNumber) |
| float | ToDots (float scaledNumber, IRuler ruler, IPrintResolution resolution) |
| float | ToDots (float scaledNumber, IRuler ruler) |
| float | ToDots (float scaledNumber) |
| float | ToInch (float scaledNumber, IRuler ruler, IPrintResolution resolution) |
| float | ToInch (float scaledNumber, IRuler ruler) |
| float | ToInch (float scaledNumber) |
| float | ToMM (float scaledNumber, IRuler ruler, IPrintResolution resolution) |
| float | ToMM (float scaledNumber, IRuler ruler) |
| float | ToMM (float scaledNumber) |
| IPoint | ToDots (IPoint scaledPosition, IRuler ruler, IPrintResolution resolution) |
| IPoint | ToDots (IPoint scaledPosition, IRuler ruler) |
| IPoint | ToDots (IPoint scaledPosition) |
Static Public Member Functions | |
| static int | Round (float numToRound) |
| Round a float to integer. More... | |
Private Attributes | |
| IPrintResolution | printerResolution |
| IRuler | ruler |
A print plane is a 2-dimensional plane with a ruler for object placement and printer resolution needed to correlate ruler units to native printer dots.
| com.UniPRT.Sdk.LabelMaker.PrintPlane.PrintPlane | ( | ) |
| com.UniPRT.Sdk.LabelMaker.PrintPlane.PrintPlane | ( | IRuler | ruler | ) |
| com.UniPRT.Sdk.LabelMaker.PrintPlane.PrintPlane | ( | IRuler | ruler, |
| IPrintResolution | printResolution | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit | ( | IRuler | ruler | ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution.GetDotsPerInch(), com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution.GetDotsPerMM(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetPrinterResolution(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetRuler(), com.UniPRT.Sdk.LabelMaker.Interface.IRuler.GetScale(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit | ( | IRuler | ruler, |
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution.GetDotsPerInch(), com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution.GetDotsPerMM(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetPrinterResolution(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetRuler(), com.UniPRT.Sdk.LabelMaker.Interface.IRuler.GetScale(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints().
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsToPoints | ( | float | dots | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsToPoints | ( | float | dots, |
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution.GetDotsPerInch(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetPrinterResolution(), and com.UniPRT.Sdk.LabelMaker.Const.POINTS_PER_INCH.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsToPoints(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints().
| IPrintResolution com.UniPRT.Sdk.LabelMaker.PrintPlane.GetPrinterResolution | ( | ) |
The printer resolution used for all objects on plane.
The placement of objects within a plane depends on the printer resolution when using units other than dots.
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.printerResolution.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsToPoints(), com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToDots(), com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToPoints(), com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToDots(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints().
| IRuler com.UniPRT.Sdk.LabelMaker.PrintPlane.GetRuler | ( | ) |
The ruler used by all objects if a specific ruler is not changed or provided.
By changing the settings of this ruler, it allows all objects to use a common ruler scale/resolution.
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints().
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToDots | ( | float | inchValue | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToDots | ( | float | inchValue, |
| IPrintResolution | resolution | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToPoints | ( | float | inchValue | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToPoints | ( | float | inchValue, |
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.Const.POINTS_PER_INCH.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.InchToPoints().
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToDots | ( | float | mmValue | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToDots | ( | float | mmValue, |
| IPrintResolution | resolution | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToPoints | ( | float | mmValue | ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToPoints().
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToPoints | ( | float | mmValue, |
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.Const.MM_PER_INCH, and com.UniPRT.Sdk.LabelMaker.Const.POINTS_PER_INCH.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.MMToPoints().
|
static |
Round a float to integer.
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.AztecBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.AztecBarcode.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.DataMatrixBarcode.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.DataMatrixBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.QRBarcode.toString(), and com.UniPRT.Sdk.LabelMaker.TSPL.QRBarcode.toString().
| void com.UniPRT.Sdk.LabelMaker.PrintPlane.SetPrinterResolution | ( | IPrintResolution | printerResolution | ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.printerResolution.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.PrintPlane().
| void com.UniPRT.Sdk.LabelMaker.PrintPlane.SetRuler | ( | IRuler | ruler | ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.PrintPlane().
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots | ( | float | scaledNumber | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots | ( | float | scaledNumber, |
| IRuler | ruler | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots | ( | float | scaledNumber, |
| IRuler | ruler, | ||
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.BarWidths.BcdMagnification1D(), com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths.BcdMagnification1D(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots(), com.UniPRT.Sdk.LabelMaker.PGL.Line.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.Line.toString(), com.UniPRT.Sdk.LabelMaker.PGL.Barcode1D.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.Barcode1D.toString(), com.UniPRT.Sdk.LabelMaker.PGL.AztecBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.AztecBarcode.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.DataMatrixBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.Text.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.Text.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.DataMatrixBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.QRBarcode.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.QRBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.MaxicodeBarcode.toString(), com.UniPRT.Sdk.LabelMaker.PGL.Box.toString(), com.UniPRT.Sdk.LabelMaker.TSPL.Box.toString(), and com.UniPRT.Sdk.LabelMaker.TSPL.MaxicodeBarcode.toString().
| IPoint com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots | ( | IPoint | scaledPosition, |
| IRuler | ruler, | ||
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetPrinterResolution(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetRuler(), com.UniPRT.Sdk.LabelMaker.Interface.IPair< T >.GetX(), com.UniPRT.Sdk.LabelMaker.Interface.IPair< T >.GetY(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch | ( | float | scaledNumber | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch | ( | float | scaledNumber, |
| IRuler | ruler | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch | ( | float | scaledNumber, |
| IRuler | ruler, | ||
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), com.UniPRT.Sdk.LabelMaker.Interface.IPrintResolution.GetDotsPerInch(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch(), com.UniPRT.Sdk.LabelMaker.PGL.Barcode1D.toString(), and com.UniPRT.Sdk.LabelMaker.TSPL.Barcode1D.toString().
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM | ( | float | scaledNumber | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM | ( | float | scaledNumber, |
| IRuler | ruler | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM | ( | float | scaledNumber, |
| IRuler | ruler, | ||
| IPrintResolution | resolution | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints | ( | float | scaledNumber | ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints | ( | float | scaledNumber, |
| IRuler | ruler | ||
| ) |
| float com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints | ( | float | scaledNumber, |
| IRuler | ruler, | ||
| IPrintResolution | resolution | ||
| ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IPrintPlane.
References com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsToPoints(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ruler.
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.Text.GetFontSizePgl(), com.UniPRT.Sdk.LabelMaker.TSPL.Text.GetFontSizeTspl(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints().
|
private |
|
private |
Referenced by com.UniPRT.Sdk.LabelMaker.PrintPlane.DotsPerUnit(), com.UniPRT.Sdk.LabelMaker.PrintPlane.GetRuler(), com.UniPRT.Sdk.LabelMaker.PrintPlane.PrintPlane(), com.UniPRT.Sdk.LabelMaker.PrintPlane.SetRuler(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToDots(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToInch(), com.UniPRT.Sdk.LabelMaker.PrintPlane.ToMM(), and com.UniPRT.Sdk.LabelMaker.PrintPlane.ToPoints().