Package com.storedobject.svg
Class Margin
java.lang.Object
com.storedobject.svg.Margin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbottom(double bottom) Sets the bottom margin.doubleReturns the bottom margin.doublegetLeft()Returns the left margin.doublegetRight()Returns the right margin.doublegetTop()Returns the top margin.left(double left) Sets the left margin.right(double right) Sets the right margin.top(double top) Sets the top margin.
-
Constructor Details
-
Margin
public Margin()Constructs a margin with all sides set to 0. -
Margin
public Margin(double margin) Constructs a margin with all sides set to the specified value.- Parameters:
margin- Margin value for all sides.
-
-
Method Details
-
getTop
public double getTop()Returns the top margin.- Returns:
- Top margin.
-
getBottom
public double getBottom()Returns the bottom margin.- Returns:
- Bottom margin.
-
getLeft
public double getLeft()Returns the left margin.- Returns:
- Left margin.
-
getRight
public double getRight()Returns the right margin.- Returns:
- Right margin.
-
top
Sets the top margin.- Parameters:
top- Top margin value.- Returns:
- This margin for chaining.
-
bottom
Sets the bottom margin.- Parameters:
bottom- Bottom margin value.- Returns:
- This margin for chaining.
-
left
Sets the left margin.- Parameters:
left- Left margin value.- Returns:
- This margin for chaining.
-
right
Sets the right margin.- Parameters:
right- Right margin value.- Returns:
- This margin for chaining.
-