Class AreaOwner


  • public class AreaOwner
    extends Object
    When we draw something in Spoon (TransPainter) we keep a list of all the things we draw and the object that's behind it. That should make it a lot easier to track what was drawn, setting tooltips, etc.
    Author:
    Matt
    • Constructor Detail

      • AreaOwner

        public AreaOwner​(AreaOwner.AreaType areaType,
                         int x,
                         int y,
                         int width,
                         int heigth,
                         org.pentaho.di.core.gui.Point offset,
                         Object parent,
                         Object owner)
        Parameters:
        x -
        y -
        width -
        heigth -
        owner -
      • AreaOwner

        public AreaOwner​(Object extensionAreaType,
                         int x,
                         int y,
                         int width,
                         int heigth,
                         org.pentaho.di.core.gui.Point offset,
                         Object parent,
                         Object owner)
    • Method Detail

      • contains

        public boolean contains​(int x,
                                int y)
        Validate if a certain coordinate is contained in the area
        Parameters:
        x - x-coordinate
        y - y-coordinate
        Returns:
        true if the specified coordinate is contained in the area
      • getArea

        public org.pentaho.di.core.gui.Rectangle getArea()
        Returns:
        the area
      • setArea

        public void setArea​(org.pentaho.di.core.gui.Rectangle area)
        Parameters:
        area - the area to set
      • getOwner

        public Object getOwner()
        Returns:
        the owner
      • setOwner

        public void setOwner​(Object owner)
        Parameters:
        owner - the owner to set
      • getParent

        public Object getParent()
        Returns:
        the parent
      • setParent

        public void setParent​(Object parent)
        Parameters:
        parent - the parent to set
      • setAreaType

        public void setAreaType​(AreaOwner.AreaType areaType)
        Parameters:
        areaType - the areaType to set
      • getExtensionAreaType

        public Object getExtensionAreaType()
      • setExtensionAreaType

        public void setExtensionAreaType​(Object extensionAreaType)