us.zuercher.gpx2map.gui
Interface MarkerStyleComboBoxModel.StyleChoice

All Known Implementing Classes:
MarkerStyleComboBoxModel.BasicStyleChoice, MarkerStyleComboBoxModel.FileStyleChoice
Enclosing class:
MarkerStyleComboBoxModel

public static interface MarkerStyleComboBoxModel.StyleChoice

StyleChoice represents a choice of MarkerStyle.

Author:
Stephan Zuercher

Method Summary
 MarkerStyle getStyle(File markerFile)
          Returns the style associated with this style choice.
 boolean requiresFile()
          Returns true if this style choice requires a valid, readable File.
 String toString()
          Returns the display name for this style choice.
 

Method Detail

getStyle

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

Parameters:
markerFile - the configured marker file, may be ignored
Returns:
the style associated with this style choice.
Throws:
IOException - from some implementations

requiresFile

boolean requiresFile()
Returns true if this style choice requires a valid, readable File.

Returns:
true if this style choice requires a valid, readable File.

toString

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

Overrides:
toString in class Object
Returns:
the display name for this style choice.