public class LabeledOutputType extends LabeledCombo
LabeledCombo
to support the output file type extensions.Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
alphaAllowed
A list of character keys of the file types that support an alpha channel
|
static java.lang.String |
defaultExtension |
java.lang.String |
defValue
default value for this OutputType
|
static java.lang.String[] |
extensionDescriptions |
static java.lang.String[] |
povrayFileTypes
A list of character keys for each output type supported
|
static java.lang.String[] |
validExtensions |
combo
document, label, type
Constructor and Description |
---|
LabeledOutputType() |
Modifier and Type | Method and Description |
---|---|
void |
clicked()
Here when the label for this compound widget is clicked on,
|
static java.lang.String |
getExtensionFromChar(java.lang.String c) |
java.lang.String |
getOutputExtension()
Return the actual file extension derived from the selection.
|
java.lang.String |
getSelection()
Return the
povrayFileTypes that matches the current selection in the combo |
boolean |
isAlphaAllowed()
Does the currently selected file type allow for an Alpha channel?
|
boolean |
isBPCAllowed()
Does the currently selected file type support specifying Bits Per Color?
|
boolean |
isCompressionAllowed()
Does the currently selected file type support variable compression? i.e.
|
void |
setSelection(java.lang.String s)
Set the value of the OutputFileType, and the combo, to this value.
|
getSelectedIndex, setEnabled, setSelection, setVisible
public static final java.lang.String[] extensionDescriptions
public static final java.lang.String defaultExtension
public static final java.lang.String[] povrayFileTypes
public static final java.lang.String[] validExtensions
public static final java.lang.String[] alphaAllowed
public java.lang.String defValue
public java.lang.String getSelection()
povrayFileTypes
that matches the current selection in the combopovrayFileTypes
public java.lang.String getOutputExtension()
public static java.lang.String getExtensionFromChar(java.lang.String c)
public void setSelection(java.lang.String s)
s
- One of the allowed values from povrayFileTypes
public void clicked()
clicked
in class LabeledCombo
public boolean isAlphaAllowed()
public boolean isBPCAllowed()
public boolean isCompressionAllowed()