Androidí prezentace obrazu.
More...
|
| APDImagePresentation (int layerThumbWidth, int layerThumbHeight, int maskThumbWidth, int maskThumbHeight) |
| Defaultní konstruktor, udává rozměry náhledů.
|
|
void | setOnImagePresentationChangedListener (OnImagePresentationChangedListener listener, Activity activity) |
| Nastaví posluchače události a aktivitu, na jejímž UI vlákně má být posluchač upozorněn.
|
|
PDBitmap | createLayerThumb () |
| Vytvoří platformě závislou bitmapu pro náhled vrstvy.
|
|
PDBitmap | createMaskThumb () |
| Vytvoří platformě závislou bitmapu pro náhled masky.
|
|
void | hasChanged () |
| Slouží k oznámení klientovy, že se něco na prezentaci změnilo.
|
|
void | addLayerInfo (LayerPDInfo info) |
| Přidá informace o vrstvě na konec seznamu vrstev. Vrstva bude úplně nahoře.
|
|
void | addLayerInfo (LayerPDInfo info, int overId) |
| Přidá informace o vrstvě tak, že budou těsně nad informacemi o vrstvě s overId.
|
|
LayerPDInfo | getLayerInfo (int id) throws LayerNotFoundException |
| Vrací informace o vrstvě s daným ID.
|
|
int | getLayersCount () |
| Vrací počet vrstev v obraze.
|
|
void | removeLayer (int id) throws LayerNotFoundException |
| Odebere vrstvu s daným id.
|
|
void | moveLayer (int id, int beforeId) throws LayerNotFoundException |
| -1 znamená přesun úplně dospod
|
|
ArrayList< LayerPDInfo > | getLayers () |
| Vrátí pole, ve kterém jsou uložené jednotlivé vrstvy.
|
|
Androidí prezentace obrazu.
Definition at line 12 of file APDImagePresentation.java.
mhr.appandroid.adapters.APDImagePresentation.APDImagePresentation |
( |
int |
layerThumbWidth, |
|
|
int |
layerThumbHeight, |
|
|
int |
maskThumbWidth, |
|
|
int |
maskThumbHeight |
|
) |
| |
|
inline |
Defaultní konstruktor, udává rozměry náhledů.
- Parameters
-
layerThumbWidth | |
layerThumbHeight | |
maskThumbWidth | |
maskThumbHeight | |
Definition at line 49 of file APDImagePresentation.java.
void mhr.appcore.interfaces.PDImageDataPresentation.addLayerInfo |
( |
LayerPDInfo |
info | ) |
|
|
inlineinherited |
void mhr.appcore.interfaces.PDImageDataPresentation.addLayerInfo |
( |
LayerPDInfo |
info, |
|
|
int |
overId |
|
) |
| |
|
inlineinherited |
Přidá informace o vrstvě tak, že budou těsně nad informacemi o vrstvě s overId.
- Parameters
-
Definition at line 43 of file PDImageDataPresentation.java.
PDBitmap mhr.appandroid.adapters.APDImagePresentation.createLayerThumb |
( |
| ) |
|
|
inlinevirtual |
PDBitmap mhr.appandroid.adapters.APDImagePresentation.createMaskThumb |
( |
| ) |
|
|
inlinevirtual |
LayerPDInfo mhr.appcore.interfaces.PDImageDataPresentation.getLayerInfo |
( |
int |
id | ) |
throws LayerNotFoundException |
|
inlineinherited |
Vrací informace o vrstvě s daným ID.
- Parameters
-
- Returns
- Exceptions
-
Definition at line 70 of file PDImageDataPresentation.java.
{
for (LayerPDInfo l :
layers) {
if (l.id == id) {
return l;
}
}
throw new LayerNotFoundException("Layer info not found");
}
int mhr.appcore.interfaces.PDImageDataPresentation.getLayerPosition |
( |
int |
id | ) |
|
|
inlineprotectedinherited |
ArrayList<LayerPDInfo> mhr.appcore.interfaces.PDImageDataPresentation.getLayers |
( |
| ) |
|
|
inlineinherited |
int mhr.appcore.interfaces.PDImageDataPresentation.getLayersCount |
( |
| ) |
|
|
inlineinherited |
void mhr.appandroid.adapters.APDImagePresentation.hasChanged |
( |
| ) |
|
|
inlinevirtual |
void mhr.appcore.interfaces.PDImageDataPresentation.moveLayer |
( |
int |
id, |
|
|
int |
beforeId |
|
) |
| throws LayerNotFoundException |
|
inlineinherited |
-1 znamená přesun úplně dospod
Přesune vrstvu s daným id před vrstvu s beforeId.
- Parameters
-
- Exceptions
-
Definition at line 103 of file PDImageDataPresentation.java.
{
int oldIndex =
layers.indexOf(l);
if (oldIndex < newIndex) {
newIndex--;
}
}
void mhr.appcore.interfaces.PDImageDataPresentation.removeLayer |
( |
int |
id | ) |
throws LayerNotFoundException |
|
inlineinherited |
Nastaví posluchače události a aktivitu, na jejímž UI vlákně má být posluchač upozorněn.
- Parameters
-
Definition at line 64 of file APDImagePresentation.java.
Activity mhr.appandroid.adapters.APDImagePresentation.activity = null |
|
protected |
ArrayList<LayerPDInfo> mhr.appcore.interfaces.PDImageDataPresentation.layers = new ArrayList<LayerPDInfo>() |
|
protectedinherited |
int mhr.appandroid.adapters.APDImagePresentation.layerThumbHeight |
|
protected |
int mhr.appandroid.adapters.APDImagePresentation.layerThumbWidth |
|
protected |
int mhr.appandroid.adapters.APDImagePresentation.maskThumbHeight |
|
protected |
int mhr.appandroid.adapters.APDImagePresentation.maskThumbWidth |
|
protected |
PDBitmap mhr.appcore.interfaces.PDImageDataPresentation.masterMask |
|
inherited |
boolean mhr.appcore.interfaces.PDImageDataPresentation.masterMaskActive |
|
inherited |
int mhr.appcore.interfaces.PDImageDataPresentation.selectedLayerId |
|
inherited |
ImageSelectedState mhr.appcore.interfaces.PDImageDataPresentation.selectedState |
|
inherited |
The documentation for this class was generated from the following file: