de.mid.innovator.srv2api.icw2pres
Class PRPresContextHelper

java.lang.Object
  extended by de.mid.innovator.srv2api.icw2pres.PRPresContextHelper

public abstract class PRPresContextHelper
extends Object

This is a utility class for PRPresContext that provides static methods for creation or other purposes.

See Also:
PRPresContext

Method Summary
static ARG_FilterByTranslationState filterByTranslationState(SrvContext srvCtx, MMModelLocale ohLocale, List<? extends PRPresContext> seqPresContext)
          Categorizes the provided diagrams by the state of the represented elements.
static void layout(SrvContext srvCtx, List<? extends PRPresContext> sel, String format, K_ORIENTATION orientation, int marginLeft, int marginRight, int marginTop, int marginBottom, int horPage, int verPage)
          Sets the layout values (format,orientation,margins,pagecount) of the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

filterByTranslationState

public static ARG_FilterByTranslationState filterByTranslationState(SrvContext srvCtx,
                                                                    MMModelLocale ohLocale,
                                                                    List<? extends PRPresContext> seqPresContext)
                                                             throws InoNetException,
                                                                    SrvErrorException
Categorizes the provided diagrams by the state of the represented elements.

Parameters:
srvCtx - The context of the related innovator server.
ohLocale - translation language considered
seqPresContext - filter these diagramms, if empty take all diagramms contained in this model
Throws:
InoNetException
SrvErrorException

layout

public static void layout(SrvContext srvCtx,
                          List<? extends PRPresContext> sel,
                          String format,
                          K_ORIENTATION orientation,
                          int marginLeft,
                          int marginRight,
                          int marginTop,
                          int marginBottom,
                          int horPage,
                          int verPage)
                   throws InoNetException,
                          SrvErrorException
Sets the layout values (format,orientation,margins,pagecount) of the given context.

Parameters:
srvCtx - The context of the related innovator server.
sel - all objects that will be modified.
format - format of the presentation context
orientation - orientation of the presentation context
marginLeft - margin on the left border
marginRight - margin on the right border
marginTop - margin on the top border
marginBottom - margin on the bottom border
horPage - number of horinzontal pages
verPage - number of vertical pages
Throws:
InoNetException
SrvErrorException