public static class ImageMap.Area
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
CIRCLE
Circle area.
|
static short |
POLY
Poly area.
|
static short |
RECT
Rect area.
|
Constructor and Description |
---|
Area(short type,
java.util.List<java.lang.Integer> coords,
XMLReference ref)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getCoords()
Return the coordinates of the area.
|
java.lang.String |
getCoordsAsString()
Return the coordinates as a String.
|
XMLReference |
getReference()
Return the reference.
|
short |
getType()
Return the type of the area.
|
void |
updateCoordinates(XMLImage img)
Update the coordinates using the width and height of the associated image.
|
public static final short RECT
public static final short CIRCLE
public static final short POLY
public Area(short type, java.util.List<java.lang.Integer> coords, XMLReference ref)
type
- the area typecoords
- the coordinates of the arearef
- the referencepublic short getType()
public java.util.List<java.lang.Integer> getCoords()
public void updateCoordinates(XMLImage img)
img
- the imagepublic java.lang.String getCoordsAsString()
public XMLReference getReference()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence