de.infinityloop.util.gui
Class ParagraphLayout

java.lang.Object
  extended by de.infinityloop.util.gui.ConstraintLayout
      extended by de.infinityloop.util.gui.ParagraphLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2

public class ParagraphLayout
extends ConstraintLayout


Field Summary
protected  int colWidth1
           
protected  int colWidth2
           
protected  int hGapMajor
           
protected  int hGapMinor
           
static java.lang.Integer NEW_LINE
           
static java.lang.Integer NEW_LINE_STRETCH_H
           
static java.lang.Integer NEW_LINE_STRETCH_HV
           
static java.lang.Integer NEW_LINE_STRETCH_V
           
static int NEW_LINE_VALUE
           
static java.lang.Integer NEW_PARAGRAPH
           
static java.lang.Integer NEW_PARAGRAPH_TOP
           
static int NEW_PARAGRAPH_TOP_VALUE
           
static int NEW_PARAGRAPH_VALUE
           
protected  int rows
           
static java.lang.Integer STRETCH_H
           
static int STRETCH_H_MASK
           
static java.lang.Integer STRETCH_HV
           
static java.lang.Integer STRETCH_V
           
static int STRETCH_V_MASK
           
static int TYPE_MASK
           
protected  int vGapMajor
           
protected  int vGapMinor
           
 
Fields inherited from class de.infinityloop.util.gui.ConstraintLayout
hMargin, includeInvisible, MAXIMUM, MINIMUM, PREFERRED, vMargin
 
Constructor Summary
ParagraphLayout()
           
ParagraphLayout(int hMargin, int vMargin, int hGapMajor, int vGapMajor, int hGapMinor, int vGapMinor)
           
 
Method Summary
protected  void layoutRow(java.awt.Container target, java.awt.Dimension[] sizes, int start, int end, int y, int rowWidth, int rowHeight, boolean paragraph, int type, java.lang.Integer paragraphType)
           
 void measureLayout(java.awt.Container target, java.awt.Dimension dimension, int type)
           
 
Methods inherited from class de.infinityloop.util.gui.ConstraintLayout
addLayoutComponent, addLayoutComponent, calcLayoutSize, getComponentSize, getConstraint, getIncludeInvisible, getLayoutAlignmentX, getLayoutAlignmentY, includeComponent, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraint, setIncludeInvisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_MASK

public static final int TYPE_MASK
See Also:
Constant Field Values

STRETCH_H_MASK

public static final int STRETCH_H_MASK
See Also:
Constant Field Values

STRETCH_V_MASK

public static final int STRETCH_V_MASK
See Also:
Constant Field Values

NEW_PARAGRAPH_VALUE

public static final int NEW_PARAGRAPH_VALUE
See Also:
Constant Field Values

NEW_PARAGRAPH_TOP_VALUE

public static final int NEW_PARAGRAPH_TOP_VALUE
See Also:
Constant Field Values

NEW_LINE_VALUE

public static final int NEW_LINE_VALUE
See Also:
Constant Field Values

NEW_PARAGRAPH

public static final java.lang.Integer NEW_PARAGRAPH

NEW_PARAGRAPH_TOP

public static final java.lang.Integer NEW_PARAGRAPH_TOP

NEW_LINE

public static final java.lang.Integer NEW_LINE

STRETCH_H

public static final java.lang.Integer STRETCH_H

STRETCH_V

public static final java.lang.Integer STRETCH_V

STRETCH_HV

public static final java.lang.Integer STRETCH_HV

NEW_LINE_STRETCH_H

public static final java.lang.Integer NEW_LINE_STRETCH_H

NEW_LINE_STRETCH_V

public static final java.lang.Integer NEW_LINE_STRETCH_V

NEW_LINE_STRETCH_HV

public static final java.lang.Integer NEW_LINE_STRETCH_HV

hGapMajor

protected int hGapMajor

vGapMajor

protected int vGapMajor

hGapMinor

protected int hGapMinor

vGapMinor

protected int vGapMinor

rows

protected int rows

colWidth1

protected int colWidth1

colWidth2

protected int colWidth2
Constructor Detail

ParagraphLayout

public ParagraphLayout()

ParagraphLayout

public ParagraphLayout(int hMargin,
                       int vMargin,
                       int hGapMajor,
                       int vGapMajor,
                       int hGapMinor,
                       int vGapMinor)
Method Detail

measureLayout

public void measureLayout(java.awt.Container target,
                          java.awt.Dimension dimension,
                          int type)
Overrides:
measureLayout in class ConstraintLayout

layoutRow

protected void layoutRow(java.awt.Container target,
                         java.awt.Dimension[] sizes,
                         int start,
                         int end,
                         int y,
                         int rowWidth,
                         int rowHeight,
                         boolean paragraph,
                         int type,
                         java.lang.Integer paragraphType)