Package org.anchoranalysis.mpp.overlay
Class OverlayCollectionMarkFactory
Object
OverlayCollectionMarkFactory
Factory for creating
OverlayCollections from marks and retrieving marks from OverlayCollections.
This class provides methods for two-way conversion:
- Creation of
OverlayCollectionfrom marks - Retrieval of marks from
OverlayCollections
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColoredOverlayCollectioncreateColor(ColoredMarks marks, RegionMembershipWithFlags regionMembership) Creates aColoredOverlayCollectionfromColoredMarks.static OverlayCollectioncreateWithoutColor(MarkCollection marks, RegionMembershipWithFlags regionMembership) Creates anOverlayCollectionfrom aMarkCollectionwithout color information.static ColoredMarksmarksFromOverlays(ColoredOverlayCollection overlays) CreatesColoredMarksfrom aColoredOverlayCollection.static MarkCollectionmarksFromOverlays(OverlayCollection overlays) Creates aMarkCollectionfrom anOverlayCollection.
-
Method Details
-
createWithoutColor
public static OverlayCollection createWithoutColor(MarkCollection marks, RegionMembershipWithFlags regionMembership) Creates anOverlayCollectionfrom aMarkCollectionwithout 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 aColoredOverlayCollectionfromColoredMarks.- Parameters:
marks- the colored marksregionMembership- the region membership for the marks- Returns:
- a new
ColoredOverlayCollection
-
marksFromOverlays
Creates aMarkCollectionfrom anOverlayCollection.- Parameters:
overlays- the collection of overlays- Returns:
- a new
MarkCollectioncontaining marks fromOverlayMarks in the input collection
-
marksFromOverlays
CreatesColoredMarksfrom aColoredOverlayCollection.- Parameters:
overlays- the collection of colored overlays- Returns:
- a new
ColoredMarkscontaining marks and colors fromOverlayMarks in the input collection
-