viper.descriptors.attributes
Class Attribute_bbox.ProportionalResizer

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

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

Modifies the boxes widths and heights about the center.


Constructor Summary
Attribute_bbox.ProportionalResizer(double width, double height)
          takes the deltas in each of the width and height
 
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.ProportionalResizer

public Attribute_bbox.ProportionalResizer(double width,
                                          double height)
takes the deltas in each of the width and height

Parameters:
width - the amount to multiply the width by
height - the amount to multiply the height by
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