Package org.pentaho.di.core.gui
Class AreaOwner
java.lang.Object
org.pentaho.di.core.gui.AreaOwner
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
-
Constructor Summary
ConstructorDescriptionAreaOwner
(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
Modifier and TypeMethodDescriptionboolean
contains
(int x, int y) Validate if a certain coordinate is contained in the areaorg.pentaho.di.core.gui.Rectangle
getArea()
getOwner()
void
setArea
(org.pentaho.di.core.gui.Rectangle area) void
setAreaType
(AreaOwner.AreaType areaType) void
setExtensionAreaType
(Object extensionAreaType) void
void
-
Constructor Details
-
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
-
-
Method Details
-
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
- Returns:
- the owner
-
setOwner
- Parameters:
owner
- the owner to set
-
getParent
- Returns:
- the parent
-
setParent
- Parameters:
parent
- the parent to set
-
getAreaType
- Returns:
- the areaType
-
setAreaType
- Parameters:
areaType
- the areaType to set
-
getExtensionAreaType
-
setExtensionAreaType
-