|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.tensegrity.gui.swt.dialog.graphfilechooser.SwtExportSettingsPanel
A panel that provides controls to set the different export-options for the different export types like jpg, bitmap and png.
| Nested Class Summary | |
class |
SwtExportSettingsPanel.PanelStateListener
Simple abstract class that should be extended by classes intended to react upon the state (valid or unvalid) of this SwtExportSettingsPanel. |
| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
SwtExportSettingsPanel(org.eclipse.swt.widgets.Composite parent,
int style,
UIManager uiManager,
int type,
int preferredWidth,
int preferredHeight)
Constructor. |
|
| Method Summary | |
boolean |
forceBaseLine()
Returns true, if the pixels shall be arranged from the
left-top to the right-bottom corner of the picture. |
int |
getBitDepth()
Returns the desired bit-depth. |
int |
getHorizontalAlignment()
Returns the horizontal alignment as listed in com.tensegrity.graph.view.image.ImageExport |
Boundary |
getImageInsets()
Returns the insets for the image |
Size |
getImageSize()
Returns the size of the image. |
int |
getMode()
Returns the export mode as listed in com.tensegrity.graph.view.image.ImageExport |
float |
getQuality()
Returns a quality indicating float, where 1.0 stands for
highest and 0.0 for lowest quality. |
int |
getType()
Returns the type. |
int |
getVerticalAlignment()
Returns the vertical alignment as listed in com.tensegrity.graph.view.image.ImageExport |
boolean |
isAntialias()
Returns true if the antialias is turned on |
boolean |
isForceImageSize()
|
boolean |
isInterlaceEnabled()
Returns true, if interlace is enabled. |
boolean |
isOptimized()
Returns true, if the generic optimization flag for this
format is turned on. |
void |
registerPanelStateListener(SwtExportSettingsPanel.PanelStateListener listener)
Registers a PanelStateListener
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SwtExportSettingsPanel(org.eclipse.swt.widgets.Composite parent,
int style,
UIManager uiManager,
int type,
int preferredWidth,
int preferredHeight)
Constructor. Initializes the panel depending on type.
parent - a widget which will be the parent of the new instance (cannot
be null)style - the style of widget to constructuiManager - a UIManager for localized stringstype - one of GraphFileConstants.TYPE_
constants.preferredWidth - preferred width of the image to render.preferredHeight - preferred height of the image to render.| Method Detail |
public void registerPanelStateListener(SwtExportSettingsPanel.PanelStateListener listener)
Registers a PanelStateListener
listener - the PanelStateListener to register.public float getQuality()
ExportSettingsfloat, where 1.0 stands for
highest and 0.0 for lowest quality.
getQuality in interface ExportSettingsfloat.ExportSettings.getQuality()public boolean forceBaseLine()
ExportSettingstrue, if the pixels shall be arranged from the
left-top to the right-bottom corner of the picture.
forceBaseLine in interface ExportSettingstrue if baseline encoding is enforced.ExportSettings.forceBaseLine()public int getBitDepth()
ExportSettings
getBitDepth in interface ExportSettingsExportSettings.getBitDepth()public boolean isInterlaceEnabled()
ExportSettingstrue, if interlace is enabled.
isInterlaceEnabled in interface ExportSettingstrue, if interlace is enabled.ExportSettings.isInterlaceEnabled()public boolean isOptimized()
ExportSettingstrue, if the generic optimization flag for this
format is turned on.
isOptimized in interface ExportSettingstrue, if the generic optimization flag for this
format is turned on.ExportSettings.isOptimized()public Size getImageSize()
ExportSettings
getImageSize in interface ExportSettingsExportSettings.getImageSize()public int getType()
public int getMode()
ExportSettingscom.tensegrity.graph.view.image.ImageExport
getMode in interface ExportSettingspublic int getHorizontalAlignment()
ExportSettingscom.tensegrity.graph.view.image.ImageExport
getHorizontalAlignment in interface ExportSettingspublic int getVerticalAlignment()
ExportSettingscom.tensegrity.graph.view.image.ImageExport
getVerticalAlignment in interface ExportSettingspublic boolean isAntialias()
ExportSettings
isAntialias in interface ExportSettingspublic boolean isForceImageSize()
public Boundary getImageInsets()
ExportSettings
getImageInsets in interface ExportSettings
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||