Class Section
java.lang.Object
org.jd.core.v1.service.layouter.model.Section
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected final FixedFragment
protected final DefaultList
<FlexibleFragment> protected int
protected Section
protected final Section
protected int
protected final int
-
Constructor Summary
ConstructorsConstructorDescriptionSection
(DefaultList<FlexibleFragment> flexibleFragments, FixedFragment fixedFragment, Section previousSection) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFragmentsAtBeginning
(VisitorsHolder holder, int index, List<FlexibleFragment> flexibleFragments) protected void
addFragmentsAtEnd
(VisitorsHolder holder, int index, List<FlexibleFragment> flexibleFragments) protected void
compact
(DefaultList<FlexibleFragment> flexibleFragments, boolean force) protected void
expand
(DefaultList<FlexibleFragment> flexibleFragments, boolean force) protected List
<FlexibleFragment> extract
(int index1, int index2) int
getRate()
boolean
layout
(boolean force) boolean
releaseConstraints
(VisitorsHolder holder) protected void
protected Section
protected Section
toString()
void
-
Field Details
-
flexibleFragments
-
fixedFragment
-
previousSection
-
nextSection
-
targetLineCount
protected final int targetLineCount -
rate
protected int rate -
lastLineCount
protected int lastLineCount -
delta
protected int delta
-
-
Constructor Details
-
Section
public Section(DefaultList<FlexibleFragment> flexibleFragments, FixedFragment fixedFragment, Section previousSection)
-
-
Method Details
-
getFlexibleFragments
-
getFixedFragment
-
getPreviousSection
-
getNextSection
-
getRate
public int getRate() -
updateRate
public void updateRate() -
layout
public boolean layout(boolean force) - Returns:
- true if a fragment has changed
-
expand
-
compact
-
releaseConstraints
-
searchNextSection
-
searchPreviousSection
-
addFragmentsAtBeginning
protected void addFragmentsAtBeginning(VisitorsHolder holder, int index, List<FlexibleFragment> flexibleFragments) -
addFragmentsAtEnd
protected void addFragmentsAtEnd(VisitorsHolder holder, int index, List<FlexibleFragment> flexibleFragments) -
extract
-
resetLineCount
protected void resetLineCount() -
toString
-