Package org.apache.pivot.wtk.skin.terra
Class TerraTextPaneSkin
- java.lang.Object
-
- org.apache.pivot.wtk.skin.ComponentSkin
-
- org.apache.pivot.wtk.skin.ContainerSkin
-
- org.apache.pivot.wtk.skin.TextPaneSkin
-
- org.apache.pivot.wtk.skin.terra.TerraTextPaneSkin
-
- All Implemented Interfaces:
ComponentKeyListener
,ComponentListener
,ComponentMouseButtonListener
,ComponentMouseListener
,ComponentMouseWheelListener
,ComponentStateListener
,ComponentTooltipListener
,ConstrainedVisual
,ContainerListener
,ContainerMouseListener
,Skin
,TextPane.Skin
,TextPaneListener
,TextPaneSelectionListener
,Visual
public class TerraTextPaneSkin extends TextPaneSkin
Terra Text Pane skin. This part of the skin deals with color selection that is specific to the theme.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin
ContainerSkin.IndexFocusTraversalPolicy
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
ComponentKeyListener.Adapter, ComponentKeyListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
ComponentListener.Adapter, ComponentListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
ComponentMouseButtonListener.Adapter, ComponentMouseButtonListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
ComponentMouseListener.Adapter, ComponentMouseListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseWheelListener
ComponentMouseWheelListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
ComponentStateListener.Adapter, ComponentStateListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentTooltipListener
ComponentTooltipListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener
ContainerListener.Adapter, ContainerListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
ContainerMouseListener.Adapter, ContainerMouseListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextPaneListener
TextPaneListener.Adapter, TextPaneListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextPaneSelectionListener
TextPaneSelectionListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description TerraTextPaneSkin()
Specific constructor with nothing to do.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setColor(int color)
Set the foreground color to the given theme index color.void
setInactiveColor(int inactiveColor)
Set the inactive color to the given theme index color.void
setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)
Set the inactive selection background color to the given theme index color.void
setInactiveSelectionColor(int inactiveSelectionColor)
Set the inactive selection color to the given theme index color.void
setSelectionBackgroundColor(int selectionBackgroundColor)
Set the selection background color to the given theme index color.void
setSelectionColor(int selectionColor)
Set the selection color to the given theme index color.-
Methods inherited from class org.apache.pivot.wtk.skin.TextPaneSkin
documentChanged, editableChanged, enabledChanged, focusedChanged, getAcceptsTab, getBaseline, getCharacterBounds, getColor, getDoingCaretCalculations, getFont, getInactiveColor, getInactiveSelectionBackgroundColor, getInactiveSelectionColor, getInsertionPoint, getMargin, getNextInsertionPoint, getPreferredHeight, getPreferredSize, getPreferredWidth, getRowAt, getRowCount, getSelectionBackgroundColor, getSelectionColor, getTabWidth, getTextInputMethodListener, getWrapText, install, isFocusable, keyPressed, keyTyped, layout, mouseClick, mouseDown, mouseMove, mouseUp, paint, selectionChanged, setAcceptsTab, setColor, setColor, setFont, setFont, setFont, setInactiveColor, setInactiveColor, setInactiveSelectionBackgroundColor, setInactiveSelectionBackgroundColor, setInactiveSelectionColor, setInactiveSelectionColor, setMargin, setMargin, setMargin, setMargin, setMargin, setMargin, setSelectionBackgroundColor, setSelectionBackgroundColor, setSelectionColor, setSelectionColor, setTabWidth, setWrapText
-
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint
-
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
colorFromObject, colorFromObject, colorFromObject, colorFromObject, currentTheme, cursorChanged, decodeFont, defaultBackgroundColor, defaultForegroundColor, dragSourceChanged, dropTargetChanged, fontFromObject, getBaseline, getColor, getComponent, getFocusRectangleStroke, getHeight, getSize, getThemeFont, getWidth, heightLimitsChanged, invalidateComponent, keyReleased, locationChanged, menuHandlerChanged, mouseOut, mouseOver, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setDefaultStyles, setSize, sizeChanged, themeHasThickFocusRectangle, themeHasTransitionEnabled, themeIsDark, themeIsFlat, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual
setSize
-
-
-
-
Constructor Detail
-
TerraTextPaneSkin
public TerraTextPaneSkin()
Specific constructor with nothing to do.Default colors, etc. set by call to
TerraTheme.setDefaultStyles(T)
fromTextPaneSkin.install(org.apache.pivot.wtk.Component)
.
-
-
Method Detail
-
setColor
public final void setColor(int color)
Set the foreground color to the given theme index color.- Parameters:
color
- The theme index for the new foreground color.
-
setInactiveColor
public final void setInactiveColor(int inactiveColor)
Set the inactive color to the given theme index color.- Parameters:
inactiveColor
- The theme index for the new inactive color.
-
setSelectionColor
public final void setSelectionColor(int selectionColor)
Set the selection color to the given theme index color.- Parameters:
selectionColor
- The theme index for the new selection color.
-
setSelectionBackgroundColor
public final void setSelectionBackgroundColor(int selectionBackgroundColor)
Set the selection background color to the given theme index color.- Parameters:
selectionBackgroundColor
- The theme index for the new selection background color.
-
setInactiveSelectionColor
public final void setInactiveSelectionColor(int inactiveSelectionColor)
Set the inactive selection color to the given theme index color.- Parameters:
inactiveSelectionColor
- The theme index for the new inactive selection color.
-
setInactiveSelectionBackgroundColor
public final void setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)
Set the inactive selection background color to the given theme index color.- Parameters:
inactiveSelectionBackgroundColor
- The theme index for the new inactive selection background color.
-
-