Module org.sejda.sambox
Class PDRectlinearMeasureDictionary
java.lang.Object
org.sejda.sambox.pdmodel.interactive.measurement.PDMeasureDictionary
org.sejda.sambox.pdmodel.interactive.measurement.PDRectlinearMeasureDictionary
- All Implemented Interfaces:
COSObjectable
This class represents a rectlinear measure dictionary.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe subtype of the rectlinear measure dictionary.Fields inherited from class org.sejda.sambox.pdmodel.interactive.measurement.PDMeasureDictionary
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PDRectlinearMeasureDictionary(COSDictionary dictionary) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionThis will return the angles.getAreas()This will return the areas.This will return the changes along the x-axis.This will return the changes along the y-axis.float[]This will return the origin of the coordinate system.floatgetCYX()This will return the CYX factor.This will return the distances.This will return the sloaps of a line.This will return the scale ration.voidsetAngles(PDNumberFormatDictionary[] angles) This will set the angles.voidsetAreas(PDNumberFormatDictionary[] areas) This will set the areas.voidsetChangeXs(PDNumberFormatDictionary[] changeXs) This will set the changes along the x-axis.voidsetChangeYs(PDNumberFormatDictionary[] changeYs) This will set the changes along the y-axis.voidsetCoordSystemOrigin(float[] coordSystemOrigin) This will set the origin of the coordinate system.voidsetCYX(float cyx) This will set the CYX factor.voidsetDistances(PDNumberFormatDictionary[] distances) This will set the distances.voidsetLineSloaps(PDNumberFormatDictionary[] lineSloaps) This will set the sloaps of a line.voidsetScaleRatio(String scaleRatio) This will set the scale ration.Methods inherited from class org.sejda.sambox.pdmodel.interactive.measurement.PDMeasureDictionary
getCOSObject, getSubtype, getType, setSubtype
-
Field Details
-
SUBTYPE
The subtype of the rectlinear measure dictionary.- See Also:
-
-
Constructor Details
-
PDRectlinearMeasureDictionary
public PDRectlinearMeasureDictionary()Constructor. -
PDRectlinearMeasureDictionary
Constructor.- Parameters:
dictionary- the corresponding dictionary
-
-
Method Details
-
getScaleRatio
This will return the scale ration.- Returns:
- the scale ratio.
-
setScaleRatio
This will set the scale ration.- Parameters:
scaleRatio- the scale ratio.
-
getChangeXs
This will return the changes along the x-axis.- Returns:
- changes along the x-axis
-
setChangeXs
This will set the changes along the x-axis.- Parameters:
changeXs- changes along the x-axis
-
getChangeYs
This will return the changes along the y-axis.- Returns:
- changes along the y-axis
-
setChangeYs
This will set the changes along the y-axis.- Parameters:
changeYs- changes along the y-axis
-
getDistances
This will return the distances.- Returns:
- distances
-
setDistances
This will set the distances.- Parameters:
distances- distances
-
getAreas
This will return the areas.- Returns:
- areas
-
setAreas
This will set the areas.- Parameters:
areas- areas
-
getAngles
This will return the angles.- Returns:
- angles
-
setAngles
This will set the angles.- Parameters:
angles- angles
-
getLineSloaps
This will return the sloaps of a line.- Returns:
- the sloaps of a line
-
setLineSloaps
This will set the sloaps of a line.- Parameters:
lineSloaps- the sloaps of a line
-
getCoordSystemOrigin
public float[] getCoordSystemOrigin()This will return the origin of the coordinate system.- Returns:
- the origin
-
setCoordSystemOrigin
public void setCoordSystemOrigin(float[] coordSystemOrigin) This will set the origin of the coordinate system.- Parameters:
coordSystemOrigin- the origin
-
getCYX
public float getCYX()This will return the CYX factor.- Returns:
- CYX factor
-
setCYX
public void setCYX(float cyx) This will set the CYX factor.- Parameters:
cyx- CYX factor
-