public class Leading extends Object
Property.LEADING
key in an IPropertyContainer
.
Modifier and Type | Field and Description |
---|---|
static int |
FIXED
A leading type independent of font size.
|
static int |
MULTIPLIED
A leading type related to the font size and the resulting bounding box.
|
protected int |
type |
protected float |
value |
Constructor and Description |
---|
Leading(int type, float value)
Creates a Leading object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getType()
Gets the calculation type of the Leading object.
|
float |
getValue()
Gets the value to be used as the basis for the leading calculation.
|
int |
hashCode() |
public static final int FIXED
public static final int MULTIPLIED
protected int type
protected float value
public Leading(int type, float value)
type
- a constant type that defines the calculation of actual leading distance. Either FIXED
or MULTIPLIED
value
- to be used as a basis for the leading calculation.
public int getType()
FIXED
or MULTIPLIED
public float getValue()
Copyright © 1998–2016 iText Group NV. All rights reserved.