Getshadowcornerradius(), Getshadowplacerect(), Setshadowplacerect(placerect) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 16: Getshadowcornerradius, Getshadowplacerect, Setshadowplacerect

Advertising
background image

(continued from last page)

Property: The blur radius for the blur filter. Greater means more smeared shadow but it takes longer to compute.

Parameters:

r

- The new blur radius. 5 is default.

getShadowPlaceRect

public PlaceRect getShadowPlaceRect()

Property: How the shadow will be placed relative to the main shape. The

com.miginfocom.util.gfx.geometry.PlaceRect

is an interface that basically takes one

java.awt.Rectangle

and return another one. This makes it very flexible.

Returns:

The current place rect.

See Also:

com.miginfocom.util.gfx.geometry.AbsRect

com.miginfocom.util.gfx.geometry.AlignRect

com.miginfocom.util.gfx.geometry.AspectRatioRect

setShadowPlaceRect

public void setShadowPlaceRect(PlaceRect pr)

Property: How the shadow will be placed relative to the main shape. The

com.miginfocom.util.gfx.geometry.PlaceRect

is an interface that basically takes one

java.awt.Rectangle

and return another one. This makes it very flexible.

E.g:

new AbsRect(new Insets(5, 5, 5, 5));

Parameters:

pr

- The new place rect.

See Also:

com.miginfocom.util.gfx.geometry.AbsRect

com.miginfocom.util.gfx.geometry.AlignRect

com.miginfocom.util.gfx.geometry.AspectRatioRect

getShadowCornerRadius

public double getShadowCornerRadius()

Property: The corner radius for the shadow

com.miginfocom.util.gfx.RoundRectangle

.

Returns:

The current radius.

See Also:

setRoundRect(double, double, double, double, double, double)

Page 16 of 196

com.miginfocom.beans.ActivityAShapeBean

Advertising