Package mgui.interfaces.shapes.queries
Class QueryShapeVertex
java.lang.Object
mgui.interfaces.shapes.queries.QueryShapeVertex
- All Implemented Interfaces:
java.lang.Comparable<QueryShapeVertex>
,InterfaceQueryObject
public class QueryShapeVertex extends java.lang.Object implements InterfaceQueryObject, java.lang.Comparable<QueryShapeVertex>
Represents a specific vertex in a shape, for vertex-wise queries.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected int
index
protected InterfaceShape
shape
-
Constructor Summary
Constructors Constructor Description QueryShapeVertex(InterfaceShape shape, int index)
-
Method Summary
Modifier and Type Method Description int
compareTo(QueryShapeVertex v)
int
getIndex()
InterfaceShape
getShape()
boolean
queryObject(InterfaceQuery query)
Returns an appropriate instance ofInterfaceQuery
which provides specific information about this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
shape
-
index
protected int index
-
-
Constructor Details
-
QueryShapeVertex
-
-
Method Details
-
queryObject
Description copied from interface:InterfaceQueryObject
Returns an appropriate instance ofInterfaceQuery
which provides specific information about this object.- Specified by:
queryObject
in interfaceInterfaceQueryObject
- Returns:
- an instance of
InterfaceQuery
- See Also:
InterfaceQuery
-
getShape
-
getIndex
public int getIndex() -
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<QueryShapeVertex>
-