com.aspose.diagram

  • java.lang.Object
    • com.aspose.diagram.Layer
public class Layer 
extends java.lang.Object

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

Constructor Summary
Layer()
Constructor.
 
Property Getters/Setters Summary
BoolValuegetActive()
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.
ColorValuegetColor()
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
DoubleValuegetColorTrans()
Determines the degree of transparency for a layer or shape's text color, from 0 (completely opaque) to 1 (completely transparent).
intgetDel()
void
setDel(intvalue)
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
BoolValuegetGlue()
Specifies whether shapes belonging to the layer can be glued to.
intisColorChecked()
void
setColorChecked(intvalue)
A flag indicating whether the element has been checked locally. A value of 1 indicates that the element was checked locally. The value of the property is BOOL integer constant.
intgetIX()
void
setIX(intvalue)
The zero-based index of the element within its parent element.
BoolValuegetLock()
Specifies whether shapes belonging to the layer are locked against being selected or edited.
Str2ValuegetName()
Name element specifies the name of a layer.
Str2ValuegetNameUniv()
Specifies the universal name of a layer.
BoolValuegetPrint()
Specifies whether shapes belonging to the layer are printed when the drawing is printed.
BoolValuegetSnap()
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.
BoolValuegetStatus()
Specifies whether the layer is a valid layer for a document.
BoolValuegetVisible()
Specifies whether shapes belonging to the layer are visible on the drawing page.
 

    • Constructor Detail

      • Layer

        public Layer()
        Constructor.
    • Property Getters/Setters Detail

      • getIX/setIX

        public int getIX() / public void setIX(int value)
        
        The zero-based index of the element within its parent element.
      • getDel/setDel

        public int getDel() / public void setDel(int value)
        
        A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
      • getName

        public Str2Value getName()
        
        Name element specifies the name of a layer.
      • 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
      • isColorChecked/setColorChecked

        public int isColorChecked() / public void setColorChecked(int value)
        
        A flag indicating whether the element has been checked locally. A value of 1 indicates that the element was checked locally. The value of the property is BOOL integer constant.
      • getStatus

        public BoolValue getStatus()
        
        Specifies whether the layer is a valid layer for a document.
      • getVisible

        public BoolValue getVisible()
        
        Specifies whether shapes belonging to the layer are visible on the drawing page.
      • getPrint

        public BoolValue getPrint()
        
        Specifies whether shapes belonging to the layer are printed when the drawing is printed.
      • 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.
      • getLock

        public BoolValue getLock()
        
        Specifies whether shapes belonging to the layer are locked against being selected or edited.
      • 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.
      • getGlue

        public BoolValue getGlue()
        
        Specifies whether shapes belonging to the layer can be glued to.
      • getNameUniv

        public Str2Value getNameUniv()
        
        Specifies the universal name of a layer.
      • 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).