public class Resources
extends java.lang.Object
Constructor and Description |
---|
Resources(org.eclipse.swt.widgets.Shell shell)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Display |
getDisplay()
Returns the display.
|
int |
getGradientLength()
Returns the size of the gradient used in heatmaps.
|
static org.eclipse.swt.graphics.Image[] |
getIconSet(org.eclipse.swt.widgets.Display display)
Returns the logo.
|
org.eclipse.swt.graphics.Image |
getImage(AttributeType type)
Returns an image.
|
org.eclipse.swt.graphics.Image |
getImage(AttributeType type,
boolean isResponseVariable)
Returns an image.
|
static java.lang.String |
getLicenseText()
Reads the content from the file license.txt located in the package org.deidentifier.arx.gui.resources and
returns the content as string.
|
org.apache.log4j.Logger |
getLogger()
Returns the logger.
|
org.eclipse.swt.graphics.Image |
getManagedImage(java.lang.String name)
Returns an image.
|
static java.lang.String |
getMessage(java.lang.String key)
Returns the associated message
TODO: Make this method non-static.
|
org.eclipse.swt.widgets.Shell |
getShell()
Returns the shell.
|
static org.eclipse.swt.graphics.Image |
getSplash(org.eclipse.swt.widgets.Display display)
Returns the splash image.
|
java.io.InputStream |
getStream(java.lang.String name)
Returns a stream.
|
public Resources(org.eclipse.swt.widgets.Shell shell)
shell
- public static org.eclipse.swt.graphics.Image[] getIconSet(org.eclipse.swt.widgets.Display display)
display
- public static java.lang.String getLicenseText()
public static java.lang.String getMessage(java.lang.String key)
key
- public static org.eclipse.swt.graphics.Image getSplash(org.eclipse.swt.widgets.Display display)
display
- public org.eclipse.swt.widgets.Display getDisplay()
public int getGradientLength()
public org.apache.log4j.Logger getLogger()
public org.eclipse.swt.graphics.Image getManagedImage(java.lang.String name)
name
- public org.eclipse.swt.widgets.Shell getShell()
public java.io.InputStream getStream(java.lang.String name)
name
- public org.eclipse.swt.graphics.Image getImage(AttributeType type)
type
- public org.eclipse.swt.graphics.Image getImage(AttributeType type, boolean isResponseVariable)
type
- isResponseVariable
-