- java.lang.Object
-
- org.icepdf.ri.common.SwingViewBuilderFactory
-
- All Implemented Interfaces:
ViewBuilderFactory
public final class SwingViewBuilderFactory extends Object implements ViewBuilderFactory
Factory for creating SwingViewBuilders
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewBuildercreate(Controller c)Creates a ViewBuilder for the given controllerViewBuildercreate(Controller c, int documentViewType, int documentPageFitMode)Creates a ViewBuilder for the given controller and argumentsViewBuildercreate(Controller c, int documentViewType, int documentPageFitMode, float rotation)Creates a ViewBuilder for the given controller and argumentsViewBuildercreate(Controller c, Font bf, boolean bt, int ts, float[] zl, int documentViewType, int documentPageFitMode)Creates a ViewBuilder for the given controller and argumentsViewBuildercreate(Controller c, ViewerPropertiesManager properties)Creates a ViewBuilder for the given controller and propertiesViewBuildercreate(Controller c, ViewerPropertiesManager properties, Font bf, boolean bt, int ts, float[] zl, int documentViewType, int documentPageFitMode, float rotation)Creates a ViewBuilder for the given controller and argumentsstatic SwingViewBuilderFactorygetInstance()
-
-
-
Method Detail
-
getInstance
public static SwingViewBuilderFactory getInstance()
- Returns:
- The factory instance
-
create
public ViewBuilder create(Controller c)
Description copied from interface:ViewBuilderFactoryCreates a ViewBuilder for the given controller- Specified by:
createin interfaceViewBuilderFactory- Parameters:
c- The controller- Returns:
- The viewbuilder
-
create
public ViewBuilder create(Controller c, ViewerPropertiesManager properties)
Description copied from interface:ViewBuilderFactoryCreates a ViewBuilder for the given controller and properties- Specified by:
createin interfaceViewBuilderFactory- Parameters:
c- The controllerproperties- The properties- Returns:
- The viewbuilder
-
create
public ViewBuilder create(Controller c, int documentViewType, int documentPageFitMode)
Description copied from interface:ViewBuilderFactoryCreates a ViewBuilder for the given controller and arguments- Specified by:
createin interfaceViewBuilderFactory- Parameters:
c- The controllerdocumentViewType- The initial view typedocumentPageFitMode- The initial fit mode- Returns:
- The viewbuilder
-
create
public ViewBuilder create(Controller c, int documentViewType, int documentPageFitMode, float rotation)
Description copied from interface:ViewBuilderFactoryCreates a ViewBuilder for the given controller and arguments- Specified by:
createin interfaceViewBuilderFactory- Parameters:
c- The controllerdocumentViewType- The initial view typedocumentPageFitMode- The initial fit moderotation- The initial view rotation- Returns:
- The viewbuilder
-
create
public ViewBuilder create(Controller c, Font bf, boolean bt, int ts, float[] zl, int documentViewType, int documentPageFitMode)
Description copied from interface:ViewBuilderFactoryCreates a ViewBuilder for the given controller and arguments- Specified by:
createin interfaceViewBuilderFactory- Parameters:
c- The controllerdocumentViewType- The initial view typedocumentPageFitMode- The initial fit mode- Returns:
- The viewbuilder
-
create
public ViewBuilder create(Controller c, ViewerPropertiesManager properties, Font bf, boolean bt, int ts, float[] zl, int documentViewType, int documentPageFitMode, float rotation)
Description copied from interface:ViewBuilderFactoryCreates a ViewBuilder for the given controller and arguments- Specified by:
createin interfaceViewBuilderFactory- Parameters:
c- The controllerproperties- The initial propertiesdocumentViewType- The initial view typedocumentPageFitMode- The initial fit moderotation- The initial document rotation- Returns:
- The viewbuilder
-
-