viper.descriptors.attributes
Class Attribute_bbox.Resizer

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

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

Adds to the boxes size by some fixed number of pixels. FIXME: Fails when shrinking boxes by more width/height than they have.


Constructor Summary
Attribute_bbox.Resizer(int x, int y, int width, int height)
          takes the deltas in each of the four values.
 
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.Resizer

public Attribute_bbox.Resizer(int x,
                              int y,
                              int width,
                              int height)
takes the deltas in each of the four values.

Parameters:
x - the x delta
y - the y delta
width - the width delta
height - the height delta
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