chemaxon.struc.sgroup
Interface Expandable

All Known Implementing Classes:
MultipleSgroup, SuperatomSgroup

public interface Expandable

Expandable interface for S-groups.

Since:
3.0, 11/05/2002
Version:
3.3, 12/11/2003
Author:
Peter Csizmadia

Field Summary
static int DEFAULT_OPTIONS
          Default expansion/contraction options.
static int MDL_EXPAND
          MDL like multiple group expansion flag.
 
Method Summary
 boolean contract(int opts)
          Contracts the S-group.
 boolean expand(int opts)
          Expands the S-group.
 boolean isExpanded()
          Is this S-group expanded?
 

Field Detail

DEFAULT_OPTIONS

public static final int DEFAULT_OPTIONS
Default expansion/contraction options.

See Also:
Constant Field Values

MDL_EXPAND

public static final int MDL_EXPAND
MDL like multiple group expansion flag. Coordinates of corresponding atoms in different expanded units are equal. Use this flag for MDL molfile export.

See Also:
Constant Field Values
Method Detail

contract

public boolean contract(int opts)
Contracts the S-group.

Parameters:
opts - contraction options (currently neglected)
Returns:
true if the operation was successful, false if the group cannot be contracted
See Also:
DEFAULT_OPTIONS

expand

public boolean expand(int opts)
Expands the S-group.

Parameters:
opts - expansion options
Returns:
true if the operation was successful, false if the group cannot be expanded
See Also:
DEFAULT_OPTIONS, MDL_EXPAND

isExpanded

public boolean isExpanded()
Is this S-group expanded?

Returns:
true if expanded, false if not