org.mars_sim.msp.ui.swing.tool.settlement
Class SVGMapUtil

java.lang.Object
  extended by org.mars_sim.msp.ui.swing.tool.settlement.SVGMapUtil

public final class SVGMapUtil
extends Object

Static utility class for mapping settlement map structures, such as buildings and construction sites, with their SVG image views on the settlement map.


Method Summary
static org.apache.batik.gvt.GraphicsNode getAttachmentPartSVG(String partType)
          Gets a SVG node for an attachment part.
static org.apache.batik.gvt.GraphicsNode getBuildingSVG(String buildingName)
          Gets a SVG node for a building.
static org.apache.batik.gvt.GraphicsNode getConstructionSiteSVG(String constructionSiteStageName)
          Gets a SVG node for a construction site.
static org.apache.batik.gvt.GraphicsNode getLoadingOverlaySVG(String vehicleType)
          Gets a SVG node for a vehicle loading/unloading overlay.
static org.apache.batik.gvt.GraphicsNode getMaintenanceOverlaySVG(String vehicleType)
          Gets a SVG node for a vehicle maintenance/repair overlay.
static org.apache.batik.gvt.GraphicsNode getVehicleSVG(String vehicleType)
          Gets a SVG node for a vehicle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBuildingSVG

public static org.apache.batik.gvt.GraphicsNode getBuildingSVG(String buildingName)
Gets a SVG node for a building.

Parameters:
buildingName - the building's name.
Returns:
SVG node or null if none found.

getConstructionSiteSVG

public static org.apache.batik.gvt.GraphicsNode getConstructionSiteSVG(String constructionSiteStageName)
Gets a SVG node for a construction site.

Parameters:
constructionSiteStageName - the construction site's current stage name.
Returns:
SVG node or null if none found.

getVehicleSVG

public static org.apache.batik.gvt.GraphicsNode getVehicleSVG(String vehicleType)
Gets a SVG node for a vehicle.

Parameters:
vehicleType - the vehicle type.
Returns:
SVG node or null if none found.

getMaintenanceOverlaySVG

public static org.apache.batik.gvt.GraphicsNode getMaintenanceOverlaySVG(String vehicleType)
Gets a SVG node for a vehicle maintenance/repair overlay.

Parameters:
vehicleType - the vehicle type.
Returns:
SVG node of null if none found.

getLoadingOverlaySVG

public static org.apache.batik.gvt.GraphicsNode getLoadingOverlaySVG(String vehicleType)
Gets a SVG node for a vehicle loading/unloading overlay.

Parameters:
vehicleType - the vehicle type.
Returns:
SVG node of null if none found.

getAttachmentPartSVG

public static org.apache.batik.gvt.GraphicsNode getAttachmentPartSVG(String partType)
Gets a SVG node for an attachment part.

Parameters:
partType - the part type.
Returns:
SVG node or null if none found.


Copyright © 2009-2013. All Rights Reserved.