us.zuercher.gpx2map.gui
Class MarkerStyleComboBoxModel.BasicStyleChoice
java.lang.Object
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
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. |
style
private final MarkerStyle style
MarkerStyleComboBoxModel.BasicStyleChoice
private MarkerStyleComboBoxModel.BasicStyleChoice(MarkerStyle style)
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.