Class GoogleIconDescriptor
java.lang.Object
org.eclipse.jface.resource.DeviceResourceDescriptor
org.eclipse.jface.resource.ImageDescriptor
org.eclipse.nebula.widgets.geomap.jface.GoogleIconDescriptor
public class GoogleIconDescriptor
extends org.eclipse.jface.resource.ImageDescriptor
ImageDescriptor that downloads the image data from
https://chart.googleapis.com/ Typically used by a LabelProvider with an
ImageRegistry to provide map icons.
- See Also:
LabelProvider
,ImageRegistry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoogleIconDescriptor.Options
Options for the GoogleIconDescriptor -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
frame_style_bb
static java.lang.String
frame_style_bbbr
static java.lang.String
frame_style_bbT
static java.lang.String
frame_style_bbtl
static java.lang.String
frame_style_bbtr
static java.lang.String
frame_style_edge_bc
static java.lang.String
frame_style_edge_bl
static java.lang.String
frame_style_edge_br
static java.lang.String
frame_style_edge_lb
static java.lang.String
frame_style_edge_lc
static java.lang.String
frame_style_edge_lt
static java.lang.String
frame_style_edge_rb
static java.lang.String
frame_style_edge_rc
static java.lang.String
frame_style_edge_rt
static java.lang.String
frame_style_edge_tc
static java.lang.String
frame_style_edge_tl
static java.lang.String
frame_style_edge_tr
static java.lang.String
icon_bubble_icon_text_small
static java.lang.String
icon_bubble_text_small
static java.lang.String
icon_map_pin_letter
static java.lang.String
icon_style_pin
static java.lang.String
icon_style_pin_sleft
static java.lang.String
icon_style_pin_sright
static java.lang.String
icon_style_pin_star
-
Constructor Summary
Constructors Constructor Description GoogleIconDescriptor(GoogleIconDescriptor.Options options)
Initializes this GoogleIconDescriptor based on the provided options -
Method Summary
Modifier and Type Method Description org.eclipse.swt.graphics.ImageData
getImageData()
java.lang.String
getUrlString()
Gets the URL used to fetch the map iconstatic GoogleIconDescriptor
letterPin(char c, boolean hasShadow, org.eclipse.swt.graphics.RGB fillColor, org.eclipse.swt.graphics.RGB textColor)
Helper method for creating a letter map iconstatic GoogleIconDescriptor
textBubble(java.lang.String s, boolean hasShadow, org.eclipse.swt.graphics.RGB fillColor, org.eclipse.swt.graphics.RGB textColor)
Helper method for creating a text bubble map iconjava.lang.String
toString()
Methods inherited from class org.eclipse.jface.resource.ImageDescriptor
createFromFile, createFromImage, createFromImage, createFromImageData, createFromImageDataProvider, createFromURL, createFromURLSupplier, createImage, createImage, createImage, createImage, createResource, createWithFlags, destroyResource, getImageData, getMissingImageDescriptor, imageDescriptorFromURI
-
Field Details
-
icon_map_pin_letter
public static final java.lang.String icon_map_pin_letter- See Also:
- Constant Field Values
-
icon_bubble_text_small
public static final java.lang.String icon_bubble_text_small- See Also:
- Constant Field Values
-
icon_bubble_icon_text_small
public static final java.lang.String icon_bubble_icon_text_small- See Also:
- Constant Field Values
-
icon_style_pin
public static final java.lang.String icon_style_pin- See Also:
- Constant Field Values
-
icon_style_pin_star
public static final java.lang.String icon_style_pin_star- See Also:
- Constant Field Values
-
icon_style_pin_sleft
public static final java.lang.String icon_style_pin_sleft- See Also:
- Constant Field Values
-
icon_style_pin_sright
public static final java.lang.String icon_style_pin_sright- See Also:
- Constant Field Values
-
frame_style_bb
public static final java.lang.String frame_style_bb- See Also:
- Constant Field Values
-
frame_style_bbtl
public static final java.lang.String frame_style_bbtl- See Also:
- Constant Field Values
-
frame_style_bbtr
public static final java.lang.String frame_style_bbtr- See Also:
- Constant Field Values
-
frame_style_bbbr
public static final java.lang.String frame_style_bbbr- See Also:
- Constant Field Values
-
frame_style_bbT
public static final java.lang.String frame_style_bbT- See Also:
- Constant Field Values
-
frame_style_edge_bl
public static final java.lang.String frame_style_edge_bl- See Also:
- Constant Field Values
-
frame_style_edge_bc
public static final java.lang.String frame_style_edge_bc- See Also:
- Constant Field Values
-
frame_style_edge_br
public static final java.lang.String frame_style_edge_br- See Also:
- Constant Field Values
-
frame_style_edge_tl
public static final java.lang.String frame_style_edge_tl- See Also:
- Constant Field Values
-
frame_style_edge_tc
public static final java.lang.String frame_style_edge_tc- See Also:
- Constant Field Values
-
frame_style_edge_tr
public static final java.lang.String frame_style_edge_tr- See Also:
- Constant Field Values
-
frame_style_edge_lt
public static final java.lang.String frame_style_edge_lt- See Also:
- Constant Field Values
-
frame_style_edge_lc
public static final java.lang.String frame_style_edge_lc- See Also:
- Constant Field Values
-
frame_style_edge_lb
public static final java.lang.String frame_style_edge_lb- See Also:
- Constant Field Values
-
frame_style_edge_rt
public static final java.lang.String frame_style_edge_rt- See Also:
- Constant Field Values
-
frame_style_edge_rc
public static final java.lang.String frame_style_edge_rc- See Also:
- Constant Field Values
-
frame_style_edge_rb
public static final java.lang.String frame_style_edge_rb- See Also:
- Constant Field Values
-
-
Constructor Details
-
GoogleIconDescriptor
Initializes this GoogleIconDescriptor based on the provided options- Parameters:
options
-
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getUrlString
public java.lang.String getUrlString()Gets the URL used to fetch the map icon- Returns:
- the URL used to fetch the map icon
-
getImageData
public org.eclipse.swt.graphics.ImageData getImageData()- Overrides:
getImageData
in classorg.eclipse.jface.resource.ImageDescriptor
-
letterPin
public static GoogleIconDescriptor letterPin(char c, boolean hasShadow, org.eclipse.swt.graphics.RGB fillColor, org.eclipse.swt.graphics.RGB textColor)Helper method for creating a letter map icon- Parameters:
c
- the letterhasShadow
- if it as a shaddowfillColor
- the fill colortextColor
- the text color- Returns:
- the corresponding descriptor
-
textBubble
public static GoogleIconDescriptor textBubble(java.lang.String s, boolean hasShadow, org.eclipse.swt.graphics.RGB fillColor, org.eclipse.swt.graphics.RGB textColor)Helper method for creating a text bubble map icon- Parameters:
s
- the texthasShadow
- if it as a shaddowfillColor
- the fill colortextColor
- the text color- Returns:
- the corresponding descriptor
-