A PointAndAnchor
encapsulates a PointF
denoting a location
on a shape canvas and an Anchor
that indicates how a shape should be
anchored to that point.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
PointAndAnchor(PointF point, Anchor anchor)
Creates a new
PointAndAnchor with the specified point and
anchor. | ||||||||||
|
PointAndAnchor(PointAndAnchor source)
Creates a new
PointAndAnchor that is a copy of the specified
one. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PointAndAnchor
|
copy()
Gets a copy of this
PointAndAnchor . | ||||||||||
Anchor
|
getAnchor()
Gets the anchor represented by the receiver.
| ||||||||||
PointF
|
getPoint()
Gets the point represented by the receiver.
| ||||||||||
RectF
|
sized(SizeF size)
Returns a RectF-compatible object that is positioned with
respect to this point and anchor and has the specified size.
| ||||||||||
RectF
|
sized(float width, float height)
Returns a RectF-compatible object that is positioned with
respect to this point and anchor and has the specified width and height.
| ||||||||||
RectF
|
sizedProportionalTo(Shape sourceShape, double widthRatio, double heightRatio)
Gets a
RectF -compatible object that is positioned with respect
to this point and anchor and has the specified width and height,
calculated as proportions of the size of another shape. | ||||||||||
RectF
|
sizedProportionalToView(double widthRatio, double heightRatio)
Gets a
RectF object that has the receiver as the origin and the
specified size, proportional to the size of the ShapeView that
contains the shape. |
Methods inherited from
class
java.lang.Object
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object
|
clone()
| ||||||||||
boolean
|
equals(Object arg0)
| ||||||||||
void
|
finalize()
| ||||||||||
final
Class<?>
|
getClass()
| ||||||||||
int
|
hashCode()
| ||||||||||
final
void
|
notify()
| ||||||||||
final
void
|
notifyAll()
| ||||||||||
String
|
toString()
| ||||||||||
final
void
|
wait()
| ||||||||||
final
void
|
wait(long arg0, int arg1)
| ||||||||||
final
void
|
wait(long arg0)
|
Creates a new PointAndAnchor
with the specified point and
anchor.
Anchor
Creates a new PointAndAnchor
that is a copy of the specified
one.
PointAndAnchor
to copy
Gets the anchor represented by the receiver.
the anchor represented by the receiver
Gets the point represented by the receiver.
the point represented by the receiver
Returns a RectF-compatible object that is positioned with respect to this point and anchor and has the specified size.
a RectF-compatible object
Returns a RectF-compatible object that is positioned with respect to this point and anchor and has the specified width and height.
a RectF-compatible object
Gets a RectF
-compatible object that is positioned with respect
to this point and anchor and has the specified width and height,
calculated as proportions of the size of another shape.
a RectF
-compatible object that has the receiver as the
origin and the specified size
Gets a RectF
object that has the receiver as the origin and the
specified size, proportional to the size of the ShapeView
that
contains the shape.
a RectF
that has the receiver as the origin and the
specified size