java.lang.Object
org.autogui.base.log.GuiLogEntryException
org.autogui.swing.log.GuiSwingLogEntryException
- All Implemented Interfaces:
GuiLogEntry
,GuiSwingLogEntry
a log-entry for an exception with supporting GUI rendering
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
an action for expanding stack-trace of an exception entrystatic class
a renderer for an exception messagestatic class
a renderer for a stack-trace linesstatic class
a renderer for exception stack-tracesstatic class
a set of attributes for stack tracesstatic class
attribute info.Nested classes/interfaces inherited from interface org.autogui.swing.log.GuiSwingLogEntry
GuiSwingLogEntry.ContainerType, GuiSwingLogEntry.LogEntryRenderer, GuiSwingLogEntry.SizeCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected GuiSwingLogEntry.SizeCache
protected boolean
protected Map
<TextCellRenderer<?>, int[]> Fields inherited from class org.autogui.base.log.GuiLogEntryException
exception, time
-
Constructor Summary
ConstructorsConstructorDescriptionGuiSwingLogEntryException
(Throwable exception) GuiSwingLogEntryException
(Instant time, Throwable exception) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getLines()
getRenderer
(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) Map
<TextCellRenderer<?>, int[]> boolean
boolean
void
setExpanded
(boolean expanded) void
void
setLineToAttrs
(Map<Integer, List<GuiSwingLogEntryException.StackTraceAttributesForLine>> lineToAttrs) void
setSelected
(boolean selected) float[]
obtains cached layout-size or computes it by the size.Methods inherited from class org.autogui.base.log.GuiLogEntryException
getException, getTime, 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
-
selectionMap
-
expanded
protected boolean expanded -
selected
protected boolean selected -
lines
-
lineToAttrs
-
rendererToSizeCache
-
-
Constructor Details
-
GuiSwingLogEntryException
-
GuiSwingLogEntryException
-
-
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:
r
- the key for the sizesrc
- the task for computing the size- Returns:
- the layout-size, {w,h}
-
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
-
setExpanded
public void setExpanded(boolean expanded) -
isExpanded
public boolean isExpanded() -
setLines
-
getLines
-
getLineToAttrs
-
setLineToAttrs
public void setLineToAttrs(Map<Integer, List<GuiSwingLogEntryException.StackTraceAttributesForLine>> lineToAttrs) -
clearSelection
public void clearSelection()- Specified by:
clearSelection
in interfaceGuiSwingLogEntry
-
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfaceGuiSwingLogEntry
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelected
in interfaceGuiSwingLogEntry
-