Class Section
- java.lang.Object
-
- org.jd.core.v1.service.layouter.model.Section
-
public class Section extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
Section.AutoGrowthList
-
Field Summary
Fields Modifier and Type Field Description protected int
delta
protected FixedFragment
fixedFragment
protected DefaultList<FlexibleFragment>
flexibleFragments
protected int
lastLineCount
protected Section
nextSection
protected Section
previousSection
protected int
rate
protected int
targetLineCount
-
Constructor Summary
Constructors Constructor Description Section(DefaultList<FlexibleFragment> flexibleFragments, FixedFragment fixedFragment, Section previousSection)
-
Method Summary
-
-
-
Field Detail
-
flexibleFragments
protected final DefaultList<FlexibleFragment> flexibleFragments
-
fixedFragment
protected final FixedFragment fixedFragment
-
previousSection
protected final Section previousSection
-
nextSection
protected Section nextSection
-
targetLineCount
protected final int targetLineCount
-
rate
protected int rate
-
lastLineCount
protected int lastLineCount
-
delta
protected int delta
-
-
Constructor Detail
-
Section
public Section(DefaultList<FlexibleFragment> flexibleFragments, FixedFragment fixedFragment, Section previousSection)
-
-
Method Detail
-
getFlexibleFragments
public DefaultList<FlexibleFragment> getFlexibleFragments()
-
getFixedFragment
public FixedFragment getFixedFragment()
-
getPreviousSection
public Section getPreviousSection()
-
getNextSection
public Section getNextSection()
-
getRate
public int getRate()
-
updateRate
public void updateRate()
-
layout
public boolean layout(boolean force)
- Returns:
- true if a fragment has changed
-
expand
protected void expand(DefaultList<FlexibleFragment> flexibleFragments, boolean force)
-
compact
protected void compact(DefaultList<FlexibleFragment> flexibleFragments, boolean force)
-
releaseConstraints
public boolean releaseConstraints(VisitorsHolder holder)
-
searchNextSection
protected Section searchNextSection(AbstractSearchMovableBlockFragmentVisitor visitor)
-
searchPreviousSection
protected Section searchPreviousSection(AbstractSearchMovableBlockFragmentVisitor visitor)
-
addFragmentsAtBeginning
protected void addFragmentsAtBeginning(VisitorsHolder holder, int index, java.util.List<FlexibleFragment> flexibleFragments)
-
addFragmentsAtEnd
protected void addFragmentsAtEnd(VisitorsHolder holder, int index, java.util.List<FlexibleFragment> flexibleFragments)
-
extract
protected java.util.List<FlexibleFragment> extract(int index1, int index2)
-
resetLineCount
protected void resetLineCount()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-