de.cau.cs.kieler.ksbase.ui.menus
Class KSbasEBalloonPopup

java.lang.Object
  extended by de.cau.cs.kieler.ksbase.ui.menus.KSbasEBalloonPopup
All Implemented Interfaces:
IBalloonContribution

public class KSbasEBalloonPopup
extends Object
implements IBalloonContribution

Edit policy for the KSBasE popup balloons

Rating proposed yellow
(2010-03-22)

Constructor Summary
KSbasEBalloonPopup()
          Creates an empty balloon popup.
 
Method Summary
 Image getImage()
          Returns the image for the balloon.
 String getTooltip()
          Returns the name of the transformation for the popup tooltip.
 void run()
          Executes the transformation by using the TransformationUIManager.
 void setAttributes(HashMap<String,String> map)
          Sets the balloon attributes.
 boolean setEditPart(EditPart editPartParam)
          Sets the corresponding edit part, this is unused here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSbasEBalloonPopup

public KSbasEBalloonPopup()
Creates an empty balloon popup.

Method Detail

getImage

public Image getImage()
Returns the image for the balloon.

Specified by:
getImage in interface IBalloonContribution
Returns:
The image, may return null if no images is defined

getTooltip

public String getTooltip()
Returns the name of the transformation for the popup tooltip.

Specified by:
getTooltip in interface IBalloonContribution
Returns:
The name of the transformation

run

public void run()
Executes the transformation by using the TransformationUIManager.

Specified by:
run in interface IBalloonContribution

setAttributes

public void setAttributes(HashMap<String,String> map)
Sets the balloon attributes.

Specified by:
setAttributes in interface IBalloonContribution
Parameters:
map - A map of key-value pairs.

setEditPart

public boolean setEditPart(EditPart editPartParam)
Sets the corresponding edit part, this is unused here.

Specified by:
setEditPart in interface IBalloonContribution
Parameters:
editPartParam - The edit part to use.
Returns:
true