java.lang.Object
org.autogui.base.log.GuiLogEntryProgress
org.autogui.swing.log.GuiSwingLogEntryProgress
- All Implemented Interfaces:
Closeable,AutoCloseable,GuiLogEntry,GuiSwingLogEntry
a log-entry of a progress bar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classa renderer for a progress entrystatic classa renderer for a progress messagestatic classa renderer for progress statusstatic classan action for terminating a progress bar entryNested classes/interfaces inherited from class org.autogui.base.log.GuiLogEntryProgress
GuiLogEntryProgress.GuiLogEntryProgressInterruptedExceptionNested classes/interfaces inherited from interface org.autogui.swing.log.GuiSwingLogEntry
GuiSwingLogEntry.ContainerType, GuiSwingLogEntry.LogEntryRenderer, GuiSwingLogEntry.SizeCache -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected GuiSwingLogEntry.SizeCacheprotected booleanprotected Map<TextCellRenderer<?>, int[]> Fields inherited from class org.autogui.base.log.GuiLogEntryProgress
endTime, indeterminate, listeners, maximum, message, minimum, thread, time, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetRenderer(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) Map<TextCellRenderer<?>, int[]> voidbooleanvoidsetSelected(boolean selected) voidcopy fields of p.float[]obtains cached layout-size or computes it by the size.Methods inherited from class org.autogui.base.log.GuiLogEntryProgress
addListener, addValue, addValueP, checkInterruption, close, finish, fireChange, getEndTime, getListeners, getMaximum, getMessage, getMinimum, getThread, getTime, getValue, getValueP, isActive, isFinished, isIndeterminate, removeListener, setEndTime, setIndeterminate, setMaximum, setMessage, setMinimum, setThread, setTime, setValue, setValueP, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.autogui.base.log.GuiLogEntry
isActiveMethods inherited from interface org.autogui.swing.log.GuiSwingLogEntry
getRendererKey
-
Field Details
-
selections
-
selected
protected boolean selected -
interruptCount
protected int interruptCount -
rendererToSizeCache
-
-
Constructor Details
-
GuiSwingLogEntryProgress
public GuiSwingLogEntryProgress() -
GuiSwingLogEntryProgress
-
-
Method Details
-
sizeCache
Description copied from interface:GuiSwingLogEntryobtains cached layout-size or computes it by the size. the default impl. is just always computing as no caching. available bySizeCache c = new SizeCache(2); float[] sizeCache(Object k, Supplier src) { return c.computeIfAbsent(k, _k -> src.get()); }- Specified by:
sizeCachein interfaceGuiSwingLogEntry- Parameters:
renderer- the key for the sizesrc- the task for computing the size- Returns:
- the layout-size, {w,h}
-
setState
Description copied from class:GuiLogEntryProgresscopy fields of p. p can be null- Overrides:
setStatein classGuiLogEntryProgress- Parameters:
p- copied state
-
getRenderer
public GuiSwingLogEntry.LogEntryRenderer getRenderer(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) - Specified by:
getRendererin interfaceGuiSwingLogEntry- Parameters:
manager- the managertype- rendering for a list or a status-bar- Returns:
- factory method of renderer
-
getSelections
-
clearSelection
public void clearSelection()- Specified by:
clearSelectionin interfaceGuiSwingLogEntry
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelectedin interfaceGuiSwingLogEntry
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceGuiSwingLogEntry
-
interrupt
public void interrupt() -
getInterruptCount
public int getInterruptCount()
-