public class GetAdaptionDimensionsCallProcessor extends Object implements CallProcessor
| Constructor and Description |
|---|
GetAdaptionDimensionsCallProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(float value,
String method)
Formats the height or width value that is sent as string to the IQuest.Comet plugin
|
protected float |
getHeight(AutoCometJob job,
String itemStringID)
Returns the height to which an InDesign document should be adapted to.
|
String[] |
getMethods() |
protected float |
getWidth(AutoCometJob job,
String itemStringID)
Returns the width to which an InDesign document should be adapted to.
|
String[] |
process(String method,
Map<String,String> parameters)
Returns the height or width to which an InDesign document should be adapted to.
|
public static final String[] METHODS
public String[] getMethods()
getMethods in interface Processorpublic String[] process(String method, Map<String,String> parameters) throws CometException
process in interface CallProcessormethod - The name of the incoming Comet callparameters - The call's parametersCometException - If an error occurs while processing the callprotected float getHeight(AutoCometJob job, String itemStringID)
job - The AutoCometJob that this adaption is related to (normally you need it to get it's context item)itemStringID - The String ID of the current item to adaptprotected float getWidth(AutoCometJob job, String itemStringID)
job - The AutoCometJob that this adaption is related to (normally you need it to get it's context item)itemStringID - The String ID of the current item to adaptprotected String format(float value, String method)
value - The height or width value that has to be formattedmethod - Specifies if the height or width is requested at the momentCopyright © 2017 SAP SE. All Rights Reserved.