Top Description Fields Constructors Methods
com.sun.javafx.geom

public abstract Class ShapePair

extends Shape
Class Inheritance
Known Direct Subclasses
com.sun.javafx.geom.ConcentricShapePair, com.sun.javafx.geom.GeneralShapePair

A Shape composed of an Outer Shape combined in some manner with an Inner Shape.

The resulting combined shape is either the intersection of the two component shapes, or the Inner shape subtracted from the Outer shape.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
TYPE_INTERSECT

Constant used to indicate that the Inner shape should be intersected with the Outer shape.

public static final int
TYPE_SUBTRACT

Constant used to indicate that the Inner shape should be subtracted from the Outer shape.

Inherited from com.sun.javafx.geom.Shape:
OUT_BOTTOMOUT_LEFTOUT_RIGHTOUT_TOPRECT_INTERSECTS

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract int

Returns:

the method type to use to combine the shapes.
getCombinationType
()

Returns the method with which to combine the two shapes.

public abstract Shape

Returns:

the inner Shape.
getInnerShape
()

Returns the inner Shape.

public abstract Shape

Returns:

the outer Shape.
getOuterShape
()

Returns the outer Shape.

Inherited from com.sun.javafx.geom.Shape:
accumulateaccumulateCubicaccumulateCubicaccumulateQuadcontainscontainscontainscontainscopygetBoundsgetPathIteratorgetPathIteratorintersectsintersectsintersectsLineoutcodepointCrossingsForCubicpointCrossingsForLinepointCrossingsForPathpointCrossingsForQuadrectCrossingsForCubicrectCrossingsForLinerectCrossingsForPathrectCrossingsForQuad

Field Detail

INCLUDES_I_NOT_Oback to summary
public static final int INCLUDES_I_NOT_O
INCLUDES_NEITHERback to summary
public static final int INCLUDES_NEITHER
INCLUDES_O_AND_Iback to summary
public static final int INCLUDES_O_AND_I
INCLUDES_O_NOT_Iback to summary
public static final int INCLUDES_O_NOT_I
TYPE_INTERSECTback to summary
public static final int TYPE_INTERSECT

Constant used to indicate that the Inner shape should be intersected with the Outer shape.

TYPE_SUBTRACTback to summary
public static final int TYPE_SUBTRACT

Constant used to indicate that the Inner shape should be subtracted from the Outer shape.

Constructor Detail

ShapePairback to summary
public ShapePair()

Method Detail

getCombinationTypeback to summary
public abstract int getCombinationType()

Returns the method with which to combine the two shapes. For now, only TYPE_SUBTRACT and TYPE_INTERSECT are supported.

Returns:int

the method type to use to combine the shapes.

getInnerShapeback to summary
public abstract Shape getInnerShape()

Returns the inner Shape.

Returns:Shape

the inner Shape.

getOuterShapeback to summary
public abstract Shape getOuterShape()

Returns the outer Shape.

Returns:Shape

the outer Shape.