public abstract class ALcdDGNLevelFilter extends Object implements ILcdFilter
You can check if a given level is included by this filter through contains(com.luciad.format.dgn.TLcdDGNLevel)
.
You can retrieve all accepted levels through getLevelIDs()
.
This filter is also an ILcdFilter
that accepts model elements that correspond to
its set of levels. Cells are accepted if at least on element inside is accepted.
Modifier | Constructor and Description |
---|---|
protected |
ALcdDGNLevelFilter(String aName)
Creates a new level filter
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Object aObject)
Tests if a given object passes the filter or not.
|
abstract boolean |
contains(int aLevelID)
Checks whether the given level is included in this filter.
|
boolean |
contains(TLcdDGNLevel aLevel)
Checks whether the given level is included in this filter.
|
abstract int[] |
getLevelIDs()
Return all levels that are accepted by this filter.
|
String |
getName()
Returns the name of this filter
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
test
protected ALcdDGNLevelFilter(String aName)
aName
- The filter namepublic String getName()
public boolean contains(TLcdDGNLevel aLevel)
aLevel
- A leveltrue
if the level is included, false
if the level is excludedpublic abstract boolean contains(int aLevelID)
aLevelID
- A level ID (code)true
if the level is included, false
if the level is excludedpublic abstract int[] getLevelIDs()
public boolean accept(Object aObject)
accept
in interface ILcdFilter
aObject
- the object to be tested by the filter.true
if the object passes the filter, false
otherwise.