blob: 0b6aa00764e4bb1b136dc98c5dd44b5883c98759 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* SRTreeNode.java
*
* Created on April 12, 2007, 8:07 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.kitfox.salamander.renderer;
import com.kitfox.salamander.renderer.SRTreeNode.RenderingSurface;
import java.awt.geom.Point2D;
import java.util.List;
/**
* Nodes that provide points where markers can be placed.
*
* @author kitfox
*/
abstract public class SRMarkedNode extends SRTreeNode
{
/** Creates a new instance of SRTreeNode */
public SRMarkedNode()
{
}
abstract protected List<Point2D.Float> getMarkerPoints();
/**
* Draw content specific to this element (not including child elements)
*/
protected void renderLocal(RenderingSurface surface)
{
super.renderLocal(surface);
for (Point2D.Float pt: getMarkerPoints())
{
getMarkerPoints();
}
}
}
|