Uses of Class
edu.cnu.mdi.mapping.theme.MapTheme
Packages that use MapTheme
Package
Description
-
Uses of MapTheme in edu.cnu.mdi.mapping
Methods in edu.cnu.mdi.mapping that return MapThemeModifier and TypeMethodDescriptionMapView2D.getCurrentMapTheme()Returns the map theme that should be used when creating a new projection.MapControlPanel.getCurrentTheme()Returns theMapThemecurrently selected by the theme radio buttons.Method parameters in edu.cnu.mdi.mapping with type arguments of type MapThemeModifier and TypeMethodDescriptionvoidMapControlPanel.addProjection(String name, Function<MapTheme, ? extends IMapProjection> factory) Adds an application-supplied projection to the standard selector. -
Uses of MapTheme in edu.cnu.mdi.mapping.graphics
Methods in edu.cnu.mdi.mapping.graphics with parameters of type MapThemeModifier and TypeMethodDescriptionstatic voidMapGraphics.drawHorizontalLatitudeLine(Graphics2D g2, IContainer container, IMapProjection projection, double latitude, double centralLon, MapTheme theme) Draws a horizontal latitude line across the map at a specified latitude.static voidMapGraphics.drawVerticalLongitudeLine(Graphics2D g2, IContainer container, IMapProjection projection, double longitude, MapTheme theme) Draws a vertical longitude line across the map at a specified longitude. -
Uses of MapTheme in edu.cnu.mdi.mapping.projection
Methods in edu.cnu.mdi.mapping.projection that return MapThemeModifier and TypeMethodDescriptionEqualEarthProjection.getTheme()IMapProjection.getTheme()Returns theMapThemecurrently used by this projection for drawing outlines and graticule lines.LambertEqualAreaProjection.getTheme()Returns theMapThemecurrently used by this projection for drawing outlines and graticule lines.MercatorProjection.getTheme()Returns theMapThemecurrently used by this projection for drawing outlines and graticule lines.MollweideProjection.getTheme()Returns theMapThemecurrently used by this projection for drawing outlines and graticule lines.OrthographicProjection.getTheme()Returns theMapThemecurrently used by this projection for drawing outlines and graticule lines.Methods in edu.cnu.mdi.mapping.projection with parameters of type MapThemeModifier and TypeMethodDescriptionstatic IMapProjectionProjectionFactory.create(EProjection type, MapTheme theme) Creates a projection with the given type and theme, using each projection's built-in default center.static IMapProjectionProjectionFactory.create(EProjection type, MapTheme theme, Point2D.Double center) Creates a projection with the given type, theme, and optional center.voidvoidSets theMapThemeused by this projection for all subsequent drawing operations.voidSets theMapThemeused by this projection for all subsequent drawing operations.voidSets theMapThemeused by this projection for all subsequent drawing operations.voidSets theMapThemeused by this projection for all subsequent drawing operations.voidSets theMapThemeused by this projection for all subsequent drawing operations.Constructors in edu.cnu.mdi.mapping.projection with parameters of type MapThemeModifierConstructorDescriptionEqualEarthProjection(MapTheme theme) Creates an Equal Earth projection with a central meridian of -70 degrees.LambertEqualAreaProjection(double centerLon, double centerLat, MapTheme theme) Convenience constructor that sets both the center and the theme atomically, preventing the NullPointerException that arises when drawing methods are called before the theme is set.Convenience constructor centered at (0°, 0°) with the given theme.MercatorProjection(MapTheme theme) Creates a Mercator projection with the supplied theme and the default central longitude of -70° (centred on the western Atlantic).MollweideProjection(MapTheme theme) Creates a Mollweide projection with the supplied theme and the default central meridian of -70°.OrthographicProjection(double centerLon, double centerLat, MapTheme theme) Convenience constructor that sets both the center and the theme in a single step, eliminating the NullPointerException risk of callingOrthographicProjection.drawMapOutline(java.awt.Graphics2D, edu.cnu.mdi.container.IContainer)before the theme is set. -
Uses of MapTheme in edu.cnu.mdi.mapping.theme
Methods in edu.cnu.mdi.mapping.theme that return MapThemeModifier and TypeMethodDescriptionstatic MapThemeMapTheme.blue()Returns a blue-toned theme with a nautical aesthetic.MapTheme.Builder.build()Constructs an immutableMapThemefrom the current builder state.static MapThemeMapTheme.dark()Returns a dark-background theme suitable for low-light environments or stylistic preference.static MapThemeMapTheme.light()Returns a light-background theme suitable for daytime use or printing.