Uses of Class
org.faceless.pdf2.Measurement
-
Packages that use Measurement Package Description org.faceless.pdf2 Contains the classes used to create a PDF document -
-
Uses of Measurement in org.faceless.pdf2
Methods in org.faceless.pdf2 that return Measurement Modifier and Type Method Description static MeasurementMeasurement. createGeospatial(Point2D tl, Point2D tr, Point2D br, Point2D bl, String crs, boolean projected)Create a new geospatial Measurement object based on four control points and a coordinate reference system.static MeasurementMeasurement. createRectilinear(double width, double height)Create a new rectilinear Measurement object, for measuring relative distance.MeasurementMeasurement. derive(float x0, float y0, float x1, float y1)Return a copy of this Measurement with the page rectangle set to [x0, y0, x1, y1], suitable for adding a manual measurement directly to a page - although this is not the recommended way to do things, and it's generally easier to callPDFImage.setMeasurement(org.faceless.pdf2.Measurement)orPDFCanvas.setMeasurement(org.faceless.pdf2.Measurement)instead.MeasurementPDFCanvas. getMeasurement()Return the Measurement set byPDFCanvas.setMeasurement(org.faceless.pdf2.Measurement)MeasurementPDFImage. getMeasurement()Return the Measurement value previously set byPDFImage.setMeasurement(org.faceless.pdf2.Measurement)Methods in org.faceless.pdf2 that return types with arguments of type Measurement Modifier and Type Method Description List<Measurement>PDFPage. getMeasurements()Return a read-only list ofMeasurementobject associated with this page, or an empty list if there are none.Methods in org.faceless.pdf2 with parameters of type Measurement Modifier and Type Method Description voidPDFCanvas. setMeasurement(Measurement measurement)If this canvas represents an object in the real world such as an architectural drawing, aerial photograph, microscope image etc, then this method can be used to set the "real world" size of the object.voidPDFImage. setMeasurement(Measurement measurement)If this image represents an object in the real world such as an architectural drawing, aerial photograph, microsocope image etc, then this method can be used to set the "real world" size of the object.
-