Package org.djutils.draw
Interface Drawable<P extends Point<P,S>,S extends Space>
-
- Type Parameters:
P- The point type (2d or 3d)S- The space type (2d or 3d)
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Drawable2d,Drawable3d,LineSegment<P,R,S>,Point<P,S>,PolyLine<L,P,S,R>
- All Known Implementing Classes:
Bounds2d,Bounds3d,LineSegment2d,LineSegment3d,OrientedPoint2d,OrientedPoint3d,Point2d,Point3d,Polygon2d,PolyLine2d,PolyLine3d,Ray2d,Ray3d
public interface Drawable<P extends Point<P,S>,S extends Space> extends Serializable
Drawable is an interface to indicate zero or more points can be retrieved to draw the object.Copyright (c) 2020-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<? extends P>getPoints()Retrieve, or generate all points that make up the object.intsize()Retrieve the number of points that make up the object.
-
-
-
Method Detail
-
getPoints
Iterator<? extends P> getPoints()
Retrieve, or generate all points that make up the object.- Returns:
- Iterable<Point2d>; an iterator that generates all points that make up the object
-
size
int size()
Retrieve the number of points that make up the object.- Returns:
- int; the number of points that make up the object
-
-