public class AreaOwner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AreaOwner.AreaType |
Constructor and Description |
---|
AreaOwner(AreaOwner.AreaType areaType,
int x,
int y,
int width,
int heigth,
Point offset,
Object parent,
Object owner) |
AreaOwner(Object extensionAreaType,
int x,
int y,
int width,
int heigth,
Point offset,
Object parent,
Object owner) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y)
Validate if a certain coordinate is contained in the area
|
Rectangle |
getArea() |
AreaOwner.AreaType |
getAreaType() |
Object |
getExtensionAreaType() |
Object |
getOwner() |
Object |
getParent() |
void |
setArea(Rectangle area) |
void |
setAreaType(AreaOwner.AreaType areaType) |
void |
setExtensionAreaType(Object extensionAreaType) |
void |
setOwner(Object owner) |
void |
setParent(Object parent) |
public AreaOwner(AreaOwner.AreaType areaType, int x, int y, int width, int heigth, Point offset, Object parent, Object owner)
x
- y
- width
- heigth
- owner
- public boolean contains(int x, int y)
x
- x-coordinatey
- y-coordinatepublic Rectangle getArea()
public void setArea(Rectangle area)
area
- the area to setpublic Object getOwner()
public void setOwner(Object owner)
owner
- the owner to setpublic Object getParent()
public void setParent(Object parent)
parent
- the parent to setpublic AreaOwner.AreaType getAreaType()
public void setAreaType(AreaOwner.AreaType areaType)
areaType
- the areaType to setpublic Object getExtensionAreaType()
public void setExtensionAreaType(Object extensionAreaType)
Copyright © 2018 Hitachi Vantara. All rights reserved.