001: /*---------------- FILE HEADER ------------------------------------------
002:
003: This file is part of deegree.
004: Copyright (C) 2001 by:
005: EXSE, Department of Geography, University of Bonn
006: http://www.giub.uni-bonn.de/exse/
007: lat/lon Fitzke/Fretter/Poth GbR
008: http://www.lat-lon.de
009:
010: This library is free software; you can redistribute it and/or
011: modify it under the terms of the GNU Lesser General Public
012: License as published by the Free Software Foundation; either
013: version 2.1 of the License, or (at your option) any later version.
014:
015: This library is distributed in the hope that it will be useful,
016: but WITHOUT ANY WARRANTY; without even the implied warranty of
017: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
018: Lesser General Public License for more details.
019:
020: You should have received a copy of the GNU Lesser General Public
021: License along with this library; if not, write to the Free Software
022: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
023:
024: Contact:
025:
026: Andreas Poth
027: lat/lon Fitzke/Fretter/Poth GbR
028: Meckenheimer Allee 176
029: 53115 Bonn
030: Germany
031: E-Mail: poth@lat-lon.de
032:
033: Jens Fitzke
034: Department of Geography
035: University of Bonn
036: Meckenheimer Allee 166
037: 53115 Bonn
038: Germany
039: E-Mail: jens.fitzke@uni-bonn.de
040:
041:
042: ---------------------------------------------------------------------------*/
043: package de.latlon.deejump.plugin.style;
044:
045: import java.awt.Color;
046:
047: import com.vividsolutions.jump.workbench.ui.renderer.style.BasicStyle;
048: import com.vividsolutions.jump.workbench.ui.renderer.style.VertexStyle;
049:
050: /**
051: * ...
052: *
053: * @author <a href="mailto:taddei@lat-lon.de">Ugo Taddei</a>
054: *
055: */
056: public class PointSymbolizerBasicStyle extends BasicStyle {
057:
058: /**
059: *
060: */
061: public PointSymbolizerBasicStyle() {
062: super ();
063: // TODO Auto-generated constructor stub
064: }
065:
066: private VertexStyle vertexsStyle;
067:
068: public PointSymbolizerBasicStyle(BasicStyle bs,
069: VertexStyle vertexStyle) {
070: super (bs.getFillColor());
071: setFillPattern(bs.getFillPattern());
072: setLineColor(bs.getLineColor());
073: setAlpha(bs.getAlpha());
074: setRenderingFill(bs.isRenderingFill());
075: setRenderingFillPattern(bs.isRenderingFillPattern());
076: setRenderingLine(bs.isRenderingLine());
077: setLineWidth(bs.getLineWidth());
078: setRenderingLinePattern(bs.isRenderingLinePattern());
079: setLinePattern(bs.getLinePattern());
080: this .vertexsStyle = vertexStyle;
081: this .setEnabled(bs.isEnabled());
082: }
083:
084: public VertexStyle getVertexsStyle() {
085: return vertexsStyle;
086: }
087:
088: public void setEnabled(boolean enable) {
089: this .vertexsStyle.setEnabled(enable);
090: super .setEnabled(enable);
091: }
092:
093: public boolean isEnabled() {
094: return super .isEnabled();
095: }
096:
097: public boolean isRenderingFill() {
098: return super .isRenderingFill();
099: }
100:
101: public Color getFillColor() {
102: return super .getFillColor();
103: }
104:
105: public boolean isRenderingLine() {
106: return super .isRenderingLine();
107: }
108:
109: public int getLineWidth() {
110: return super .getLineWidth();
111: }
112:
113: public Color getLineColor() {
114: return super .getLineColor();
115: }
116:
117: public int getAlpha() {
118: return super .getAlpha();
119: }
120:
121: public VertexStyle getVertexStyle() {
122: return this .vertexsStyle;
123: }
124:
125: public VertexStyle setVertexStyle(VertexStyle vertexsStyle) {
126: return this.vertexsStyle = vertexsStyle;
127: }
128: }
|