Class ShapedPanelProperties

    • Constructor Detail

      • ShapedPanelProperties

        public ShapedPanelProperties()
        Creates an empty property object.
      • ShapedPanelProperties

        public ShapedPanelProperties​(PropertyMap map)
        Creates a property map containing the map.
        Parameters:
        map - the property map
      • ShapedPanelProperties

        public ShapedPanelProperties​(ShapedPanelProperties inheritFrom)
        Creates a property object that inherit values from another property object.
        Parameters:
        inheritFrom - the object from which to inherit property values
    • Method Detail

      • addSuperObject

        public ShapedPanelProperties addSuperObject​(ShapedPanelProperties properties)
        Adds a super object from which property values are inherited.
        Parameters:
        properties - the object from which to inherit property values
        Returns:
        this
      • removeSuperObject

        public ShapedPanelProperties removeSuperObject()
        Removes the last added super object.
        Returns:
        this
      • setOpaque

        public ShapedPanelProperties setOpaque​(boolean opaque)
        Set to true if the shaped panel should be opaque.
        Parameters:
        opaque - true for opaque, otherwise false
        Since:
        ITP 1.4.0
      • getOpaque

        public boolean getOpaque()
        Returns true if the shaped panel should be opaque.
        Returns:
        true for opaque, otherwise false
        Since:
        ITP 1.4.0
      • setHorizontalFlip

        public ShapedPanelProperties setHorizontalFlip​(boolean flip)
        Set to true if the shaped panel should be flipped horizontally. Used by ComponentPainter's, ShapedBorder's etc.
        Parameters:
        flip - true if the shaped panel should be flipped vertically
        Returns:
        this
      • getHorizontalFlip

        public boolean getHorizontalFlip()
        Returns true if the shaped panel is flipped horizontally. Used by ComponentPainter's, ShapedBorder's etc.
        Returns:
        true if the shaped panel is flipped horizontally
      • setVerticalFlip

        public ShapedPanelProperties setVerticalFlip​(boolean flip)
        Set to true if the shaped panel should be flipped vertically. Used by ComponentPainter's, ShapedBorder's etc.
        Parameters:
        flip - true if the shaped panel should be flipped horizontally
        Returns:
        this
      • getVerticalFlip

        public boolean getVerticalFlip()
        Returns true if the shaped panel is flipped vertically. Used by ComponentPainter's, ShapedBorder's etc.
        Returns:
        true if the shaped panel is flipped vertically
      • setClipChildren

        public ShapedPanelProperties setClipChildren​(boolean clipChildren)
        Set to true if the child components of the shaped panel should be clipped with the border shape.
        Parameters:
        clipChildren - true if the child components of the shaped panel should be clipped with the border shape
        Returns:
        this
      • getClipChildren

        public boolean getClipChildren()
        Returns true the child components of the shaped panel are clipped with the border shape.
        Returns:
        true the child components of the shaped panel are clipped with the border shape
      • setComponentPainter

        public ShapedPanelProperties setComponentPainter​(ComponentPainter painter)
        Sets the painter that paints the shaped panel background.
        Parameters:
        painter - the painter that paints the shaped panel background, null for none
        Returns:
        this
      • getComponentPainter

        public ComponentPainter getComponentPainter()
        Gets the painter that paints the shaped panel background.
        Returns:
        the painter that paints the shaped panel background, null if none