Class ShapedPanelProperties

java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.properties.gui.util.ShapedPanelProperties

public class ShapedPanelProperties extends PropertyMapContainer
Properties and property values for a shaped panel, which is a panel that can have a ShapedBorder and a ComponentPainter.
  • Field Details

  • Constructor Details

    • 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 Details

    • 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
    • removeSuperObject

      public ShapedPanelProperties removeSuperObject(ShapedPanelProperties superObject)
      Removes the given super object.
      Parameters:
      superObject - super object to remove
      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
    • setDirection

      public ShapedPanelProperties setDirection(Direction direction)
      Sets the direction of the shaped panel. Used by ComponentPainter's, ShapedBorder's etc.
      Parameters:
      direction - the direction of the shaped panel
      Returns:
      this
    • getDirection

      public Direction getDirection()
      Gets the direction of the shaped panel. Used by ComponentPainter's, ShapedBorder's etc.
      Returns:
      the direction of the shaped panel