- java.lang.Object
-
- org.icepdf.ri.common.views.BasePageViewLayout
-
- org.icepdf.ri.common.views.OnePageViewLayout
-
- All Implemented Interfaces:
LayoutManager,LayoutManager2
- Direct Known Subclasses:
OneColumnPageViewLayout
public class OnePageViewLayout extends BasePageViewLayout implements LayoutManager2
Layout manager for centering and adding pages to single or facing pages contiguous and non-contiguous views.
-
-
Field Summary
Fields Modifier and Type Field Description protected intminHeightprotected intminWidthprotected intpreferredHeightprotected intpreferredWidthprotected booleansizeUnknown-
Fields inherited from class org.icepdf.ri.common.views.BasePageViewLayout
documentViewModel, PAGE_SPACING_HORIZONTAL, PAGE_SPACING_VERTICAL
-
-
Constructor Summary
Constructors Constructor Description OnePageViewLayout(DocumentViewModel documentViewModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(Component component, Object o)voidaddLayoutComponent(String name, Component comp)floatgetLayoutAlignmentX(Container container)floatgetLayoutAlignmentY(Container container)voidinvalidateLayout(Container container)voidlayoutContainer(Container parent)DimensionmaximumLayoutSize(Container container)DimensionminimumLayoutSize(Container parent)DimensionpreferredLayoutSize(Container parent)voidremoveLayoutComponent(Component comp)protected voidsetSizes(Container parent)Reset preferred/minimum width and height.StringtoString()-
Methods inherited from class org.icepdf.ri.common.views.BasePageViewLayout
updatePopupAnnotationComponents
-
-
-
-
Constructor Detail
-
OnePageViewLayout
public OnePageViewLayout(DocumentViewModel documentViewModel)
-
-
Method Detail
-
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainerin interfaceLayoutManager
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
addLayoutComponent
public void addLayoutComponent(String name, Component comp)
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
addLayoutComponent
public void addLayoutComponent(Component component, Object o)
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
maximumLayoutSize
public Dimension maximumLayoutSize(Container container)
- Specified by:
maximumLayoutSizein interfaceLayoutManager2
-
getLayoutAlignmentX
public float getLayoutAlignmentX(Container container)
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
public float getLayoutAlignmentY(Container container)
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
invalidateLayout
public void invalidateLayout(Container container)
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-
setSizes
protected void setSizes(Container parent)
Reset preferred/minimum width and height.- Parameters:
parent- parent container
-
-