|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.tptp.platform.report.ui.dialogs.internal.JScribDialog
org.eclipse.tptp.platform.report.ui.dialogs.internal.ZoomEditorDialog
org.eclipse.tptp.platform.report.birt).
public class ZoomEditorDialog
This class provides a dialog to configure a zoom factor. It provides some predefined zoom factor and a custom zoom factor selector. The zoom factor and its impact on the forn is shown in a preview area. This class provides a signal named zoomChanged. This signal is emitted every time when the zoom factor changed in the dialog editor.
JScribDialog| Nested Class Summary | |
|---|---|
class |
ZoomEditorDialog.ZoomFactorWidget
Deprecated. |
class |
ZoomEditorDialog.ZoomPreviewWidget
Deprecated. |
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary | |
|---|---|
Signal |
ratioEnabled
Deprecated. Signal : ratioEnabled(Boolean f) Emit when the maintain aspect ratio checkbox changed in the zoom editor dialog |
Signal |
zoomChanged
Deprecated. Signal : zoomChanged(Float f) Emit when the zoom factor changed in the zoom editor dialog |
| Fields inherited from class org.eclipse.tptp.platform.report.ui.dialogs.internal.JScribDialog |
|---|
applied, canceled, JSCRIB_APPLY_BUTTON, JSCRIB_CANCEL_BUTTON, JSCRIB_HELP_BUTTON, JSCRIB_OK_BUTTON |
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
ZoomEditorDialog(org.eclipse.swt.widgets.Shell parent)
Deprecated. Create a zoom editor |
|
| Method Summary | |
|---|---|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
Deprecated. |
float |
getMaxZoomFactor()
Deprecated. Returns the maximum of the zoom factor that the dialog can edit |
float |
getMinZoomFactor()
Deprecated. Returns the minimum of the zoom factor that the dialog can edit |
float |
getZoomFactor()
Deprecated. Returns the zoom factor configurated in the editor |
boolean |
isFontPreviewEnabled()
Deprecated. Returns the value of the font size and zoomFactor synchronisation property. |
boolean |
isMaintainRatio()
Deprecated. |
void |
setData(int _contentsW,
int _contentsH,
int _viewW,
int _viewH,
float _zoomFactor)
Deprecated. Sets the data for the zoom dialog. |
void |
setFontPreviewEnabled(boolean fontZoom)
Deprecated. Synchronize or not the font size with the zoom factor. |
void |
setMaintainRatio(boolean maintainRatio)
Deprecated. |
void |
setMaxZoomFactor(float maxZoomFactor)
Deprecated. Sets the maximum of the zoom factor that the dialog can edit |
void |
setMinZoomFactor(float minZoomfactor)
Deprecated. Sets the minimum of the zoom factor that the dialog can edit |
void |
setPreviewFont(java.lang.String fontName,
int size)
Deprecated. Sets the font used to show the preview text with zoom factor applied on the font. |
void |
setPreviewText(java.lang.String sampleText)
Deprecated. Sets the text show in the preview area. |
| Methods inherited from class org.eclipse.tptp.platform.report.ui.dialogs.internal.JScribDialog |
|---|
applyPressed, buttonPressed, cancelPressed, createButtonsForButtonBar, helpPressed, okPressed |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
applyDialogFont, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Signal zoomChanged
public Signal ratioEnabled
| Constructor Detail |
|---|
public ZoomEditorDialog(org.eclipse.swt.widgets.Shell parent)
| Method Detail |
|---|
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea in class org.eclipse.jface.dialogs.DialogDialog.createDialogArea(org.eclipse.swt.widgets.Composite)public float getZoomFactor()
public boolean isFontPreviewEnabled()
public void setFontPreviewEnabled(boolean fontZoom)
public void setData(int _contentsW,
int _contentsH,
int _viewW,
int _viewH,
float _zoomFactor)
_contentsW - is the width in pixel of the contents (document)_contentsH - is the height in pixel of the contents._viewW - is the width in pixel of the view._viewH - is the height in pixel of the view._zoomFactor - is the current zoomFactor of the view.public void setPreviewText(java.lang.String sampleText)
public void setPreviewFont(java.lang.String fontName,
int size)
font - name is the string name of the font (ex: "Times New Roman").size - is the original size of the font in pixel.public float getMaxZoomFactor()
public void setMaxZoomFactor(float maxZoomFactor)
maxZoomFactor - The maxZoomFactor to set.public float getMinZoomFactor()
public void setMinZoomFactor(float minZoomfactor)
minZoomfactor - The minZoomfactor to set.public boolean isMaintainRatio()
public void setMaintainRatio(boolean maintainRatio)
maintainRatio - The maintainRatio to set.
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||