Package org.apache.batik.gvt.flow
Class FlowRegions
- java.lang.Object
-
- org.apache.batik.gvt.flow.FlowRegions
-
public class FlowRegions extends java.lang.Object
A class to hold flow region information for a given shape.- Version:
- $Id: FlowRegions.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FlowRegions.Transition
(package private) static class
FlowRegions.TransitionComp
-
Field Summary
Fields Modifier and Type Field Description (package private) int
currentRange
(package private) double
currentY
(package private) java.awt.Shape
flowShape
(package private) double
lineHeight
(package private) SegmentList
sl
(package private) SegmentList.SplitResults
sr
(package private) java.util.List
validRanges
-
Constructor Summary
Constructors Constructor Description FlowRegions(java.awt.Shape s)
FlowRegions(java.awt.Shape s, double startY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
done()
void
endLine()
double
getCurrentY()
double
getLineHeight()
int
getNumRangeOnLine()
boolean
gotoY(double y)
boolean
newLine()
boolean
newLine(double lineHeight)
boolean
newLineAt(double y, double lineHeight)
void
newLineHeight(double lineHeight)
double[]
nextRange()
void
resetRange()
void
sortRow(SegmentList sl)
-
-
-
Field Detail
-
flowShape
java.awt.Shape flowShape
-
sl
SegmentList sl
-
sr
SegmentList.SplitResults sr
-
validRanges
java.util.List validRanges
-
currentRange
int currentRange
-
currentY
double currentY
-
lineHeight
double lineHeight
-
-
Method Detail
-
getCurrentY
public double getCurrentY()
-
getLineHeight
public double getLineHeight()
-
gotoY
public boolean gotoY(double y)
-
newLineHeight
public void newLineHeight(double lineHeight)
-
getNumRangeOnLine
public int getNumRangeOnLine()
-
resetRange
public void resetRange()
-
nextRange
public double[] nextRange()
-
endLine
public void endLine()
-
newLine
public boolean newLine()
-
newLine
public boolean newLine(double lineHeight)
-
newLineAt
public boolean newLineAt(double y, double lineHeight)
-
done
public boolean done()
-
sortRow
public void sortRow(SegmentList sl)
-
-