- All Superinterfaces:
Accessory
,Accessory
,Accessory
,DataAnnotation
,DataAnnotation
,DataAnnotation
,ImageField
,ImageField
,Member
,ReadOnlyInterface
,WritableInterface
public interface ImageField extends ImageField, DataAnnotation
-
Method Summary
Modifier and Type Method Description List<? extends ImageFieldItem>
getDiagramItems()
List<? extends ImageFieldItem>
getDiagramItems(Diagram diagram)
void
setBackground(Color background)
The background color.void
setBlur(double blur)
The accessory blur.void
setImage(Image image)
The image displayed in the network diagram.void
setScale(double scale)
The scale factor the image is displayed with.void
setShadow(Shadow shadow)
The accessory shadow.void
setStrokeColor(Color strokeColor)
The color for the stroke around the image.void
setStrokeStyle(StrokeStyle strokeStyle)
The paint style for the stroke around the image.void
setStrokeWidth(double strokeWidth)
The stroke width.void
setTransparency(double transparency)
The accessory transparency.ImageField
toReadOnly()
Methods inherited from interface omix.plugin.model.writable.accessory.Accessory
getField, owner, setLabel, setTooltip
Methods inherited from interface omix.plugin.model.writable.accessory.annotation.DataAnnotation
setVisible
Methods inherited from interface omix.lang.model.accessory.annotation.ImageField
background, blur, image, scale, shadow, strokeColor, strokeStyle, strokeWidth, transparency
Methods inherited from interface omix.lang.reflect.Member
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, getName, getNamespace, isAnnotationPresent
-
Method Details
-
setStrokeColor
The color for the stroke around the image.- Throws:
IllegalChangeException
-
setBackground
The background color.- Throws:
IllegalChangeException
-
setStrokeStyle
The paint style for the stroke around the image.- Throws:
IllegalChangeException
-
setStrokeWidth
The stroke width.- Throws:
IllegalChangeException
-
setShadow
The accessory shadow.- Throws:
IllegalChangeException
-
setBlur
The accessory blur.- Throws:
IllegalChangeException
-
setTransparency
The accessory transparency.- Throws:
IllegalChangeException
-
setScale
The scale factor the image is displayed with. Values less than 1.0 decreases the size. Values greater than 1.0 increases the size.- Throws:
IllegalChangeException
-
setImage
The image displayed in the network diagram. By default image isnull
. Hence, the accessory is not visible in the diagram.- Throws:
IllegalChangeException
-
getDiagramItems
List<? extends ImageFieldItem> getDiagramItems()- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceDataAnnotation
- Specified by:
getDiagramItems
in interfaceDataAnnotation
- Specified by:
getDiagramItems
in interfaceImageField
-
getDiagramItems
- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceDataAnnotation
- Specified by:
getDiagramItems
in interfaceDataAnnotation
- Specified by:
getDiagramItems
in interfaceImageField
- Throws:
IllegalComponentException
-
toReadOnly
ImageField toReadOnly()- Specified by:
toReadOnly
in interfaceAccessory
- Specified by:
toReadOnly
in interfaceDataAnnotation
- Specified by:
toReadOnly
in interfaceWritableInterface
-