Last change
on this file since 627 was 627, checked in by framm, 16 years ago |
|
-
Property svn:eol-style
set to
native
|
File size:
571 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.gui.mappaint;
|
---|
2 | import javax.swing.ImageIcon;
|
---|
3 |
|
---|
4 | public class IconElemStyle extends ElemStyle
|
---|
5 | {
|
---|
6 | ImageIcon icon;
|
---|
7 | boolean annotate;
|
---|
8 |
|
---|
9 | public IconElemStyle (ImageIcon icon, boolean annotate, long maxScale, long minScale) {
|
---|
10 | this.icon=icon;
|
---|
11 | this.annotate=annotate;
|
---|
12 | this.maxScale = maxScale;
|
---|
13 | this.minScale = minScale;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public ImageIcon getIcon() {
|
---|
17 | return icon;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public boolean doAnnotate() {
|
---|
21 | return annotate;
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override public String toString()
|
---|
25 | {
|
---|
26 | return "IconElemStyle: icon= " + icon + " annotate=" + annotate;
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.