com.aspose.slides
Class ShadowFormat

java.lang.Object
  extended by com.aspose.slides.ShadowFormat

public final class ShadowFormat
extends java.lang.Object

Represents the shadow of a shape.


Method Summary
 java.awt.Color getLightColor()
          Returns the additional light color of a shadow.
 short getLightColorIndex()
          Returns the index of a light shadow's color in a color scheme.
 int getPerspectiveXNumerator()
          Returns the X perspective coefficient numerator.
 int getPerspectiveYNumerator()
          Returns the Y perspective coefficient numerator.
 float getSecondShadowOffsetX()
          Returns the X coordinate of a secondary shadow's offset in points.
 float getSecondShadowOffsetY()
          Returns the Y coordinate of a secondary shadow's offset in points.
 java.awt.Color getShadowColor()
          Returns the color of a shadow.
 short getShadowColorIndex()
          Returns the index of a shadow's color.
 float getShadowOffsetX()
          Returns the X coordinate of a shadow's offset in points.
 float getShadowOffsetY()
          Returns the Y coordinate of a shadow's offset in points.
 float getShadowOriginX()
          Returns the X coordinate of transformation origin.
 float getShadowOriginY()
          Returns the Y coordinate of transformation origin.
 int getShadowStyle()
          Returns the style of a shadow.
 float getShadowTransformM11()
          Returns (1, 1) element of shadow's transform matrix.
 float getShadowTransformM12()
          Returns (1, 2) element of shadow's transform matrix.
 float getShadowTransformM21()
          Returns (2, 1) element of shadow's transform matrix.
 float getShadowTransformM22()
          Returns (2, 2) element of shadow's transform matrix.
 int getType()
          Returns the type of a shadow.
 boolean isVisible()
          Determines whether the shape has a shadow.
 void setLightColor(java.awt.Color value)
          Sets the additional light color of a shadow.
 void setLightColorIndex(short value)
          Sets the index of a light shadow's color in a color scheme.
 void setPerspectiveXNumerator(int value)
          Sets the X perspective coefficient numerator.
 void setPerspectiveYNumerator(int value)
          Sets the Y perspective coefficient numerator.
 void setSecondShadowOffsetX(float value)
          Sets the X coordinate of a secondary shadow's offset in points.
 void setSecondShadowOffsetY(float value)
          Sets the Y coordinate of a secondary shadow's offset in points.
 void setShadowColor(java.awt.Color value)
          Sets the color of a shadow.
 void setShadowColorIndex(short value)
          Sets the index of a shadow's color.
 void setShadowOffsetX(float value)
          Sets the X coordinate of a shadow's offset in points.
 void setShadowOffsetY(float value)
          Sets the Y coordinate of a shadow's offset in points.
 void setShadowOriginX(float value)
          Sets the X coordinate of transformation origin.
 void setShadowOriginY(float value)
          Sets the Y coordinate of transformation origin.
 void setShadowStyle(int value)
          Sets the style of a shadow.
 void setShadowTransformM11(float value)
          Sets (1, 1) element of shadow's transform matrix.
 void setShadowTransformM12(float value)
          Sets (1, 2) element of shadow's transform matrix.
 void setShadowTransformM21(float value)
          Sets (2, 1) element of shadow's transform matrix.
 void setShadowTransformM22(float value)
          Sets (2, 2) element of shadow's transform matrix.
 void setType(int value)
          Sets the type of a shadow.
 void setVisible(boolean value)
          Sets whether the shape has a shadow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getShadowColor

public java.awt.Color getShadowColor()
Returns the color of a shadow.

Returns:
the color of a shadow.

setShadowColor

public void setShadowColor(java.awt.Color value)
Sets the color of a shadow.

Parameters:
value - the color of a shadow.

getShadowColorIndex

public short getShadowColorIndex()
Returns the index of a shadow's color.

Returns:
the index of a shadow's color in a color scheme or -1 for the scheme independent color.

setShadowColorIndex

public void setShadowColorIndex(short value)
Sets the index of a shadow's color.

Parameters:
value - the index of a shadow's color in a color scheme or -1 for the scheme independent color.

getLightColor

public java.awt.Color getLightColor()
Returns the additional light color of a shadow. Light shadow color used to draw secondary shadow and light sides of a beveled shadow.

Returns:
the light color of a shadow.

setLightColor

public void setLightColor(java.awt.Color value)
Sets the additional light color of a shadow. Light shadow color used to draw secondary shadow and light sides of a beveled shadow.

Parameters:
value - the light color of a shadow.

getLightColorIndex

public short getLightColorIndex()
Returns the index of a light shadow's color in a color scheme. Light shadow color used to draw secondary shadow and light sides of a beveled shadow.

Returns:
the index of a light shadow's color in color scheme or -1 for the scheme independent color.

setLightColorIndex

public void setLightColorIndex(short value)
Sets the index of a light shadow's color in a color scheme. Light shadow color used to draw secondary shadow and light sides of a beveled shadow.

Parameters:
value - the index of a light shadow's color in color scheme or -1 for the scheme independent color.

getShadowOffsetX

public float getShadowOffsetX()
Returns the X coordinate of a shadow's offset in points.

Returns:
the X coordinate of a shadow's offset in points.

