ShadowType
Inheritance: java.lang.Object
public class ShadowType
Specifies the type of a shape shadow.
Remarks:
ShadowType is not a simple attribute, but a preset that sets at once several attributes which form the shadow appearance.
Examples:
Shows how to work with a shadow formatting for the shape.
Document doc = new Document(getMyDir() + "Shape stroke pattern border.docx");
Shape shape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0);
if (shape.getShadowFormat().getVisible() && shape.getShadowFormat().getType() == ShadowType.SHADOW_2)
shape.getShadowFormat().setType(ShadowType.SHADOW_7);
if (shape.getShadowFormat().getType() == ShadowType.SHADOW_MIXED)
shape.getShadowFormat().clear();
Fields
Field | Description |
---|---|
SHADOW_1 | First shadow type. |
SHADOW_10 | Tenth shadow type. |
SHADOW_11 | Eleventh shadow type. |
SHADOW_12 | Twelfth shadow type. |
SHADOW_13 | Thirteenth shadow type. |
SHADOW_14 | Fourteenth shadow type. |
SHADOW_15 | Fifteenth shadow type. |
SHADOW_16 | Sixteenth shadow type. |
SHADOW_17 | Seventeenth shadow type. |
SHADOW_18 | Eighteenth shadow type. |
SHADOW_19 | Nineteenth shadow type. |
SHADOW_2 | Second shadow type. |
SHADOW_20 | Twentieth shadow type. |
SHADOW_21 | Twenty first shadow type. |
SHADOW_22 | Twenty second shadow type. |
SHADOW_23 | Twenty third shadow type. |
SHADOW_24 | Twenty forth shadow type. |
SHADOW_25 | Twenty fifth shadow type. |
SHADOW_26 | Twenty sixth shadow type. |
SHADOW_27 | Twenty seventh shadow type. |
SHADOW_28 | Twenty eighth shadow type. |
SHADOW_29 | Twenty ninth shadow type. |
SHADOW_3 | Third shadow type. |
SHADOW_30 | Thirtieth shadow type. |
SHADOW_31 | Thirty first shadow type. |
SHADOW_32 | Thirty second shadow type. |
SHADOW_33 | Thirty third shadow type. |
SHADOW_34 | Thirty forth shadow type. |
SHADOW_35 | Thirty fifth shadow type. |
SHADOW_36 | Thirty sixth shadow type. |
SHADOW_37 | Thirty seventh shadow type. |
SHADOW_38 | Thirty eighth shadow type. |
SHADOW_39 | Thirty ninth shadow type. |
SHADOW_4 | Fourth shadow type. |
SHADOW_40 | Fortieth shadow type. |
SHADOW_41 | Forty first shadow type. |
SHADOW_42 | Forty second shadow type. |
SHADOW_43 | Forty third shadow type. |
SHADOW_5 | Fifth shadow type. |
SHADOW_6 | Sixth shadow type. |
SHADOW_7 | Seventh shadow type. |
SHADOW_8 | Eighth shadow type. |
SHADOW_9 | Ninth shadow type. |
SHADOW_MIXED | None of predefined shadow presets. |
length |
Methods
Method | Description |
---|---|
fromName(String shadowTypeName) | |
getName(int shadowType) | |
getValues() | |
toString(int shadowType) |
SHADOW_1
public static int SHADOW_1
First shadow type.
SHADOW_10
public static int SHADOW_10
Tenth shadow type.
SHADOW_11
public static int SHADOW_11
Eleventh shadow type.
SHADOW_12
public static int SHADOW_12
Twelfth shadow type.
SHADOW_13
public static int SHADOW_13
Thirteenth shadow type.
SHADOW_14
public static int SHADOW_14
Fourteenth shadow type.
SHADOW_15
public static int SHADOW_15
Fifteenth shadow type.
SHADOW_16
public static int SHADOW_16
Sixteenth shadow type.
SHADOW_17
public static int SHADOW_17
Seventeenth shadow type.
SHADOW_18
public static int SHADOW_18
Eighteenth shadow type.
SHADOW_19
public static int SHADOW_19
Nineteenth shadow type.
SHADOW_2
public static int SHADOW_2
Second shadow type.
SHADOW_20
public static int SHADOW_20
Twentieth shadow type.
SHADOW_21
public static int SHADOW_21
Twenty first shadow type.
SHADOW_22
public static int SHADOW_22
Twenty second shadow type.
SHADOW_23
public static int SHADOW_23
Twenty third shadow type.
SHADOW_24
public static int SHADOW_24
Twenty forth shadow type.
SHADOW_25
public static int SHADOW_25
Twenty fifth shadow type.
SHADOW_26
public static int SHADOW_26
Twenty sixth shadow type.
SHADOW_27
public static int SHADOW_27
Twenty seventh shadow type.
SHADOW_28
public static int SHADOW_28
Twenty eighth shadow type.
SHADOW_29
public static int SHADOW_29
Twenty ninth shadow type.
SHADOW_3
public static int SHADOW_3
Third shadow type.
SHADOW_30
public static int SHADOW_30
Thirtieth shadow type.
SHADOW_31
public static int SHADOW_31
Thirty first shadow type.
SHADOW_32
public static int SHADOW_32
Thirty second shadow type.
SHADOW_33
public static int SHADOW_33
Thirty third shadow type.
SHADOW_34
public static int SHADOW_34
Thirty forth shadow type.
SHADOW_35
public static int SHADOW_35
Thirty fifth shadow type.
SHADOW_36
public static int SHADOW_36
Thirty sixth shadow type.
SHADOW_37
public static int SHADOW_37
Thirty seventh shadow type.
SHADOW_38
public static int SHADOW_38
Thirty eighth shadow type.
SHADOW_39
public static int SHADOW_39
Thirty ninth shadow type.
SHADOW_4
public static int SHADOW_4
Fourth shadow type.
SHADOW_40
public static int SHADOW_40
Fortieth shadow type.
SHADOW_41
public static int SHADOW_41
Forty first shadow type.
SHADOW_42
public static int SHADOW_42
Forty second shadow type.
SHADOW_43
public static int SHADOW_43
Forty third shadow type.
SHADOW_5
public static int SHADOW_5
Fifth shadow type.
SHADOW_6
public static int SHADOW_6
Sixth shadow type.
SHADOW_7
public static int SHADOW_7
Seventh shadow type.
SHADOW_8
public static int SHADOW_8
Eighth shadow type.
SHADOW_9
public static int SHADOW_9
Ninth shadow type.
SHADOW_MIXED
public static int SHADOW_MIXED
None of predefined shadow presets.
length
public static int length
fromName(String shadowTypeName)
public static int fromName(String shadowTypeName)
Parameters:
Parameter | Type | Description |
---|---|---|
shadowTypeName | java.lang.String |
Returns: int
getName(int shadowType)
public static String getName(int shadowType)
Parameters:
Parameter | Type | Description |
---|---|---|
shadowType | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int shadowType)
public static String toString(int shadowType)
Parameters:
Parameter | Type | Description |
---|---|---|
shadowType | int |
Returns: java.lang.String