TransformedShape objects are transformed "views" onto existing
Shape objects. These objects make no attempt to clone or protect
against access to the original Shape so any modifications to the
original Shape will be immediately reflected in the behaviors
and results of this object.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract BaseTransform | Returns: the concatenated transformthe specified contextual transform tx)Returns a new transform that represents the specified transform with
the transform of this |
| public boolean | contains(float x, float y)
Implements abstract com. Tests if the specified coordinates are inside the boundary of the
|
| public boolean | contains(float x, float y, float w, float h)
Implements abstract com. Tests if the interior of the |
| public Shape | copy()
Implements abstract com. Returns a new copy of this |
| public RectBounds | getBounds()
Implements abstract com. Note that there is no guarantee that the returned
|
| private Shape | |
| public Shape | |
| public PathIterator | getPathIterator(BaseTransform transform)
Implements abstract com. Returns an iterator object that iterates along the
|
| public PathIterator | getPathIterator(BaseTransform transform, float flatness)
Implements abstract com. Returns an iterator object that iterates along the |
| public abstract BaseTransform | |
| public boolean | intersects(float x, float y, float w, float h)
Implements abstract com. Tests if the interior of the |
| public static TransformedShape | Returns: a transformed view of the backingShapethe backing original, BaseTransform Shapethe tx)BaseTransform to apply to all of the
coordinates of the backing Shape on the flyReturns a |
| public static TransformedShape | Returns: a translated view of the backingShapethe backing original, double Shapethe X coordinate translation to apply to all of the
coordinates of the backing tx, double Shape on the flythe Y coordinate translation to apply to all of the
coordinates of the backing ty)Shape on the flyReturns a |
| protected Point2D | |
| protected BaseBounds |
| cachedTransformedShape | back to summary |
|---|---|
| private Shape cachedTransformedShape | |
| delegate | back to summary |
|---|---|
| protected final Shape delegate | |
| TransformedShape | back to summary |
|---|---|
| protected TransformedShape(Shape delegate) | |
| adjust | back to summary |
|---|---|
| public abstract BaseTransform adjust(BaseTransform tx) Returns a new transform that represents the specified transform with
the transform of this
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Implements abstract com. Doc from com. Tests if the specified coordinates are inside the boundary of the
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y, float w, float h) Implements abstract com. Doc from com. Tests if the interior of the
The
Shapes this method might
return false even though the Shape contains
the rectangular area.
The Area class performs
more accurate geometric computations than most
Shape objects and therefore can be used if a more precise
answer is required.
| |
| copy | back to summary |
|---|---|
| public Shape copy() Implements abstract com. Doc from com. Returns a new copy of this
| |
| getBounds | back to summary |
|---|---|
| public RectBounds getBounds() Implements abstract com. Doc from com. Note that there is no guarantee that the returned
| |
| getCachedTransformedShape | back to summary |
|---|---|
| private Shape getCachedTransformedShape() | |
| getDelegateNoClone | back to summary |
|---|---|
| public Shape getDelegateNoClone() | |
| getPathIterator | back to summary |
|---|---|
| public PathIterator getPathIterator(BaseTransform transform) Implements abstract com. Doc from com. Returns an iterator object that iterates along the
Each call to this method returns a fresh
It is recommended, but not guaranteed, that objects
implementing the
| |
| getPathIterator | back to summary |
|---|---|
| public PathIterator getPathIterator(BaseTransform transform, float flatness) Implements abstract com. Doc from com. Returns an iterator object that iterates along the Only SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point types are returned by the iterator.
If an optional
The amount of subdivision of the curved segments is controlled
by the
Each call to this method returns a fresh
It is recommended, but not guaranteed, that objects
implementing the
| |
| getTransformNoClone | back to summary |
|---|---|
| public abstract BaseTransform getTransformNoClone() | |
| intersects | back to summary |
|---|---|
| public boolean intersects(float x, float y, float w, float h) Implements abstract com. Doc from com. Tests if the interior of the
The
Shapes this method might
return true even though the rectangular area does not
intersect the Shape.
The Area class performs
more accurate computations of geometric intersection than most
Shape objects and therefore can be used if a more precise
answer is required.
| |
| transformedShape | back to summary |
|---|---|
| public static TransformedShape transformedShape(Shape original, BaseTransform tx) Returns a
| |
| translatedShape | back to summary |
|---|---|
| public static TransformedShape translatedShape(Shape original, double tx, double ty) Returns a
| |
| untransform | back to summary |
|---|---|
| protected Point2D untransform(float x, float y) | |
| untransformedBounds | back to summary |
|---|---|
| protected BaseBounds untransformedBounds(float x, float y, float w, float h) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv BaseTransform |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public BaseTransform | adjust(BaseTransform transform)
Implements abstract com. Returns a new transform that represents the specified transform with
the transform of this |
| public BaseTransform |
| transform | back to summary |
|---|---|
| pack-priv BaseTransform transform | |
| General | back to summary |
|---|---|
| pack-priv General(Shape delegate, BaseTransform transform) | |
| adjust | back to summary |
|---|---|
| public BaseTransform adjust(BaseTransform transform) Implements abstract com. Doc from com. Returns a new transform that represents the specified transform with
the transform of this
| |
| getTransformNoClone | back to summary |
|---|---|
| public BaseTransform getTransformNoClone() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private BaseTransform | |
| private final float | |
| private final float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BaseTransform | adjust(BaseTransform transform)
Implements abstract com. Returns a new transform that represents the specified transform with
the transform of this |
| public boolean | contains(float x, float y)
Overrides com. Tests if the specified coordinates are inside the boundary of the
|
| public boolean | contains(float x, float y, float w, float h)
Overrides com. Tests if the interior of the |
| public RectBounds | getBounds()
Overrides com. Note that there is no guarantee that the returned
|
| public BaseTransform | |
| public boolean | intersects(float x, float y, float w, float h)
Overrides com. Tests if the interior of the |
| cachedTx | back to summary |
|---|---|
| private BaseTransform cachedTx | |
| tx | back to summary |
|---|---|
| private final float tx | |
| ty | back to summary |
|---|---|
| private final float ty | |
| Translate | back to summary |
|---|---|
| public Translate(Shape delegate, float tx, float ty) | |
| adjust | back to summary |
|---|---|
| public BaseTransform adjust(BaseTransform transform) Implements abstract com. Doc from com. Returns a new transform that represents the specified transform with
the transform of this
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Overrides com. Doc from com. Tests if the specified coordinates are inside the boundary of the
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y, float w, float h) Overrides com. Doc from com. Tests if the interior of the
The
Shapes this method might
return false even though the Shape contains
the rectangular area.
The Area class performs
more accurate geometric computations than most
Shape objects and therefore can be used if a more precise
answer is required.
| |
| getBounds | back to summary |
|---|---|
| public RectBounds getBounds() Overrides com. Doc from com. Note that there is no guarantee that the returned
| |
| getTransformNoClone | back to summary |
|---|---|
| public BaseTransform getTransformNoClone() Implements abstract com.
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(float x, float y, float w, float h) Overrides com. Doc from com. Tests if the interior of the
The
Shapes this method might
return true even though the rectangular area does not
intersect the Shape.
The Area class performs
more accurate computations of geometric intersection than most
Shape objects and therefore can be used if a more precise
answer is required.
| |