org.pentaho.di.core.gui
Class AreaOwner
java.lang.Object
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
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 -
contains
public boolean contains(int x,
int y)
- Validate if a certain coordinate is contained in the area
- Parameters:
x - x-coordinatey - 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