Codota Logo
Led.flushImages
Code IndexAdd Codota to your IDE (free)

How to use
flushImages
method
in
eu.hansolo.steelseries.extras.Led

Best Java code snippets using eu.hansolo.steelseries.extras.Led.flushImages (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.bidib.jbidib.eu.hansolo/SteelSeries

/**
 * Sets the color that will be used to calculate the custom led color
 * @param COLOR
 */
public void setCustomLedColor(final Color COLOR) {
  if (customLedColor.COLOR.equals(COLOR)) {return;}
  customLedColor = new CustomLedColor(COLOR);
  final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;
  flushImages();
  ledImageOff = create_LED_Image(getWidth(), 0, ledColor, ledType);
  ledImageOn  = create_LED_Image(getWidth(), 1, ledColor, ledType);
  currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;
  repaint();
}
origin: HanSolo/SteelSeries-Swing

/**
 * Sets the color that will be used to calculate the custom led color
 * @param COLOR
 */
public void setCustomLedColor(final Color COLOR) {
  if (customLedColor.COLOR.equals(COLOR)) {return;}
  customLedColor = new CustomLedColor(COLOR);
  final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;
  flushImages();
  ledImageOff = create_LED_Image(getWidth(), 0, ledColor, ledType);
  ledImageOn  = create_LED_Image(getWidth(), 1, ledColor, ledType);
  currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;
  repaint();
}
origin: HanSolo/SteelSeries-Swing

/**
 * Sets the type of LED.
 * @param LED_TYPE Possible values are ROUND, RECT_VERTICAL and RECT_HORIZONTAL
 */
public void setLedType(final LedType LED_TYPE) {
  if (ledType == LED_TYPE) {return;}
  ledType = LED_TYPE;
  final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;
  flushImages();
  ledImageOff = create_LED_Image(getWidth(), 0, ledColor, ledType);
  ledImageOn = create_LED_Image(getWidth(), 1, ledColor, ledType);
  currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;
  repaint();
}
origin: org.bidib.jbidib.eu.hansolo/SteelSeries

/**
 * Sets the type of LED.
 * @param LED_TYPE Possible values are ROUND, RECT_VERTICAL and RECT_HORIZONTAL
 */
public void setLedType(final LedType LED_TYPE) {
  if (ledType == LED_TYPE) {return;}
  ledType = LED_TYPE;
  final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;
  flushImages();
  ledImageOff = create_LED_Image(getWidth(), 0, ledColor, ledType);
  ledImageOn = create_LED_Image(getWidth(), 1, ledColor, ledType);
  currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;
  repaint();
}
origin: org.bidib.jbidib.eu.hansolo/SteelSeries

/**
 * Sets the color of the threshold led.
 * The LedColor is not a standard color but defines a
 * color scheme for the led. The default ledcolor is RED
 * @param LED_COLOR
 */
public void setLedColor(final LedColor LED_COLOR) {
  if (ledColor == LED_COLOR) {return;}
  if (LED_COLOR == null) {
    ledColor = LedColor.RED_LED;
  } else {
    ledColor = LED_COLOR;
  }
  final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;
  flushImages();
  ledImageOff = create_LED_Image(getWidth(), 0, LED_COLOR, ledType);
  ledImageOn  = create_LED_Image(getWidth(), 1, LED_COLOR, ledType);
  currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;
  repaint();
}
origin: HanSolo/SteelSeries-Swing

/**
 * Sets the color of the threshold led.
 * The LedColor is not a standard color but defines a
 * color scheme for the led. The default ledcolor is RED
 * @param LED_COLOR
 */
public void setLedColor(final LedColor LED_COLOR) {
  if (ledColor == LED_COLOR) {return;}
  if (LED_COLOR == null) {
    ledColor = LedColor.RED_LED;
  } else {
    ledColor = LED_COLOR;
  }
  final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;
  flushImages();
  ledImageOff = create_LED_Image(getWidth(), 0, LED_COLOR, ledType);
  ledImageOn  = create_LED_Image(getWidth(), 1, LED_COLOR, ledType);
  currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;
  repaint();
}
eu.hansolo.steelseries.extrasLedflushImages

Popular methods of Led

  • addComponentListener
  • calcInnerBounds
    Calculates the rectangle that specifies the area that is available for painting the gauge. This mean
  • create_LED_Image
    Returns a buffered image that represents a led with the given size, state and color
  • getCurrentLedImage
    Returns the image of the currently used led image.
  • getHeight
  • getInsets
  • getLedImageOff
    Returns the image of the switched off threshold led with the currently active ledcolor.
  • getLedImageOn
    Returns the image of the switched on threshold led with the currently active ledcolor.
  • getMinimumSize
  • getParent
  • getWidth
  • init
  • getWidth,
  • init,
  • invalidate,
  • paintAll,
  • repaint,
  • setCurrentLedImage,
  • setPreferredSize,
  • setSize,
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Table (org.hibernate.mapping)
    A relational table
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