org.openbp.jaspira.gui.interaction
Interface BreakoutBoxEntry

All Known Implementing Classes:
ToolBoxItem

public interface BreakoutBoxEntry

An entry of a break out menu.

Author:
Jens Ferchland

Method Summary
 void draw(java.awt.Graphics g)
          Draws the entry.
 java.lang.String getDescription()
          Gets the description of this entry.
 MultiIcon getIcon()
          Gets the icon of this entry.
 Importer getImporter()
          Gets the importer of the entry.
 java.awt.Rectangle getLocationOnGlassPanel()
          Gets the location and dimension of the entry.
 java.lang.String getTitle()
          Gets the title of this entry.
 java.lang.String getToolTipText()
          Gets the tooltip for this entry.
 java.awt.datatransfer.Transferable getTransferable()
          Gets the transferable object of this entry.
 boolean importData(java.awt.Point p)
          Imports the data at the drop point.
 boolean reactsOn(int x, int y)
          Checks if the given point is inside the region of the entry.
 void setLocationOnGlassPanel(java.awt.Rectangle r)
          Sets the location and dimension of the entry.
 

Method Detail

getTransferable

java.awt.datatransfer.Transferable getTransferable()
Gets the transferable object of this entry.


getTitle

java.lang.String getTitle()
Gets the title of this entry.


getIcon

MultiIcon getIcon()
Gets the icon of this entry.


getDescription

java.lang.String getDescription()
Gets the description of this entry.


getToolTipText

java.lang.String getToolTipText()
Gets the tooltip for this entry.


getImporter

Importer getImporter()
Gets the importer of the entry.


draw

void draw(java.awt.Graphics g)
Draws the entry.

Parameters:
g - Graphics context

reactsOn

boolean reactsOn(int x,
                 int y)
Checks if the given point is inside the region of the entry.

Parameters:
x - Position in screen coordinates
y - Position in screen coordinates

importData

boolean importData(java.awt.Point p)
Imports the data at the drop point.

Parameters:
p - Import position in glass coordinates
Returns:
true The data was successfully imported.
false An error occured while importing the data.

setLocationOnGlassPanel

void setLocationOnGlassPanel(java.awt.Rectangle r)
Sets the location and dimension of the entry.

Parameters:
r - Bounds in screen coordinates

getLocationOnGlassPanel

java.awt.Rectangle getLocationOnGlassPanel()
Gets the location and dimension of the entry.

Returns:
Bounds in screen coordinates


Copyright © 2011. All Rights Reserved.