public class GoogleIconDescriptor
extends org.eclipse.jface.resource.ImageDescriptor
LabelProvider
,
ImageRegistry
Modifier and Type | Class and Description |
---|---|
static class |
GoogleIconDescriptor.Options
Options for the GoogleIconDescriptor
|
Modifier and Type | Field and 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 and Description |
---|
GoogleIconDescriptor(GoogleIconDescriptor.Options options)
Initializes this GoogleIconDescriptor based on the provided options
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.ImageData |
getImageData() |
java.lang.String |
getUrlString()
Gets the URL used to fetch the map icon
|
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
|
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
|
java.lang.String |
toString() |
createFromFile, createFromImage, createFromImage, createFromImageData, createFromImageDataProvider, createFromURL, createFromURLSupplier, createImage, createImage, createImage, createImage, createResource, createWithFlags, destroyResource, getImageData, getMissingImageDescriptor, imageDescriptorFromURI
public static final java.lang.String icon_map_pin_letter
public static final java.lang.String icon_bubble_text_small
public static final java.lang.String icon_bubble_icon_text_small
public static final java.lang.String icon_style_pin
public static final java.lang.String icon_style_pin_star
public static final java.lang.String icon_style_pin_sleft
public static final java.lang.String icon_style_pin_sright
public static final java.lang.String frame_style_bb
public static final java.lang.String frame_style_bbtl
public static final java.lang.String frame_style_bbtr
public static final java.lang.String frame_style_bbbr
public static final java.lang.String frame_style_bbT
public static final java.lang.String frame_style_edge_bl
public static final java.lang.String frame_style_edge_bc
public static final java.lang.String frame_style_edge_br
public static final java.lang.String frame_style_edge_tl
public static final java.lang.String frame_style_edge_tc
public static final java.lang.String frame_style_edge_tr
public static final java.lang.String frame_style_edge_lt
public static final java.lang.String frame_style_edge_lc
public static final java.lang.String frame_style_edge_lb
public static final java.lang.String frame_style_edge_rt
public static final java.lang.String frame_style_edge_rc
public static final java.lang.String frame_style_edge_rb
public GoogleIconDescriptor(GoogleIconDescriptor.Options options)
options
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUrlString()
public org.eclipse.swt.graphics.ImageData getImageData()
getImageData
in class org.eclipse.jface.resource.ImageDescriptor
public static GoogleIconDescriptor letterPin(char c, boolean hasShadow, org.eclipse.swt.graphics.RGB fillColor, org.eclipse.swt.graphics.RGB textColor)
c
- the letterhasShadow
- if it as a shaddowfillColor
- the fill colortextColor
- the text colorpublic static GoogleIconDescriptor textBubble(java.lang.String s, boolean hasShadow, org.eclipse.swt.graphics.RGB fillColor, org.eclipse.swt.graphics.RGB textColor)
s
- the texthasShadow
- if it as a shaddowfillColor
- the fill colortextColor
- the text color