java.lang.Object com.realtime.crossfire.jxclient.faces.FacesProviderFactory
public class FacesProviderFactory
A factory for creating FacesProvider
instances.
Field Summary | |
---|---|
private java.util.Map<java.lang.Integer,FacesProvider> |
facesProviders
The defined FacesProvider s. |
Constructor Summary | |
---|---|
FacesProviderFactory(FacesManager facesManager)
Creates a new instance. |
Method Summary | |
---|---|
private void |
add(FacesProvider facesProvider)
Adds a FacesProvider to facesProviders . |
FacesProvider |
getFacesProvider(int size)
Returns the FacesProvider for a given face size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final java.util.Map<java.lang.Integer,FacesProvider> facesProviders
FacesProvider
s. Maps face size in pixels to faces
provider instance.
Constructor Detail |
---|
public FacesProviderFactory(@NotNull FacesManager facesManager)
facesManager
- the faces manager to queryMethod Detail |
---|
private void add(@NotNull FacesProvider facesProvider)
FacesProvider
to facesProviders
.
facesProvider
- the faces provider to add@Nullable public FacesProvider getFacesProvider(int size)
FacesProvider
for a given face size.
size
- the face size in pixels