viper.descriptors.attributes
Class Attribute_bbox.Crops

java.lang.Object
  extended byviper.descriptors.attributes.Attribute_bbox.Crops
All Implemented Interfaces:
Filterable.Rule
Enclosing class:
Attribute_bbox

protected static class Attribute_bbox.Crops
extends java.lang.Object
implements Filterable.Rule

Crops all rectangles to be within the given rectangle Returns false when the rectangle is without the window.


Constructor Summary
Attribute_bbox.Crops(int x, int y, int width, int height)
          The containing rectangle/window.
 
Method Summary
 boolean isShortCircuit()
          Tells the filter whether to apply short circuiting.
 boolean passes(Measurable o)
          The function method of this object, passes determines if the filterable object passes.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute_bbox.Crops

public Attribute_bbox.Crops(int x,
                            int y,
                            int width,
                            int height)
The containing rectangle/window.

Parameters:
x - the x (top-left) coordinate of the cropping window
y - the y (top-left) coordinate of the cropping window
width - the width of the cropping window
height - the height of the cropping window
Method Detail

passes

public boolean passes(Measurable o)
Description copied from interface: Filterable.Rule
The function method of this object, passes determines if the filterable object passes.

Specified by:
passes in interface Filterable.Rule
Parameters:
o - the measurable object to test
Returns:
true if the Filterable object passes the rule.

toString

public java.lang.String toString()

isShortCircuit

public boolean isShortCircuit()
Tells the filter whether to apply short circuiting.

Specified by:
isShortCircuit in interface Filterable.Rule
Returns:
false