Package qupath.lib.objects.classes
Class PathClassFactory
java.lang.Object
qupath.lib.objects.classes.PathClassFactory
Deprecated.
Factory for creating PathClasses.
This must be used in favor of creating PathClass objects directly to ensure that only one PathClass with a specified name (and, optionally, ancestry) can exist at any time.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Enum representing standard classifications. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathClassgetDerivedPathClass(PathClass parentClass, String name, Integer rgb) Deprecated.since v0.4.0, usePathClass.getInstance(PathClass, String, Integer)static PathClassgetNegative(PathClass parentClass) Deprecated.since v0.4.0, usePathClass.getNegative(PathClass)static PathClassgetOnePlus(PathClass parentClass) Deprecated.since v0.4.0, usePathClass.getOnePlus(PathClass)static PathClassgetPathClass(String name) Deprecated.Get aPathClass, without specifying any color.static PathClassgetPathClass(String name, Integer rgb) Deprecated.since v0.4.0 in favor ofPathClass.getInstance(String, Integer)orPathClass.fromString(String, Integer)static PathClassgetPathClass(String baseName, String... names) Deprecated.since v0.4.0 in favor ofPathClass.fromArray(String...)static PathClassgetPathClass(List<String> names) Deprecated.since v0.4.0 in favor ofPathClass.fromCollection(java.util.Collection)static PathClassgetPathClass(PathClassFactory.StandardPathClasses pathClass) Deprecated.since v0.4.0, usePathClass.StandardPathClassesstatic PathClassDeprecated.since v0.4.0, use insteadPathClass.NULL_CLASSstatic PathClassgetPositive(PathClass parentClass) Deprecated.since v0.4.0, usePathClass.getPositive(PathClass)static PathClassgetSingletonPathClass(PathClass pathClass) Deprecated.since v0.4.0 in favor ofPathClass.getSingleton(PathClass)static PathClassgetThreePlus(PathClass parentClass) Deprecated.since v0.4.0, usePathClass.getThreePlus(PathClass)static PathClassgetTwoPlus(PathClass parentClass) Deprecated.since v0.4.0, usePathClass.getTwoPlus(PathClass)
-
Method Details
-
getPathClass
Deprecated.Get aPathClass, without specifying any color.- Parameters:
name-- Returns:
-
getPathClass
Deprecated.since v0.4.0 in favor ofPathClass.getInstance(String, Integer)orPathClass.fromString(String, Integer)Get the PathClass object associated with a specific name. Note that this name must not contain newline; doing so will result in anIllegalArgumentExceptionbeing thrown. If the name contains colon characters, it will be treated as a derived class.- Parameters:
name-rgb-- Returns:
-
getPathClass
Deprecated.since v0.4.0 in favor ofPathClass.fromArray(String...)Get a derivedPathClassobject representing all the provided names, using default colors.Note that names must not contain newline or colon characters; if they do an
IllegalArgumentExceptionwill be thrown.- Parameters:
baseName- name of the base classificationnames- array of names for each constituent part of the classification. For each name, a new class will be derived, starting from the base.- Returns:
- a
PathClass, as defined above
-
getPathClass
Deprecated.since v0.4.0 in favor ofPathClass.fromCollection(java.util.Collection)Get a PathClass object representing all the provided names. The first entry in the list corresponds to the base name.- Parameters:
names- list of names for each constituent part of the classification.- Returns:
- a
PathClasscontaining all names
-
getSingletonPathClass
Deprecated.since v0.4.0 in favor ofPathClass.getSingleton(PathClass)Return a singleton version of a specific PathClass. This is useful during deserialization, which can circumvent the 'right' way to request PathClass objects via static methods.- Parameters:
pathClass-- Returns:
-
getDerivedPathClass
@Deprecated public static PathClass getDerivedPathClass(PathClass parentClass, String name, Integer rgb) Deprecated.since v0.4.0, usePathClass.getInstance(PathClass, String, Integer)Get a PathClass that has been derived from a parent class.- Parameters:
parentClass-name-rgb-- Returns:
-
getOnePlus
Deprecated.since v0.4.0, usePathClass.getOnePlus(PathClass)Get a standalone or derived 1+ classification, indicating weak positivity- Parameters:
parentClass- parent classification (may be null)- Returns:
-
getTwoPlus
Deprecated.since v0.4.0, usePathClass.getTwoPlus(PathClass)Get a standalone or derived 2+ classification, indicating moderate positivity- Parameters:
parentClass- parent classification (may be null)- Returns:
-
getThreePlus
Deprecated.since v0.4.0, usePathClass.getThreePlus(PathClass)Get a standalone or derived 3+ classification, indicating strong positivity- Parameters:
parentClass- parent classification (may be null)- Returns:
-
getNegative
Deprecated.since v0.4.0, usePathClass.getNegative(PathClass)Get a standalone or derived Negative classification- Parameters:
parentClass- parent classification (may be null)- Returns:
-
getPositive
Deprecated.since v0.4.0, usePathClass.getPositive(PathClass)Get a standalone or derived Positive classification- Parameters:
parentClass- parent classification (may be null)- Returns:
-
getPathClass
Deprecated.since v0.4.0, usePathClass.StandardPathClassesGet a standard PathClass.- Parameters:
pathClass-- Returns:
-
getPathClassUnclassified
Deprecated.since v0.4.0, use insteadPathClass.NULL_CLASSReturn a special 'null' class to represent no classification.This is useful for displaying available classes; it should not be set as the class for any object, rather an object that is unclassified should have a classification of null.
- Returns:
-
PathClassdirectly.