/** * Returns the alpha component of this color. * * @return See above. */ public int getAlpha() { return getValue() & 0xff; }
/** * Returns the red component of this color. * * @return See above. */ public int getRed() { return (getValue() >> 24) & 0xff; }
/** * Returns the red component of this color. * * @return See above. */ public int getRed() { return (getValue() >> 24) & 0xff; }
/** * Returns the alpha component of this color. * * @return See above. */ public int getAlpha() { return getValue() & 0xff; }
/** * Returns the green component of this color. * * @return See above. */ public int getGreen() { return (getValue() >> 16) & 0xff; }
/** * Returns the blue component of this color. * * @return See above. */ public int getBlue() { return (getValue() >> 8) & 0xff; }
/** * Returns the blue component of this color. * * @return See above. */ public int getBlue() { return (getValue() >> 8) & 0xff; }
/** * Returns the green component of this color. * * @return See above. */ public int getGreen() { return (getValue() >> 16) & 0xff; }
for (Color c : Color.values()) { System.out.println("There are " + c.getValue() + " occurences of " + c); }
/** * Transforms a Java type into the corresponding OMERO RType. * @param value Java concrete type value. * @return RType or <code>null</code> if <code>value</code> is * <code>null</code>. */ public RInt toRType(Color value) { return toRType(value.getValue()); }
@Test public void testChannelColor() { // OME:Channel, Color now use new colour representation and is required assertEquals(-1, metadata.getChannelColor(0, 0).getValue().intValue()); }
if (channelColor.getValue() != -1 && nextFilter >= 0) { if (nextDetector - firstDetector != getSizeC() && cutIns[index] != null && nextDetector >= cutIns[index].size())
if (channelColor.getValue() != -1 && nextFilter >= 0) { if (nextDetector - firstDetector != getSizeC() && cutIns[index] != null && nextDetector >= cutIns[index].size())