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 intindexprotected InterfaceShapeshape -
Constructor Summary
Constructors Constructor Description QueryShapeVertex(InterfaceShape shape, int index) -
Method Summary
Modifier and Type Method Description intcompareTo(QueryShapeVertex v)intgetIndex()InterfaceShapegetShape()booleanqueryObject(InterfaceQuery query)Returns an appropriate instance ofInterfaceQuerywhich 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:InterfaceQueryObjectReturns an appropriate instance ofInterfaceQuerywhich provides specific information about this object.- Specified by:
queryObjectin interfaceInterfaceQueryObject- Returns:
- an instance of
InterfaceQuery - See Also:
InterfaceQuery
-
getShape
-
getIndex
public int getIndex() -
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<QueryShapeVertex>
-