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 classan action for expanding stack-trace of an exception entrystatic classa renderer for an exception messagestatic classa renderer for a stack-trace linesstatic classa renderer for exception stack-tracesstatic classa set of attributes for stack tracesstatic classattribute info.Nested classes/interfaces inherited from interface org.autogui.swing.log.GuiSwingLogEntry
GuiSwingLogEntry.ContainerType, GuiSwingLogEntry.LogEntryRenderer, GuiSwingLogEntry.SizeCache -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected GuiSwingLogEntry.SizeCacheprotected booleanprotected 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 TypeMethodDescriptionvoidgetLines()getRenderer(GuiSwingLogManager manager, GuiSwingLogEntry.ContainerType type) Map<TextCellRenderer<?>, int[]> booleanbooleanvoidsetExpanded(boolean expanded) voidvoidsetLineToAttrs(Map<Integer, List<GuiSwingLogEntryException.StackTraceAttributesForLine>> lineToAttrs) voidsetSelected(boolean selected) float[]obtains cached layout-size or computes it by the size.Methods inherited from class org.autogui.base.log.GuiLogEntryException
getException, getTime, 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
-
selectionMap
-
expanded
protected boolean expanded -
selected
protected boolean selected -
lines
-
lineToAttrs
-
rendererToSizeCache
-
-
Constructor Details
-
GuiSwingLogEntryException
-
GuiSwingLogEntryException
-
-
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:
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:
getRendererin 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:
clearSelectionin interfaceGuiSwingLogEntry
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceGuiSwingLogEntry
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelectedin interfaceGuiSwingLogEntry
-