Getshadowpaintoptimization(), Setmouseovercursor(cursor), Setshadowpaintoptimization(boolean[]) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 14: Getshadowpaintoptimization, Setmouseovercursor, Setshadowpaintoptimization, Boolean

Advertising
background image

(continued from last page)

setMouseOverCursor

public void setMouseOverCursor(java.awt.Cursor c)

Property: The Cursor showed when the mouse is over the shape or

null

if none.

Parameters:

c

- The new

Cursor

. May be

null

in which case the Cursor is not changed.

Since:

6.0

getShadowPaintOptimization

public boolean[] getShadowPaintOptimization()

Property: The shadow is divided into a 3x3 grid. Normally only the lower and right slices need to be drawn since the other
slices will be fully covered (obscured) by the main shape. This greatly improves the performance. This must be turned of
for certain shapes (and shadow offsets) and for instance if the main shape is translucent.

There are a few static arrays that can be used:

OPT_ALL

- Paints all slices.

OPT_BORDER

- Paints all but the middle slice.

OPT_BOTTOM_LEFT

- Paint bottom and left (five) slices.

OPT_BOTTOM_RIGHT

- Paint bottom and right (five) slices.

OPT_TOP_LEFT

- Paint top and left (five) slices.

OPT_TOP_RIGHT

- Paint top and right (five) slices.

Returns:

A nine element array with which slices are to be painted. The first element is upper left, the second upper middle and
so on.

null

will paint all slices.

See Also:

getShadowSliceSize()

setShadowPaintOptimization

public void setShadowPaintOptimization(boolean[] opt)

Property: The shadow is divided into a 3x3 grid. Normally only the lower and right slices need to be drawn since the other
slices will be fully covered (obscured) by the main shape. This greatly improves the performance. This must be turned of
for certain shapes (and shadow offsets) and for instance if the main shape is translucent.

There are a few static arrays that can be used:

OPT_ALL

- Paints all slices.

OPT_BORDER

- Paints all but the middle slice.

OPT_BOTTOM_LEFT

- Paint bottom and left (five) slices.

OPT_BOTTOM_RIGHT

- Paint bottom and right (five) slices.

OPT_TOP_LEFT

- Paint top and left (five) slices.

OPT_TOP_RIGHT

- Paint top and right (five) slices.

Parameters:

opt

- A nine element array with which slices are to be painted. The first element is upper left, the second upper middle

and so on.

null

will paint all slices.

See Also:

Page 14 of 196

com.miginfocom.beans.ActivityAShapeBean

Advertising