Class TPanelElement.Paintable
java.lang.Object
com.thecsdev.common.scene.Node<TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.panel.TPanelElement
com.thecsdev.commonmc.api.client.gui.panel.TPanelElement.Paintable
- All Implemented Interfaces:
INode<TElement>, INodeBounded<TElement,Bounds2i>, INodeRenderable<TElement, TGuiGraphics>, Iterable<TElement>, Collection<TElement>
- Enclosing class:
TPanelElement
TPanelElement implementation that allows you to customize its background
and outline colors.-
Nested Class Summary
Nested classes/interfaces inherited from class TPanelElement
TPanelElement.Paintable, TPanelElement.Transparent -
Field Summary
Fields inherited from class TPanelElement
COLOR_BACKGROUND, COLOR_OUTLINE, COLOR_OUTLINE_FOCUSEDFields inherited from class TElement
eInitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerPropertyIntegerPropertyfor the background color of thisTPanelElement.Paintablepanel.final IntegerPropertyIntegerPropertyfor the outline color of thisTPanelElement.Paintablepanel when this panelTElement.isFocused().final IntegerPropertyIntegerPropertyfor the outline color of thisTPanelElement.Paintablepanel.voidpostRenderCallback(@NotNull TGuiGraphics pencil) Callback method that is invoked after thisNodeand all of their children have been rendered.voidrenderCallback(@NotNull TGuiGraphics pencil) Callback method that is invoked when thisNodeis being rendered.Methods inherited from class TPanelElement
addAllVertically, computeNextXBounds, computeNextYBounds, inputCallback, scroll, scrollAmountProperty, scrollPaddingProperty, scrollSensitivityPropertyMethods inherited from class TElement
addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, dragEndCallback, dragStartCallback, findElementAt, focusableProperty, focusGainedCallback, focusLostCallback, forEachVisible, getBaseType, getBounds, getClient, getContentBounds, getCursor, getSelf, getTooltip, hoverableProperty, hoverGainedCallback, hoverLostCallback, initCallback, invalidateTooltipCache, isFocusable, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, removeRel, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tickCallback, tooltipProperty, toString, visiblePropertyMethods inherited from class Node
add, addAll, childAddedCallback, childRemovedCallback, clear, contains, containsAll, equals, findChild, findParent, findSibling, forEach, get, getFirst, getLast, getParent, hashCode, indexOf, isEmpty, iterator, parentProperty, remove, remove, remove, removeAll, retainAll, rootProperty, size, toArray, toArray
-
Constructor Details
-
Paintable
public Paintable() -
Paintable
public Paintable(int backgroundColor, int outlineColor, int focusOutlineColor)
-
-
Method Details
-
backgroundColorProperty
IntegerPropertyfor the background color of thisTPanelElement.Paintablepanel. -
outlineColorProperty
IntegerPropertyfor the outline color of thisTPanelElement.Paintablepanel. -
focusedOutlineColorProperty
IntegerPropertyfor the outline color of thisTPanelElement.Paintablepanel when this panelTElement.isFocused(). -
renderCallback
Description copied from interface:INodeRenderableCallback method that is invoked when thisNodeis being rendered.- Specified by:
renderCallbackin interfaceINodeRenderable<TElement, TGuiGraphics>- Overrides:
renderCallbackin classTPanelElement- Parameters:
pencil- The rendering context.
-
postRenderCallback
Description copied from interface:INodeRenderableCallback method that is invoked after thisNodeand all of their children have been rendered.- Specified by:
postRenderCallbackin interfaceINodeRenderable<TElement, TGuiGraphics>- Overrides:
postRenderCallbackin classTPanelElement- Parameters:
pencil- The rendering context.
-