sgtplot.beans
Class Margin
- java.lang.Object
-
- sgtplot.beans.Margin
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Margin extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableMargin class.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description floatbottomBottom margin.floatleftLeft margin.floatrightRight margin.floattopTop margin.
-
Constructor Summary
Constructors Constructor and Description Margin()Default constructor.Margin(float top, float left, float bottom, float right)Margin constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Margincopy()Copy Margin object.floatgetBottom()Get bottom marginfloatgetLeft()Get left margin.floatgetRight()Get right margin.floatgetTop()Get top margin.voidsetBottom(float bottom)Set bottom margin.voidsetLeft(float left)Set left margin.voidsetRight(float right)Set right margin.voidsetTop(float top)Set top margin.java.lang.StringtoString()Get string representation ofMargin.
-
-
-
Field Detail
-
left
public float left
Left margin.
-
right
public float right
Right margin.
-
top
public float top
Top margin.
-
bottom
public float bottom
Bottom margin.
-
-
Constructor Detail
-
Margin
public Margin()
Default constructor. Sets all margin components to 0.0.
-
Margin
public Margin(float top, float left, float bottom, float right)Margin constructor.- Parameters:
top- top marginleft- left marginbottom- bottom marginright- right margin
-
-
Method Detail
-
copy
public Margin copy()
Copy Margin object.- Returns:
- Margin
-
setTop
public void setTop(float top)
Set top margin.- Parameters:
top- top margin
-
getTop
public float getTop()
Get top margin.- Returns:
- top margin
-
setBottom
public void setBottom(float bottom)
Set bottom margin.- Parameters:
bottom- bottom margin
-
getBottom
public float getBottom()
Get bottom margin- Returns:
- bottom margin
-
setLeft
public void setLeft(float left)
Set left margin.- Parameters:
left- left margin
-
getLeft
public float getLeft()
Get left margin.- Returns:
- left margin
-
setRight
public void setRight(float right)
Set right margin.- Parameters:
right- right margin
-
getRight
public float getRight()
Get right margin.- Returns:
- right margin
-
toString
public java.lang.String toString()
Get string representation ofMargin.- Overrides:
toStringin classjava.lang.Object- Returns:
- string
-
-
DMelt 3.0 © DataMelt by jWork.ORG