org.eclipse.draw2d.Clickable Java Examples

The following examples show how to use org.eclipse.draw2d.Clickable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XYGraphToolbar.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
public void addButton(Clickable button) {
	button.setPreferredSize(BUTTON_SIZE, BUTTON_SIZE);
	add(button);
}
 
Example #2
Source File: CustomDrawerFigure.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @return The Clickable that is used to expand/collapse the drawer.
 */
public Clickable getCollapseToggle() {
	return collapseToggle;
}
 
Example #3
Source File: ToolbarArmedXYGraph.java    From nebula with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Add a button to the tool bar. New button will be added to the 'end' of
 * the tool bar.
 * 
 * @param button
 *            New button
 */
public void addToolbarButton(final Clickable button) {
	toolbar.addButton(button);
}