Package org.verapdf.pd.font
Class CIDWArrayRange
- java.lang.Object
-
- org.verapdf.pd.font.CIDWArrayRange
-
public class CIDWArrayRange extends Object
Represents range of sequential CIDs and width for them. This is used in W array in CIDFonts.- Author:
- Sergey Shemyakov
-
-
Constructor Summary
Constructors Constructor Description CIDWArrayRange(int beginCID, int endCID, double width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int cid)
Returns true if width for given CID is stored in this CIDWArrayRange.double
getWidth()
-
-
-
Method Detail
-
contains
public boolean contains(int cid)
Returns true if width for given CID is stored in this CIDWArrayRange.- Parameters:
cid
- is CID to check.- Returns:
- true if width for this CID can be obtained from this CIDWArrayRange.
-
getWidth
public double getWidth()
- Returns:
- width for this range.
-
-