public class ImageBag extends Container
ImageBag
is a class that represents on part of the layout of an image node. Either a side (Bagposition = LEFT/RIGHT) or the center part.Modifier and Type | Class and Description |
---|---|
static class |
ImageBag.BAGPOSITON |
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
maxCenterFixDimensionHeight |
static int |
maxCenterFixDimensionWidth |
static int |
maxCenterFixItems |
static int |
maxCenterFlexItems |
static int |
maxEdgeFixDimensionHeight |
static int |
maxEdgeFixDimensionWidth |
static int |
maxEdgeFixItems |
static int |
maxEdgeFlexItems |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ImageBag(ImageBag.BAGPOSITON position,
ImageNodeContainer parent)
Default Constructor linking to the parent using this bag and providing the position of this bag.
|
Modifier and Type | Method and Description |
---|---|
void |
addContainer(DataSetLayoutInfoBundle set)
Add a
DataSet , if there is sufficient space left in this bag. |
HashMap<JPanel,DataContainer> |
createLayout()
Create the layout, if possible.
|
boolean |
isempty()
Test, whether this Bag is emptys
|
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static int maxEdgeFlexItems
public static int maxEdgeFixItems
public static int maxCenterFlexItems
public static int maxCenterFixItems
public static int maxEdgeFixDimensionWidth
public static int maxEdgeFixDimensionHeight
public static int maxCenterFixDimensionWidth
public static int maxCenterFixDimensionHeight
public ImageBag(ImageBag.BAGPOSITON position, ImageNodeContainer parent)
position
- the position of the bag (CENTER/LEFT/RIGHT)parent
- the ImageNodeContainer
this bag is part ofpublic void addContainer(DataSetLayoutInfoBundle set) throws TooManyItemsException, WrongDatasetTypeException
DataSet
, if there is sufficient space left in this bag. Otherwise throw a too many items exception.set
- the DataSet
to add to this Bag.TooManyItemsException
- if there are too many items in the provided DataSet
and not enough room left in this BagWrongDatasetTypeException
- if the LayoutBundle is invalid.public boolean isempty()
public HashMap<JPanel,DataContainer> createLayout() throws DimensionMismatchException, ContainerUnplaceableExcpetion, WrongDatasetTypeException
JPanel
s to their respective DataContainer
s.DimensionMismatchException
- if the dimensions of a container don't fit.ContainerUnplaceableExcpetion
- if there is not enough spaceWrongDatasetTypeException
- if a Dataset cannot be placedCopyright © 2018. All rights reserved.