| Modifier and Type | Class and Description |
|---|---|
| protected class | PaletteBuilder.
The node of color tree. |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected static final int | MAXLEVEL
maximum of tree depth |
| protected int | |
| protected int | |
| protected PaletteBuilder. | |
| protected PaletteBuilder. | |
| protected int | |
| protected PaletteBuilder. | |
| protected RenderedImage | |
| protected ColorModel | |
| protected Raster | |
| protected PaletteBuilder. | |
| protected int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public static boolean | Returns: true if the PaletteBuilder
is likely to be able to create palette for this image type.an instance of type)ImageTypeSpecifier to be
indexed.Returns |
| public static boolean | Returns: true if the PaletteBuilder
is likely to be able to create palette for this image type.an instance of image)RenderedImage to be
indexed.Returns |
| public static IndexColorModel | createIndexColorModel(RenderedImage img)
Creates an palette representing colors from given image
|
| public static RenderedImage | createIndexedImage(RenderedImage src)
Creates an image representing given image
|
| protected int | |
| protected int | |
| protected PaletteBuilder. | |
| protected int | |
| protected IndexColorModel | |
| protected RenderedImage | |
| private Color | |
| protected PaletteBuilder. | |
| protected void |
| currLevel | back to summary |
|---|---|
| protected int currLevel | |
| currSize | back to summary |
|---|---|
| protected int currSize | |
| MAXLEVEL | back to summary |
|---|---|
| protected static final int MAXLEVEL maximum of tree depth | |
| maxNodes | back to summary |
|---|---|
| protected int maxNodes | |
| numNodes | back to summary |
|---|---|
| protected int numNodes | |
| palette | back to summary |
|---|---|
| protected PaletteBuilder. | |
| reduceList | back to summary |
|---|---|
| protected PaletteBuilder. | |
| requiredSize | back to summary |
|---|---|
| protected int requiredSize | |
| root | back to summary |
|---|---|
| protected PaletteBuilder. | |
| src | back to summary |
|---|---|
| protected RenderedImage src | |
| srcColorModel | back to summary |
|---|---|
| protected ColorModel srcColorModel | |
| srcRaster | back to summary |
|---|---|
| protected Raster srcRaster | |
| transColor | back to summary |
|---|---|
| protected PaletteBuilder. | |
| transparency | back to summary |
|---|---|
| protected int transparency | |
| PaletteBuilder | back to summary |
|---|---|
| protected PaletteBuilder(RenderedImage src) | |
| PaletteBuilder | back to summary |
|---|---|
| protected PaletteBuilder(RenderedImage src, int size) | |
| buildPalette | back to summary |
|---|---|
| protected void buildPalette() | |
| canCreatePalette | back to summary |
|---|---|
| public static boolean canCreatePalette(ImageTypeSpecifier type) Returns
| |
| canCreatePalette | back to summary |
|---|---|
| public static boolean canCreatePalette(RenderedImage image) Returns
| |
| createIndexColorModel | back to summary |
|---|---|
| public static IndexColorModel createIndexColorModel(RenderedImage img) Creates an palette representing colors from given image
| |
| createIndexedImage | back to summary |
|---|---|
| public static RenderedImage createIndexedImage(RenderedImage src) Creates an image representing given image
| |
| findColorIndex | back to summary |
|---|---|
| protected int findColorIndex(PaletteBuilder. | |
| findPaletteEntry | back to summary |
|---|---|
| protected int findPaletteEntry(PaletteBuilder. | |
| freeTree | back to summary |
|---|---|
| protected PaletteBuilder. | |
| getBranchIndex | back to summary |
|---|---|
| protected int getBranchIndex(Color aColor, int aLevel) | |
| getIndexColorModel | back to summary |
|---|---|
| protected IndexColorModel getIndexColorModel() | |
| getIndexedImage | back to summary |
|---|---|
| protected RenderedImage getIndexedImage() | |
| getSrcColor | back to summary |
|---|---|
| private Color getSrcColor(int x, int y) | |
| insertNode | back to summary |
|---|---|
| protected PaletteBuilder. | |
| reduceTree | back to summary |
|---|---|
| protected void reduceTree() | |
| Modifier and Type | Field and Description |
|---|---|
| public long | |
| public int | |
| pack-priv PaletteBuilder. | |
| public int | |
| public long | |
| public boolean | |
| public int | |
| pack-priv PaletteBuilder. | |
| public int | |
| public long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int |
| blue | back to summary |
|---|---|
| public long blue | |
| childCount | back to summary |
|---|---|
| public int childCount | |
| children | back to summary |
|---|---|
| pack-priv PaletteBuilder. | |
| colorCount | back to summary |
|---|---|
| public int colorCount | |
| green | back to summary |
|---|---|
| public long green | |
| isLeaf | back to summary |
|---|---|
| public boolean isLeaf | |
| level | back to summary |
|---|---|
| public int level | |
| nextReducible | back to summary |
|---|---|
| pack-priv PaletteBuilder. | |
| paletteIndex | back to summary |
|---|---|
| public int paletteIndex | |
| red | back to summary |
|---|---|
| public long red | |
| ColorNode | back to summary |
|---|---|
| public ColorNode() | |
| getLeafChildCount | back to summary |
|---|---|
| public int getLeafChildCount() | |
| getRGB | back to summary |
|---|---|
| public int getRGB() | |