java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JProgressBar
Emulation of javax.swing.JProgressBar for the NDT (Network Diagnostic Tool) plugin.
This class provides a minimal stub implementation of a progress bar component to allow the NDT tool to run in headless environments. The progress bar maintains value and indeterminate state but provides no actual visual representation.
All operations except state tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanTrue while the bar animates without a known value.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionbooleanCheck if the progress bar is indeterminate.voidsetIndeterminate(boolean b) Set the indeterminate state.voidsetMaximum(int i) Set the maximum value.voidsetMinimum(int i) Set the minimum value.voidSet the progress bar string.voidsetStringPainted(boolean b) Set whether the progress bar string should be painted.voidsetValue(int i) Set the progress bar value.Methods inherited from class Component
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisibleModifier and TypeMethodDescriptionvoidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.Creates a stub toolkit; this AWT emulation has no real one.voidpack()Stub, does nothing.voidrepaint()Stub, does nothing.voidStub, discards its arguments.voidStub, discards its arguments.voidsetEditable(boolean b) Stub, discards its arguments.voidsetEnabled(boolean b) Stub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidStub, discards its arguments.voidsetResizable(boolean b) Stub, discards its arguments.voidsetSize(int i, int j) Stub, discards its arguments.voidStub, discards its arguments.voidsetVisible(boolean b) Stub, discards its arguments.
Field Details
indeterminate
private boolean indeterminateTrue while the bar animates without a known value.
Constructor Details
JProgressBar
public JProgressBar()Constructor. The bar starts with determinate state and no visual representation, which is all a headless caller needs.
Method Details
setString
setValue
public void setValue(int i) Set the progress bar value.- Parameters:
i- the value
setMinimum
public void setMinimum(int i) Set the minimum value.- Parameters:
i- the minimum value
setMaximum
public void setMaximum(int i) Set the maximum value.- Parameters:
i- the maximum value
setStringPainted
public void setStringPainted(boolean b) Set whether the progress bar string should be painted.- Parameters:
b- true if the string should be painted
setIndeterminate
public void setIndeterminate(boolean b) Set the indeterminate state.- Parameters:
b- true if indeterminate
isIndeterminate
public boolean isIndeterminate()Check if the progress bar is indeterminate.- Returns:
- true if indeterminate