org.proteinshader.graphics.textures
Class NamePair

java.lang.Object
  extended by org.proteinshader.graphics.textures.NamePair

public class NamePair
extends Object

Stores a menu name and a file name for a texture.


Constructor Summary
NamePair()
          Constructs a NamePair object.
NamePair(String menuName, String filename)
          Constructs a NamePair object.
 
Method Summary
 String getFilename()
          Returns the name of the file the texture is to be read from.
 String getMenuName()
          Returns a name suitable for use in a menu.
 void setFilename(String filename)
          Sets the name of the file that the texture is to be read from.
 void setMenuName(String menuName)
          Sets a menu name for the texture.
 String toString()
          Returns the menu name and filename pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamePair

public NamePair()
Constructs a NamePair object. The menu name and filename will be set to empty Strings.


NamePair

public NamePair(String menuName,
                String filename)
Constructs a NamePair object.

Parameters:
menuName - a name suitable for use in a GUI menu.
filename - the name of the file the texture is to be read from.
Method Detail

getMenuName

public String getMenuName()
Returns a name suitable for use in a menu.

Returns:
A name to be used in a menu.

setMenuName

public void setMenuName(String menuName)
Sets a menu name for the texture.

Parameters:
menuName - a name suitable for use in a menu.

getFilename

public String getFilename()
Returns the name of the file the texture is to be read from.

Returns:
The name of the texture file.

setFilename

public void setFilename(String filename)
Sets the name of the file that the texture is to be read from.

Parameters:
filename - the name of the texture file.

toString

public String toString()
Returns the menu name and filename pair.

Overrides:
toString in class Object
Returns:
The menu name and filename.


Copyright © 2007-2008