us.zuercher.gpx2map.gui
Class MarkerStyleComboBoxModel.BasicStyleChoice

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

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

BasicStyleChoice represents a choice of one of the basic Styles.

Author:
Stephan Zuercher

Field Summary
private  MarkerStyle style
           
 
Constructor Summary
private MarkerStyleComboBoxModel.BasicStyleChoice(MarkerStyle style)
           
 
Method Summary
 MarkerStyle getStyle(File markerFile)
          Returns the style associated with this style choice.
 boolean requiresFile()
          Returns false since this style choice doesn't require 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
 

Field Detail

style

private final MarkerStyle style
Constructor Detail

MarkerStyleComboBoxModel.BasicStyleChoice

private MarkerStyleComboBoxModel.BasicStyleChoice(MarkerStyle style)
Method Detail

getStyle

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

Specified by:
getStyle in interface MarkerStyleComboBoxModel.StyleChoice
Parameters:
markerFile - ignored
Returns:
the style associated with this style choice.

requiresFile

public boolean requiresFile()
Returns false since this style choice doesn't require a file.

Specified by:
requiresFile in interface MarkerStyleComboBoxModel.StyleChoice
Returns:
false, 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.