org.pentaho.di.core.gui
Class AreaOwner

java.lang.Object
  extended by org.pentaho.di.core.gui.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

Nested Class Summary
static class AreaOwner.AreaType
           
 
Constructor Summary
AreaOwner(AreaOwner.AreaType areaType, int x, int y, int width, int heigth, Point offset, Object parent, Object owner)
           
 
Method Summary
 boolean contains(int x, int y)
          Validate if a certain coordinate is contained in the area
 Rectangle getArea()
           
 AreaOwner.AreaType getAreaType()
           
 Object getOwner()
           
 Object getParent()
           
 void setArea(Rectangle area)
           
 void setAreaType(AreaOwner.AreaType areaType)
           
 void setOwner(Object owner)
           
 void setParent(Object parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AreaOwner

public AreaOwner(AreaOwner.AreaType areaType,
                 int x,
                 int y,
                 int width,
                 int heigth,
                 Point offset,
                 Object parent,
                 Object owner)
Parameters:
x -
y -
width -
heigth -
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 Rectangle getArea()
Returns:
the area

setArea

public void setArea(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

getAreaType

public AreaOwner.AreaType getAreaType()
Returns:
the areaType

setAreaType

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