Class PageViewDecorator

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable

    public class PageViewDecorator
    extends JComponent

    The PageViewDecorator class adds a page border and shadow to all of the page views defined in the corg.icepdf.core.views.swing package. This class can easily be modified for extended for custom page decorations.


    By default the this class paints with the following colors:

    • paper color - default color is white, can be changed using the system property org.icepdf.core.views.page.paper.color
    • paper border color - default color is black, can be changed using the system property org.icepdf.core.views.page.border.color
    • paper shadow color - default color is darkGrey, can be changed using the system property org.icepdf.core.views.page.shadow.color

    All color values can be set using the hex rgb values. eg. black=000000 or white=FFFFFFF.

    Since:
    2.5
    See Also:
    Serialized Form
    • Field Detail

      • pageViewComponent

        protected JComponent pageViewComponent
      • preferredSize

        protected final Dimension preferredSize
      • pageBorderColor

        public static Color pageBorderColor
      • pageShadowColor

        public static Color pageShadowColor
      • pageColor

        public static Color pageColor
    • Constructor Detail

      • PageViewDecorator

        public PageViewDecorator​(JComponent pageViewComponent)