com.charliemouse.cambozola

Class Accessory

public abstract class Accessory extends Object

com/charliemouse/cambozola/Accessory.java Copyright (C) Andy Wilcock, 2003. Available from http://www.charliemouse.com Cambozola is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Cambozola is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Cambozola; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Field Summary
static intBUTTON_SIZE
static intICON_INDENT
static intICON_SIZE
Constructor Summary
Accessory()
Method Summary
voidactionPerformed(Point p, ViewerAttributeInterface vfi)
StringgetDescription()
ImagegetIconImage()
StringgetIconLocation()
StringgetKey()
StringgetName()
booleanisEnabled(ICameraProfile profile, ViewerAttributeInterface vfi)
This is only checked at creation time
voidterminate()

Field Detail

BUTTON_SIZE

public static final int BUTTON_SIZE

ICON_INDENT

public static final int ICON_INDENT

ICON_SIZE

public static final int ICON_SIZE

Constructor Detail

Accessory

public Accessory()

Method Detail

actionPerformed

public void actionPerformed(Point p, ViewerAttributeInterface vfi)

getDescription

public String getDescription()

getIconImage

public Image getIconImage()

getIconLocation

public String getIconLocation()

getKey

public String getKey()

getName

public String getName()

isEnabled

public boolean isEnabled(ICameraProfile profile, ViewerAttributeInterface vfi)
This is only checked at creation time

Returns: True if the accessory is enabled

terminate

public void terminate()