Package gov.nih.mipav.model.file
Class FileInfoImageXML.SurfaceLink
java.lang.Object
gov.nih.mipav.model.file.FileInfoImageXML.SurfaceLink
- All Implemented Interfaces:
Serializable
- Enclosing class:
FileInfoImageXML
Title: SurfaceLink
Description: Link to a surface associated with the image
Copyright: Copyright (c) 2004
Company:
- Version:
- 1.0
- Author:
- not attributable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanShould the surface be displayed.(package private) floatOpacity of surface.(package private) StringPath to surface.private static final longUse serialVersionUID for interoperability. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the surface should be displayed.floatGets the opacity of the surface.getPath()Gets the path for the surface.voidsetDisplay(boolean flag) Sets whether the surface should be displayed.voidsetOpacity(float val) Sets the opacity for the surface.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
display
boolean displayShould the surface be displayed. -
opacity
float opacityOpacity of surface. -
path
String pathPath to surface.
-
-
Constructor Details
-
SurfaceLink
Create a new surface link with the given path.- Parameters:
_path- String path to surface
-
-
Method Details
-
getDisplay
public boolean getDisplay()Gets whether the surface should be displayed.- Returns:
- boolean whether the surface should be displayed
-
getOpacity
public float getOpacity()Gets the opacity of the surface.- Returns:
- float opacity of the surface
-
getPath
Gets the path for the surface.- Returns:
- String path
-
setDisplay
public void setDisplay(boolean flag) Sets whether the surface should be displayed.- Parameters:
flag- boolean should the surface be displayed
-
setOpacity
public void setOpacity(float val) Sets the opacity for the surface.- Parameters:
val- float opacity for the surface
-