public class IltBoundingBox extends Object
They return a freshly allocated, integer-valued rectangle. Only
the pixels with coordinates >= x, < x+width, >= y, < y+height
will be covered by the corresponding drawing primitive. The return
value can be null
if the drawing is empty.
IltGraphicUtil
Modifier and Type | Method and Description |
---|---|
static IlvRect |
_FillRect(int x1,
int y1,
int x2,
int y2)
Returns the bounding box of a filled rectangle.
|
static IlvRect |
DrawLine(int x1,
int y1,
int x2,
int y2)
Returns the bounding box of a line of thickness 1.
|
static IlvRect |
DrawPoint(int x1,
int y1)
Returns the bounding box of a single pixel.
|
static IlvRect |
DrawPolygon(IltPolygon p,
double apart,
double thickness,
double totalthickness,
int join)
Returns the bounding box of a polygon with a given thickness.
|
static IlvRect |
DrawPolygon(IltPolygon p,
double apart,
double thickness,
int join)
Returns the bounding box of a polygon with a given thickness.
|
static IlvRect |
DrawPolyline(IltPolyline p,
double thickness,
double totalthickness,
int cap,
int join)
Returns the bounding box of a polyline with a given thickness.
|
static IlvRect |
DrawPolyline(IltPolyline p,
double thickness,
int cap,
int join)
Returns the bounding box of a polyline with a given thickness.
|
static IlvRect |
DrawRect(int x1,
int y1,
int x2,
int y2)
Returns the bounding box of a rectangle boundary.
|
static IlvRect |
FillParallelogram(int x1,
int y1,
int x2,
int y2,
int vx,
int vy)
Returns the bounding box of a filled parallelogram.
|
static IlvRect |
FillPolygon(IltPolygon p)
Returns the bounding box of a filled polygon.
|
static IlvRect |
FillRect(int x1,
int y1,
int x2,
int y2)
Returns the bounding box of a filled rectangle.
|
public static IlvRect DrawPoint(int x1, int y1)
public static IlvRect DrawRect(int x1, int y1, int x2, int y2)
public static IlvRect FillRect(int x1, int y1, int x2, int y2)
public static IlvRect _FillRect(int x1, int y1, int x2, int y2)
public static IlvRect FillPolygon(IltPolygon p)
public static IlvRect FillParallelogram(int x1, int y1, int x2, int y2, int vx, int vy)
public static IlvRect DrawLine(int x1, int y1, int x2, int y2)
public static IlvRect DrawPolyline(IltPolyline p, double thickness, int cap, int join)
p
- The polyline.thickness
- The thickness of the polyline kernel
(i.e. the part without unusual borders)cap
- The decoration of the ends of a stroke.join
- The decoration applied where path segments meet. Only
BasicStroke.JOIN_MITER
and
BasicStroke.JOIN_BEVEL
are supported here.public static IlvRect DrawPolyline(IltPolyline p, double thickness, double totalthickness, int cap, int join)
p
- The polyline.thickness
- The thickness of the polyline kernel
(i.e. the part without unusual borders)totalthickness
- The thickness of the polyline including extra borderscap
- The decoration of the ends of a stroke.join
- The decoration applied where path segments meet. Only
BasicStroke.JOIN_MITER
and
BasicStroke.JOIN_BEVEL
are supported here.public static IlvRect DrawPolygon(IltPolygon p, double apart, double thickness, int join)
p
- The polygon.apart
- The distance (positive for a parallel to the right of the
polygon, negative for a parallel to the left of the polygon)thickness
- The thickness of the polygon border.join
- The decoration applied where path segments meet. Only
BasicStroke.JOIN_MITER
and BasicStroke.JOIN_BEVEL
are supported here.public static IlvRect DrawPolygon(IltPolygon p, double apart, double thickness, double totalthickness, int join)
p
- The polygon.apart
- The distance (positive for a parallel to the right of the
polygon, negative for a parallel to the left of the polygon)thickness
- The thickness of the polyline kernel
(i.e. the part without unusual borders)totalthickness
- the thickness of the polyline including extra bordersjoin
- The decoration applied where path segments meet. Only
BasicStroke.JOIN_MITER
and BasicStroke.JOIN_BEVEL
are currently supported.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.