public class MarkerDescriptor extends SettingDescriptor
Constructor and Description |
---|
MarkerDescriptor(java.lang.String name,
java.lang.String label,
Enums.MarkerType type,
Enums.Size size,
java.awt.Color fillColor,
java.awt.Color outlineColor,
boolean enabled,
boolean supportsDisable)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createInput(Settings settings,
boolean readOnly)
Creates the component that will accept the user input.
|
MarkerInfo |
getDefaultValue()
Gets the default value as a MarkerInfo
|
java.awt.Color |
getFillColor()
Gets the default fill color for the marker.
|
java.awt.Color |
getOutlineColor()
Gets the defautl outline color for the marker.
|
Enums.Size |
getSize()
Gets the defautl size of the marker.
|
Enums.Size[] |
getSizes()
Gets all of the valid marker sizes.
|
Enums.MarkerType |
getType()
Gets the default type of the marker.
|
Enums.MarkerType[] |
getTypes()
Gets the set of valid marker types.
|
boolean |
isDisplaySetting()
Indicates if this setting is used to affect the appearance of the of the study/strategy
|
boolean |
isSupportsAdvanced()
Indicates if the user can adjust the advanced attributes of the marker.
|
boolean |
isSupportsColor()
Indicates if the user can adjust the color attributes of the marker.
|
void |
setSizes(Enums.Size[] sizes)
Sets the valid marker sizes.
|
void |
setSupportsAdvanced(boolean b)
Sets the attribute to allow the user to set advanced attributes.
|
void |
setSupportsColor(boolean b)
Sets the attribute to allow the user to set color attributes.
|
void |
setTypes(Enums.MarkerType[] values)
Sets the valid set of type choices.
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setEnabled, setGridWidth, setShowLabel, setSupportsDisable
public MarkerDescriptor(java.lang.String name, java.lang.String label, Enums.MarkerType type, Enums.Size size, java.awt.Color fillColor, java.awt.Color outlineColor, boolean enabled, boolean supportsDisable)
name
- name of this setting (key)label
- label displayed to the usertype
- default type of the markersize
- default size of the markerfillColor
- default fill color for the markeroutlineColor
- default outline color for the markerenabled
- default enabled statesupportsDisable
- indicates if the user can disable the display of the markerpublic MarkerInfo getDefaultValue()
getDefaultValue
in class SettingDescriptor
public javax.swing.JComponent createInput(Settings settings, boolean readOnly)
SettingDescriptor
createInput
in class SettingDescriptor
settings
- settings for the studyreadOnly
- true if the component should not accept user inputpublic Enums.MarkerType getType()
public Enums.Size getSize()
public java.awt.Color getFillColor()
public java.awt.Color getOutlineColor()
public boolean isSupportsAdvanced()
public void setSupportsAdvanced(boolean b)
public boolean isSupportsColor()
public void setSupportsColor(boolean b)
public Enums.MarkerType[] getTypes()
public void setTypes(Enums.MarkerType[] values)
public Enums.Size[] getSizes()
public void setSizes(Enums.Size[] sizes)
public boolean isDisplaySetting()
SettingDescriptor
isDisplaySetting
in class SettingDescriptor