jview
Class CoordinateFactory
java.lang.Object
jview.CoordinateFactory
public class CoordinateFactory
- extends Object
Creates CoordinateTransforming instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoordinateFactory
public CoordinateFactory()
create
public static CoordinateTransforming create(Object info,
Class<? extends CoordinateTransforming> type)
- Factory method that allows creation from a single object. This object
should combine all the necessaary information to construct the
coordinate transforming instance. Thus it might be that this object
is a collection of other objects, or, a parsable String etc.
This factory method is necessary, because constructor cannot be
prescribed by interfaces.
getConstructor
private static Constructor<? extends CoordinateTransforming> getConstructor(Class<? extends CoordinateTransforming> type,
Class argument)
- Tries to locate a constructor of the given class or null.