Class ApplicationDecorationResult
- java.lang.Object
-
- com.e1c.g5.dt.applications.ui.view.ApplicationDecorationResult
-
- All Implemented Interfaces:
IDecoration
public class ApplicationDecorationResult extends Object implements IDecoration
IDecoration which stores the applied decoration elements and provides methods for getting them.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jface.viewers.IDecoration
BOTTOM_LEFT, BOTTOM_RIGHT, ENABLE_REPLACE, REPLACE, TOP_LEFT, TOP_RIGHT, UNDERLAY
-
-
Constructor Summary
Constructors Constructor Description ApplicationDecorationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOverlay(org.eclipse.jface.resource.ImageDescriptor overlayImage)
void
addOverlay(org.eclipse.jface.resource.ImageDescriptor overlayImage, int quadrant)
void
addPrefix(String prefix)
void
addSuffix(String suffix)
boolean
containsOverlays()
IDecorationContext
getDecorationContext()
org.eclipse.jface.resource.ImageDescriptor[]
getOverlays()
String
getSuffix()
void
setBackgroundColor(org.eclipse.swt.graphics.Color color)
void
setFont(org.eclipse.swt.graphics.Font font)
void
setForegroundColor(org.eclipse.swt.graphics.Color color)
-
-
-
Method Detail
-
addOverlay
public void addOverlay(org.eclipse.jface.resource.ImageDescriptor overlayImage)
- Specified by:
addOverlay
in interfaceIDecoration
-
addOverlay
public void addOverlay(org.eclipse.jface.resource.ImageDescriptor overlayImage, int quadrant)
- Specified by:
addOverlay
in interfaceIDecoration
-
addPrefix
public void addPrefix(String prefix)
- Specified by:
addPrefix
in interfaceIDecoration
-
addSuffix
public void addSuffix(String suffix)
- Specified by:
addSuffix
in interfaceIDecoration
-
setBackgroundColor
public void setBackgroundColor(org.eclipse.swt.graphics.Color color)
- Specified by:
setBackgroundColor
in interfaceIDecoration
-
setForegroundColor
public void setForegroundColor(org.eclipse.swt.graphics.Color color)
- Specified by:
setForegroundColor
in interfaceIDecoration
-
setFont
public void setFont(org.eclipse.swt.graphics.Font font)
- Specified by:
setFont
in interfaceIDecoration
-
getDecorationContext
public IDecorationContext getDecorationContext()
- Specified by:
getDecorationContext
in interfaceIDecoration
-
getSuffix
public String getSuffix()
- Returns:
- text decoration suffix, never
null
-
getOverlays
public org.eclipse.jface.resource.ImageDescriptor[] getOverlays()
- Returns:
- the overlay image which was set, never
null
-
containsOverlays
public boolean containsOverlays()
- Returns:
true
if at least one overlay exists,false
otherwise
-
-