- All Superinterfaces:
GuiLogEntry
- All Known Implementing Classes:
GuiSwingLogEntryException
,GuiSwingLogEntryProgress
,GuiSwingLogEntryString
a log-entry supporting GUI rendering, managed by
GuiSwingLogManager
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
type of rendering componentstatic interface
the renderer interfacestatic class
the light-weight map between Object to float[]. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
getRenderer
(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) default Object
for each key object (and also a container type), a renderer will be created bygetRenderer(GuiSwingLogManager, ContainerType)
.boolean
void
setSelected
(boolean selected) default float[]
obtains cached layout-size or computes it by the size.Methods inherited from interface org.autogui.base.log.GuiLogEntry
isActive
-
Method Details
-
getRendererKey
for each key object (and also a container type), a renderer will be created bygetRenderer(GuiSwingLogManager, ContainerType)
. by default, the key isObject.getClass()
- Returns:
- the key object
-
getRenderer
GuiSwingLogEntry.LogEntryRenderer getRenderer(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) - Parameters:
manager
- the managertype
- rendering for a list or a status-bar- Returns:
- factory method of renderer
-
sizeCache
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()); }
- Parameters:
renderer
- the key for the sizesrc
- the task for computing the size- Returns:
- the layout-size, {w,h}
- Since:
- 1.5
-
clearSelection
default void clearSelection() -
setSelected
void setSelected(boolean selected) -
isSelected
boolean isSelected()
-