One of the off-shoots of the OWS-3 was an understanding of how to hook smbology into our code base.
This page is the result of a conversation with Theuns (who may be available for testing); written up for the amusement of Andrea Aime (and also so when the next 20 people ask I can point you to this page).
There were four solutions considered:
The last one ends up looking the best in practice.
Some MIL2525B symbols need to interact with Feature contents; they end up displaying the "width" of an advancing unit etc...
interface WellKnownNameIconFactory {
boolean isKnown( String wellKnownName );
Icon getIcon( Feature feature, String wellKnownName );
}
|
class WellKnownNameIconFinder {
Icon findIcon( String wellKnownName );
}
|