net.sourceforge.plantuml.ugraphic
Enum SpriteGrayLevel

java.lang.Object
  extended by java.lang.Enum<SpriteGrayLevel>
      extended by net.sourceforge.plantuml.ugraphic.SpriteGrayLevel
All Implemented Interfaces:
Serializable, Comparable<SpriteGrayLevel>

public enum SpriteGrayLevel
extends Enum<SpriteGrayLevel>


Enum Constant Summary
GRAY_16
           
GRAY_4
           
GRAY_8
           
 
Method Summary
 Sprite buildSprite(int width, int height, List<String> strings)
           
 Sprite buildSpriteZ(int width, int height, String compressed)
           
 List<String> encode(BufferedImage img)
           
 List<String> encodeZ(BufferedImage img)
           
static SpriteGrayLevel get(int n)
           
 int getNbColor()
           
static SpriteGrayLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SpriteGrayLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRAY_16

public static final SpriteGrayLevel GRAY_16

GRAY_8

public static final SpriteGrayLevel GRAY_8

GRAY_4

public static final SpriteGrayLevel GRAY_4
Method Detail

values

public static SpriteGrayLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SpriteGrayLevel c : SpriteGrayLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SpriteGrayLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static SpriteGrayLevel get(int n)

getNbColor

public int getNbColor()

encode

public List<String> encode(BufferedImage img)

buildSprite

public Sprite buildSprite(int width,
                          int height,
                          List<String> strings)

encodeZ

public List<String> encodeZ(BufferedImage img)

buildSpriteZ

public Sprite buildSpriteZ(int width,
                           int height,
                           String compressed)
                    throws IOException
Throws:
IOException


Copyright © 2014. All Rights Reserved.