Examples of Measure


Examples of org.apache.myfaces.tobago.layout.Measure

         }
      }
      prepareRendererAll(facesContext, component);
      if (component instanceof LayoutContainer) {
        LayoutContainer layoutContainer = (LayoutContainer) component;
        Measure width = layoutContainer.getCurrentWidth();
        Measure height = layoutContainer.getCurrentHeight();
        Measure oldWidth = layoutContainer.getWidth();
        Measure oldHeight = layoutContainer.getHeight();
        layoutContainer.setWidth(width);
        layoutContainer.setHeight(height);
        new LayoutContext(layoutContainer).layout();
        layoutContainer.setWidth(oldWidth);
        layoutContainer.setHeight(oldHeight);
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.Measure

  public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    UIToolBar toolBar = (UIToolBar) component;

    TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(context);

    Measure width = Measure.valueOf(-1);
    for (UIComponent command : toolBar.getChildren()) {
      if (command instanceof AbstractUICommandBase) {
        width = renderToolbarCommand(context, toolBar, (AbstractUICommandBase) command, writer, width);
      } else if (command instanceof UIToolBarSeparator) {
        width = renderSeparator(context, toolBar, (UIToolBarSeparator) command, writer, width);
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.Measure

    final boolean showLabelRight = UIToolBar.LABEL_RIGHT.equals(labelPosition);
    final boolean showLabel = showLabelBottom || showLabelRight;
    // two separate buttons for the command and the sub menu
    final boolean separateButtons = hasAnyCommand(command) && dropDownMenu != null;

    final Measure paddingTop = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-top");
    final Measure paddingMiddle = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-middle");
    final Measure paddingBottom = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-bottom");
    final Measure paddingLeft = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-left");
    final Measure paddingCenter = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-center");
    final Measure paddingRight = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-right");
    final Measure iconBigHeight = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-big-height");
    final Measure iconSmallHeight = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-small-height");
    final Measure iconBigWidth = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-big-width");
    final Measure iconSmallWidth = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-small-width");

    // label style
    final Style labelStyle;
    if (showLabel) {
      labelStyle = new Style();
View Full Code Here

Examples of org.apache.sis.internal.jaxb.gco.Measure

    public SecondDefiningParameter(final Ellipsoid ellipsoid, final boolean nested) {
        if (nested) {
            secondDefiningParameter = new SecondDefiningParameter(ellipsoid, false);
        } else {
            if (ellipsoid.isIvfDefinitive()) {
                measure = new Measure(ellipsoid.getInverseFlattening(), Unit.ONE);
            } else {
                measure = new Measure(ellipsoid.getSemiMinorAxis(), ellipsoid.getAxisUnit());
            }
        }
    }
View Full Code Here

Examples of org.dmg.pmml.Measure

    if( comparisonMeasure.getKind() != ComparisonMeasure.Kind.DISTANCE )
      throw new UnsupportedOperationException( "unsupported comparison kind, got: " + comparisonMeasure.getKind() );

    ClusteringSpec clusteringSpec = new ClusteringSpec( modelSchema );

    Measure measure = comparisonMeasure.getMeasure();
    if( measure instanceof Euclidean )
      clusteringSpec.setComparisonMeasure( new EuclideanMeasure() );
    else if( measure instanceof SquaredEuclidean )
      clusteringSpec.setComparisonMeasure( new SquaredEuclideanMeasure() );
    else
View Full Code Here

Examples of org.geotools.measure.Measure

                for (Iterator sItr = featuresCheck.iterator(); sItr.hasNext();) {
                    Feature f = (Feature)sItr.next();
                    if (f.getDefaultGeometry() == null) continue;
                    DistanceOp op = new DistanceOp(request.getPoint(), f.getDefaultGeometry());
                    Coordinate[] co = op.closestPoints();
                    Measure m = DefaultGeographicCRS.WGS84.distance(new double[] { co[0].x, co[0].y, }, new double[] { co[1].x, co[1].y, });
                    if (m.doubleValue() > nearestDistance) continue;
                    nearestFeature = f;
                    nearestDistance = m.doubleValue();
                    nearestBearing = calcBearing(co);
                }

                //GR: I don't know if the featuresults should be added here for later
                //encoding if it was a lock request. may be after ensuring the lock
View Full Code Here

Examples of org.olap4j.metadata.Measure

    query.getDetails().setAxis(ax);

    if (details.getMeasures().size() > 0) {
      for (ThinMeasure m : details.getMeasures()) {
        if (Type.CALCULATED.equals(m.getType())) {
          Measure measure = query.getCalculatedMeasure(m.getName());
          query.getDetails().add(measure);
        } else if (Type.EXACT.equals(m.getType())) {
          Measure measure = query.getMeasure(m.getName());
          query.getDetails().add(measure);
        }
      }
    }
  }
View Full Code Here

Examples of org.pentaho.aggdes.model.Measure

  public MeasureConverter(Schema schema) {
    this.schema = schema;
  }
 
  public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) {
    Measure measure = (Measure)object;
    writer.startNode("label");
    writer.setValue(measure.getLabel());
    writer.endNode();
    writer.startNode("table");
    writer.setValue(measure.getTable().getLabel());
    writer.endNode();
  }
View Full Code Here

Examples of org.sonar.api.measures.Measure

            + "):\n  Warnings:\n    Coverage<80\n  Errors:\n    Complexity>20\nBLOCKER issues:\n  issue message\n    componentKey:12",
        result.getMessage());
  }

  private Measure newMeasure(Metric metric, Metric.Level level, String label) {
    return new Measure(metric).setAlertStatus(level).setAlertText(label);
  }
View Full Code Here

Examples of org.sonar.wsclient.services.Measure

    List<Measure> projectMeasures = new ArrayList<Measure>();
    int len = utils.getArraySize(measuresJson);
    for (int i = 0; i < len; i++) {
      Object measureJson = utils.getArrayElement(measuresJson, i);
      if (measureJson != null) {
        Measure measure = parseMeasure(measureJson);
        projectMeasures.add(measure);
      }
    }
    return projectMeasures;
  }
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.