us.zuercher.gpx2map.gui
Class MarkerStyleComboBoxModel.FileStyleChoice

java.lang.Object
  extended by us.zuercher.gpx2map.gui.MarkerStyleComboBoxModel.FileStyleChoice
All Implemented Interfaces:
MarkerStyleComboBoxModel.StyleChoice
Enclosing class:
MarkerStyleComboBoxModel

public static class MarkerStyleComboBoxModel.FileStyleChoice
extends Object
implements MarkerStyleComboBoxModel.StyleChoice

StyleChoice represents a choice of MarkerStyle.

Author:
Stephan Zuercher

Constructor Summary
private MarkerStyleComboBoxModel.FileStyleChoice()
           
 
Method Summary
 MarkerStyle getStyle(File markerFile)
          Returns the style associated with this style choice.
 boolean requiresFile()
          Returns true since this style choice always requires a file.
 String toString()
          Returns the display name for this style choice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarkerStyleComboBoxModel.FileStyleChoice

private MarkerStyleComboBoxModel.FileStyleChoice()
Method Detail

getStyle

public MarkerStyle getStyle(File markerFile)
                     throws IOException
Returns the style associated with this style choice.

Specified by:
getStyle in interface MarkerStyleComboBoxModel.StyleChoice
Parameters:
markerFile - the marker file
Returns:
the style associated with this style choice.
Throws:
IOException - if the file cannot be converted into a marker

requiresFile

public boolean requiresFile()
Returns true since this style choice always requires a file.

Specified by:
requiresFile in interface MarkerStyleComboBoxModel.StyleChoice
Returns:
true, always

toString

public String toString()
Returns the display name for this style choice.

Specified by:
toString in interface MarkerStyleComboBoxModel.StyleChoice
Overrides:
toString in class Object
Returns:
the display name for this style choice.