public class Padding extends AttributeSubSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
KEY_SET |
Constructor and Description |
---|
Padding()
Creates a new padding object without any definitions.
|
Padding(int padding)
Creates a new padding object with a specific top, left, right and bottom
padding.
|
Padding(int top,
int left,
int right,
int bottom)
Creates a new padding object with a specific top, left, right and bottom
padding.
|
Padding(Measure padding)
Creates a new padding object with a specific top, left, right and bottom
padding.
|
Padding(Measure top,
Measure left,
Measure right,
Measure bottom)
Creates a new padding object with a specific top, left, right and bottom
padding.
|
Modifier and Type | Method and Description |
---|---|
Measure |
getAfter() |
java.lang.Object |
getAttribute(int keyIdx) |
Measure |
getBefore() |
Measure |
getBottom() |
Measure |
getEnd() |
Measure |
getLeft() |
Measure |
getRight() |
Measure |
getStart() |
Measure |
getTop() |
boolean |
isDefined() |
void |
setAfter(Measure after) |
void |
setBefore(Measure before) |
void |
setBottom(Measure bottom) |
void |
setEnd(Measure end) |
void |
setLeft(Measure left) |
void |
setRight(Measure right) |
void |
setStart(Measure start) |
void |
setTop(Measure top) |
addDefinedAttributes, applyAttributes, clone, isMutable, makeImmutable, setAttribute
public Padding()
public Padding(int padding)
padding
- Padding top, left, right and bottom in Points.public Padding(int top, int left, int right, int bottom)
top
- Padding top in points.left
- Padding left in points.right
- Padding right in points.bottom
- Padding bottom in points.public Padding(Measure padding)
padding
- Padding top, left, right and bottom.public Measure getTop()
public Measure getStart()
public Measure getRight()
public Measure getEnd()
public Measure getLeft()
public Measure getBottom()
public Measure getBefore()
public Measure getAfter()
public void setAfter(Measure after)
public void setBefore(Measure before)
public void setBottom(Measure bottom)
public void setEnd(Measure end)
public void setRight(Measure right)
public void setLeft(Measure left)
public void setStart(Measure start)
public void setTop(Measure top)
public boolean isDefined()
public java.lang.Object getAttribute(int keyIdx)
getAttribute
in class AttributeSubSet
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.