org.jplot2d.element
Interface PlotMargin
-
- All Superinterfaces:
- Element
- All Known Subinterfaces:
- PlotMarginEx
- All Known Implementing Classes:
- PlotMarginImpl
public interface PlotMargin extends Element
Subplot has a content area in the center, surrounded by margin area. The margin area holds axes, title and legend. Besides the margin, there are also extra margins. The extra margin plus the margin will be the total margin.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doublegetBottom()Returns the actual margin value.doublegetExtraBottom()Returns the extra bottom margin.doublegetExtraLeft()Returns the extra left margin.doublegetExtraRight()Returns the extra right margin.doublegetExtraTop()Returns the extra top margin.doublegetLeft()Returns the actual margin value.doublegetRight()Returns the actual margin value.doublegetTop()Returns the actual margin value.booleanisAutoBottom()Returnstrueif the margin is a auto chose nice value.booleanisAutoLeft()Returnstrueif the margin is a auto chose nice value.booleanisAutoRight()Returnstrueif the margin is a auto chose nice value.booleanisAutoTop()Returnstrueif the margin is a auto chose nice value.voidsetAutoBottom(boolean auto)Set totrueto let layout director to choose a nice value.voidsetAutoLeft(boolean auto)Set totrueto let layout director to choose a nice value.voidsetAutoRight(boolean auto)Set totrueto let layout director to choose a nice value.voidsetAutoTop(boolean auto)Set totrueto let layout director to choose a nice value.voidsetBottom(double marginBottom)Sets the bottom margin value.voidsetExtraBottom(double marginBottom)Sets the extra bottom margin.voidsetExtraLeft(double marginLeft)Sets the extra left margin.voidsetExtraRight(double marginRight)Sets the extra right margin.voidsetExtraTop(double marginTop)Sets the extra top margin.voidsetLeft(double marginLeft)Sets the left margin value.voidsetRight(double marginRight)Sets the right margin value.voidsetTop(double marginTop)Sets the top margin value.-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment, getId, getParent
-
-
-
-
Method Detail
-
isAutoLeft
boolean isAutoLeft()
Returnstrueif the margin is a auto chose nice value.- Returns:
trueif the margin is a auto chose nice value
-
isAutoRight
boolean isAutoRight()
Returnstrueif the margin is a auto chose nice value.- Returns:
trueif the margin is a auto chose nice value
-
isAutoBottom
boolean isAutoBottom()
Returnstrueif the margin is a auto chose nice value.- Returns:
trueif the margin is a auto chose nice value
-
isAutoTop
boolean isAutoTop()
Returnstrueif the margin is a auto chose nice value.- Returns:
trueif the margin is a auto chose nice value
-
setAutoLeft
void setAutoLeft(boolean auto)
Set totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value bysetLeft(double).- Parameters:
auto- the flag
-
setAutoRight
void setAutoRight(boolean auto)
Set totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value bysetRight(double).- Parameters:
auto- the flag
-
setAutoBottom
void setAutoBottom(boolean auto)
Set totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value bysetBottom(double).- Parameters:
auto- the flag
-
setAutoTop
void setAutoTop(boolean auto)
Set totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value bysetTop(double).- Parameters:
auto- the flag
-
getLeft
double getLeft()
Returns the actual margin value.- Returns:
- the actual margin value
-
getRight
double getRight()
Returns the actual margin value.- Returns:
- the actual margin value
-
getBottom
double getBottom()
Returns the actual margin value.- Returns:
- the actual margin value
-
getTop
double getTop()
Returns the actual margin value.- Returns:
- the actual margin value
-
setLeft
void setLeft(double marginLeft)
Sets the left margin value. Setting a new value will disable auto margin calculation and makeisAutoLeft()returnsfalse.- Parameters:
marginLeft-
-
setRight
void setRight(double marginRight)
Sets the right margin value. Setting a new value will disable auto margin calculation and makeisAutoRight()returnsfalse.- Parameters:
marginRight-
-
setBottom
void setBottom(double marginBottom)
Sets the bottom margin value. Setting a new value will disable auto margin calculation and makeisAutoBottom()returnsfalse.- Parameters:
marginBottom-
-
setTop
void setTop(double marginTop)
Sets the top margin value. Setting a new value will disable auto margin calculation and makeisAutoTop()returnsfalse.- Parameters:
marginTop-
-
getExtraLeft
double getExtraLeft()
Returns the extra left margin.- Returns:
- the extra left margin
-
getExtraRight
double getExtraRight()
Returns the extra right margin.- Returns:
- the extra right margin
-
getExtraBottom
double getExtraBottom()
Returns the extra bottom margin.- Returns:
- the extra bottom margin
-
getExtraTop
double getExtraTop()
Returns the extra top margin.- Returns:
- the extra top margin
-
setExtraLeft
void setExtraLeft(double marginLeft)
Sets the extra left margin.- Parameters:
marginTop- the extra left margin
-
setExtraRight
void setExtraRight(double marginRight)
Sets the extra right margin.- Parameters:
marginTop- the extra right margin
-
setExtraBottom
void setExtraBottom(double marginBottom)
Sets the extra bottom margin.- Parameters:
marginTop- the extra bottom margin
-
setExtraTop
void setExtraTop(double marginTop)
Sets the extra top margin.- Parameters:
marginTop- the extra top margin
-
-
DMelt 3.0 © DataMelt by jWork.ORG