public class Margin extends AbstractJIPipeParameterCollection
Modifier and Type | Class and Description |
---|---|
static class |
Margin.List
List parameter of
Margin |
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
Modifier and Type | Field and Description |
---|---|
static int |
PARAM_BOTTOM |
static int |
PARAM_HEIGHT |
static int |
PARAM_LEFT |
static int |
PARAM_RIGHT |
static int |
PARAM_TOP |
static int |
PARAM_WIDTH |
Constructor and Description |
---|
Margin()
Creates a new instance
|
Margin(Anchor anchor) |
Margin(Margin other)
Creates a copy
|
Margin(Rectangle rectangle)
Creates a margin from a rectangle
|
Modifier and Type | Method and Description |
---|---|
Anchor |
getAnchor() |
NumericFunctionExpression |
getBottom() |
NumericFunctionExpression |
getHeight() |
Rectangle |
getInsideArea(Rectangle availableArea,
JIPipeExpressionVariablesMap parameters)
Generates the rectangle defined by the definition.
|
NumericFunctionExpression |
getLeft() |
Set<String> |
getRelevantParameterKeys()
Finds the parameter keys that are relevant according to the current anchor setting
The anchor key 'anchor' is not part of the result.
|
NumericFunctionExpression |
getRight() |
NumericFunctionExpression |
getTop() |
NumericFunctionExpression |
getWidth() |
void |
setAnchor(Anchor anchor) |
void |
setBottom(NumericFunctionExpression bottom) |
void |
setHeight(NumericFunctionExpression height) |
void |
setLeft(NumericFunctionExpression left) |
void |
setRight(NumericFunctionExpression right) |
void |
setTop(NumericFunctionExpression top) |
void |
setWidth(NumericFunctionExpression width) |
String |
toString() |
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
public static final int PARAM_LEFT
public static final int PARAM_TOP
public static final int PARAM_RIGHT
public static final int PARAM_BOTTOM
public static final int PARAM_WIDTH
public static final int PARAM_HEIGHT
public Margin()
public Margin(Rectangle rectangle)
rectangle
- the rectanglepublic Margin(Margin other)
other
- the originalpublic Margin(Anchor anchor)
public Set<String> getRelevantParameterKeys()
public NumericFunctionExpression getLeft()
public void setLeft(NumericFunctionExpression left)
public NumericFunctionExpression getTop()
public void setTop(NumericFunctionExpression top)
public NumericFunctionExpression getRight()
public void setRight(NumericFunctionExpression right)
public NumericFunctionExpression getBottom()
public void setBottom(NumericFunctionExpression bottom)
public NumericFunctionExpression getWidth()
public void setWidth(NumericFunctionExpression width)
public NumericFunctionExpression getHeight()
public void setHeight(NumericFunctionExpression height)
public Anchor getAnchor()
public void setAnchor(Anchor anchor)
public Rectangle getInsideArea(Rectangle availableArea, JIPipeExpressionVariablesMap parameters)
availableArea
- rectangle describing the available area.parameters
- additional expression variablesCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.