Examples of pad()


Examples of com.badlogic.gdx.scenes.scene2d.ui.Table.pad()

          playPauseButton.setText(isUpdate ? "Pause" : "Play");
        }
      });
      Table table = new Table(skin);
      table.setFillParent(true);
      table.pad(5);
      table.add(fpsLabel).expandX().left().row();
      table.add(pointCountLabel).expandX().left().row();
      table.add(billboardCountLabel).expandX().left().row();
      table.add(modelInstanceCountLabel).expandX().left().row();
      table.add(maxLabel).expandX().left().row();
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.Table.pad()

      {
        Table table = new Table(skin);
        table.setFillParent(true);
        table.setTouchable(Touchable.disabled);
        stage.addActor(table);
        table.pad(10).bottom().right();
        table.add(toasts);
        table.debug();
      }

      // Events.
View Full Code Here

Examples of gnu.crypto.pad.IPad.pad()

      IPad padding = PadFactory.getInstance("PKCS7");
      padding.init(16);
      IMode mode = ModeFactory.getInstance("CBC", "AES", 16);
      Map attributes = new HashMap();
      byte[] pt1 = source;
      byte[] pad = padding.pad(pt1, 0, pt1.length);
      byte[] pt = null;
      // 判断是否要补空
      if (pad.length == 16) {
        pt = new byte[pt1.length];
        System.arraycopy(pt1, 0, pt, 0, pt1.length);
View Full Code Here

Examples of gnu.javax.crypto.pad.IPad.pad()

            pad = PadFactory.getInstance(padName);
            pad.reset();
            pad.init(16);

            byte[] padding = pad.pad(pt, 0, pt.length);
            System.arraycopy(padding, 0, ppt, 42, padding.length);
            attrib.put(IMode.STATE, new Integer(IMode.ENCRYPTION));
            gnu.reset();
            gnu.init(attrib);
            for (int i = 0; i < ppt.length; i += 16)
View Full Code Here

Examples of org.apache.phoenix.schema.PDataType.pad()

                    output.write(QueryConstants.SEPARATOR_BYTE);
                }
                type = pkColumns.get(i).getDataType();
               
                //for fixed width data types like CHAR and BINARY, we need to pad values to be of max length.
                Object paddedObj = type.pad(values[i - offset], pkColumns.get(i).getMaxLength());
                byte[] value = type.toBytes(paddedObj);
                output.write(value);
            }
            return output.toByteArray();
        } finally {
View Full Code Here

Examples of org.apache.phoenix.schema.PDataType.pad()

                PDataType type = getColumn().getDataType();
                if (type.isFixedWidth()) {
                    Integer length = getColumn().getMaxLength();
                    if (length != null) {
                        // Go through type to pad as the fill character depends on the type.
                        type.pad(ptr, length);
                    }
                }
                byte[] key = ByteUtil.copyKeyBytesIfNecessary(ptr);
                return ByteUtil.getKeyRange(key, op, type);
            }
View Full Code Here

Examples of org.apache.phoenix.schema.PDataType.pad()

                PDataType type = getColumn().getDataType();
                if (type.isFixedWidth()) {
                    Integer length = getColumn().getMaxLength();
                    if (length != null) {
                        // Go through type to pad as the fill character depends on the type.
                        type.pad(ptr, length);
                    }
                }
                byte[] key = ByteUtil.copyKeyBytesIfNecessary(ptr);
                return ByteUtil.getKeyRange(key, op, type);
            }
View Full Code Here

Examples of org.apache.phoenix.schema.PDataType.pad()

                    output.write(QueryConstants.SEPARATOR_BYTE);
                }
                type = pkColumns.get(i).getDataType();
               
                //for fixed width data types like CHAR and BINARY, we need to pad values to be of max length.
                Object paddedObj = type.pad(values[i - offset], pkColumns.get(i).getMaxLength());
                byte[] value = type.toBytes(paddedObj);
                output.write(value);
            }
            return output.toByteArray();
        } finally {
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ.pad()

 
  @Override
  public void setKnownSites(Collection<VectorXYZ> sites) {
   
    AxisAlignedBoundingBoxXZ boundingBox = new AxisAlignedBoundingBoxXZ(sites);
    boundingBox = boundingBox.pad(100);
   
    triangulation = new DelaunayTriangulation(boundingBox);
   
    int i = 0; //TODO remove
    int total = sites.size();
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ.pad()

 
  @Override
  public void setKnownSites(Collection<VectorXYZ> sites) {
   
    AxisAlignedBoundingBoxXZ boundingBox = new AxisAlignedBoundingBoxXZ(sites);
    boundingBox = boundingBox.pad(100);
   
    triangulation = new DelaunayTriangulation(boundingBox);
   
    for (VectorXYZ site : sites) {
      triangulation.insert(site);
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.