org.graffiti.plugin.tool
Class HiddenToolFilter

java.lang.Object
  extended by org.graffiti.plugin.tool.HiddenToolFilter
All Implemented Interfaces:
ToolFilter

public class HiddenToolFilter
extends Object
implements ToolFilter

ToolFilter that let pass those tools that are not hidden.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
Tool.isHidden()

Constructor Summary
HiddenToolFilter()
           
 
Method Summary
 boolean isVisible(Tool<?> tool)
          Returns if the specified tool shall be visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiddenToolFilter

public HiddenToolFilter()
Method Detail

isVisible

public boolean isVisible(Tool<?> tool)
Returns if the specified tool shall be visible. This implementation returns true iff the tool is not explicitly hidden.

Specified by:
isVisible in interface ToolFilter
Parameters:
tool - the tool in question.
Returns:
true iff the specified tool shall be visible.
See Also:
Tool.isHidden()


Generated at 2012-05-30 11:00:36 PM CEST