Layer

Inheritance: java.lang.Object

public class Layer

Contains elements that define a single layer and its properties for a page.

Constructors

Constructor Description
Layer() Constructor.

Methods

Method Description
equals(Object arg0)
getActive() Specifies whether a layer is active.
getClass()
getColor() The index of the color in the color table used toThe index of the color in the color table used to display the layer or An RGB value specifying a custom color not in the color table (for example, #ff9900 ). display the layer
getColorTrans() Determines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely transparent).
getDel() A flag indicating whether the element has been deleted locally.
getGlue() Specifies whether shapes belonging to the layer can be glued to.
getIX() The zero-based index of the element within its parent element.
getLock() Specifies whether shapes belonging to the layer are locked against being selected or edited.
getName() Name element specifies the name of a layer.
getNameUniv() Specifies the universal name of a layer.
getPrint() Specifies whether shapes belonging to the layer are printed when the drawing is printed.
getSnap() Specifies whether other shapes can snap to shapes assigned to the layer.
getStatus() Specifies whether the layer is a valid layer for a document.
getVisible() Specifies whether shapes belonging to the layer are visible on the drawing page.
hashCode()
isColorChecked() A flag indicating whether the element has been checked locally.
notify()
notifyAll()
setColorChecked(int value) For the description of this property, please see isColorChecked()
setDel(int value) For the description of this property, please see getDel()
setIX(int value) For the description of this property, please see getIX()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Layer()

public Layer()

Constructor.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getActive()

public BoolValue getActive()

Specifies whether a layer is active. Shapes that are not preassigned to layers are assigned to the active layer(s) when dropped on the drawing page.

Returns: BoolValue

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public ColorValue getColor()

The index of the color in the color table used toThe index of the color in the color table used to display the layer or An RGB value specifying a custom color not in the color table (for example, #ff9900 ). display the layer

Returns: ColorValue

getColorTrans()

public DoubleValue getColorTrans()

Determines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely transparent).

Returns: DoubleValue

getDel()

public int getDel()

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.

Returns: int

getGlue()

public BoolValue getGlue()

Specifies whether shapes belonging to the layer can be glued to.

Returns: BoolValue

getIX()

public int getIX()

The zero-based index of the element within its parent element.

Returns: int

getLock()

public BoolValue getLock()

Specifies whether shapes belonging to the layer are locked against being selected or edited.

Returns: BoolValue

getName()

public Str2Value getName()

Name element specifies the name of a layer.

Returns: Str2Value

getNameUniv()

public Str2Value getNameUniv()

Specifies the universal name of a layer.

Returns: Str2Value

getPrint()

public BoolValue getPrint()

Specifies whether shapes belonging to the layer are printed when the drawing is printed.

Returns: BoolValue

getSnap()

public BoolValue getSnap()

Specifies whether other shapes can snap to shapes assigned to the layer. Shapes assigned to the layer can snap to other shapes, but other shapes cannot snap to them.

Returns: BoolValue

getStatus()

public BoolValue getStatus()

Specifies whether the layer is a valid layer for a document.

Returns: BoolValue

getVisible()

public BoolValue getVisible()

Specifies whether shapes belonging to the layer are visible on the drawing page.

Returns: BoolValue

hashCode()

public native int hashCode()

Returns: int

isColorChecked()

public int isColorChecked()

A flag indicating whether the element has been checked locally. A value of 1 indicates that the element was checked locally.

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setColorChecked(int value)

public void setColorChecked(int value)

For the description of this property, please see isColorChecked()

Parameters:

Parameter Type Description
value int

setDel(int value)

public void setDel(int value)

For the description of this property, please see getDel()

Parameters:

Parameter Type Description
value int

setIX(int value)

public void setIX(int value)

For the description of this property, please see getIX()

Parameters:

Parameter Type Description
value int

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int