Interface TuckBox.BoxSizer
-
- All Known Implementing Classes:
TuckBox.SimpleDepthwiseSizer,TuckBox.SimpleHeightwiseSizer
- Enclosing class:
- TuckBox
public static interface TuckBox.BoxSizerA sizing tool for a particular type of component. The sizer'stoStringmethod should return a human-readable description of the type of component(s) that this sizer produces box measurements for.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallowSleeves()Returnstrueif this helper uses sleeve thickness as part of its sizing algorithm.double[]size(int cards, double sleeveThicknessInMicrons)Returns the dimensions for a box of the type represented by this sizer that allows sufficient space to hold a number of cards equal tocards.
-
-
-
Method Detail
-
size
double[] size(int cards, double sleeveThicknessInMicrons)Returns the dimensions for a box of the type represented by this sizer that allows sufficient space to hold a number of cards equal tocards. The dimensions are returned as an array of threedoublevalues which measure the width, height, and depth in mm (respectively).- Parameters:
cards- the number of objects the box should holdsleeveThicknessInMicrons- the tickness rating of the plastic sleeve in microns, 0 for no sleeves- Returns:
- an array of millimetre measurements for the box's width, height and depth
-
allowSleeves
boolean allowSleeves()
Returnstrueif this helper uses sleeve thickness as part of its sizing algorithm. Non-card components typically don't have a suitable sleeve available, so sizers for such components would returnfalse.- Returns:
trueif and only if the user can store this component type on plastic sleeves
-
-