Package org.geoserver.wms

Examples of org.geoserver.wms.WatermarkInfoImpl


        WMSInfoImpl wms = new WMSInfoImpl();
        wms.setName("wms");
        wms.setId("wms");
        wms.setTitle("Default WMS");
        wms.setEnabled(true);
        WatermarkInfo wm = new WatermarkInfoImpl();
        wm.setEnabled(false);
        wm.setPosition(WatermarkInfo.Position.BOT_RIGHT);
        wms.setWatermark(wm);
        wms.setGeoServer(config);
        config.add(wms);
    }
View Full Code Here


        WMSInfoImpl wms = new WMSInfoImpl();
        wms.setName("wms");
        wms.setId("wms");
        wms.setTitle("Test WMS");
        wms.setEnabled(true);
        WatermarkInfo wm = new WatermarkInfoImpl();
        wm.setEnabled(false);
        wm.setPosition(WatermarkInfo.Position.BOT_RIGHT);
        wms.setWatermark(wm);
        wms.setGeoServer(serviceCatalog);

        this.serviceCatalog.add(wms);
View Full Code Here

        isnull |= rs.wasNull();

        if(isnull)
            return null;
        else {
            WatermarkInfoImpl watermark = new WatermarkInfoImpl();
            watermark.setEnabled(enabled!=0);
            watermark.setPosition(Position.get(position));
            watermark.setTransparency(transpar);
            watermark.setURL(url);
            return watermark;
        }
    }
View Full Code Here

    }

    public void nullSafeSet(PreparedStatement st, Object value, int index)
            throws HibernateException, SQLException {

        WatermarkInfoImpl watermark = (WatermarkInfoImpl) value;
        if (watermark == null) {
            st.setNull(index, Types.INTEGER);
            st.setNull(index + 1, Types.INTEGER);
            st.setNull(index + 2, Types.INTEGER);
            st.setNull(index + 3, Types.VARCHAR);
        } else {
            st.setInt(index, watermark.isEnabled()?1:0);
            st.setInt(index + 1, watermark.getPosition().getCode());
            st.setInt(index + 2, watermark.getTransparency());
            st.setString(index + 3, watermark.getURL());
        }
    }
View Full Code Here

        isnull |= rs.wasNull();

        if(isnull)
            return null;
        else {
            WatermarkInfoImpl watermark = new WatermarkInfoImpl();
            watermark.setEnabled(enabled!=0);
            watermark.setPosition(Position.get(position));
            watermark.setTransparency(transpar);
            watermark.setURL(url);
            return watermark;
        }
    }
View Full Code Here

    }

    public void nullSafeSet(PreparedStatement st, Object value, int index)
            throws HibernateException, SQLException {

        WatermarkInfoImpl watermark = (WatermarkInfoImpl) value;
        if (watermark == null) {
            st.setNull(index, Types.INTEGER);
            st.setNull(index + 1, Types.INTEGER);
            st.setNull(index + 2, Types.INTEGER);
            st.setNull(index + 3, Types.VARCHAR);
        } else {
            st.setInt(index, watermark.isEnabled()?1:0);
            st.setInt(index + 1, watermark.getPosition().getCode());
            st.setInt(index + 2, watermark.getTransparency());
            st.setString(index + 3, watermark.getURL());
        }
    }
View Full Code Here

        isnull |= rs.wasNull();

        if(isnull)
            return null;
        else {
            WatermarkInfoImpl watermark = new WatermarkInfoImpl();
            watermark.setEnabled(enabled!=0);
            watermark.setPosition(Position.get(position));
            watermark.setTransparency(transpar);
            watermark.setURL(url);
            return watermark;
        }
    }
View Full Code Here

    }

    public void nullSafeSet(PreparedStatement st, Object value, int index)
            throws HibernateException, SQLException {

        WatermarkInfoImpl watermark = (WatermarkInfoImpl) value;
        if (watermark == null) {
            st.setNull(index, Types.INTEGER);
            st.setNull(index + 1, Types.INTEGER);
            st.setNull(index + 2, Types.INTEGER);
            st.setNull(index + 3, Types.VARCHAR);
        } else {
            st.setInt(index, watermark.isEnabled()?1:0);
            st.setInt(index + 1, watermark.getPosition().getCode());
            st.setInt(index + 2, watermark.getTransparency());
            st.setString(index + 3, watermark.getURL());
        }
    }
View Full Code Here

TOP

Related Classes of org.geoserver.wms.WatermarkInfoImpl

Copyright © 2018 www.massapicom. 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.