Codota Logo
Composite.setFont
Code IndexAdd Codota to your IDE (free)

How to use
setFont
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setFont (Showing top 20 results out of 585)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private Composite createInnerComposite(ExpandableComposite excomposite, int nColumns, Font font) {
  Composite inner= new Composite(excomposite, SWT.NONE);
  inner.setFont(font);
  inner.setLayout(new GridLayout(nColumns, false));
  excomposite.setClient(inner);
  return inner;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private Composite createInnerComposite(ExpandableComposite excomposite, int nColumns, Font font) {
  Composite inner= new Composite(excomposite, SWT.NONE);
  inner.setFont(font);
  inner.setLayout(new GridLayout(nColumns, false));
  excomposite.setClient(inner);
  return inner;
}
origin: org.eclipse.platform/org.eclipse.ui.forms

/**
 * Sets the font of the header text.
 *
 * @param font
 *            the new font
 */
@Override
public void setFont(Font font) {
  super.setFont(font);
  head.setFont(font);
}
origin: org.eclipse/org.eclipse.team.ui

protected Composite createComposite(Composite parent) {
  Composite composite = new Composite(parent, SWT.NONE);
  GridLayout layout = new GridLayout();
  composite.setLayout(layout);
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  composite.setFont(parent.getFont());
  return composite;
}

origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setFont (Font font) {
  super.setFont(font);
  table.setFont(font);
}
public void setForeground (Color color) {
origin: angelozerr/jdt-codemining

private Composite createInnerComposite(ExpandableComposite excomposite, int nColumns, Font font) {
  Composite inner = new Composite(excomposite, SWT.NONE);
  inner.setFont(font);
  inner.setLayout(new GridLayout(nColumns, false));
  excomposite.setClient(inner);
  return inner;
}
origin: org.eclipse.pde/org.eclipse.pde.ui

private Control createImplicitTabContents(Composite parent) {
  Composite container = new Composite(parent, SWT.NONE);
  GridLayout layout = new GridLayout(2, false);
  container.setLayout(layout);
  container.setLayoutData(new GridData(GridData.FILL_BOTH));
  container.setFont(parent.getFont());
  createImpLabel(container);
  createImpTable(container);
  createImpButtons(container);
  return container;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
public void setFont(Font font) {
  super.setFont(font);
  fLabel.setFont(font);
  fProgressIndicator.setFont(font);
}
origin: org.eclipse.rap/org.eclipse.rap.nebula.widgets.grid

@Override
public void setFont( Font font ) {
 super.setFont( font );
 layoutCache.invalidateItemHeight();
 scheduleRedraw();
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setFont (Font font) {
  super.setFont (font);
  this.font = font;
  if (popupCalendar != null) popupCalendar.setFont (font);
  redraw ();
}

origin: org.eclipse/org.eclipse.team.ui

public static Composite createHVFillComposite(Composite parent, int margins, int columns) {
  final Composite composite= new Composite(parent, SWT.NONE);
  composite.setFont(parent.getFont());
  composite.setLayoutData(createHVFillGridData());
  composite.setLayout(createGridLayout(columns, new PixelConverter(parent), margins));
  return composite;
}
origin: org.eclipse.platform/org.eclipse.team.ui

public static Composite createHFillComposite(Composite parent, int margins, int columns) {
  final Composite composite= new Composite(parent, SWT.NONE);
  composite.setFont(parent.getFont());
  composite.setLayoutData(createHFillGridData());
  composite.setLayout(createGridLayout(columns, new PixelConverter(parent), margins));
  return composite;
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

public void setFont (Font font) {
 super.setFont (font);
 this.font = font;
 text.setFont (font);
 list.setFont (font);
 internalLayout (true);
}
public void setForeground (Color color) {
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void createControl(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  composite.setFont(parent.getFont());
  composite.setLayout(new GridLayout(1, false));
  Control control= fBuildPathsBlock.createControl(composite);
  control.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
  Dialog.applyDialogFont(composite);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.NEW_JAVAPROJECT_WIZARD_PAGE);
  setControl(composite);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

protected Composite createPreviewPane(Composite parent) {
  final Composite previewPane= new Composite(parent, SWT.NONE);
  createGridLayout(previewPane, 1, true);
  previewPane.setFont(parent.getFont());
  createLabel(1, previewPane, FormatterMessages.ModifyDialogTabPage_preview_label_text, 0);
  fPreview= new JavaPreview(fWorkingValues, previewPane);
  fPreview.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
  return previewPane;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void createControl(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  composite.setFont(parent.getFont());
  composite.setLayout(new GridLayout(1, false));
  Control control= getBuildPathsBlock().createControl(composite);
  control.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
  Dialog.applyDialogFont(composite);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.NEW_JAVAPROJECT_WIZARD_PAGE);
  setControl(composite);
}
origin: org.eclipse.recommenders.extdoc/rcp

private void createContentArea() {
  scrollable = new ScrolledComposite(sash, SWT.H_SCROLL | SWT.V_SCROLL);
  scrollable.getVerticalBar().setIncrement(20);
  scrollable.setExpandHorizontal(true);
  scrollable.setExpandVertical(true);
  content = new Composite(scrollable, SWT.NONE);
  content.setLayout(new GridLayout());
  content.setFont(JFaceResources.getDialogFont());
  ExtdocUtils.setInfoBackgroundColor(content);
  scrollable.setContent(content);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setFont (Font font) {
  checkWidget ();
  Rectangle oldRect = getClientAreaInPixels ();
  super.setFont (font);
  Rectangle newRect = getClientAreaInPixels ();
  if (!oldRect.equals (newRect)) sendResize ();
}

origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public Control getControl(Composite parent) {
  PixelConverter converter= new PixelConverter(parent);
  Composite composite= new Composite(parent, SWT.NONE);
  composite.setFont(parent.getFont());
  LayoutUtil.doDefaultLayout(composite, new DialogField[] { fClassPathList }, true, SWT.DEFAULT, SWT.DEFAULT);
  LayoutUtil.setHorizontalGrabbing(fClassPathList.getListControl(null));
  int buttonBarWidth= converter.convertWidthInCharsToPixels(24);
  fClassPathList.setButtonsMinWidth(buttonBarWidth);
  return composite;
}
origin: org.eclipse/org.eclipse.jdt.ui

public ScrolledPageContent(Composite parent, int style) {
  super(parent, style);
  
  setFont(parent.getFont());
  
  fToolkit= JavaPlugin.getDefault().getDialogsFormToolkit();
  
  setExpandHorizontal(true);
  setExpandVertical(true);
  
  Composite body= new Composite(this, SWT.NONE);
  body.setFont(parent.getFont());
  setContent(body);
}

org.eclipse.swt.widgetsCompositesetFont

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • getParent
  • computeSize
  • dispose
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now