public class Definition extends Object implements HasLabelAndDescription
Constructor and Description |
---|
Definition(String pName) |
Definition(String pName,
Dimension pOutput) |
Definition(String pName,
Dimension pOutput,
List<com.escenic.module.Module> pModules) |
Modifier and Type | Method and Description |
---|---|
JSONMap |
getAsJSONMap() |
Rectangle |
getCrop()
Gets the default crop of the representation.
|
String |
getDescription() |
String |
getLabel() |
String |
getName() |
Dimension |
getOutput(Rectangle pCrop)
Calculates the output size of the representation.
|
Definition |
getParent() |
boolean |
hasParent() |
boolean |
isFreeCrop()
Checks if the crop-mask is a free-crop mask.
|
protected void |
setParent(Definition pParent) |
public Definition(String pName)
public String getName()
public Definition getParent()
public Dimension getOutput(Rectangle pCrop)
pCrop
- the crop to use. may be null
.public Rectangle getCrop()
null
if the output size is null
.public boolean hasParent()
protected void setParent(Definition pParent)
public boolean isFreeCrop()
boolean
public String getLabel()
getLabel
in interface HasLabelAndDescription
public String getDescription()
getDescription
in interface HasLabelAndDescription
public JSONMap getAsJSONMap()
© 1998- 2021 Escenic AS