Search in sources :

Example 21 with LinkedHashMapEx

use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.

the class RecordDefinitionSqlFilter method toMap.

@Override
public MapEx toMap() {
    final MapEx map = new LinkedHashMapEx();
    addTypeToMap(map, "sqlFilter");
    map.put("query", this.query);
    return map;
}
Also used : LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx) MapEx(com.revolsys.collection.map.MapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx)

Example 22 with LinkedHashMapEx

use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.

the class TextStyle method toMap.

@Override
public MapEx toMap() {
    final MapEx map = new LinkedHashMapEx();
    for (final String name : PROPERTY_NAMES) {
        Object value = Property.get(this, name);
        if (value instanceof Color) {
            final Color color = (Color) value;
            value = WebColors.newAlpha(color, 255);
        }
        boolean defaultEqual = false;
        if (DEFAULT_VALUES.containsKey(name)) {
            final Object defaultValue = DEFAULT_VALUES.get(name);
            defaultEqual = DataType.equal(defaultValue, value);
        }
        if (!defaultEqual) {
            addToMap(map, name, value);
        }
    }
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx) Color(java.awt.Color) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx)

Example 23 with LinkedHashMapEx

use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.

the class GeometryFactory method toMap.

@Override
public MapEx toMap() {
    final MapEx map = new LinkedHashMapEx();
    addTypeToMap(map, "geometryFactory");
    map.put("srid", getCoordinateSystemId());
    map.put("axisCount", this.axisCount);
    final double scaleX = getScaleX();
    addToMap(map, "scaleX", scaleX, 0.0);
    final double scaleY = getScaleY();
    addToMap(map, "scaleY", scaleY, 0.0);
    if (this.axisCount > 2) {
        final double scaleZ = getScaleZ();
        addToMap(map, "scaleZ", scaleZ, 0.0);
    }
    return map;
}
Also used : LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx) MapEx(com.revolsys.collection.map.MapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx)

Example 24 with LinkedHashMapEx

use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.

the class LasPointCloud method toMap.

@Override
public MapEx toMap() {
    final MapEx map = new LinkedHashMapEx();
    addToMap(map, "url", this.resource.getUri());
    addToMap(map, "header", this.header);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx)

Example 25 with LinkedHashMapEx

use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.

the class LasZipHeader method toMap.

@Override
public MapEx toMap() {
    final MapEx map = new LinkedHashMapEx();
    addToMap(map, "compressor", this.compressor);
    addToMap(map, "coder", this.coder);
    addToMap(map, "version", this.version);
    addToMap(map, "versionRevision", this.versionRevision);
    addToMap(map, "options", this.options);
    addToMap(map, "chunkSize", this.chunkSize);
    addToMap(map, "numberOfSpecialEvlrs", this.numberOfSpecialEvlrs);
    addToMap(map, "offsetToSpecialEvlrs", this.offsetToSpecialEvlrs);
    addToMap(map, "numItems", this.numItems);
    addToMap(map, "types", this.types);
    addToMap(map, "sizes", this.sizes);
    addToMap(map, "versions", this.versions);
    return map;
}
Also used : LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx) MapEx(com.revolsys.collection.map.MapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx)

Aggregations

LinkedHashMapEx (com.revolsys.collection.map.LinkedHashMapEx)39 MapEx (com.revolsys.collection.map.MapEx)38 ArrayList (java.util.ArrayList)6 HashMap (java.util.HashMap)3 Map (java.util.Map)3 BoundingBox (com.revolsys.geometry.model.BoundingBox)2 UrlResource (com.revolsys.spring.resource.UrlResource)2 Component (java.awt.Component)2 LinkedHashMap (java.util.LinkedHashMap)2 List (java.util.List)2 PropertyChangeArrayList (com.revolsys.collection.PropertyChangeArrayList)1 MapSerializerMap (com.revolsys.collection.map.MapSerializerMap)1 LasPoint (com.revolsys.elevation.cloud.las.pointformat.LasPoint)1 CoordinateSystem (com.revolsys.geometry.cs.CoordinateSystem)1 ClockDirection (com.revolsys.geometry.model.ClockDirection)1 GeometryFactory (com.revolsys.geometry.model.GeometryFactory)1 PathName (com.revolsys.io.PathName)1 Resource (com.revolsys.spring.resource.Resource)1 ValueField (com.revolsys.swing.component.ValueField)1 PasswordField (com.revolsys.swing.field.PasswordField)1