Tabnine Logo
NSFont
Code IndexAdd Tabnine to your IDE (free)

How to use
NSFont
in
ch.cyberduck.binding.application

Best Java code snippets using ch.cyberduck.binding.application.NSFont (Showing top 11 results out of 315)

origin: iterate-ch/cyberduck

@Action
public void setStatusLabel(NSTextField statusLabel) {
  this.statusLabel = statusLabel;
  this.statusLabel.setFont(NSFont.monospacedDigitSystemFontOfSize(NSFont.smallSystemFontSize()));
}
origin: iterate-ch/cyberduck

public static NSFont monospacedDigitSystemFontOfSize(double fontSize) {
  if(Rococoa.cast(CLASS, NSObject.class).respondsToSelector(
      Foundation.selector("monospacedDigitSystemFontOfSize:weight:"))) {
    return CLASS.monospacedDigitSystemFontOfSize_weight(new CGFloat(fontSize), new CGFloat(NSFontWeightRegular));
  }
  return systemFontOfSize(fontSize);
}
origin: iterate-ch/cyberduck

public void setCommentField(final NSTextView field) {
  this.commentField = field;
  this.commentField.setFont(NSFont.userFixedPitchFontOfSize(11f));
  this.notificationCenter.addObserver(this.id(),
    Foundation.selector("commentInputDidChange:"),
    NSText.TextDidChangeNotification,
    field.id());
  this.addObserver(new BookmarkObserver() {
    @Override
    public void change(Host bookmark) {
      updateField(commentField, bookmark.getComment());
    }
  });
}
origin: iterate-ch/cyberduck

  /**
   * @param value     Existing attributes
   * @param hyperlink URL
   * @return Clickable and underlined string to put into text field.
   */
  private static NSAttributedString create(final NSMutableAttributedString value, final String hyperlink) {
    final NSRange range = NSRange.NSMakeRange(new NSUInteger(0), value.length());
    value.beginEditing();
    value.addAttributeInRange(NSMutableAttributedString.LinkAttributeName,
        hyperlink, range);
    // make the text appear in blue
    value.addAttributeInRange(NSMutableAttributedString.ForegroundColorAttributeName,
        NSColor.blueColor(), range);
    // system font
    value.addAttributeInRange(NSMutableAttributedString.FontAttributeName,
        NSFont.systemFontOfSize(NSFont.smallSystemFontSize()), range);
    // next make the text appear with an underline
    value.addAttributeInRange(NSMutableAttributedString.UnderlineStyleAttributeName,
        NSNumber.numberWithInt(NSMutableAttributedString.SingleUnderlineStyle), range);
    value.endEditing();
    return value;
  }
}
origin: iterate-ch/cyberduck

public void setAclTable(final NSTableView t) {
  this.aclTable = t;
  this.aclTable.setAllowsMultipleSelection(true);
  this.aclPermissionCellPrototype.setFont(NSFont.systemFontOfSize(NSFont.smallSystemFontSize()));
  this.aclPermissionCellPrototype.setControlSize(NSCell.NSSmallControlSize);
  this.aclPermissionCellPrototype.setCompletes(false);
origin: iterate-ch/cyberduck

public void setProgressField(final NSTextField f) {
  this.progressField = f;
  this.progressField.setEditable(false);
  this.progressField.setSelectable(false);
  this.progressField.setTextColor(NSColor.controlTextColor());
  this.progressField.setFont(NSFont.monospacedDigitSystemFontOfSize(NSFont.smallSystemFontSize()));
}
origin: iterate-ch/cyberduck

NSFont.systemFontOfSize(preferences.getFloat("browser.font.size"))).intValue() + 2));
origin: iterate-ch/cyberduck

public void setDownloadSkipRegexField(NSTextView t) {
  this.downloadSkipRegexField = t;
  this.downloadSkipRegexField.setFont(NSFont.userFixedPitchFontOfSize(9.0f));
  this.downloadSkipRegexField.setString(preferences.getProperty("queue.download.skip.regex"));
  notificationCenter.addObserver(this.id(),
    Foundation.selector("downloadSkipRegexFieldDidChange:"),
    NSText.TextDidChangeNotification,
    this.downloadSkipRegexField.id());
}
origin: iterate-ch/cyberduck

NSFont.systemFontOfSize(preferences.getFloat("browser.font.size"))).intValue() + 2));
origin: iterate-ch/cyberduck

public void setUploadSkipRegexField(NSTextView b) {
  this.uploadSkipRegexField = b;
  this.uploadSkipRegexField.setFont(NSFont.userFixedPitchFontOfSize(9.0f));
  this.uploadSkipRegexField.setString(preferences.getProperty("queue.upload.skip.regex"));
  notificationCenter.addObserver(this.id(),
    Foundation.selector("uploadSkipRegexFieldDidChange:"),
    NSText.TextDidChangeNotification,
    this.uploadSkipRegexField.id());
}
origin: iterate-ch/cyberduck

this.browserView.setHeaderView(null);
this.browserView.setRowHeight(new CGFloat(layoutManager.defaultLineHeightForFont(
    NSFont.systemFontOfSize(preferences.getFloat("browser.font.size"))).intValue() + 2));
ch.cyberduck.binding.applicationNSFont

Most used methods

  • smallSystemFontSize
  • systemFontOfSize
    UI font settings Original signature : NSFont* systemFontOfSize(CGFloat) Aqua System font native decl
  • monospacedDigitSystemFontOfSize
  • userFixedPitchFontOfSize
    Original signature : NSFont* userFixedPitchFontOfSize(CGFloat) Aqua fixed-pitch font native declarat

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now