public interface MapItem
| Modifier and Type | Method and Description |
|---|---|
Rect |
getBounds()
Get the MapItem bounds.
|
MapData |
getData()
Get the MapItem data.
|
double |
getPercentage()
Get the corresponding data percentage.
|
double |
getSize()
Get the pixel area of the item.
|
double |
getValue()
Get the MapItem' data value.
|
void |
setBounds(double x,
double y,
double w,
double h)
Update the MapItem bounds in its parent.
|
void |
setBounds(Rect bounds)
Update the MapItem bounds in its parent.
|
MapData getData()
double getValue()
double getPercentage()
double getSize()
Rect getBounds()
void setBounds(Rect bounds)
bounds - the bounds to be applied to the MapItemvoid setBounds(double x,
double y,
double w,
double h)
x - new coordinate along the X axisy - new coordinate along the Y axisw - new widthh - new heightCopyright © 2017 H-K. All rights reserved.