setShadowOffsetX

public void setShadowOffsetX(float value)
Sets the X coordinate of a shadow's offset in points.

Parameters:
value - the X coordinate of a shadow's offset in points.

getShadowOffsetY

public float getShadowOffsetY()
Returns the Y coordinate of a shadow's offset in points.

Returns:
the Y coordinate of a shadow's offset in points.

setShadowOffsetY

public void setShadowOffsetY(float value)
Sets the Y coordinate of a shadow's offset in points.

Parameters:
value - the Y coordinate of a shadow's offset in points.

getSecondShadowOffsetX

public float getSecondShadowOffsetX()
Returns the X coordinate of a secondary shadow's offset in points.

Returns:
the X coordinate of a secondary shadow's offset in points.

setSecondShadowOffsetX

public void setSecondShadowOffsetX(float value)
Sets the X coordinate of a secondary shadow's offset in points.

Parameters:
value - the X coordinate of a secondary shadow's offset in points.

getSecondShadowOffsetY

public float getSecondShadowOffsetY()
Returns the Y coordinate of a secondary shadow's offset in points.

Returns:
the Y coordinate of a secondary shadow's offset in points.

setSecondShadowOffsetY

public void setSecondShadowOffsetY(float value)
Sets the Y coordinate of a secondary shadow's offset in points.

Parameters:
value - the Y coordinate of a secondary shadow's offset in points.

getShadowTransformM11

public float getShadowTransformM11()
Returns (1, 1) element of shadow's transform matrix.

Returns:
(1, 1) element of shadow's transform matrix.

setShadowTransformM11

public void setShadowTransformM11(float value)
Sets (1, 1) element of shadow's transform matrix.

Parameters:
value - (1, 1) element of shadow's transform matrix.

getShadowTransformM21

public float getShadowTransformM21()
Returns (2, 1) element of shadow's transform matrix.

Returns:
(2, 1) element of shadow's transform matrix.

setShadowTransformM21

public void setShadowTransformM21(float value)
Sets (2, 1) element of shadow's transform matrix.

Parameters:
value - (2, 1) element of shadow's transform matrix.

getShadowTransformM12

public float getShadowTransformM12()
Returns (1, 2) element of shadow's transform matrix.

Returns:
(1, 2) element of shadow's transform matrix.

setShadowTransformM12

public void setShadowTransformM12(float value)
Sets (1, 2) element of shadow's transform matrix.

Parameters:
value - (1, 2) element of shadow's transform matrix.

getShadowTransformM22

public float getShadowTransformM22()
Returns (2, 2) element of shadow's transform matrix.

Returns:
(2, 2) element of shadow's transform matrix.

setShadowTransformM22

public void setShadowTransformM22(float value)
Sets (2, 2) element of shadow's transform matrix.

Parameters:
value - (2, 2) element of shadow's transform matrix.

getPerspectiveXNumerator

public int getPerspectiveXNumerator()
Returns the X perspective coefficient numerator.

Returns:
the X perspective coefficient numerator.

setPerspectiveXNumerator

public void setPerspectiveXNumerator(int value)
Sets the X perspective coefficient numerator.

Parameters:
value - the X perspective coefficient numerator.

getPerspectiveYNumerator

public int getPerspectiveYNumerator()
Returns the Y perspective coefficient numerator.

Returns:
the Y perspective coefficient numerator.

setPerspectiveYNumerator

public void setPerspectiveYNumerator(int value)
Sets the Y perspective coefficient numerator.

Parameters:
value - the Y perspective coefficient numerator.

getShadowOriginX

public float getShadowOriginX()
Returns the X coordinate of transformation origin.

0 means center of the shape,

-0.5 - left side of the shape,

0.5 - right side of the shape.

Returns:
the X coordinate of transformation origin.

setShadowOriginX

public void setShadowOriginX(float value)
Sets the X coordinate of transformation origin.

0 means center of the shape,

-0.5 - left side of the shape,

0.5 - right side of the shape.

Parameters:
value - the X coordinate of transformation origin.

getShadowOriginY

public float getShadowOriginY()
Returns the Y coordinate of transformation origin.

0 means center of the shape,

-0.5 - top of the shape,

0.5 - bottom of the shape.

Returns:
the Y coordinate of transformation origin.

setShadowOriginY

public void setShadowOriginY(float value)
Sets the Y coordinate of transformation origin.

0 means center of the shape,

-0.5 - top of the shape,

0.5 - bottom of the shape.

Parameters:
value - the Y coordinate of transformation origin.

isVisible

public boolean isVisible()
Determines whether the shape has a shadow.

Returns:
true if shape has a shadow.

setVisible

public void setVisible(boolean value)
Sets whether the shape has a shadow.

Parameters:
value - true if shape has a shadow.

getType

public int getType()
Returns the type of a shadow.

Returns:
the shadow type. See ShadowType.

setType

public void setType(int value)
Sets the type of a shadow.

Parameters:
value - the shadow type. See ShadowType.

getShadowStyle

public int getShadowStyle()
Returns the style of a shadow.

Returns:
the shadow style. See ShadowStyle.

setShadowStyle

public void setShadowStyle(int value)
Sets the style of a shadow.

Parameters:
value - the shadow style. See ShadowStyle.