| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private int | |
| protected static final String | CSEP
Component separator |
| protected static final String | ESEP
Element separator |
| private int | |
| private boolean | |
| protected static final String | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Object | cloneMutable()
Implements com. |
| public int | compareTo(final CapabilitiesImmutable
the object to be compared. caps)Implements java. |
| public Capabilities | Returns: this instanceCopies all |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Implements com. |
| public final int | getAlphaBits()
Implements com. |
| public final int | getBlueBits()
Implements com. |
| public final int | getGreenBits()
Implements com. |
| public final int | getRedBits()
Implements com. |
| public final int | getTransparentAlphaValue()
Implements com. |
| public final int | getTransparentBlueValue()
Implements com. |
| public final int | getTransparentGreenValue()
Implements com. |
| public final int | getTransparentRedValue()
Implements com. |
| public int | getVisualID(final VisualIDHolder.
Implements com. type
if supported, or VID_UNDEFINED if not supported.
|
| public int | hashCode()
Overrides java. Implements com. |
| public final boolean | isBackgroundOpaque()
Implements com. |
| public boolean | isBitmap()
Implements com. |
| public final boolean | isOnscreen()
Implements com. |
| protected StringBuilder | onoffScreenToString(StringBuilder sink)
Return a textual representation of this object's on/off screen state. |
| public void | setAlphaBits(final int alphaBits)
Sets the number of bits requested for the color buffer's alpha component. |
| public void | |
| public void | |
| public void | setBlueBits(final int blueBits)
Sets the number of bits requested for the color buffer's blue component. |
| public void | setGreenBits(final int greenBits)
Sets the number of bits requested for the color buffer's green component. |
| public void | |
| public void | setRedBits(final int redBits)
Sets the number of bits requested for the color buffer's red component. |
| public void | setTransparentAlphaValue(final int transValueAlpha)
Sets the transparent alpha value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for alpha. |
| public void | setTransparentBlueValue(final int transValueBlue)
Sets the transparent blue value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for blue. |
| public void | setTransparentGreenValue(final int transValueGreen)
Sets the transparent green value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for green. |
| public void | setTransparentRedValue(final int transValueRed)
Sets the transparent red value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for red. |
| protected final String | |
| public StringBuilder | toString(final StringBuilder sink)
Implements com. |
| public String | toString()
Overrides java. Implements com. |
| protected StringBuilder |
| alphaBits | back to summary |
|---|---|
| private int alphaBits | |
| backgroundOpaque | back to summary |
|---|---|
| private boolean backgroundOpaque | |
| blueBits | back to summary |
|---|---|
| private int blueBits | |
| CSEP | back to summary |
|---|---|
| protected static final String CSEP Component separator | |
| ESEP | back to summary |
|---|---|
| protected static final String ESEP Element separator | |
| greenBits | back to summary |
|---|---|
| private int greenBits | |
| isBitmap | back to summary |
|---|---|
| private boolean isBitmap | |
| na_str | back to summary |
|---|---|
| protected static final String na_str | |
| onscreen | back to summary |
|---|---|
| private boolean onscreen | |
| redBits | back to summary |
|---|---|
| private int redBits | |
| transparentValueAlpha | back to summary |
|---|---|
| private int transparentValueAlpha | |
| transparentValueBlue | back to summary |
|---|---|
| private int transparentValueBlue | |
| transparentValueGreen | back to summary |
|---|---|
| private int transparentValueGreen | |
| transparentValueRed | back to summary |
|---|---|
| private int transparentValueRed | |
| Capabilities | back to summary |
|---|---|
| public Capabilities() Creates a Capabilities object. All attributes are in a default state. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| cloneMutable | back to summary |
|---|---|
| public Object cloneMutable() Implements com. Doc from com. Get a mutable clone from this instance.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(final CapabilitiesImmutable caps) Implements java. Comparing RGBA values only
| |
| copyFrom | back to summary |
|---|---|
| public Capabilities copyFrom(final CapabilitiesImmutable other) Copies all
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Implements com. Doc from com. Equality over the immutable attributes of both objects
| |
| getAlphaBits | back to summary |
|---|---|
| public final int getAlphaBits() Implements com. Doc from com. Returns the number of bits for the color buffer's alpha component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered.
| |
| getBlueBits | back to summary |
|---|---|
| public final int getBlueBits() Implements com. Doc from com. Returns the number of bits for the color buffer's blue component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered.
| |
| getGreenBits | back to summary |
|---|---|
| public final int getGreenBits() Implements com. Doc from com. Returns the number of bits for the color buffer's green component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered.
| |
| getRedBits | back to summary |
|---|---|
| public final int getRedBits() Implements com. Doc from com. Returns the number of bits for the color buffer's red component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered.
| |
| getTransparentAlphaValue | back to summary |
|---|---|
| public final int getTransparentAlphaValue() Implements com. Doc from com. Gets the transparent alpha value for the frame buffer configuration. This value is undefined if; equals true.
| |
| getTransparentBlueValue | back to summary |
|---|---|
| public final int getTransparentBlueValue() Implements com. Doc from com. Gets the transparent blue value for the frame buffer configuration. This value is undefined if; equals true.
| |
| getTransparentGreenValue | back to summary |
|---|---|
| public final int getTransparentGreenValue() Implements com. Doc from com. Gets the transparent green value for the frame buffer configuration. This value is undefined if; equals true.
| |
| getTransparentRedValue | back to summary |
|---|---|
| public final int getTransparentRedValue() Implements com. Doc from com. Gets the transparent red value for the frame buffer configuration. This value is undefined if; equals true.
| |
| getVisualID | back to summary |
|---|---|
| public int getVisualID(final VisualIDHolder. Implements com. Doc from com. Returns the native visual ID of the given
Depending on the native windowing system,
INTRINSIC and NATIVE are always handled,
but may result in VID_UNDEFINED. The latter is true if
the native value are actually undefined or the corresponding object is not
mapped to a native visual object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements com. Doc from com. hash code over the immutable attributes of both objects
| |
| isBackgroundOpaque | back to summary |
|---|---|
| public final boolean isBackgroundOpaque() Implements com. Doc from com. Returns whether an opaque or translucent surface is requested, supported or chosen. Default is true, i.e. opaque.
| |
| isBitmap | back to summary |
|---|---|
| public boolean isBitmap() Implements com. Doc from com. Returns whether bitmap offscreen mode is requested, available or chosen. Default is false.
For chosen capabilities, only the selected offscreen surface is set to
| |
| isOnscreen | back to summary |
|---|---|
| public final boolean isOnscreen() Implements com. Doc from com. Returns whether an on- or offscreen surface is requested, available or chosen. Default is true, i.e. onscreen.
Mind that an capabilities intance w/ available semantics
may show onscreen, but also the offscreen modes FBO, Pbuffer or
| |
| onoffScreenToString | back to summary |
|---|---|
| protected StringBuilder onoffScreenToString(StringBuilder sink) Return a textual representation of this object's on/off screen state. Use the given StringBuilder [optional]. | |
| setAlphaBits | back to summary |
|---|---|
| public void setAlphaBits(final int alphaBits) Sets the number of bits requested for the color buffer's alpha component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered. Note If alpha bits are | |
| setBackgroundOpaque | back to summary |
|---|---|
| public void setBackgroundOpaque(final boolean opaque) Sets whether the surface shall be opaque or translucent.
Platform implementations may need an alpha component in the surface (eg. Windows),
or expect pre-multiplied alpha values (eg. X11/XRender). Mind that translucency may cause a performance penalty due to the composite work required by the window manager. | |
| setBitmap | back to summary |
|---|---|
| public void setBitmap(final boolean enable) Requesting offscreen bitmap mode.
If enabled this method also invokes Defaults to false. Requesting offscreen bitmap mode disables the offscreen auto selection. | |
| setBlueBits | back to summary |
|---|---|
| public void setBlueBits(final int blueBits) Sets the number of bits requested for the color buffer's blue component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered. | |
| setGreenBits | back to summary |
|---|---|
| public void setGreenBits(final int greenBits) Sets the number of bits requested for the color buffer's green component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered. | |
| setOnscreen | back to summary |
|---|---|
| public void setOnscreen(final boolean onscreen) Sets whether the surface shall be on- or offscreen. Defaults to true.
If requesting an offscreen surface without further selection of it's mode,
e.g. FBO, Pbuffer or | |
| setRedBits | back to summary |
|---|---|
| public void setRedBits(final int redBits) Sets the number of bits requested for the color buffer's red component. On some systems only the color depth, which is the sum of the red, green, and blue bits, is considered. | |
| setTransparentAlphaValue | back to summary |
|---|---|
| public void setTransparentAlphaValue(final int transValueAlpha) Sets the transparent alpha value for the frame buffer configuration,
ranging from 0 to the maximum frame buffer value for alpha.
This value is ignored if | |
| setTransparentBlueValue | back to summary |
|---|---|
| public void setTransparentBlueValue(final int transValueBlue) Sets the transparent blue value for the frame buffer configuration,
ranging from 0 to the maximum frame buffer value for blue.
This value is ignored if | |
| setTransparentGreenValue | back to summary |
|---|---|
| public void setTransparentGreenValue(final int transValueGreen) Sets the transparent green value for the frame buffer configuration,
ranging from 0 to the maximum frame buffer value for green.
This value is ignored if | |
| setTransparentRedValue | back to summary |
|---|---|
| public void setTransparentRedValue(final int transValueRed) Sets the transparent red value for the frame buffer configuration,
ranging from 0 to the maximum frame buffer value for red.
This value is ignored if | |
| toHexString | back to summary |
|---|---|
| protected final String toHexString(final int val) | |
| toString | back to summary |
|---|---|
| public StringBuilder toString(final StringBuilder sink) Implements com. Doc from com. Return a textual representation of this object. Use the given StringBuilder [optional].
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Returns a textual representation of this Capabilities object.
| |
| toString | back to summary |
|---|---|
| protected StringBuilder toString(StringBuilder sink, final boolean withOnOffScreen) | |