Class PictureWidget
- java.lang.Object
-
- org.csstudio.display.builder.model.Widget
-
- org.csstudio.display.builder.model.widgets.VisibleWidget
-
- org.csstudio.display.builder.model.widgets.MacroWidget
-
- org.csstudio.display.builder.model.widgets.PictureWidget
-
public class PictureWidget extends MacroWidget
Widget that displays an image loaded from a file
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
default_pic
static org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Double>
propOpacity
An opacity property.static org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Double>
propRotation
'rotation' property: What is the rotation of the picturestatic org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Boolean>
propStretch
static org.csstudio.display.builder.model.WidgetDescriptor
WIDGET_DESCRIPTOR
Widget descriptor-
Fields inherited from class org.csstudio.display.builder.model.Widget
BASE_WIDGET_VERSION, USER_DATA_REPRESENTATION, USER_DATA_RUNTIME, USER_DATA_SCRIPT_SUPPORT, USER_DATA_TOOLKIT_PARENT
-
-
Constructor Summary
Constructors Constructor Description PictureWidget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.csstudio.display.builder.model.WidgetConfigurator
getConfigurator(org.csstudio.display.builder.model.Version persisted_version)
Obtain configurator.WidgetProperty<java.lang.String>
propFile()
WidgetProperty<java.lang.Double>
propOpacity()
WidgetProperty<java.lang.Double>
propRotation()
WidgetProperty<java.lang.Boolean>
propStretch()
-
Methods inherited from class org.csstudio.display.builder.model.widgets.MacroWidget
getEffectiveMacros, importPVName, propMacros
-
Methods inherited from class org.csstudio.display.builder.model.widgets.VisibleWidget
propTooltip, propVisible, runtimePropConnected
-
Methods inherited from class org.csstudio.display.builder.model.Widget
checkDisplayModel, checkProperty, checkProperty, clearUserData, expandPropertyNames, getDisplayModel, getID, getMacrosOrProperties, getName, getParent, getProperties, getProperty, getProperty, getPropertyByPath, getPropertyValue, getPropertyValue, getTopDisplayModel, getType, getUserData, getVersion, getWidgetClass, isClean, propActions, propClass, propHeight, propName, propRules, propScripts, propWidth, propX, propY, setConfiguratorResult, setPropertyValue, setPropertyValue, setUserData, toString
-
-
-
-
Field Detail
-
default_pic
public static final java.lang.String default_pic
- See Also:
- Constant Field Values
-
WIDGET_DESCRIPTOR
public static final org.csstudio.display.builder.model.WidgetDescriptor WIDGET_DESCRIPTOR
Widget descriptor
-
propRotation
public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Double> propRotation
'rotation' property: What is the rotation of the picture
-
propStretch
public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Boolean> propStretch
-
propOpacity
public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Double> propOpacity
An opacity property. Controlling it from a rule or script works as a way to do a simple animation.
-
-
Method Detail
-
propRotation
public WidgetProperty<java.lang.Double> propRotation()
- Returns:
- 'rotation' property
-
propFile
public WidgetProperty<java.lang.String> propFile()
- Returns:
- 'text' property
-
propStretch
public WidgetProperty<java.lang.Boolean> propStretch()
- Returns:
- 'stretch' property
-
propOpacity
public WidgetProperty<java.lang.Double> propOpacity()
- Returns:
- 'opacity' property
-
getConfigurator
public org.csstudio.display.builder.model.WidgetConfigurator getConfigurator(org.csstudio.display.builder.model.Version persisted_version) throws java.lang.Exception
Description copied from class:Widget
Obtain configurator.While typically using the default
WidgetConfigurator
, widget may provide a different configurator for reading older persisted date.- Overrides:
getConfigurator
in classWidget
- Parameters:
persisted_version
- Version of the persisted data.- Returns:
- Widget configurator for that version
- Throws:
java.lang.Exception
- if persisted version cannot be handled
-
-