org.jplot2d.element.impl
Class PlotMarginImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.PlotMarginImpl
-
- All Implemented Interfaces:
- java.lang.Cloneable, Element, ElementEx, PlotMarginEx, PlotMargin
public class PlotMarginImpl extends ElementImpl implements PlotMarginEx, java.lang.Cloneable
-
-
Constructor Summary
Constructors Constructor and Description PlotMarginImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PlotMarginImplcopyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)Create a structural copy of this element and put them into orig2copyMap.voiddirectBottom(double marginBottom)Called by LayoutDirector to set the top value whenPlotMargin.isAutoBottom()is true.voiddirectLeft(double marginLeft)Called by LayoutDirector to set the top value whenPlotMargin.isAutoLeft()is true.voiddirectRight(double marginRight)Called by LayoutDirector to set the top value whenPlotMargin.isAutoRight()is true.voiddirectTop(double marginTop)Called by LayoutDirector to set the top value whenPlotMargin.isAutoTop()is true.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.java.lang.StringgetId()Returns the id string of this elementInvokeStepgetInvokeStepFormParent()Return the invoke step to get this object from its parent.doublegetLeft()Returns the actual margin value.PlotExgetParent()Gets the parent of this component.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 class org.jplot2d.element.impl.ElementImpl
copyFrom, getEnvironment, getFullId, notify, setParent, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jplot2d.element.impl.ElementEx
copyFrom, getFullId, notify, setParent
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment
-
-
-
-
Method Detail
-
getParent
public PlotEx getParent()
Description copied from interface:ElementGets the parent of this component.- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfaceElementEx- Specified by:
getParentin interfacePlotMarginEx- Overrides:
getParentin classElementImpl- Returns:
- the parent of this component
-
getId
public java.lang.String getId()
Description copied from interface:ElementReturns the id string of this element
-
getInvokeStepFormParent
public InvokeStep getInvokeStepFormParent()
Description copied from interface:ElementExReturn the invoke step to get this object from its parent.- Specified by:
getInvokeStepFormParentin interfaceElementEx- Returns:
- the invoke step
-
isAutoTop
public boolean isAutoTop()
Description copied from interface:PlotMarginReturnstrueif the margin is a auto chose nice value.- Specified by:
isAutoTopin interfacePlotMargin- Returns:
trueif the margin is a auto chose nice value
-
isAutoLeft
public boolean isAutoLeft()
Description copied from interface:PlotMarginReturnstrueif the margin is a auto chose nice value.- Specified by:
isAutoLeftin interfacePlotMargin- Returns:
trueif the margin is a auto chose nice value
-
isAutoBottom
public boolean isAutoBottom()
Description copied from interface:PlotMarginReturnstrueif the margin is a auto chose nice value.- Specified by:
isAutoBottomin interfacePlotMargin- Returns:
trueif the margin is a auto chose nice value
-
isAutoRight
public boolean isAutoRight()
Description copied from interface:PlotMarginReturnstrueif the margin is a auto chose nice value.- Specified by:
isAutoRightin interfacePlotMargin- Returns:
trueif the margin is a auto chose nice value
-
setAutoTop
public void setAutoTop(boolean auto)
Description copied from interface:PlotMarginSet totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value byPlotMargin.setTop(double).- Specified by:
setAutoTopin interfacePlotMargin- Parameters:
auto- the flag
-
setAutoLeft
public void setAutoLeft(boolean auto)
Description copied from interface:PlotMarginSet totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value byPlotMargin.setLeft(double).- Specified by:
setAutoLeftin interfacePlotMargin- Parameters:
auto- the flag
-
setAutoBottom
public void setAutoBottom(boolean auto)
Description copied from interface:PlotMarginSet totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value byPlotMargin.setBottom(double).- Specified by:
setAutoBottomin interfacePlotMargin- Parameters:
auto- the flag
-
setAutoRight
public void setAutoRight(boolean auto)
Description copied from interface:PlotMarginSet totrueto let layout director to choose a nice value. If set tofalse, user must supply the margin value byPlotMargin.setRight(double).- Specified by:
setAutoRightin interfacePlotMargin- Parameters:
auto- the flag
-
getTop
public double getTop()
Description copied from interface:PlotMarginReturns the actual margin value.- Specified by:
getTopin interfacePlotMargin- Returns:
- the actual margin value
-
getLeft
public double getLeft()
Description copied from interface:PlotMarginReturns the actual margin value.- Specified by:
getLeftin interfacePlotMargin- Returns:
- the actual margin value
-
getBottom
public double getBottom()
Description copied from interface:PlotMarginReturns the actual margin value.- Specified by:
getBottomin interfacePlotMargin- Returns:
- the actual margin value
-
getRight
public double getRight()
Description copied from interface:PlotMarginReturns the actual margin value.- Specified by:
getRightin interfacePlotMargin- Returns:
- the actual margin value
-
setTop
public void setTop(double marginTop)
Description copied from interface:PlotMarginSets the top margin value. Setting a new value will disable auto margin calculation and makePlotMargin.isAutoTop()returnsfalse.- Specified by:
setTopin interfacePlotMargin
-
setLeft
public void setLeft(double marginLeft)
Description copied from interface:PlotMarginSets the left margin value. Setting a new value will disable auto margin calculation and makePlotMargin.isAutoLeft()returnsfalse.- Specified by:
setLeftin interfacePlotMargin
-
setBottom
public void setBottom(double marginBottom)
Description copied from interface:PlotMarginSets the bottom margin value. Setting a new value will disable auto margin calculation and makePlotMargin.isAutoBottom()returnsfalse.- Specified by:
setBottomin interfacePlotMargin
-
setRight
public void setRight(double marginRight)
Description copied from interface:PlotMarginSets the right margin value. Setting a new value will disable auto margin calculation and makePlotMargin.isAutoRight()returnsfalse.- Specified by:
setRightin interfacePlotMargin
-
directTop
public void directTop(double marginTop)
Description copied from interface:PlotMarginExCalled by LayoutDirector to set the top value whenPlotMargin.isAutoTop()is true.- Specified by:
directTopin interfacePlotMarginEx
-
directLeft
public void directLeft(double marginLeft)
Description copied from interface:PlotMarginExCalled by LayoutDirector to set the top value whenPlotMargin.isAutoLeft()is true.- Specified by:
directLeftin interfacePlotMarginEx
-
directBottom
public void directBottom(double marginBottom)
Description copied from interface:PlotMarginExCalled by LayoutDirector to set the top value whenPlotMargin.isAutoBottom()is true.- Specified by:
directBottomin interfacePlotMarginEx
-
directRight
public void directRight(double marginRight)
Description copied from interface:PlotMarginExCalled by LayoutDirector to set the top value whenPlotMargin.isAutoRight()is true.- Specified by:
directRightin interfacePlotMarginEx
-
getExtraTop
public double getExtraTop()
Description copied from interface:PlotMarginReturns the extra top margin.- Specified by:
getExtraTopin interfacePlotMargin- Returns:
- the extra top margin
-
getExtraLeft
public double getExtraLeft()
Description copied from interface:PlotMarginReturns the extra left margin.- Specified by:
getExtraLeftin interfacePlotMargin- Returns:
- the extra left margin
-
getExtraBottom
public double getExtraBottom()
Description copied from interface:PlotMarginReturns the extra bottom margin.- Specified by:
getExtraBottomin interfacePlotMargin- Returns:
- the extra bottom margin
-
getExtraRight
public double getExtraRight()
Description copied from interface:PlotMarginReturns the extra right margin.- Specified by:
getExtraRightin interfacePlotMargin- Returns:
- the extra right margin
-
setExtraTop
public void setExtraTop(double marginTop)
Description copied from interface:PlotMarginSets the extra top margin.- Specified by:
setExtraTopin interfacePlotMargin- Parameters:
marginTop- the extra top margin
-
setExtraLeft
public void setExtraLeft(double marginLeft)
Description copied from interface:PlotMarginSets the extra left margin.- Specified by:
setExtraLeftin interfacePlotMargin
-
setExtraBottom
public void setExtraBottom(double marginBottom)
Description copied from interface:PlotMarginSets the extra bottom margin.- Specified by:
setExtraBottomin interfacePlotMargin
-
setExtraRight
public void setExtraRight(double marginRight)
Description copied from interface:PlotMarginSets the extra right margin.- Specified by:
setExtraRightin interfacePlotMargin
-
copyStructure
public PlotMarginImpl copyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)
Description copied from interface:ElementExCreate a structural copy of this element and put them into orig2copyMap. All properties are not copied. The parent of the copy are not set by this method.- Specified by:
copyStructurein interfaceElementEx- Overrides:
copyStructurein classElementImpl- Parameters:
orig2copyMap- original element to copy map- Returns:
- the structural copy of this element
-
-
DMelt 3.0 © DataMelt by jWork.ORG