Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AreaOwner.AreaType
-
Constructor Summary
Constructors Constructor Description AreaOwner(Object extensionAreaType, int x, int y, int width, int heigth, org.pentaho.di.core.gui.Point offset, Object parent, Object owner)
AreaOwner(AreaOwner.AreaType areaType, int x, int y, int width, int heigth, org.pentaho.di.core.gui.Point offset, Object parent, Object owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int x, int y)
Validate if a certain coordinate is contained in the areaorg.pentaho.di.core.gui.Rectangle
getArea()
AreaOwner.AreaType
getAreaType()
Object
getExtensionAreaType()
Object
getOwner()
Object
getParent()
void
setArea(org.pentaho.di.core.gui.Rectangle area)
void
setAreaType(AreaOwner.AreaType areaType)
void
setExtensionAreaType(Object extensionAreaType)
void
setOwner(Object owner)
void
setParent(Object parent)
-
-
-
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
-
-
-
Method Detail
-
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 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
-
getAreaType
public AreaOwner.AreaType getAreaType()
- Returns:
- the areaType
-
setAreaType
public void setAreaType(AreaOwner.AreaType areaType)
- Parameters:
areaType
- the areaType to set
-
getExtensionAreaType
public Object getExtensionAreaType()
-
setExtensionAreaType
public void setExtensionAreaType(Object extensionAreaType)
-
-