com.aspose.slides
Class ShapeFrame

java.lang.Object
  extended by com.aspose.slides.ShapeFrame
All Implemented Interfaces:
com.aspose.ms.System.ICloneable, IShapeFrame

public class ShapeFrame
extends java.lang.Object
implements IShapeFrame

Represents shape frame's properties.


Constructor Summary
ShapeFrame(float x, float y, float width, float height, byte flipH, byte flipV, float rotationAngle)
           Creates new shape frame's properties.
 
Method Summary
 IShapeFrame cloneShapeFrame()
          Deprecated. 
 IShapeFrame cloneT()
           
 java.lang.Object deepClone()
           Returns a hash code for this object.
 boolean equals(java.lang.Object obj)
           Returns a value indicating whether this instance is equal to a specified object.
 boolean equals(ShapeFrame value)
           Returns a value indicating whether this instance is equal to a specified object.
 float getCenterX()
           Returns the X coordinate of a frame's center.
 float getCenterY()
           Returns the Y coordinate of a frame's center.
 byte getFlipH()
           Determines whether a frame is flipped horizontally.
 byte getFlipV()
           Determines whether a frame is flipped vertically.
 float getHeight()
           Returns the height of a frame.
 java.awt.geom.Rectangle2D.Float getRectangle()
           Returns the coordinates of a frame.
 float getRotation()
           Returns the number of degrees a frame is rotated around the z-axis.
 float getWidth()
           Returns the width of a frame.
 float getX()
           Returns the X coordinate of the upper-left corner of a frame.
 float getY()
           Returns the Y coordinate of the upper-left corner of a frame.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeFrame

public ShapeFrame(float x,
                  float y,
                  float width,
                  float height,
                  byte flipH,
                  byte flipV,
                  float rotationAngle)

Creates new shape frame's properties.

Parameters:
x - X coordinate of a frame.
y - Y coordinate of a frame.
width - Width of a frame.
height - Height of a frame.
flipH - True if a frame flipped horizontally.
flipV - True if a frame flipped vertivally.
rotationAngle - Number of degrees a frame is rotated.

Use values of NullableBool type for the "flipH" parameter.

Use values of NullableBool type for the "flipV" parameter.

Method Detail

getX

public float getX()

Returns the X coordinate of the upper-left corner of a frame. Read-only float.

Specified by:
getX in interface IShapeFrame

getY

public float getY()

Returns the Y coordinate of the upper-left corner of a frame. Read-only float.

Specified by:
getY in interface IShapeFrame

getWidth

public float getWidth()

Returns the width of a frame. Read-only float.

Specified by:
getWidth in interface IShapeFrame

getHeight

public float getHeight()

Returns the height of a frame. Read-only float.

Specified by:
getHeight in interface IShapeFrame

getRotation

public float getRotation()

Returns the number of degrees a frame is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read-only float.

Specified by:
getRotation in interface IShapeFrame

getCenterX

public float getCenterX()

Returns the X coordinate of a frame's center. Read-only float.

Specified by:
getCenterX in interface IShapeFrame

getCenterY

public float getCenterY()

Returns the Y coordinate of a frame's center. Read-only float.

Specified by:
getCenterY in interface IShapeFrame

getFlipH

public byte getFlipH()

Determines whether a frame is flipped horizontally. Read-only NullableBool.

Specified by:
getFlipH in interface IShapeFrame

getFlipV

public byte getFlipV()

Determines whether a frame is flipped vertically. Read-only NullableBool.

Specified by:
getFlipV in interface IShapeFrame

getRectangle

public java.awt.geom.Rectangle2D.Float getRectangle()

Returns the coordinates of a frame. Read-only RectangleF.

Specified by:
getRectangle in interface IShapeFrame

equals

public boolean equals(java.lang.Object obj)

Returns a value indicating whether this instance is equal to a specified object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to compare with this instance.
Returns:
<b>True</b> if obj is a ShapeFrame that has the same value as this instance; otherwise, <b>false</b>.

equals

public boolean equals(ShapeFrame value)

Returns a value indicating whether this instance is equal to a specified object.

Parameters:
value - The ShapeFRameEx to compare with this instance.
Returns:
<b>True</b> if value is a ShapeFrame that has the same value as this instance; otherwise, <b>false</b>.

deepClone

public java.lang.Object deepClone()

Returns a hash code for this object.

Specified by:
deepClone in interface com.aspose.ms.System.ICloneable

cloneT

public IShapeFrame cloneT()

cloneShapeFrame

@Deprecated
public IShapeFrame cloneShapeFrame()
Deprecated. 

Specified by:
cloneShapeFrame in interface IShapeFrame


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.