| Constructor and Description |
|---|
CanvasMapItem(CanvasMapModel model,
MapData data,
double percentage) |
| 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.
|
public CanvasMapItem(CanvasMapModel model, MapData data, double percentage)
public double getPercentage()
MapItemgetPercentage in interface MapItempublic double getValue()
MapItempublic double getSize()
MapItempublic void setBounds(Rect bounds)
MapItempublic void setBounds(double x,
double y,
double w,
double h)
MapItemCopyright © 2017 H-K. All rights reserved.