Revision 10995 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/styles/SimpleLabelStyle.java

View differences:

SimpleLabelStyle.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.3  2007-03-29 16:02:01  jaume
46
* Revision 1.4  2007-04-02 00:10:04  jaume
47 47
* *** empty log message ***
48 48
*
49
* Revision 1.3  2007/03/29 16:02:01  jaume
50
* *** empty log message ***
51
*
49 52
* Revision 1.2  2007/03/09 11:20:56  jaume
50 53
* Advanced symbology (start committing)
51 54
*
......
73 76
/**
74 77
 * @author   jaume dominguez faus - jaume.dominguez@iver.es
75 78
 */
76
public class SimpleLabelStyle extends AbstractStyle implements ILabelStyle{
77
	private PictureMarkerSymbol backGround;
79
public class SimpleLabelStyle extends SVGStyle implements ILabelStyle{
78 80
	private String text;
79 81

  
80 82
	public int getFieldCount() {
......
98 100
	public Point2D[] getTextPositions(AffineTransform at) {
99 101
		// TODO Implement it
100 102
		throw new Error("Not yet implemented!");
101

  
102 103
	}
103 104

  
104

  
105 105
	public boolean isSuitableFor(ISymbol symbol) {
106 106
		return true;
107
	}
107
	}	
108 108

  
109
	public void drawInsideRectangle(Graphics2D g, Rectangle r) {
110
		// TODO Implement it
111
		throw new Error("Not yet implemented!");
112

  
113
	}
114

  
115 109
	public String getClassName() {
116
		// TODO Implement it
117
		throw new Error("Not yet implemented!");
118

  
110
		return getClass().getName();
119 111
	}
120 112

  
121 113
	public XMLEntity getXMLEntity() {
122
		// TODO Implement it
123
		throw new Error("Not yet implemented!");
124

  
114
		XMLEntity xml = super.getXMLEntity();
115
		xml.putProperty("className", getClassName());
116
		xml.putProperty("desc", getDescription());
117
		xml.putProperty("text", text);
118
		return xml;
125 119
	}
126 120

  
127 121
	public void setXMLEntity(XMLEntity xml) {
128
		// TODO Implement it
129
		throw new Error("Not yet implemented!");
130

  
122
		super.setXMLEntity(xml);
123
		setDescription(xml.getStringProperty("desc"));
124
		text = xml.getStringProperty("text");
131 125
	}
132 126

  
133 127
	public void drawBackground(Graphics2D g, Shape shp) {
134
		// no background
128
//		drawInsideRectangle(g, )
135 129
	}
136 130
}

Also available in: Unified diff