Package java.util

Examples of java.util.HashMap.keySet()


          Plot plot=(Plot)it.next();
          HashMap oldValues=plot.getAxesProperties(null, Plot.PX);
          if(plot.secondaryX!=null){
            plot.getAxesProperties(oldValues, Plot.SX);
          }
          Iterator vit=oldValues.keySet().iterator();
          while(vit.hasNext()){
            String k=(String)vit.next();
            plot.setPropertyValue(k,plot1.getPropertyValue(k));
          }
          PlotCompoundEdit ce2=plot.new PlotCompoundEdit(oldValues);
View Full Code Here


            oldValues.put("FILL_COLOR", rectangle.getFillColor());

            addDataSource((DataSource)o);

            // Notify changes
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

            oldValues.put("TEXT", getText());
           
            setSource((DataSource) o);
           
            // Notify changes
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

            fontName = action.substring(resources.getString("Font").length() + 1);
            updateFont();
            Rectangle bounds = getBounds();
            fitBounds();
            // Notify changes
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

            fontSize = new Integer(action.substring(resources.getString("Body").length() + 1)).intValue();
            updateFont();
            Rectangle bounds = getBounds();
            fitBounds();
            // Notify changes
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

            HashMap oldValues = new HashMap();
            oldValues.put("WIDTH", getPropertyValue("WIDTH"));
            oldValues.put("HEIGHT", getPropertyValue("HEIGHT"));
            Rectangle bounds = getBounds();
            fitBounds();
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

            transform.rotEnabled = true;
            transform.rotValue = ((transform.rotValue * transform.angleUnitScale) + Math.PI / 2)
            / transform.angleUnitScale;
            setPropertyValue("TRANSFORM", transform);
            // Notify changes
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

            transform.rotEnabled = true;
            transform.rotValue = ((transform.rotValue * transform.angleUnitScale) - Math.PI / 2)
            / transform.angleUnitScale;
            setPropertyValue("TRANSFORM", transform);
            // Notify changes
            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
View Full Code Here

          sSQL = "INSERT INTO "+DB.k_bugs_changelog+" ("+DB.gu_bug+","+DB.pg_bug+","+DB.nm_column+","+DB.gu_writer+","+DB.tx_oldvalue+") VALUES (?,?,?,?,?)";
          if (DebugFile.trace) DebugFile.writeln("PreparedStatement.prepareStatement("+sSQL+")");
          PreparedStatement oWriteLog = oConn.prepareStatement(sSQL);
          oWriteLog.setString(1, getString(DB.gu_bug));
          oWriteLog.setInt   (2, getInt(DB.pg_bug));
          Iterator oIter = oLog.keySet().iterator();
          while (oIter.hasNext()) {
            String sColumnName = (String) oIter.next();
            if (!sColumnName.equalsIgnoreCase(DB.dt_modified)) {
              oWriteLog.setString(3, sColumnName);
              oWriteLog.setString(4, getStringNull(DB.gu_writer,null));
View Full Code Here

        if (!unprocessedMappings.isEmpty())
        {
            throw new MappingsException(
                "Logical mappings cannot be initialized due to invalid inheritance: " +
                    unprocessedMappings.keySet());
        }

        logicalMappings.putAll(processedMappings);
    }
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.