Uses of Interface
org.djutils.draw.Drawable2d
Package
Description
The draw package contains the generic classes for device-independent drawing.
Methods for Bounds of an object to quickly determine whether an object needs to be drawn or not.
The d1 package provides an interface and different implementations for lines.
The d0 package provides a set of interfaces and implementations of Points.
The d1 package provides an interface and different implementations for Areas.
-
Uses of Drawable2d in org.djutils.draw
-
Uses of Drawable2d in org.djutils.draw.bounds
Modifier and TypeClassDescriptionclass
A Bounds2d stores the rectangular 2D bounds of a 2d object, or a collection of 2d objects.Modifier and TypeMethodDescription(package private) static Drawable2d[]
Bounds2d.ensureHasOne
(Drawable2d[] drawable2dArray) Verify that the array contains at least one entry.Modifier and TypeMethodDescriptionstatic Iterator<Drawable2d>
Bounds2d.ensureHasOne
(Iterator<Drawable2d> iterator) Verify that the iterator has something to return.Modifier and TypeMethodDescription(package private) static Drawable2d[]
Bounds2d.ensureHasOne
(Drawable2d[] drawable2dArray) Verify that the array contains at least one entry.Bounds2d.pointsOf
(Drawable2d... drawable2d) Return an iterator that will return all points of one or more Drawable objects.Modifier and TypeMethodDescriptionstatic Iterator<Drawable2d>
Bounds2d.ensureHasOne
(Iterator<Drawable2d> iterator) Verify that the iterator has something to return.Bounds2d.pointsOf
(Collection<Drawable2d> drawableCollection) Return an iterator that will return all points of one or more Drawable2d objects.ModifierConstructorDescriptionBounds2d
(Drawable2d drawable2d) Construct a Bounds2d for a Drawable2d.Bounds2d
(Drawable2d... drawable2d) Construct a Bounds2d for several Drawable2d objects.ModifierConstructorDescriptionBounds2d
(Collection<Drawable2d> drawableCollection) Construct a Bounds2d for a Collection of Drawable2d objects. -
Uses of Drawable2d in org.djutils.draw.line
Modifier and TypeClassDescriptionclass
LineSegment2d is a line segment bound by 2 end points in 2D-space.class
Polygon2d.java.class
Implementation of PolyLine for 2D space.class
Ray2d is a half-line; it has one end point with finite coordinates; the other end point is infinitely far away.Modifier and TypeMethodDescriptionstatic Polygon2d
ConvexHull.convexHull
(Drawable2d... drawable2d) Compute the convex hull of one or more Drawable2d objects.Modifier and TypeMethodDescriptionstatic Polygon2d
ConvexHull.convexHull
(Collection<Drawable2d> drawableCollection) Construct a Bounds2d for a Collection of Drawable2d objects. -
Uses of Drawable2d in org.djutils.draw.point
Modifier and TypeClassDescriptionclass
DirectedPoint2d.java.class
A Point2d is an immutable Point with an x and y coordinate, stored with double precision. -
Uses of Drawable2d in org.djutils.draw.surface