Package pi.graphics.boxes
Class FramedBox
java.lang.Object
pi.graphics.boxes.Box
pi.graphics.boxes.CombinedChildBox
pi.graphics.boxes.FramedBox
- Direct Known Subclasses:
FramedTextBox
Legt einen Rahmen um eine enthaltene Kind-Box.
Die Konzeption der Klasse ist inspiriert von dem CSS-Box-Model.
- Since:
- 0.40.0
- Author:
- Josef Friedrich
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BackgroundBoxfinal BorderBoxprotected BoxDie Kind-Box, dieser übergeordneten Box.final CellBoxfinal Boxfinal InsetBoxfinal InsetBoxFields inherited from class pi.graphics.boxes.Box
childs, definedHeight, definedWidth, disabled, height, measureDimensionTwice, parent, supportsDefinedDimension, width, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFügt eine Kind-Box hinzu.intGibt die Anzahl an Kinder-Boxen zurück.toString()Methods inherited from class pi.graphics.boxes.CombinedChildBox
calculateAnchors, calculateDimensionMethods inherited from class pi.graphics.boxes.Box
anchor, debug, disable, disabled, enable, height, iterator, measure, measureAnchors, measureDimension, remeasure, render, toggle, toStringFormatter, width, x, yMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
margin
-
border
-
background
-
padding
-
container
-
-
child
Die Kind-Box, dieser übergeordneten Box.
-
-
Constructor Details
-
FramedBox
-
-
Method Details
-
toString
-
addChild
Fügt eine Kind-Box hinzu.Die Zellbox wird dabei als Elternbox der Kind-Box gesetzt.
- Parameters:
child- Die Kind-Box.
-
numberOfChilds
public int numberOfChilds()Description copied from class:BoxGibt die Anzahl an Kinder-Boxen zurück.- Specified by:
numberOfChildsin classBox- Returns:
- Die Anzahl an Kinder-Boxen.
-