public class ZoomContributionViewItem extends ContributionItem implements ZoomListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIT_ALL
Zooms to fit entirely within the viewport.
|
static java.lang.String |
FIT_HEIGHT
Zooms to fit the height.
|
static java.lang.String |
FIT_WIDTH
Zooms to fit the width.
|
| Constructor and Description |
|---|
ZoomContributionViewItem(IZoomableWorkbenchPart part)
Creates a new contribution item that will work on the given part
service.initialZooms will be used to populate the combo or the menu.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
fill(CoolBar parent,
int index) |
void |
fill(Menu menu,
int index) |
void |
fill(ToolBar parent,
int index) |
void |
zoomChanged(double z)
Called whenever the ZoomManager's zoom level changes.
|
fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, updatepublic static final java.lang.String FIT_WIDTH
public static final java.lang.String FIT_HEIGHT
public static final java.lang.String FIT_ALL
public ZoomContributionViewItem(IZoomableWorkbenchPart part)
partService - service used to see whether the view is zoomable.public void fill(Menu menu, int index)
fill in interface IContributionItemfill in class ContributionItempublic void fill(CoolBar parent, int index)
fill in interface IContributionItemfill in class ContributionItempublic void fill(ToolBar parent, int index)
fill in interface IContributionItemfill in class ContributionItempublic void zoomChanged(double z)
ZoomListenerzoomChanged in interface ZoomListenerz - the new zoom level.public void dispose()
dispose in interface IContributionItemdispose in class ContributionItemCopyright (c) 2014 itemis AG and others. All rights reserved.