org.gamenet.application.mm8leveleditor.converter
Class MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource

java.lang.Object
  extended byorg.gamenet.application.mm8leveleditor.converter.MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource
All Implemented Interfaces:
LodResource, TGADataProducer
Enclosing class:
MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream

public class MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource
extends Object
implements TGADataProducer, LodResource


Field Summary
private  byte[] data
           
private  int height
           
private  LodResource sourceLodResource
           
private  TGADataProducer sourceTGADataProducer
           
private  int width
           
 
Constructor Summary
MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource(LodResource sourceLodResource, int width, int height, byte[] data)
           
 
Method Summary
 int getByteHeight()
           
 int getByteWidth()
           
 byte[] getData()
           
 byte[] getDataHeader()
           
 String getName()
           
 int[] getPalette()
           
 String getResourceType()
           
 String getTextDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceLodResource

private LodResource sourceLodResource

sourceTGADataProducer

private TGADataProducer sourceTGADataProducer

width

private int width

height

private int height

data

private byte[] data
Constructor Detail

MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource

public MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream.InternalLodResource(LodResource sourceLodResource,
                                                                                                  int width,
                                                                                                  int height,
                                                                                                  byte[] data)
Method Detail

getByteWidth

public int getByteWidth()
Specified by:
getByteWidth in interface TGADataProducer
Returns:
image width in bytes

getByteHeight

public int getByteHeight()
Specified by:
getByteHeight in interface TGADataProducer
Returns:
image height in bytes

getPalette

public int[] getPalette()
                 throws IOException
Specified by:
getPalette in interface TGADataProducer
Returns:
int array of palette data
Throws:
IOException

getDataHeader

public byte[] getDataHeader()
Specified by:
getDataHeader in interface LodResource

getData

public byte[] getData()
               throws IOException
Specified by:
getData in interface LodResource
Throws:
IOException

getTextDescription

public String getTextDescription()
Specified by:
getTextDescription in interface LodResource

getResourceType

public String getResourceType()
Specified by:
getResourceType in interface LodResource

getName

public String getName()
Specified by:
getName in interface LodResource