Border
, Component
, Composite
, Container
, TextGUIElement
public abstract class AbstractBorder extends AbstractComposite<Border> implements Border
Border
interface that has some of the methods filled out. If you want to create
your own Border
implementation, should should probably extend from this.Border.BorderRenderer
Constructor | Description |
---|---|
AbstractBorder() |
Modifier and Type | Method | Description |
---|---|---|
LayoutData |
getLayoutData() |
Returns the layout data associated with this component.
|
Border.BorderRenderer |
getRenderer() |
Returns the renderer used to draw this component and measure its preferred size.
|
void |
setComponent(Component component) |
Sets the component which is inside this Composite.
|
Border |
setLayoutData(LayoutData ld) |
Sets optional layout data associated with this component.
|
Border |
setSize(TerminalSize size) |
This method will be called by the layout manager when it has decided how large the component will be.
|
TerminalPosition |
toBasePane(TerminalPosition position) |
Translates a position local to the container to the base pane's coordinate space.
|
TerminalPosition |
toGlobal(TerminalPosition position) |
Translates a position local to the container to global coordinate space.
|
addTo, calculatePreferredSize, createDefaultRenderer, draw, getBasePane, getParent, getPosition, getPreferredSize, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, isInside, onAdded, onAfterDrawing, onBeforeDrawing, onRemoved, runOnGUIThreadIfExistsOtherwiseRunDirect, self, setPosition, setPreferredSize, setRenderer, setTheme, withBorder
containsComponent, getChildCount, getChildren, getChildrenList, getComponent, handleInput, invalidate, isInvalid, nextFocus, previousFocus, removeComponent, updateLookupMap
addTo, getBasePane, getParent, getPosition, getPreferredSize, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, invalidate, isInside, onAdded, onRemoved, setPosition, setPreferredSize, setTheme, withBorder
getComponent
containsComponent, getChildCount, getChildren, getChildrenList, handleInput, nextFocus, previousFocus, removeComponent, updateLookupMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, isInvalid
public void setComponent(Component component)
Composite
setComponent
in interface Composite
setComponent
in class AbstractComposite<Border>
component
- Component to wrappublic Border.BorderRenderer getRenderer()
Component
getRenderer
in interface Component
getRenderer
in class AbstractComponent<Border>
public Border setSize(TerminalSize size)
Component
setSize
in interface Component
setSize
in class AbstractComponent<Border>
size
- Current size of the componentpublic LayoutData getLayoutData()
Component
getLayoutData
in interface Component
getLayoutData
in class AbstractComponent<Border>
public Border setLayoutData(LayoutData ld)
Component
setLayoutData
in interface Component
setLayoutData
in class AbstractComponent<Border>
ld
- Layout data associated with this componentpublic TerminalPosition toBasePane(TerminalPosition position)
Component
null
.toBasePane
in interface Component
toBasePane
in class AbstractComponent<Border>
position
- Position to translate (relative to the container's top-left corner)null
if the component is an orphanpublic TerminalPosition toGlobal(TerminalPosition position)
Component
null
.toGlobal
in interface Component
toGlobal
in class AbstractComponent<Border>
position
- Position to translate (relative to the container's top-left corner)null
if the component is an orphanCopyright © 2020. All rights reserved.