Library | Package Java Toolkit

Interface Layer

package com.ptc.pfc.pfcLayer;

public interface Layer
  extends com.ptc.pfc.pfcModelItem.ModelItem



Description

This class describes a layer.

The possible values for the display status are as follows:
Direct Known Subclasses:
WLayer



Method Summary
voidAddItem (ModelItem Item)
    Adds the specified item to the layer.
intCountUnsupportedItems ()
     
voidDelete ()
    Deletes the layer.
DisplayStatusGetStatus ()
    Get method for attribute "Status"
    The display status
booleanHasUnsupportedItems ()
    Returns true if the layer contains one or more item types not supported as ModelItem objects in PFC. Returns false otherwise.
ModelItemsListItems ()
    This method returns only items which are supported as ModelItem objects in PFC. To identify if the layer has any items not supported in PFC, use Layer.HasUnsupportedItems().
voidRemoveItem (ModelItem Item)
    Removes the specified item from the layer.
voidSetStatus (DisplayStatus value)
    Set method for attribute "Status"
    The display status

Methods Inherited from Interface com.ptc.pfc.pfcObject.Child
GetDBParent, GetOId

Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource
AddActionListener, RemoveActionListener, AddActionListenerWithType

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner
DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression

Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent
GetChild

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner
GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItem
GetName, SetName, GetId, GetType

Method Detail

ListItems

ModelItemsListItems ()


    This method returns only items which are supported as ModelItem objects in PFC. To identify if the layer has any items not supported in PFC, use Layer.HasUnsupportedItems().

Exceptions thrown (but not limited to):

XToolkitNotFound - A layer with the specified name was not found.

XToolkitOutOfMemory - The layer has too many items to report.


Manual References:
ModelItem: Getting ModelItem Objects, ModelItem: Getting ModelItem Objects, ModelItem: Layer Operations, ModelItem: Layer Operations
Returns:
An array of the items on the layer


GetStatus/SetStatus

DisplayStatusGetStatus ()
voidSetStatus (DisplayStatus value)


    The display status

Exceptions thrown (but not limited to):

XToolkitNotFound - The specified layer was not found.

XToolkitInvalidName - You specified an invalid layer name.

XToolkitCantModify - display status of the layer cannot be changed


Manual References:
ModelItem: Layer Operations, ModelItem: Layer Operations, ModelItem: Layer Operations, ModelItem: Layer Operations



AddItem

voidAddItem (ModelItem Item)


    Adds the specified item to the layer.

The following items cannot be added to a layer: ITEM_SURFACE, ITEM_EDGE, ITEM_COORD_SYS, ITEM_AXIS, ITEM_SIMPREP, ITEM_DTL_SYM_DEFINITION, ITEM_DTL_OLE_OBJECT, ITEM_EXPLODED_STATE. For these items the method will throw XToolkitInvalidType exception.

Exceptions thrown(but not limited to):

XToolkitInvalidName - You specified an invalid layer name.

XToolkitInvalidType - You specified an invalid layer item type.


Manual References:
ModelItem: Layer Operations, ModelItem: Layer Operations
Parameters:
Item
The item to add
Returns:


RemoveItem

voidRemoveItem (ModelItem Item)


    Removes the specified item from the layer.

Exceptions thrown (but not limited to):

XToolkitNotFound - The specified layer was not found.

XToolkitInvalidName - You specified an invalid layer name.

XToolkitInvalidType - You specified an invalid layer item type.


Manual References:
ModelItem: Layer Operations, ModelItem: Layer Operations
Parameters:
Item
The layer item to remove
Returns:


Delete

voidDelete ()


    Deletes the layer.

Exceptions thrown (but not limited to):

XToolkitInvalidName - You specified an invalid layer name.

XToolkitNotFound - The system could not find a layer with the specified name.


Manual References:
ModelItem: Layer Operations, ModelItem: Layer Operations
Returns:


HasUnsupportedItems

booleanHasUnsupportedItems ()


    Returns true if the layer contains one or more item types not supported as ModelItem objects in PFC. Returns false otherwise.
Returns:


CountUnsupportedItems

intCountUnsupportedItems ()


     
Manual References:
ModelItem: Layer Operations, ModelItem: Layer Operations
Returns: