Codota Logo
IconProvider
Code IndexAdd Codota to your IDE (free)

How to use
IconProvider
in
it.tidalwave.role

Best Java code snippets using it.tidalwave.role.IconProvider (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: it.tidalwave.netbeans/it-tidalwave-netbeans-util

 /*******************************************************************************************************************
  *
  * Creates a default icon, calling the delegate if provided, otherwise returning an empty icon.
  * 
  * @param   type  the icon type
  * @param   size  the icon size
  * @return        the icon
  *
  ******************************************************************************************************************/
 @Nonnull
 private Icon getDefaultIcon (final @Nonnegative int size)
  {
   return (defaultIconProvider != null) ? defaultIconProvider.getIcon(size) : EMPTY_ICON;
  }
}
origin: it.tidalwave.netbeans/it-tidalwave-netbeans-util-android

 /*******************************************************************************************************************
  *
  * Creates a default icon, calling the delegate if provided, otherwise returning an empty icon.
  * 
  * @param   type  the icon type
  * @param   size  the icon size
  * @return        the icon
  *
  ******************************************************************************************************************/
 @Nonnull
 private Image getDefaultIcon (final @Nonnull Type type, final @Nonnegative int size)
  {
   return (defaultIconProvider != null) ? defaultIconProvider.getIcon(type, size) : EMPTY_ICON;
  }
}
origin: it.tidalwave.netbeans/it-tidalwave-netbeans-nodes

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Nonnull
private Image findIcon (final int size)
 {
  try
   {
    return ImageUtilities.icon2Image(find(object, IconProvider).getIcon(size));
   }
  catch (NotFoundException e)
   {
    return EMPTY_ICON;
   }
 }
origin: it.tidalwave.netbeans/it-tidalwave-netbeans-nodes

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Nonnull
private Image getIcon (final int sizeType, final @Nonnull Image fallBackImage)
 {
  final Node delegate = getOriginal();
  //
  // If the delegate is not a NodePresentationModel, it is not using an IconProvider for its icon, thus it is directly
  // providing its own icon. It could even have an IconProvider in its Lookup as it could be a FilterNode; for
  // this reason there's this explicit check.
  //
  if (!(delegate instanceof NodePresentationModel) && !(delegate instanceof GenericFilterNode))
   {
    return fallBackImage;
   }
  final IconProvider iconProvider = getLookup().lookup(IconProvider.class);
  final int size = (sizeType == BeanInfo.ICON_COLOR_16x16) ? 16 : 32;
  return (iconProvider != null) ? ImageUtilities.icon2Image(iconProvider.getIcon(size)) : fallBackImage;
 }
it.tidalwave.roleIconProvider

Javadoc

The role of an object that can provide an icon for rendering.

Most used methods

  • getIcon
    Returns the icon for this object. Note that the size parameter is just a hint to allow implementatio

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Socket (java.net)
    Provides a client-side TCP socket.
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
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