Examples of PaletteInfo


Examples of bdsup2sub.supstream.PaletteInfo

        subPictureBD.setWasDecoded(false);
        subPictureBD.setExcluded(false);
        subPictureBD.setErasePatch(new ArrayList<ErasePatch>());

        List<PaletteInfo> paletteInfos = subPictureBD.getPalettes().get(0);
        paletteInfos.add(new PaletteInfo(70, 16));

        List<ImageObject> imageObjectList = subPictureBD.getImageObjectList();
        ImageObject imageObject = new ImageObject();
        imageObject.setPaletteID(0);
        imageObject.setBufferSize(28390);
View Full Code Here

Examples of bdsup2sub.supstream.PaletteInfo

        if (paletteID > 7) {
            message.append("Illegal palette id at offset ").append(ToolBox.toHexLeftZeroPadded(index, 8));
            return -1;
        }

        PaletteInfo paletteInfo = new PaletteInfo(index + 2, (pcsSegment.size - 2) / 5);
        subPictureBD.getPalettes().get(paletteID).add(paletteInfo);
        message.append("ID: ").append(paletteID).append(", update: ").append(paletteUpdate).append(", ").append(paletteInfo.getPaletteSize()).append(" entries");
        return paletteInfo.getPaletteSize();
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

    //use palette infos if available
    Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model, "paletteInfos"); //$NON-NLS-1$
    if (trait != null){
      PaletteInfos tags = (PaletteInfos)trait.getValue();
      for (Iterator it=tags.getInfos().iterator();it.hasNext();){
        PaletteInfo tag = (PaletteInfo)it.next();
        if (tag.getId().equalsIgnoreCase(tagName)){         
          IMetaDataSourceModelProvider sourceProvider = ((Trait)tag.eContainer().eContainer()).getSourceModelProvider();
          if (small)
            icon = getImageDescriptorFromString(sourceProvider, tag.getSmallIcon(), DEFAULT_SMALL_ICON);
          else
            icon = getImageDescriptorFromString(sourceProvider, tag.getLargeIcon(), DEFAULT_LARGE_ICON);
         
          break;
        }
      } 
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

      final Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model,
          "paletteInfos"); //$NON-NLS-1$
      if (trait != null) {
        final PaletteInfos tags = (PaletteInfos) trait.getValue();
        for (final Iterator it = tags.getInfos().iterator(); it.hasNext();) {
          final PaletteInfo tag = (PaletteInfo) it.next();
          createTagEntry(category, tag, doc);
        }
      } else {
        for (final Iterator it = model.getChildEntities().iterator(); it
            .hasNext();) {
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

      final Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model,
          "paletteInfos"); //$NON-NLS-1$
      if (trait != null) {
        final PaletteInfos tags = (PaletteInfos) trait.getValue();
        for (Iterator it = tags.getInfos().iterator(); it.hasNext();) {
          final PaletteInfo tag = (PaletteInfo) it.next();
          createTagEntry(category, tag, ns);
        }
      } else {
        for (final Iterator it = model.getChildEntities().iterator(); it
            .hasNext();) {
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

            Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model,
                    PaletteInfos.TRAIT_ID);
            if (trait != null)
            {
                final PaletteInfos pis = (PaletteInfos) trait.getValue();
                final PaletteInfo pi = pis.findPaletteInfoById(id);
                if (pi != null)
                {
                    return pi.getTagCreation();
                }
            }
            // tag-creation trait on entity directly?
            final Entity tag = getTagEntity(metaDataContext, tagName);
            if (tag != null)
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public PaletteInfo findPaletteInfoById(String id) {
    for (Iterator it=getInfos().iterator();it.hasNext();){
      PaletteInfo info = (PaletteInfo)it.next();
      if (id.equals(info.getId()))
        return info;
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

            Trait trait = query.findTrait(model,
                    PaletteInfos.TRAIT_ID);
            if (trait != null)
            {
                final PaletteInfos pis = (PaletteInfos) trait.getValue();
                final PaletteInfo pi = pis.findPaletteInfoById(id);
                if (pi != null)
                {
                    return pi.getTagCreation();
                }
            }
            // tag-creation trait on entity directly?
            final Entity tag = query.findTagEntity(model, tagName);
            if (tag != null)
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

    //use palette infos if available
    Trait trait = query.findTrait(model, "paletteInfos"); //$NON-NLS-1$
    if (trait != null){
      PaletteInfos tags = (PaletteInfos)trait.getValue();
      for (Iterator it=tags.getInfos().iterator();it.hasNext();){
        PaletteInfo tag = (PaletteInfo)it.next();
        if (tag.getId().equalsIgnoreCase(tagName)){         
          IMetaDataSourceModelProvider sourceProvider = ((Trait)tag.eContainer().eContainer()).getSourceModelProvider();
          if (small)
            icon = getImageDescriptorFromString(sourceProvider, tag.getSmallIcon(), DEFAULT_SMALL_ICON);
          else
            icon = getImageDescriptorFromString(sourceProvider, tag.getLargeIcon(), DEFAULT_LARGE_ICON);
         
          break;
        }
      } 
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo

      final Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model,
          "paletteInfos"); //$NON-NLS-1$
      if (trait != null) {
        final PaletteInfos tags = (PaletteInfos) trait.getValue();
        for (final Iterator it = tags.getInfos().iterator(); it.hasNext();) {
          final PaletteInfo tag = (PaletteInfo) it.next();
          createTagEntry(category, tag, doc);
        }
      } else {
        for (final Iterator it = model.getChildEntities().iterator(); it
            .hasNext();) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.