public class ClientAreaAdapter extends Object implements IClientAreaProvider
DEFAULT| Constructor and Description |
|---|
ClientAreaAdapter(IClientAreaProvider baseProvider) |
ClientAreaAdapter(IClientAreaProvider baseProvider,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.graphics.Rectangle |
getClientArea() |
int |
getHeight() |
int |
getWidth() |
void |
setHeight(int height) |
void |
setWidth(int width) |
public ClientAreaAdapter(IClientAreaProvider baseProvider)
baseProvider - The base IClientAreaProvider. It should be the
IClientAreaProvider that was applied before to the
ViewportLayer to which this ClientAreaAdapter will be set to.public ClientAreaAdapter(IClientAreaProvider baseProvider, int width, int height)
baseProvider - The base IClientAreaProvider. It should be the
IClientAreaProvider that was applied before to the
ViewportLayer to which this ClientAreaAdapter will be set to.width - The width that should be used by this ClientAreaAdapter.
Setting the value to a positive number will cause a vertical
split viewport within a NatTable.height - The height that should be used by this ClientAreaAdapter.
Setting the value to a positive number will cause a horizontal
split viewport within a NatTable.public int getWidth()
public void setWidth(int width)
width - The width that should be used by this ClientAreaAdapter. If a
negative number is set, the width of the base
IClientAreaProvider will be used internally.public int getHeight()
public void setHeight(int height)
height - The height that should be used by this ClientAreaAdapter. If a
negative number is set, the height of the base
IClientAreaProvider will be used internally.public org.eclipse.swt.graphics.Rectangle getClientArea()
getClientArea in interface IClientAreaProviderCopyright © 2017. All rights reserved.