public class VisualPrintMaterialDetector extends java.lang.Object implements PrintMaterialDetector
Modifier and Type | Class and Description |
---|---|
static class |
VisualPrintMaterialDetector.ShapeDetectionCache |
Constructor and Description |
---|
VisualPrintMaterialDetector() |
Modifier and Type | Method and Description |
---|---|
float |
getPercentageOfPrintMaterialRemaining(Printer printer)
This method shouldn't worry about the amount of time they use to determine how much print material is left.
|
void |
startMeasurement(Printer printer)
This method is executed synchronously with the printing process to ensure the print material is settled to a
point where it can be measured properly.
|
public void startMeasurement(Printer printer)
PrintMaterialDetector
startMeasurement
in interface PrintMaterialDetector
public float getPercentageOfPrintMaterialRemaining(Printer printer) throws java.io.IOException
PrintMaterialDetector
getPercentageOfPrintMaterialRemaining
in interface PrintMaterialDetector
java.io.IOException