Package org.anchoranalysis.mpp.overlay
Class OverlayCollectionMarkFactory
Object
OverlayCollectionMarkFactory
Factory for creating
OverlayCollection
s from marks and retrieving marks from OverlayCollection
s.
This class provides methods for two-way conversion:
- Creation of
OverlayCollection
from marks - Retrieval of marks from
OverlayCollection
s
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColoredOverlayCollection
createColor
(ColoredMarks marks, RegionMembershipWithFlags regionMembership) Creates aColoredOverlayCollection
fromColoredMarks
.static OverlayCollection
createWithoutColor
(MarkCollection marks, RegionMembershipWithFlags regionMembership) Creates anOverlayCollection
from aMarkCollection
without color information.static ColoredMarks
marksFromOverlays
(ColoredOverlayCollection overlays) CreatesColoredMarks
from aColoredOverlayCollection
.static MarkCollection
marksFromOverlays
(OverlayCollection overlays) Creates aMarkCollection
from anOverlayCollection
.
-
Method Details
-
createWithoutColor
public static OverlayCollection createWithoutColor(MarkCollection marks, RegionMembershipWithFlags regionMembership) Creates anOverlayCollection
from aMarkCollection
without color information.- Parameters:
marks
- the collection of marksregionMembership
- the region membership for the marks- Returns:
- a new
OverlayCollection
-
createColor
public static ColoredOverlayCollection createColor(ColoredMarks marks, RegionMembershipWithFlags regionMembership) Creates aColoredOverlayCollection
fromColoredMarks
.- Parameters:
marks
- the colored marksregionMembership
- the region membership for the marks- Returns:
- a new
ColoredOverlayCollection
-
marksFromOverlays
Creates aMarkCollection
from anOverlayCollection
.- Parameters:
overlays
- the collection of overlays- Returns:
- a new
MarkCollection
containing marks fromOverlayMark
s in the input collection
-
marksFromOverlays
CreatesColoredMarks
from aColoredOverlayCollection
.- Parameters:
overlays
- the collection of colored overlays- Returns:
- a new
ColoredMarks
containing marks and colors fromOverlayMark
s in the input collection
-