org.openbp.cockpit.modeler.tools
Class ModelerToolDecisionTableEntry

java.lang.Object
  extended by org.openbp.cockpit.modeler.tools.ModelerToolDecisionTableEntry

public class ModelerToolDecisionTableEntry
extends java.lang.Object

Entry in the tool decision table that determines which tool to use for which situation.

Author:
Heiko Erhardt

Constructor Summary
ModelerToolDecisionTableEntry(ModelerTool tool, java.lang.Class objectClass, int requiredInputState)
          Value constructor.
 
Method Summary
 java.lang.Class getObjectClass()
          Gets the class of the object (usually figure or handle) this tool is suitable for or null for any.
 int getRequiredInputState()
          Gets the expected keyboard and mouse button input state.
 ModelerTool getTool()
          Gets the tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelerToolDecisionTableEntry

public ModelerToolDecisionTableEntry(ModelerTool tool,
                                     java.lang.Class objectClass,
                                     int requiredInputState)
Value constructor.

Parameters:
tool - Tool
objectClass - Class of the object (usually figure or handle) this tool is suitable for or null for any
requiredInputState - Expected keyboard and mouse button input state or 0 for any
Method Detail

getTool

public ModelerTool getTool()
Gets the tool.


getObjectClass

public java.lang.Class getObjectClass()
Gets the class of the object (usually figure or handle) this tool is suitable for or null for any.


getRequiredInputState

public int getRequiredInputState()
Gets the expected keyboard and mouse button input state.



Copyright © 2011. All Rights Reserved.