public class IlvStyle extends Object implements Cloneable, Serializable
Note: Most setters on this class create a new, modified
IlvStyle
instance and don't modify the original instance.
These setters are:
setStrokeOn(boolean)
, setFillOn(boolean)
,
setStroke(Stroke, Paint)
, setStroke(Stroke)
,
setStrokePaint(Paint)
, setFillPaint(Paint)
.
But other setters modify the original instance destructively, like
bean property setters generally do. setAbsolutePaint(boolean)
is such a setter.
Modifier and Type | Class and Description |
---|---|
static class |
IlvStyle.Change
Implements a set of changes that can be applied to
IlvStyle
instances. |
static class |
IlvStyle.ColorChange
An
IlvStyle.Change subclass that modifies the colors
of an IlvStyle . |
static class |
IlvStyle.IntensityChange
Changes the color intensity of an
IlvStyle . |
Modifier and Type | Field and Description |
---|---|
static Paint |
DEFAULT_FILLPAINT
The default fill
Paint . |
static Stroke |
DEFAULT_STROKE
The default stroke.
|
static Paint |
DEFAULT_STROKEPAINT
The default stroke
Paint . |
Constructor and Description |
---|
IlvStyle()
Creates a default filled and stroked style.
|
IlvStyle(float lineWidth,
Paint strokePaint)
Creates a stroked style of the specified line width with the given
Paint for stroke. |
IlvStyle(Paint fillPaint)
Creates a filled style with specified
Paint for fill. |
IlvStyle(Paint strokePaint,
Paint fillPaint)
Creates a style with the specified
Paint for stroke
and fill. |
IlvStyle(Stroke stroke,
Paint strokePaint)
Creates a stroked style with the specified
Stroke and
Paint for stroke. |
IlvStyle(Stroke stroke,
Paint strokePaint,
Paint fillPaint)
Creates a stroked and filled style.
|
Modifier and Type | Method and Description |
---|---|
void |
applyStroke(Graphics g)
Applies the stroke of this style to the specified
Graphics context. |
IlvStyle |
brighter()
Creates a brighter version of this rendering style.
|
IlvStyle |
brighther()
Deprecated.
Uses #brighter method instead.
|
Object |
clone()
Returns a copy of this object.
|
IlvStyle |
copy()
Returns a copy of this style.
|
void |
copyInto(IlvStyle style)
Deprecated.
|
static IlvStyle |
createStroked(Paint p)
Returns a stroked style with the specified
Paint . |
IlvStyle |
darker()
Creates a darker version of this rendering style.
|
double |
distanceToPoints(double[] xp,
double[] yp,
int count,
double x,
double y,
boolean euclidean)
Returns the distance between a geometric shape (polyline or polygon) and a
point.
|
double |
distanceToPolygon(double[] xp,
double[] yp,
int count,
double x,
double y,
boolean euclidean)
Returns the distance between the specified polygon and the specified
point.
|
double |
distanceToPolyline(double[] xp,
double[] yp,
int count,
double x,
double y,
boolean euclidean)
Returns the distance between the specified polyline and the specified
point.
|
double |
distanceToShape(Shape shape,
double x,
double y,
boolean euclidean)
Returns the distance between the specified shape and the specified point.
|
void |
draw(Graphics g,
Shape shape)
Draws the outline of the given shape with the current stroke.
|
void |
drawLine(Graphics g,
double x1,
double y1,
double x2,
double y2)
Draws the specified line with the current stroke.
|
void |
drawLine(Graphics g,
int x1,
int y1,
int x2,
int y2)
Draws the specified line with the current stroke.
|
void |
drawOval(Graphics g,
double x,
double y,
double width,
double height)
Draws the outline of the specified oval with the current stroke
The result is an ellipse that fits within
the rectangle specified by the x, y, width, and height arguments.
|
void |
drawOval(Graphics g,
int x,
int y,
int width,
int height)
Draws the outline of the specified oval with the current stroke
The result is an ellipse that fits within
the rectangle specified by the x, y, width, and height arguments.
|
void |
drawPolyline(Graphics g,
double[] xp,
double[] yp,
int count)
Draws the specified polyline using the current stroke.
|
void |
drawPolyline(Graphics g,
double[] xpoints,
double[] ypoints,
int count,
IlvMarker marker,
int markerSize)
Draws the specified polyline and the specified marker for each point of
the polyline using the current stroke.
|
void |
drawPolyline(Graphics g,
int[] xpoints,
int[] ypoints,
int count)
Draws the specified polyline using the current stroke.
|
void |
drawRect(Graphics g,
double x,
double y,
double width,
double height)
Draws the outline of the specified rectangle with the current stroke.
|
void |
drawRect(Graphics g,
int x,
int y,
int width,
int height)
Draws the outline of the specified rectangle with the current stroke.
|
boolean |
equals(Object obj)
Returns whether this renderer is equal to the specified renderer.
|
void |
expand(boolean tight,
Rectangle2D bounds2D)
Expands the specified bounds by the current line width.
|
void |
expand(Rectangle2D bounds2D)
Deprecated.
Since JViews 8.8, use and override method
expand(boolean, Rectangle2D) instead of this one. |
void |
fill(Graphics g,
Shape shape)
Draws the specified shape with the current stroke.
|
void |
fillOval(Graphics g,
double x,
double y,
double width,
double height)
Fills the specified oval with the current fill paint.
|
void |
fillOval(Graphics g,
int x,
int y,
int width,
int height)
Fills the specified oval with the current fill paint.
|
void |
fillPolygon(Graphics g,
double[] xp,
double[] yp,
int count)
Fills the specified polygon with the current fill paint.
|
void |
fillPolygon(Graphics g,
int[] xpoints,
int[] ypoints,
int count)
Fills the specified polygon with the current fill paint.
|
void |
fillRect(Graphics g,
int x,
int y,
int width,
int height)
Fills the specified rectangle with the current fill paint.
|
Rectangle2D |
getBounds(double[] xp,
double[] yp,
int count,
boolean closed,
boolean tight,
Rectangle2D bounds)
Returns the bounds of the specified geometry.
|
Rectangle2D |
getBounds(double[] xp,
double[] yp,
int count,
Rectangle2D bounds)
Deprecated.
Since JViews 8.8, use and override method
getBounds(double[], double[], int, boolean, boolean, Rectangle2D)
instead of this one. |
Rectangle2D |
getBounds(int[] xp,
int[] yp,
int count,
boolean closed,
boolean tight,
Rectangle2D bounds)
Returns the bounds of the specified geometry.
|
Rectangle2D |
getBounds(int[] xp,
int[] yp,
int count,
Rectangle2D bounds)
Deprecated.
Since JViews 8.8, use and override method
getBounds(int[], int[], int, boolean, boolean, Rectangle2D)
instead of this one. |
Color |
getFillColor()
Returns the fill color of this style.
|
Paint |
getFillPaint()
Returns the fill paint of this style.
|
Rectangle2D |
getShapeBounds(Shape shape)
Returns the bounds of the specified shape, when it is drawn with this
style.
|
Stroke |
getStroke()
Returns the stroke of this style.
|
Color |
getStrokeColor()
Returns the stroke color of this style.
|
Paint |
getStrokePaint()
Returns the stroke paint of this style.
|
boolean |
isAbsolutePaint()
Returns
false if this style adapts the
TexturePaint or GradientPaint to the bounds of
a shape before it is drawn. |
boolean |
isFillOn()
Indicates whether this style fills its drawings.
|
static boolean |
isFilterOn()
Indicates whether points filtering is active.
|
boolean |
isStrokeOn()
Indicates whether this style uses a stroke when drawing.
|
boolean |
pointsContains(double[] xp,
double[] yp,
int count,
double x,
double y)
Returns whether the specified geometry contains the specified point.
|
boolean |
polygonContains(double[] xp,
double[] yp,
int count,
double x,
double y)
Returns whether the specified polygon contains the specified point.
|
boolean |
polylineContains(double[] xp,
double[] yp,
int count,
double x,
double y)
Returns whether the specified polyline contains the specified point.
|
boolean |
quickBounds()
Indicates whether the bounds of a geometry can be approximated.
|
void |
renderCircle(Graphics g,
int cx,
int cy,
int radius)
Renders the specified circle according to the rendering settings
|
void |
renderOval(Graphics g,
int x,
int y,
int w,
int h)
Renders the specified oval according to the rendering settings.
|
void |
renderPoints(Graphics g,
double[] xp,
double[] yp,
int count)
Renders the specified points according to the rendering settings.
|
void |
renderPoints(Graphics g,
int[] xp,
int[] yp,
int count)
Renders the specified points according to the rendering settings.
|
void |
renderRect(Graphics g,
double x1,
double y1,
double x2,
double y2)
Renders the rectangle containing the specified points.
|
void |
renderRect(Graphics g,
int x,
int y,
int w,
int h)
Renders the specified rectangle according to the rendering settings.
|
void |
renderShape(Graphics g,
Shape shape)
Renders the specified shape according to the rendering settings.
|
void |
renderSquare(Graphics g,
int cx,
int cy,
int size)
Renders the specified square according to the rendering settings.
|
void |
restoreStroke(Graphics dst)
Restores the stroke of the specified
Graphics context
with the stroke used by the context before the last call to the
applyStroke(java.awt.Graphics) method. |
void |
setAbsolutePaint(boolean absolute)
When set to
false , the style adapts the
TexturePaint or GradientPaint to the bounds of
a shape before it is drawn. |
IlvStyle |
setFillOn(boolean b)
Specifies whether this style fills its drawings.
|
IlvStyle |
setFillPaint(Paint paint)
Changes the fill paint of this style.
|
static void |
setFilterOn(boolean filter)
Toggles the filtering of integer coordinates.
|
IlvStyle |
setStroke(Stroke stroke)
Changes the stroke of this style.
|
IlvStyle |
setStroke(Stroke stroke,
Paint paint)
Changes the stroke and the stroke paint of this style.
|
IlvStyle |
setStrokeOn(boolean b)
Specifies whether this style uses a stroke when drawing.
|
IlvStyle |
setStrokePaint(Paint paint)
Changes the stroke paint of this style.
|
boolean |
shapeContains(Shape shape,
double x,
double y)
Returns whether the specified shape contains the specified point.
|
public static final Stroke DEFAULT_STROKE
public static final Paint DEFAULT_STROKEPAINT
Paint
.public static final Paint DEFAULT_FILLPAINT
Paint
.public IlvStyle()
public IlvStyle(Paint strokePaint, Paint fillPaint)
Paint
for stroke
and fill.public IlvStyle(Stroke stroke, Paint strokePaint)
Stroke
and
Paint
for stroke.public IlvStyle(float lineWidth, Paint strokePaint)
Paint
for stroke.public IlvStyle(Paint fillPaint)
Paint
for fill.public static IlvStyle createStroked(Paint p)
Paint
.public final boolean isAbsolutePaint()
false
if this style adapts the
TexturePaint
or GradientPaint
to the bounds of
a shape before it is drawn. The default value is true
.setAbsolutePaint(boolean)
public void setAbsolutePaint(boolean absolute)
false
, the style adapts the
TexturePaint
or GradientPaint
to the bounds of
a shape before it is drawn. The default value is true
.public final boolean isStrokeOn()
public IlvStyle setStrokeOn(boolean b)
IlvStyle
that is derived from this instance
and has the specified setting.public final boolean isFillOn()
public IlvStyle setFillOn(boolean b)
IlvStyle
that is derived from this instance
and has the specified setting.public Stroke getStroke()
setStroke(java.awt.Stroke)
public Paint getStrokePaint()
setStrokePaint(java.awt.Paint)
public Color getStrokeColor()
null
if the stroke paint is not an instance of
java.awt.Color
.getStrokePaint()
public IlvStyle setStroke(Stroke stroke)
stroke
- The new stroke. If the stroke is null
, the
strokeOn
property is set to false
.IlvStyle
that is derived from this instance
and has the specified setting.isStrokeOn()
public IlvStyle setStrokePaint(Paint paint)
paint
- The new stroke paint.IlvStyle
that is derived from this instance
and has the specified setting.public IlvStyle setStroke(Stroke stroke, Paint paint)
stroke
- The new stroke.paint
- The new stroke paint.IlvStyle
that is derived from this instance
and has the specified setting.public Paint getFillPaint()
public Color getFillColor()
null
if the fill paint is not an instance of
java.awt.Color
.getFillPaint()
public IlvStyle setFillPaint(Paint paint)
paint
- The new fill paint.IlvStyle
that is derived from this instance
and has the specified setting.public void applyStroke(Graphics g)
Graphics
context.public void restoreStroke(Graphics dst)
Graphics
context
with the stroke used by the context before the last call to the
applyStroke(java.awt.Graphics)
method.public void renderRect(Graphics g, double x1, double y1, double x2, double y2)
g
- The graphics context.x1
- The x-coordinate of the first point.y1
- The y-coordinate of the first point.x2
- The x-coordinate of the second point.y2
- The y-coordinate of the second point.isFillOn()
,
isStrokeOn()
,
renderRect(Graphics, int, int, int, int)
public void renderRect(Graphics g, int x, int y, int w, int h)
isFillOn()
,
isStrokeOn()
public void renderSquare(Graphics g, int cx, int cy, int size)
g
- The graphics context.cx
- The x-coordinate of the center of the square.cy
- The y-coordinate of the center of the square.size
- The size of half-a-side.isFillOn()
,
isStrokeOn()
public void renderPoints(Graphics g, double[] xp, double[] yp, int count)
If isFillOn()
is true
, the argument points must form
a polygon, that is, xp[0] == xp[count-1] and yp[0] == yp[count-1].
g
- The graphics context.xp
- An array of x-points.yp
- An array of y-points.count
- The total number of points.public void renderPoints(Graphics g, int[] xp, int[] yp, int count)
If isFillOn()
is true
, the argument points must form
a polygon, that is, xp[0] == xp[count-1] and yp[0] == yp[count-1].
g
- The graphics context.xp
- An array of x-points.yp
- An array of y-points.count
- The total number of points.public void renderOval(Graphics g, int x, int y, int w, int h)
g
- The graphics context.x
- The x-coordinate of the top left corner of the oval.y
- The y-coordinate of the top left corner of the oval.w
- The width of the oval.h
- The height of the oval.public void renderCircle(Graphics g, int cx, int cy, int radius)
g
- The graphics context.cx
- The x-coordinate of center of the circle.cy
- The y-coordinate of center of the circle.radius
- The radius of the circle.public void renderShape(Graphics g, Shape shape)
public void drawPolyline(Graphics g, double[] xp, double[] yp, int count)
g
- The graphics context.xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.setStroke(java.awt.Stroke)
public void drawPolyline(Graphics g, double[] xpoints, double[] ypoints, int count, IlvMarker marker, int markerSize)
g
- The graphics context.xpoints
- An array of x-points.ypoints
- An array of y-points.count
- The total number of points.marker
- The marker to draw on each point.markerSize
- The size of the marker.IlvMarker
,
setStroke(java.awt.Stroke)
public void drawPolyline(Graphics g, int[] xpoints, int[] ypoints, int count)
g
- The graphics context.xpoints
- An array of x-points.ypoints
- An array of y-points.count
- The total number of points.setStroke(java.awt.Stroke)
public void fillPolygon(Graphics g, double[] xp, double[] yp, int count)
g
- The graphics context.xp
- An array of x-points.yp
- An array of y-points.count
- The total number of points.setFillPaint(java.awt.Paint)
public void fillPolygon(Graphics g, int[] xpoints, int[] ypoints, int count)
g
- The graphics context.xpoints
- An array of x-points.ypoints
- An array of y-points.count
- The total number of points.setFillPaint(java.awt.Paint)
public void drawRect(Graphics g, double x, double y, double width, double height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the rectangle.y
- The y-coordinate of the top-left corner of the rectangle.width
- The width of the rectangle.height
- The height of the rectangle.setStroke(java.awt.Stroke)
public void drawRect(Graphics g, int x, int y, int width, int height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the rectangle.y
- The y-coordinate of the top-left corner of the rectangle.width
- The width of the rectangle.height
- The height of the rectangle.setStroke(java.awt.Stroke)
public void fillRect(Graphics g, int x, int y, int width, int height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the rectangle.y
- The y-coordinate of the top-left corner of the rectangle.width
- The width of the rectangle.height
- The height of the rectangle.setFillPaint(java.awt.Paint)
public void drawLine(Graphics g, double x1, double y1, double x2, double y2)
g
- The graphics context.x1
- The x-coordinate of the first point.y1
- The y-coordinate of the first point.x2
- The x-coordinate of the second point.y2
- The y-coordinate of the second point.setStroke(java.awt.Stroke)
public void drawLine(Graphics g, int x1, int y1, int x2, int y2)
g
- The graphics context.x1
- The x-coordinate of the first point.y1
- The y-coordinate of the first point.x2
- The x-coordinate of the second point.y2
- The y-coordinate of the second point.setStroke(java.awt.Stroke)
public void drawOval(Graphics g, double x, double y, double width, double height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the oval.y
- The y-coordinate of the top-left corner of the oval.width
- The width of the oval.height
- The height of the oval.setStroke(java.awt.Stroke)
public void drawOval(Graphics g, int x, int y, int width, int height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the oval.y
- The y-coordinate of the top-left corner of the oval.width
- The width of the oval.height
- The height of the oval.setStroke(java.awt.Stroke)
public void fillOval(Graphics g, double x, double y, double width, double height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the oval.y
- The y-coordinate of the top-left corner of the oval.width
- The width of the oval.height
- The height of the oval.setFillPaint(java.awt.Paint)
public void fillOval(Graphics g, int x, int y, int width, int height)
g
- The graphics context.x
- The x-coordinate of the top-left corner of the oval.y
- The y-coordinate of the top-left corner of the oval.width
- The width of the oval.height
- The height of the oval.setFillPaint(java.awt.Paint)
public void draw(Graphics g, Shape shape)
g
- The graphics context.shape
- The shape to draw.setStroke(java.awt.Stroke)
public void fill(Graphics g, Shape shape)
g
- The graphics context.shape
- The shape to draw.setStroke(java.awt.Stroke)
public boolean quickBounds()
@Deprecated public final void expand(Rectangle2D bounds2D)
expand(boolean, Rectangle2D)
instead of this one.
This method is called to approximate the bounds of a geometry rendered
by this style. The bounds2D
parameter corresponds to the
original bounds of the geometry. The method modifies this rectangle so
that it takes into account the line width and other parameters of the
current style.
bounds2D
- The bounds to expand.public void expand(boolean tight, Rectangle2D bounds2D)
This method is called to approximate the bounds of a geometry rendered
by this style. The bounds2D
parameter corresponds to the
original bounds of the geometry. The method modifies this rectangle so
that it takes into account the line width and other parameters of the
current style.
tight
- If true
, tight bounds are returned; this may
involve expensive Java2D calls. If false
, the
bounds may be larger than necessary but expensive Java2D calls
are avoided if possible.bounds2D
- The bounds to expand.@Deprecated public final Rectangle2D getBounds(int[] xp, int[] yp, int count, Rectangle2D bounds)
getBounds(int[], int[], int, boolean, boolean, Rectangle2D)
instead of this one.bounds
and returns
bounds
. If bounds
is null
, a new
Rectangle2D
is allocated.xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.bounds
- A rectangle used to store the computed bounds.public Rectangle2D getBounds(int[] xp, int[] yp, int count, boolean closed, boolean tight, Rectangle2D bounds)
bounds
and returns
bounds
. If bounds
is null
, a new
Rectangle2D
is allocated.xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.closed
- true
for a polygon, false
for a
polyline.tight
- If true
, tight bounds are returned; this may
involve expensive Java2D calls. If false
, the
bounds may be larger than necessary but expensive Java2D calls
are avoided if possible.bounds
- A rectangle used to store the computed bounds.@Deprecated public final Rectangle2D getBounds(double[] xp, double[] yp, int count, Rectangle2D bounds)
getBounds(double[], double[], int, boolean, boolean, Rectangle2D)
instead of this one.bounds
.
If bounds
is null
, a new Rectangle2D
is allocated.xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.bounds
- An optional rectangle used to store the computed bounds.public Rectangle2D getBounds(double[] xp, double[] yp, int count, boolean closed, boolean tight, Rectangle2D bounds)
bounds
.
If bounds
is null
, a new Rectangle2D
is allocated.xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.closed
- true
for a polygon, false
for a
polyline.tight
- If true
, tight bounds are returned; this may
involve expensive Java2D calls. If false
, the
bounds may be larger than necessary but expensive Java2D calls
are avoided if possible.bounds
- An optional rectangle used to store the computed bounds.public Rectangle2D getShapeBounds(Shape shape)
shape
- The considered shape.@Deprecated public IlvStyle brighther()
Paint
s that are instance of java.awt.Color
.public IlvStyle brighter()
Paint
s that are instance of java.awt.Color
.public IlvStyle darker()
Paint
s that are instance of java.awt.Color
.public boolean pointsContains(double[] xp, double[] yp, int count, double x, double y)
If isFillOn()
is true
, the argument points must form
a polygon, that is, xp[0] == xp[count-1] and yp[0] == yp[count-1].
xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.distanceToPoints(double[], double[], int, double, double, boolean)
public double distanceToPoints(double[] xp, double[] yp, int count, double x, double y, boolean euclidean)
If isFillOn()
is true
, the array points must form
a polygon, that is, xp[0] == xp[count-1] and yp[0] == yp[count-1].
xp
- An array of x-coordinates of the shape.yp
- An array of y-coordinates of the shape.count
- The total number of points of the shape.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.euclidean
- If true
, a Euclidean distance is returned.
If false
, a hit test is performed. In this case,
the return value is 0 if (x,y) is contained in the specified
geometric shape or Double.POSITIVE_INFINITY
if
it is not.pointsContains(double[], double[], int, double, double)
public boolean polygonContains(double[] xp, double[] yp, int count, double x, double y)
xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.distanceToPolygon(double[], double[], int, double, double, boolean)
public double distanceToPolygon(double[] xp, double[] yp, int count, double x, double y, boolean euclidean)
xp
- An array of x-coordinates of the polygon.yp
- An array of y-coordinates of the polygon.count
- The total number of points of the polygon.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.euclidean
- If true
, a Euclidean distance is returned.
If false
, a hit test is performed. In this case,
the return value is 0 if (x,y) is contained in the
polygon or Double.POSITIVE_INFINITY
if it is not.polygonContains(double[], double[], int, double, double)
public boolean polylineContains(double[] xp, double[] yp, int count, double x, double y)
xp
- An array of x-coordinates.yp
- An array of y-coordinates.count
- The total number of points.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.distanceToPolyline(double[], double[], int, double, double, boolean)
public double distanceToPolyline(double[] xp, double[] yp, int count, double x, double y, boolean euclidean)
xp
- An array of x-coordinates of the polyline.yp
- An array of y-coordinates of the polyline.count
- The total number of points of the polyline.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.euclidean
- If true
, a Euclidean distance is returned.
If false
, a hit test is performed. In this case,
the return value is 0 if (x,y) is contained in the
polyline or Double.POSITIVE_INFINITY
if it is not.polylineContains(double[], double[], int, double, double)
public boolean shapeContains(Shape shape, double x, double y)
shape
- The considered shape.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.distanceToShape(java.awt.Shape, double, double, boolean)
public double distanceToShape(Shape shape, double x, double y, boolean euclidean)
shape
- The considered shape.x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.euclidean
- If true
, a Euclidean distance is returned.
If false
, a hit test is performed. In this case,
the return value is 0 if (x,y) is contained in the shape
or Double.POSITIVE_INFINITY
if it is not.shapeContains(java.awt.Shape, double, double)
public static final boolean isFilterOn()
setFilterOn(boolean)
public static void setFilterOn(boolean filter)
filter
- If set to true
, the
drawPolyline(Graphics, double[], double[], int)
,
fillPolygon(Graphics, double[], double[], int)
and
renderPoints(Graphics, double[], double[], int)
drawing requests will discard coincident points when converting to
integer coordinates.public IlvStyle copy()
@Deprecated public void copyInto(IlvStyle style)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.