com.qoppa.pdf
Class Layer

java.lang.Object
  extended bycom.qoppa.pdf.Layer

public class Layer
extends Object

This class represents a PDF 'Layer'.

Author:
Qoppa Software

Field Summary
static int STATE_OFF
           
static int STATE_ON
           
 
Constructor Summary
Layer(String name, int layerState)
          Constructs a new layer.
 
Method Summary
 String getName()
          Returns the name of this layer.
 boolean isVisible()
          Returns whether this layer is currently visible.
 void setVisible(boolean visible)
          Sets the visibility for this layer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_OFF

public static final int STATE_OFF
See Also:
Constant Field Values

STATE_ON

public static final int STATE_ON
See Also:
Constant Field Values
Constructor Detail

Layer

public Layer(String name,
             int layerState)
Constructs a new layer.

Parameters:
name - The name of the new layer.
layerState - The initial state of the layer. This value should be either Layer.STATE_OFF or Layer.STATE_ON.
Method Detail

getName

public String getName()
Returns the name of this layer.

Returns:
The name of the layer.

isVisible

public boolean isVisible()
Returns whether this layer is currently visible.

Returns:
Layer's visibility.

setVisible

public void setVisible(boolean visible)
Sets the visibility for this layer.

Parameters:
visible - The new visibility.