the coordinate
The canvas dimension in this axis
isCoordinateValid Method
Determines whether the coordinate is valid for placing on the canvas, e.g. is greater than zero and less than canvasMeasurement
Syntax
public boolean isCoordinateValid( 
   float coord,
   int canvasMeasurement
)

Parameters

coord
the coordinate
canvasMeasurement
The canvas dimension in this axis

Return Value

true if coordinate is valid; otherwise, false
See Also