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 class
a renderer for a progress entrystatic class
a renderer for a progress messagestatic class
a renderer for progress statusstatic class
an action for terminating a progress bar entryNested classes/interfaces inherited from class org.autogui.base.log.GuiLogEntryProgress
GuiLogEntryProgress.GuiLogEntryProgressInterruptedException
Nested classes/interfaces inherited from interface org.autogui.swing.log.GuiSwingLogEntry
GuiSwingLogEntry.ContainerType, GuiSwingLogEntry.LogEntryRenderer, GuiSwingLogEntry.SizeCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected GuiSwingLogEntry.SizeCache
protected boolean
protected 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 TypeMethodDescriptionvoid
int
getRenderer
(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) Map
<TextCellRenderer<?>, int[]> void
boolean
void
setSelected
(boolean selected) void
copy 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.autogui.base.log.GuiLogEntry
isActive
Methods 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:GuiSwingLogEntry
obtains 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:
sizeCache
in 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:GuiLogEntryProgress
copy fields of p. p can be null- Overrides:
setState
in classGuiLogEntryProgress
- Parameters:
p
- copied state
-
getRenderer
public GuiSwingLogEntry.LogEntryRenderer getRenderer(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) - Specified by:
getRenderer
in 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:
clearSelection
in interfaceGuiSwingLogEntry
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelected
in interfaceGuiSwingLogEntry
-
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfaceGuiSwingLogEntry
-
interrupt
public void interrupt() -
getInterruptCount
public int getInterruptCount()
-