You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/10/05 01:45:53 UTC

svn commit: r1529349 [39/44] - in /pivot/trunk: charts/src/org/apache/pivot/charts/ charts/src/org/apache/pivot/charts/skin/ core/src/org/apache/pivot/beans/ core/src/org/apache/pivot/collections/ core/src/org/apache/pivot/collections/adapter/ core/src...

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BorderSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BorderSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BorderSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BorderSkin.java Fri Oct  4 23:45:40 2013
@@ -40,10 +40,8 @@ import org.apache.pivot.wtk.Platform;
 import org.apache.pivot.wtk.Theme;
 
 /**
- * Border skin.
- * <p>
- * TODO Add styles to support different border styles (e.g. inset, outset) or
- * create subclasses for these border types.
+ * Border skin. <p> TODO Add styles to support different border styles (e.g.
+ * inset, outset) or create subclasses for these border types.
  */
 public class BorderSkin extends ContainerSkin implements BorderListener {
     private Font font;
@@ -69,7 +67,7 @@ public class BorderSkin extends Containe
     public void install(Component component) {
         super.install(component);
 
-        Border border = (Border)component;
+        Border border = (Border) component;
         border.getBorderListeners().add(this);
     }
 
@@ -77,26 +75,25 @@ public class BorderSkin extends Containe
     public int getPreferredWidth(int height) {
         int preferredWidth = 0;
 
-        Border border = (Border)getComponent();
+        Border border = (Border) getComponent();
         int topThickness = thickness;
 
         String title = border.getTitle();
-        if (title != null
-            && title.length() > 0) {
+        if (title != null && title.length() > 0) {
             FontRenderContext fontRenderContext = Platform.getFontRenderContext();
             Rectangle2D headingBounds = font.getStringBounds(title, fontRenderContext);
-            preferredWidth = (int)Math.ceil(headingBounds.getWidth());
+            preferredWidth = (int) Math.ceil(headingBounds.getWidth());
 
             LineMetrics lm = font.getLineMetrics(title, fontRenderContext);
-            topThickness = Math.max((int)Math.ceil(lm.getHeight()), topThickness);
+            topThickness = Math.max((int) Math.ceil(lm.getHeight()), topThickness);
         }
 
         Component content = border.getContent();
         if (content != null) {
             int heightUpdated = height;
             if (heightUpdated != -1) {
-                heightUpdated = Math.max(heightUpdated - (topThickness + thickness) -
-                    padding.top - padding.bottom, 0);
+                heightUpdated = Math.max(heightUpdated - (topThickness + thickness) - padding.top
+                    - padding.bottom, 0);
             }
 
             preferredWidth = Math.max(preferredWidth, content.getPreferredWidth(heightUpdated));
@@ -111,23 +108,22 @@ public class BorderSkin extends Containe
     public int getPreferredHeight(int width) {
         int preferredHeight = 0;
 
-        Border border = (Border)getComponent();
+        Border border = (Border) getComponent();
         int topThickness = thickness;
 
         String title = border.getTitle();
-        if (title != null
-            && title.length() > 0) {
+        if (title != null && title.length() > 0) {
             FontRenderContext fontRenderContext = Platform.getFontRenderContext();
             LineMetrics lm = font.getLineMetrics(title, fontRenderContext);
-            topThickness = Math.max((int)Math.ceil(lm.getHeight()), topThickness);
+            topThickness = Math.max((int) Math.ceil(lm.getHeight()), topThickness);
         }
 
         Component content = border.getContent();
         if (content != null) {
             int widthUpdated = width;
             if (widthUpdated != -1) {
-                widthUpdated = Math.max(widthUpdated - (thickness * 2)
-                    - padding.left - padding.right, 0);
+                widthUpdated = Math.max(widthUpdated - (thickness * 2) - padding.left
+                    - padding.right, 0);
             }
 
             preferredHeight = content.getPreferredHeight(widthUpdated);
@@ -143,18 +139,17 @@ public class BorderSkin extends Containe
         int preferredWidth = 0;
         int preferredHeight = 0;
 
-        Border border = (Border)getComponent();
+        Border border = (Border) getComponent();
         int topThickness = thickness;
 
         String title = border.getTitle();
-        if (title != null
-            && title.length() > 0) {
+        if (title != null && title.length() > 0) {
             FontRenderContext fontRenderContext = Platform.getFontRenderContext();
             Rectangle2D headingBounds = font.getStringBounds(title, fontRenderContext);
-            preferredWidth = (int)Math.ceil(headingBounds.getWidth());
+            preferredWidth = (int) Math.ceil(headingBounds.getWidth());
 
             LineMetrics lm = font.getLineMetrics(title, fontRenderContext);
-            topThickness = Math.max((int)Math.ceil(lm.getHeight()), topThickness);
+            topThickness = Math.max((int) Math.ceil(lm.getHeight()), topThickness);
         }
 
         Component content = border.getContent();
@@ -174,24 +169,22 @@ public class BorderSkin extends Containe
     public int getBaseline(int width, int height) {
         int baseline = -1;
 
-        Border border = (Border)getComponent();
+        Border border = (Border) getComponent();
         int topThickness = thickness;
 
         // Delegate baseline calculation to the content component
         Component content = border.getContent();
         if (content != null) {
             String title = border.getTitle();
-            if (title != null
-                && title.length() > 0) {
+            if (title != null && title.length() > 0) {
                 FontRenderContext fontRenderContext = Platform.getFontRenderContext();
                 LineMetrics lm = font.getLineMetrics(title, fontRenderContext);
-                topThickness = Math.max((int)Math.ceil(lm.getHeight()), topThickness);
+                topThickness = Math.max((int) Math.ceil(lm.getHeight()), topThickness);
             }
 
-            int clientWidth = Math.max(width - (thickness * 2)
-                - (padding.left + padding.right), 0);
-            int clientHeight = Math.max(height - (topThickness + thickness) -
-                (padding.top + padding.bottom), 0);
+            int clientWidth = Math.max(width - (thickness * 2) - (padding.left + padding.right), 0);
+            int clientHeight = Math.max(height - (topThickness + thickness)
+                - (padding.top + padding.bottom), 0);
 
             baseline = content.getBaseline(clientWidth, clientHeight);
         }
@@ -209,26 +202,23 @@ public class BorderSkin extends Containe
         int width = getWidth();
         int height = getHeight();
 
-        Border border = (Border)getComponent();
+        Border border = (Border) getComponent();
         int topThickness = thickness;
 
         String title = border.getTitle();
-        if (title != null
-            && title.length() > 0) {
+        if (title != null && title.length() > 0) {
             FontRenderContext fontRenderContext = Platform.getFontRenderContext();
             LineMetrics lm = font.getLineMetrics(title, fontRenderContext);
-            topThickness = Math.max((int)Math.ceil(lm.getHeight()), topThickness);
+            topThickness = Math.max((int) Math.ceil(lm.getHeight()), topThickness);
         }
 
         Component content = border.getContent();
         if (content != null) {
-            content.setLocation(padding.left + thickness,
-                padding.top + topThickness);
+            content.setLocation(padding.left + thickness, padding.top + topThickness);
 
-            int contentWidth = Math.max(width - (padding.left + padding.right
-                + (thickness * 2)), 0);
-            int contentHeight = Math.max(height - (padding.top + padding.bottom
-                + (topThickness + thickness)), 0);
+            int contentWidth = Math.max(width - (padding.left + padding.right + (thickness * 2)), 0);
+            int contentHeight = Math.max(height
+                - (padding.top + padding.bottom + (topThickness + thickness)), 0);
 
             content.setSize(contentWidth, contentHeight);
         }
@@ -236,17 +226,16 @@ public class BorderSkin extends Containe
 
     @Override
     public void paint(Graphics2D graphics) {
-        Border border = (Border)getComponent();
+        Border border = (Border) getComponent();
         int topThickness = thickness;
         float titleAscent = 0;
 
         String title = border.getTitle();
-        if (title != null
-            && title.length() > 0) {
+        if (title != null && title.length() > 0) {
             FontRenderContext fontRenderContext = Platform.getFontRenderContext();
             LineMetrics lm = font.getLineMetrics(title, fontRenderContext);
             titleAscent = lm.getAscent();
-            topThickness = Math.max((int)Math.ceil(lm.getHeight()), topThickness);
+            topThickness = Math.max((int) Math.ceil(lm.getHeight()), topThickness);
         }
 
         // TODO Java2D doesn't support variable corner radii; we'll need to
@@ -259,7 +248,7 @@ public class BorderSkin extends Containe
         int strokeX = thickness / 2;
         int strokeY = topThickness / 2;
         int strokeWidth = Math.max(width - thickness, 0);
-        int strokeHeight = Math.max(height - (int)Math.ceil((topThickness + thickness) * 0.5), 0);
+        int strokeHeight = Math.max(height - (int) Math.ceil((topThickness + thickness) * 0.5), 0);
 
         // Draw the background
         Paint backgroundPaint = getBackgroundPaint();
@@ -270,7 +259,8 @@ public class BorderSkin extends Containe
                 graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                     RenderingHints.VALUE_ANTIALIAS_ON);
 
-                graphics.fillRoundRect(strokeX, strokeY, strokeWidth, strokeHeight, cornerRadius, cornerRadius);
+                graphics.fillRoundRect(strokeX, strokeY, strokeWidth, strokeHeight, cornerRadius,
+                    cornerRadius);
 
                 graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                     RenderingHints.VALUE_ANTIALIAS_OFF);
@@ -290,13 +280,13 @@ public class BorderSkin extends Containe
             // Note that we add one pixel to the string bounds for spacing
             Rectangle2D titleBounds = font.getStringBounds(title, fontRenderContext);
             titleBounds = new Rectangle2D.Double(padding.left + thickness,
-                (topThickness - titleBounds.getHeight()) / 2,
-                    titleBounds.getWidth() + 1, titleBounds.getHeight());
+                (topThickness - titleBounds.getHeight()) / 2, titleBounds.getWidth() + 1,
+                titleBounds.getHeight());
 
             graphics.setFont(font);
             graphics.setPaint(titleColor);
-            graphics.drawString(title, (int)titleBounds.getX(),
-                (int)(titleBounds.getY() + titleAscent));
+            graphics.drawString(title, (int) titleBounds.getX(),
+                (int) (titleBounds.getY() + titleAscent));
 
             Area titleClip = new Area(graphics.getClip());
             titleClip.subtract(new Area(titleBounds));
@@ -319,7 +309,8 @@ public class BorderSkin extends Containe
                     RenderingHints.VALUE_ANTIALIAS_OFF);
             } else {
                 int y = (topThickness - thickness) / 2;
-                GraphicsUtilities.drawRect(graphics, 0, y, width, Math.max(height - y, 0), thickness);
+                GraphicsUtilities.drawRect(graphics, 0, y, width, Math.max(height - y, 0),
+                    thickness);
             }
         }
     }
@@ -345,6 +336,7 @@ public class BorderSkin extends Containe
 
     /**
      * Sets the font used in rendering the title
+     * 
      * @param font A {@link ComponentSkin#decodeFont(String) font specification}
      */
     public final void setFont(String font) {
@@ -357,6 +349,7 @@ public class BorderSkin extends Containe
 
     /**
      * Sets the font used in rendering the title
+     * 
      * @param font A dictionary {@link Theme#deriveFont describing a font}
      */
     public final void setFont(Dictionary<String, ?> font) {
@@ -388,7 +381,9 @@ public class BorderSkin extends Containe
 
     /**
      * Sets the color of the border
-     * @param color Any of the {@linkplain GraphicsUtilities#decodeColor color values recognized by Pivot}.
+     * 
+     * @param color Any of the {@linkplain GraphicsUtilities#decodeColor color
+     * values recognized by Pivot}.
      */
     public final void setColor(String color) {
         if (color == null) {
@@ -450,14 +445,16 @@ public class BorderSkin extends Containe
     }
 
     /**
-     * Returns the amount of space between the edge of the Border and its content.
+     * Returns the amount of space between the edge of the Border and its
+     * content.
      */
     public Insets getPadding() {
         return padding;
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the Border and its content.
+     * Sets the amount of space to leave between the edge of the Border and its
+     * content.
      */
     public void setPadding(Insets padding) {
         if (padding == null) {
@@ -469,9 +466,11 @@ public class BorderSkin extends Containe
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the Border and its content.
-     *
-     * @param padding A dictionary with keys in the set {left, top, bottom, right}.
+     * Sets the amount of space to leave between the edge of the Border and its
+     * content.
+     * 
+     * @param padding A dictionary with keys in the set {left, top, bottom,
+     * right}.
      */
     public final void setPadding(Dictionary<String, ?> padding) {
         if (padding == null) {
@@ -482,16 +481,16 @@ public class BorderSkin extends Containe
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the Border and its content,
-     * uniformly on all four edges.
+     * Sets the amount of space to leave between the edge of the Border and its
+     * content, uniformly on all four edges.
      */
     public final void setPadding(int padding) {
         setPadding(new Insets(padding));
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the Border and its content,
-     * uniformly on all four edges.
+     * Sets the amount of space to leave between the edge of the Border and its
+     * content, uniformly on all four edges.
      */
     public void setPadding(Number padding) {
         if (padding == null) {
@@ -502,10 +501,11 @@ public class BorderSkin extends Containe
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the Border and its content.
-     *
-     * @param padding A string containing an integer or a JSON dictionary with keys
-     * left, top, bottom, and/or right.
+     * Sets the amount of space to leave between the edge of the Border and its
+     * content.
+     * 
+     * @param padding A string containing an integer or a JSON dictionary with
+     * keys left, top, bottom, and/or right.
      */
     public final void setPadding(String padding) {
         if (padding == null) {
@@ -516,7 +516,8 @@ public class BorderSkin extends Containe
     }
 
     /**
-     * Returns a {@link CornerRadii}, describing the radius of each of the Border's corners.
+     * Returns a {@link CornerRadii}, describing the radius of each of the
+     * Border's corners.
      */
     public CornerRadii getCornerRadii() {
         return cornerRadii;
@@ -536,6 +537,7 @@ public class BorderSkin extends Containe
 
     /**
      * Sets the radii of the Border's corners
+     * 
      * @param cornerRadii A Dictionary
      * {@link CornerRadii#CornerRadii(Dictionary) specifying the four corners}
      */
@@ -567,6 +569,7 @@ public class BorderSkin extends Containe
 
     /**
      * Sets the radii of the Border's corners
+     * 
      * @param cornerRadii A single integer value, or a JSON dictionary
      * {@link CornerRadii#CornerRadii(Dictionary) specifying the four corners}
      */

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BoxPaneSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BoxPaneSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BoxPaneSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/BoxPaneSkin.java Fri Oct  4 23:45:40 2013
@@ -29,8 +29,7 @@ import org.apache.pivot.wtk.VerticalAlig
 /**
  * Box pane skin.
  */
-public class BoxPaneSkin extends ContainerSkin
-    implements BoxPaneListener {
+public class BoxPaneSkin extends ContainerSkin implements BoxPaneListener {
     private HorizontalAlignment horizontalAlignment = HorizontalAlignment.LEFT;
     private VerticalAlignment verticalAlignment = VerticalAlignment.TOP;
     private Insets padding = Insets.NONE;
@@ -41,13 +40,13 @@ public class BoxPaneSkin extends Contain
     public void install(Component component) {
         super.install(component);
 
-        BoxPane boxPane = (BoxPane)component;
+        BoxPane boxPane = (BoxPane) component;
         boxPane.getBoxPaneListeners().add(this);
     }
 
     @Override
     public int getPreferredWidth(int height) {
-        BoxPane boxPane = (BoxPane)getComponent();
+        BoxPane boxPane = (BoxPane) getComponent();
 
         int preferredWidth = 0;
 
@@ -59,7 +58,8 @@ public class BoxPaneSkin extends Contain
                 heightUpdated = Math.max(heightUpdated - (padding.top + padding.bottom), 0);
             }
 
-            // Preferred width is the sum of the preferred widths of all components
+            // Preferred width is the sum of the preferred widths of all
+            // components
             int j = 0;
             for (int i = 0, n = boxPane.getLength(); i < n; i++) {
                 Component component = boxPane.get(i);
@@ -80,8 +80,7 @@ public class BoxPaneSkin extends Contain
                 Component component = boxPane.get(i);
 
                 if (component.isVisible()) {
-                    preferredWidth = Math.max(preferredWidth,
-                        component.getPreferredWidth());
+                    preferredWidth = Math.max(preferredWidth, component.getPreferredWidth());
                 }
             }
         }
@@ -94,19 +93,19 @@ public class BoxPaneSkin extends Contain
 
     @Override
     public int getPreferredHeight(int width) {
-        BoxPane boxPane = (BoxPane)getComponent();
+        BoxPane boxPane = (BoxPane) getComponent();
 
         int preferredHeight = 0;
 
         Orientation orientation = boxPane.getOrientation();
         if (orientation == Orientation.HORIZONTAL) {
-            // Preferred height is the maximum preferred height of all components
+            // Preferred height is the maximum preferred height of all
+            // components
             for (int i = 0, n = boxPane.getLength(); i < n; i++) {
                 Component component = boxPane.get(i);
 
                 if (component.isVisible()) {
-                    preferredHeight = Math.max(preferredHeight,
-                        component.getPreferredHeight());
+                    preferredHeight = Math.max(preferredHeight, component.getPreferredHeight());
                 }
             }
         } else {
@@ -116,7 +115,8 @@ public class BoxPaneSkin extends Contain
                 widthUpdated = Math.max(widthUpdated - (padding.left + padding.right), 0);
             }
 
-            // Preferred height is the sum of the preferred heights of all components
+            // Preferred height is the sum of the preferred heights of all
+            // components
             int j = 0;
             for (int i = 0, n = boxPane.getLength(); i < n; i++) {
                 Component component = boxPane.get(i);
@@ -141,14 +141,15 @@ public class BoxPaneSkin extends Contain
 
     @Override
     public Dimensions getPreferredSize() {
-        BoxPane boxPane = (BoxPane)getComponent();
+        BoxPane boxPane = (BoxPane) getComponent();
 
         int preferredWidth = 0;
         int preferredHeight = 0;
 
         switch (boxPane.getOrientation()) {
             case HORIZONTAL: {
-                // Preferred width is the sum of the preferred widths of all components
+                // Preferred width is the sum of the preferred widths of all
+                // components
                 int j = 0;
                 for (int i = 0, n = boxPane.getLength(); i < n; i++) {
                     Component component = boxPane.get(i);
@@ -170,7 +171,8 @@ public class BoxPaneSkin extends Contain
             }
 
             case VERTICAL: {
-                // Preferred height is the sum of the preferred heights of all components
+                // Preferred height is the sum of the preferred heights of all
+                // components
                 int j = 0;
                 for (int i = 0, n = boxPane.getLength(); i < n; i++) {
                     Component component = boxPane.get(i);
@@ -205,7 +207,7 @@ public class BoxPaneSkin extends Contain
 
     @Override
     public int getBaseline(int width, int height) {
-        BoxPane boxPane = (BoxPane)getComponent();
+        BoxPane boxPane = (BoxPane) getComponent();
 
         int baseline = -1;
         int contentHeight = 0;
@@ -218,7 +220,8 @@ public class BoxPaneSkin extends Contain
                     for (Component component : boxPane) {
                         if (component.isVisible()) {
                             int componentWidth = component.getPreferredWidth(clientHeight);
-                            baseline = Math.max(baseline, component.getBaseline(componentWidth, clientHeight));
+                            baseline = Math.max(baseline,
+                                component.getBaseline(componentWidth, clientHeight));
                         }
                     }
                 } else {
@@ -328,7 +331,7 @@ public class BoxPaneSkin extends Contain
 
     @Override
     public void layout() {
-        BoxPane boxPane = (BoxPane)getComponent();
+        BoxPane boxPane = (BoxPane) getComponent();
         int n = boxPane.getLength();
 
         int width = getWidth();
@@ -370,8 +373,7 @@ public class BoxPaneSkin extends Contain
                     int y = 0;
 
                     if (fill) {
-                        componentHeight = Math.max(height - (padding.top
-                            + padding.bottom), 0);
+                        componentHeight = Math.max(height - (padding.top + padding.bottom), 0);
 
                         componentWidth = component.getPreferredWidth(componentHeight);
                     } else {
@@ -445,8 +447,7 @@ public class BoxPaneSkin extends Contain
                     int x = 0;
 
                     if (fill) {
-                        componentWidth = Math.max(width - (padding.left
-                            + padding.right), 0);
+                        componentWidth = Math.max(width - (padding.left + padding.right), 0);
 
                         componentHeight = component.getPreferredHeight(componentWidth);
                     } else {
@@ -485,22 +486,21 @@ public class BoxPaneSkin extends Contain
     }
 
     /**
-     * Returns the horizontal alignment of the BoxPane's components within the pane.
+     * Returns the horizontal alignment of the BoxPane's components within the
+     * pane.
      */
     public HorizontalAlignment getHorizontalAlignment() {
         return horizontalAlignment;
     }
 
     /**
-     * Sets the horizontal alignment of the BoxPane's components within the pane.
-     *
-     * <p>If the orientation of the pane is HORIZONTAL, this means the collective alignment
-     * all the components as group, which are still laid out close together according
-     * to the value of the <code>spacing</code> style.
-     *
-     * <p>If the orientation of the pane is VERTICAL, this means the alignment of each
-     * individual component within the pane.  It has no effect if the <code>fill</code>
-     * style is true.
+     * Sets the horizontal alignment of the BoxPane's components within the
+     * pane. <p>If the orientation of the pane is HORIZONTAL, this means the
+     * collective alignment all the components as group, which are still laid
+     * out close together according to the value of the <code>spacing</code>
+     * style. <p>If the orientation of the pane is VERTICAL, this means the
+     * alignment of each individual component within the pane. It has no effect
+     * if the <code>fill</code> style is true.
      */
     public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment) {
         if (horizontalAlignment == null) {
@@ -512,7 +512,8 @@ public class BoxPaneSkin extends Contain
     }
 
     /**
-     * Returns the vertical alignment of the BoxPane's components within the pane.
+     * Returns the vertical alignment of the BoxPane's components within the
+     * pane.
      */
     public VerticalAlignment getVerticalAlignment() {
         return verticalAlignment;
@@ -520,14 +521,12 @@ public class BoxPaneSkin extends Contain
 
     /**
      * Sets the vertical alignment of the BoxPane's components within the pane.
-     *
-     * <p>If the orientation of the pane is VERTICAL, this means the collective alignment
-     * all the components as group, which are still laid out close together according
-     * to the value of the <code>spacing</code> style.
-     *
-     * <p>If the orientation of the pane is HORIZONTAL, this means the alignment of each
-     * individual component within the pane.  It has no effect if the <code>fill</code>
-     * style is true.
+     * <p>If the orientation of the pane is VERTICAL, this means the collective
+     * alignment all the components as group, which are still laid out close
+     * together according to the value of the <code>spacing</code> style. <p>If
+     * the orientation of the pane is HORIZONTAL, this means the alignment of
+     * each individual component within the pane. It has no effect if the
+     * <code>fill</code> style is true.
      */
     public void setVerticalAlignment(VerticalAlignment verticalAlignment) {
         if (verticalAlignment == null) {
@@ -539,14 +538,16 @@ public class BoxPaneSkin extends Contain
     }
 
     /**
-     * Returns the amount of space between the edge of the BoxPane and its components.
+     * Returns the amount of space between the edge of the BoxPane and its
+     * components.
      */
     public Insets getPadding() {
         return padding;
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the BoxPane and its components.
+     * Sets the amount of space to leave between the edge of the BoxPane and its
+     * components.
      */
     public void setPadding(Insets padding) {
         if (padding == null) {
@@ -558,9 +559,11 @@ public class BoxPaneSkin extends Contain
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the BoxPane and its components.
-     *
-     * @param padding A dictionary with keys in the set {left, top, bottom, right}.
+     * Sets the amount of space to leave between the edge of the BoxPane and its
+     * components.
+     * 
+     * @param padding A dictionary with keys in the set {left, top, bottom,
+     * right}.
      */
     public final void setPadding(Dictionary<String, ?> padding) {
         if (padding == null) {
@@ -571,16 +574,16 @@ public class BoxPaneSkin extends Contain
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the BoxPane and its components,
-     * uniformly on all four edges.
+     * Sets the amount of space to leave between the edge of the BoxPane and its
+     * components, uniformly on all four edges.
      */
     public final void setPadding(int padding) {
         setPadding(new Insets(padding));
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the BoxPane and its components,
-     * uniformly on all four edges.
+     * Sets the amount of space to leave between the edge of the BoxPane and its
+     * components, uniformly on all four edges.
      */
     public final void setPadding(Number padding) {
         if (padding == null) {
@@ -591,10 +594,11 @@ public class BoxPaneSkin extends Contain
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the BoxPane and its components.
-     *
-     * @param padding A string containing an integer or a JSON dictionary with keys
-     * left, top, bottom, and/or right.
+     * Sets the amount of space to leave between the edge of the BoxPane and its
+     * components.
+     * 
+     * @param padding A string containing an integer or a JSON dictionary with
+     * keys left, top, bottom, and/or right.
      */
     public final void setPadding(String padding) {
         if (padding == null) {
@@ -635,7 +639,8 @@ public class BoxPaneSkin extends Contain
 
     /**
      * Returns a value indicating whether the BoxPane's components fill the
-     * available space in the pane in the dimension orthogonal to its orientation.
+     * available space in the pane in the dimension orthogonal to its
+     * orientation.
      */
     public boolean getFill() {
         return fill;
@@ -643,20 +648,20 @@ public class BoxPaneSkin extends Contain
 
     /**
      * Sets whether the BoxPane's components fill to the edges of the pane.
-     *
-     * @param fill If <b>true</b>, the components are given all the available space
-     * in the dimension orthogonal to the pane's orientation (e.g., vertically
-     * in a BoxPane with orientation=horizontal).  It has no effect on the layout
-     * of components in the direction of the pane's orientation, which are always
-     * given exactly their preferred size.
-     * If <b>false</b>, the pane's components are laid out to their preferred size,
-     * regardless of the size of the BoxPane.  Their alignment along the axis orthogonal
-     * to the pane's orientation is controlled by the corresponding alignment style
-     * (e.g., verticalAlignment in a BoxPane with orientation=horizontal).
-     * <p>
-     * Note that to Scale Up Images, other that fill=true it will be needed to set
-     * even the preferredWidth/preferredHeight as with container preferredHeight/preferredWidth
-     * just set, depending on the pane's orientation.
+     * 
+     * @param fill If <b>true</b>, the components are given all the available
+     * space in the dimension orthogonal to the pane's orientation (e.g.,
+     * vertically in a BoxPane with orientation=horizontal). It has no effect on
+     * the layout of components in the direction of the pane's orientation,
+     * which are always given exactly their preferred size. If <b>false</b>, the
+     * pane's components are laid out to their preferred size, regardless of the
+     * size of the BoxPane. Their alignment along the axis orthogonal to the
+     * pane's orientation is controlled by the corresponding alignment style
+     * (e.g., verticalAlignment in a BoxPane with orientation=horizontal). <p>
+     * Note that to Scale Up Images, other that fill=true it will be needed to
+     * set even the preferredWidth/preferredHeight as with container
+     * preferredHeight/preferredWidth just set, depending on the pane's
+     * orientation.
      */
     public void setFill(boolean fill) {
         this.fill = fill;

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ButtonSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ButtonSkin.java Fri Oct  4 23:45:40 2013
@@ -28,15 +28,15 @@ import org.apache.pivot.wtk.Cursor;
 /**
  * Abstract base class for button skins.
  */
-public abstract class ButtonSkin extends ComponentSkin
-    implements ButtonListener, ButtonStateListener, ButtonPressListener {
+public abstract class ButtonSkin extends ComponentSkin implements ButtonListener,
+    ButtonStateListener, ButtonPressListener {
     protected boolean highlighted = false;
 
     @Override
     public void install(Component component) {
         super.install(component);
 
-        Button button = (Button)component;
+        Button button = (Button) component;
         button.getButtonListeners().add(this);
         button.getButtonStateListeners().add(this);
         button.getButtonPressListeners().add(this);

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java Fri Oct  4 23:45:40 2013
@@ -42,8 +42,8 @@ import org.apache.pivot.wtk.WindowStateL
 /**
  * Abstract base class for calendar button skins.
  */
-public abstract class CalendarButtonSkin extends ButtonSkin
-    implements CalendarButton.Skin, CalendarButtonListener, CalendarButtonSelectionListener {
+public abstract class CalendarButtonSkin extends ButtonSkin implements CalendarButton.Skin,
+    CalendarButtonListener, CalendarButtonSelectionListener {
     protected Calendar calendar;
     protected Window calendarPopup;
 
@@ -52,7 +52,7 @@ public abstract class CalendarButtonSkin
     private ComponentMouseButtonListener calendarPopupMouseButtonListener = new ComponentMouseButtonListener.Adapter() {
         @Override
         public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
-            CalendarButton calendarButton = (CalendarButton)getComponent();
+            CalendarButton calendarButton = (CalendarButton) getComponent();
 
             calendarPopup.close();
 
@@ -68,13 +68,13 @@ public abstract class CalendarButtonSkin
          * {@link KeyCode#ESCAPE ESCAPE} Close the popup.<br>
          * {@link KeyCode#ENTER ENTER} Choose the selected date.<br>
          * {@link KeyCode#TAB TAB} Choose the selected date and transfer focus
-         * forwards.<br>
-         * {@link KeyCode#TAB TAB} + {@link Keyboard.Modifier#SHIFT SHIFT} Choose the
-         * selected date and transfer focus backwards.
+         * forwards.<br> {@link KeyCode#TAB TAB} +
+         * {@link Keyboard.Modifier#SHIFT SHIFT} Choose the selected date and
+         * transfer focus backwards.
          */
         @Override
         public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
-            CalendarButton calendarButton = (CalendarButton)getComponent();
+            CalendarButton calendarButton = (CalendarButton) getComponent();
 
             switch (keyCode) {
                 case Keyboard.KeyCode.ESCAPE: {
@@ -87,8 +87,8 @@ public abstract class CalendarButtonSkin
                     calendarPopup.close();
 
                     if (keyCode == Keyboard.KeyCode.TAB) {
-                        FocusTraversalDirection direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ?
-                            FocusTraversalDirection.BACKWARD : FocusTraversalDirection.FORWARD;
+                        FocusTraversalDirection direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ? FocusTraversalDirection.BACKWARD
+                            : FocusTraversalDirection.FORWARD;
                         calendarButton.transferFocus(direction);
                     }
 
@@ -137,9 +137,7 @@ public abstract class CalendarButtonSkin
             display.getContainerMouseListeners().remove(displayMouseListener);
 
             Window componentWindow = getComponent().getWindow();
-            if (componentWindow != null
-                && componentWindow.isOpen()
-                && !componentWindow.isClosing()) {
+            if (componentWindow != null && componentWindow.isOpen() && !componentWindow.isClosing()) {
                 componentWindow.moveToFront();
             }
         }
@@ -148,7 +146,7 @@ public abstract class CalendarButtonSkin
     private ContainerMouseListener displayMouseListener = new ContainerMouseListener.Adapter() {
         @Override
         public boolean mouseDown(Container container, Mouse.Button button, int x, int y) {
-            Display display = (Display)container;
+            Display display = (Display) container;
             Component descendant = display.getDescendantAt(x, y);
 
             if (!calendarPopup.isAncestor(descendant)
@@ -164,8 +162,8 @@ public abstract class CalendarButtonSkin
             int scrollAmount, int wheelRotation, int x, int y) {
             boolean consumed = false;
 
-            Display display = (Display)container;
-            Window window = (Window)display.getComponentAt(x, y);
+            Display display = (Display) container;
+            Window window = (Window) display.getComponentAt(x, y);
 
             if (window != calendarPopup) {
                 consumed = true;
@@ -180,13 +178,13 @@ public abstract class CalendarButtonSkin
         calendar.getCalendarListeners().add(new CalendarListener.Adapter() {
             @Override
             public void yearChanged(Calendar calendarArgument, int previousYear) {
-                CalendarButton calendarButton = (CalendarButton)getComponent();
+                CalendarButton calendarButton = (CalendarButton) getComponent();
                 calendarButton.setYear(calendarArgument.getYear());
             }
 
             @Override
             public void monthChanged(Calendar calendarArgument, int previousMonth) {
-                CalendarButton calendarButton = (CalendarButton)getComponent();
+                CalendarButton calendarButton = (CalendarButton) getComponent();
                 calendarButton.setMonth(calendarArgument.getMonth());
             }
         });
@@ -201,7 +199,7 @@ public abstract class CalendarButtonSkin
     public void install(Component component) {
         super.install(component);
 
-        CalendarButton calendarButton = (CalendarButton)component;
+        CalendarButton calendarButton = (CalendarButton) component;
         calendarButton.getCalendarButtonListeners().add(this);
         calendarButton.getCalendarButtonSelectionListeners().add(this);
 
@@ -283,7 +281,7 @@ public abstract class CalendarButtonSkin
     /**
      * {@link KeyCode#SPACE SPACE} Repaints the component to reflect the pressed
      * state.
-     *
+     * 
      * @see #keyReleased(Component, int,
      * org.apache.pivot.wtk.Keyboard.KeyLocation)
      */
@@ -350,8 +348,7 @@ public abstract class CalendarButtonSkin
 
     // Calendar button selection events
     @Override
-    public void selectedDateChanged(CalendarButton calendarButton,
-        CalendarDate previousSelectedDate) {
+    public void selectedDateChanged(CalendarButton calendarButton, CalendarDate previousSelectedDate) {
         // Set the selected date as the button data
         CalendarDate date = calendarButton.getSelectedDate();
         calendarButton.setButtonData(date);

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarSkin.java Fri Oct  4 23:45:40 2013
@@ -20,18 +20,17 @@ import org.apache.pivot.wtk.Calendar;
 import org.apache.pivot.wtk.CalendarListener;
 import org.apache.pivot.wtk.CalendarSelectionListener;
 import org.apache.pivot.wtk.Component;
-import org.apache.pivot.wtk.skin.ContainerSkin;
 
 /**
  * Abstract base class for calendar skins.
  */
-public abstract class CalendarSkin extends ContainerSkin
-    implements CalendarListener, CalendarSelectionListener {
+public abstract class CalendarSkin extends ContainerSkin implements CalendarListener,
+    CalendarSelectionListener {
     @Override
     public void install(Component component) {
         super.install(component);
 
-        Calendar calendar = (Calendar)component;
+        Calendar calendar = (Calendar) component;
         calendar.getCalendarListeners().add(this);
         calendar.getCalendarSelectionListeners().add(this);
     }

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java Fri Oct  4 23:45:40 2013
@@ -41,12 +41,7 @@ public class CardPaneSkin extends Contai
      * Defines the supported selection change effects.
      */
     public enum SelectionChangeEffect {
-        CROSSFADE,
-        HORIZONTAL_SLIDE,
-        VERTICAL_SLIDE,
-        HORIZONTAL_FLIP,
-        VERTICAL_FLIP,
-        ZOOM
+        CROSSFADE, HORIZONTAL_SLIDE, VERTICAL_SLIDE, HORIZONTAL_FLIP, VERTICAL_FLIP, ZOOM
     }
 
     /**
@@ -65,18 +60,15 @@ public class CardPaneSkin extends Contai
             this.from = from;
             this.to = to;
 
-            CardPane cardPane = (CardPane)getComponent();
+            CardPane cardPane = (CardPane) getComponent();
             fromCard = (from == -1) ? null : cardPane.get(from);
             toCard = (to == -1) ? null : cardPane.get(to);
 
             int length = cardPane.getLength();
-            if (circular
-                && length >= 3) {
-                if (from == length - 1
-                    && to == 0) {
+            if (circular && length >= 3) {
+                if (from == length - 1 && to == 0) {
                     direction = 1;
-                } else if (from == 0
-                    && to == length - 1) {
+                } else if (from == 0 && to == length - 1) {
                     direction = -1;
                 } else {
                     direction = Integer.signum(to - from);
@@ -172,8 +164,8 @@ public class CardPaneSkin extends Contai
 
             float percentComplete = slideEasing.easeOut(getElapsedTime(), 0, 1, getDuration());
 
-            int dx = (int)(width * percentComplete) * -direction;
-            int dy = (int)(height * percentComplete) * -direction;
+            int dx = (int) (width * percentComplete) * -direction;
+            int dy = (int) (height * percentComplete) * -direction;
 
             if (selectionChangeEffect == SelectionChangeEffect.HORIZONTAL_SLIDE) {
                 fromCard.setLocation(padding.left + dx, padding.top);
@@ -220,7 +212,7 @@ public class CardPaneSkin extends Contai
             if (percentComplete < 1f) {
                 theta = Math.PI * percentComplete;
 
-                float scale = (float)Math.abs(Math.cos(theta));
+                float scale = (float) Math.abs(Math.cos(theta));
 
                 if (orientation == Orientation.HORIZONTAL) {
                     scaleDecorator.setScale(scale, 1.0f);
@@ -307,7 +299,7 @@ public class CardPaneSkin extends Contai
     public void install(Component component) {
         super.install(component);
 
-        CardPane cardPane = (CardPane)component;
+        CardPane cardPane = (CardPane) component;
         cardPane.getCardPaneListeners().add(this);
     }
 
@@ -315,7 +307,7 @@ public class CardPaneSkin extends Contai
     public int getPreferredWidth(int height) {
         int preferredWidth = 0;
 
-        CardPane cardPane = (CardPane)getComponent();
+        CardPane cardPane = (CardPane) getComponent();
 
         if (sizeToSelection) {
             if (selectionChangeTransition == null) {
@@ -341,7 +333,7 @@ public class CardPaneSkin extends Contai
                     width = selectionChangeTransition.toCard.getPreferredWidth(height);
                 }
 
-                preferredWidth = previousWidth + (int)((width - previousWidth) * percentComplete);
+                preferredWidth = previousWidth + (int) ((width - previousWidth) * percentComplete);
             }
         } else {
             for (Component card : cardPane) {
@@ -358,7 +350,7 @@ public class CardPaneSkin extends Contai
     public int getPreferredHeight(int width) {
         int preferredHeight = 0;
 
-        CardPane cardPane = (CardPane)getComponent();
+        CardPane cardPane = (CardPane) getComponent();
 
         if (sizeToSelection) {
             if (selectionChangeTransition == null) {
@@ -384,7 +376,8 @@ public class CardPaneSkin extends Contai
                     height = selectionChangeTransition.toCard.getPreferredHeight(width);
                 }
 
-                preferredHeight = previousHeight + (int)((height - previousHeight) * percentComplete);
+                preferredHeight = previousHeight
+                    + (int) ((height - previousHeight) * percentComplete);
             }
         } else {
             for (Component card : cardPane) {
@@ -402,7 +395,7 @@ public class CardPaneSkin extends Contai
         int preferredWidth = 0;
         int preferredHeight = 0;
 
-        CardPane cardPane = (CardPane)getComponent();
+        CardPane cardPane = (CardPane) getComponent();
 
         if (sizeToSelection) {
             if (selectionChangeTransition == null) {
@@ -438,8 +431,9 @@ public class CardPaneSkin extends Contai
                     height = toSize.height;
                 }
 
-                preferredWidth = previousWidth + (int)((width - previousWidth) * percentComplete);
-                preferredHeight = previousHeight + (int)((height - previousHeight) * percentComplete);
+                preferredWidth = previousWidth + (int) ((width - previousWidth) * percentComplete);
+                preferredHeight = previousHeight
+                    + (int) ((height - previousHeight) * percentComplete);
             }
         } else {
             for (Component card : cardPane) {
@@ -461,7 +455,7 @@ public class CardPaneSkin extends Contai
         int baseline = -1;
 
         if (sizeToSelection) {
-            CardPane cardPane = (CardPane)getComponent();
+            CardPane cardPane = (CardPane) getComponent();
             Component selectedCard = cardPane.getSelectedCard();
 
             if (selectedCard != null) {
@@ -483,7 +477,7 @@ public class CardPaneSkin extends Contai
     public void layout() {
         // Set the size of all components to match the size of the card pane,
         // minus padding
-        CardPane cardPane = (CardPane)getComponent();
+        CardPane cardPane = (CardPane) getComponent();
         int width = Math.max(getWidth() - (padding.left + padding.right), 0);
         int height = Math.max(getHeight() - (padding.top + padding.bottom), 0);
 
@@ -494,14 +488,16 @@ public class CardPaneSkin extends Contai
     }
 
     /**
-     * Returns the amount of space between the edge of the CardPane and its content.
+     * Returns the amount of space between the edge of the CardPane and its
+     * content.
      */
     public Insets getPadding() {
         return padding;
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the CardPane and its content.
+     * Sets the amount of space to leave between the edge of the CardPane and
+     * its content.
      */
     public void setPadding(Insets padding) {
         if (padding == null) {
@@ -513,9 +509,11 @@ public class CardPaneSkin extends Contai
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the CardPane and its content.
-     *
-     * @param padding A dictionary with keys in the set {left, top, bottom, right}.
+     * Sets the amount of space to leave between the edge of the CardPane and
+     * its content.
+     * 
+     * @param padding A dictionary with keys in the set {left, top, bottom,
+     * right}.
      */
     public final void setPadding(Dictionary<String, ?> padding) {
         if (padding == null) {
@@ -526,16 +524,16 @@ public class CardPaneSkin extends Contai
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the CardPane and its content,
-     * uniformly on all four edges.
+     * Sets the amount of space to leave between the edge of the CardPane and
+     * its content, uniformly on all four edges.
      */
     public final void setPadding(int padding) {
         setPadding(new Insets(padding));
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the CardPane and its content,
-     * uniformly on all four edges.
+     * Sets the amount of space to leave between the edge of the CardPane and
+     * its content, uniformly on all four edges.
      */
     public void setPadding(Number padding) {
         if (padding == null) {
@@ -546,10 +544,11 @@ public class CardPaneSkin extends Contai
     }
 
     /**
-     * Sets the amount of space to leave between the edge of the CardPane and its content.
-     *
-     * @param padding A string containing an integer or a JSON dictionary with keys
-     * left, top, bottom, and/or right.
+     * Sets the amount of space to leave between the edge of the CardPane and
+     * its content.
+     * 
+     * @param padding A string containing an integer or a JSON dictionary with
+     * keys left, top, bottom, and/or right.
      */
     public final void setPadding(String padding) {
         if (padding == null) {
@@ -599,22 +598,20 @@ public class CardPaneSkin extends Contai
     public void setSelectionChangeRate(int selectionChangeRate) {
         this.selectionChangeRate = selectionChangeRate;
     }
+
     /**
      * Sets the circular style, which controls the direction of certain
      * transitions (transitions for which a direction makes sense) when looping
-     * from the first index of a card pane to the last, or vice versa. When
-     * this style is <tt>false</tt> (the default), directional transitions will
+     * from the first index of a card pane to the last, or vice versa. When this
+     * style is <tt>false</tt> (the default), directional transitions will
      * always appear to move forward when transitioning from a lower card index
      * to a higher card index, and vice versa. When this style is <tt>true</tt>,
      * directional transitions will appear to move forward when transitioning
      * from the last card to the first, and backward when they transition from
-     * the first card to the last.
-     * <p>
-     * Note: to avoid ambiguity, the circular style will be ignored if the card
-     * pane has fewer than three cards.
-     *
-     * @return
-     * <tt>true</tt> if directional transitions will be circular;
+     * the first card to the last. <p> Note: to avoid ambiguity, the circular
+     * style will be ignored if the card pane has fewer than three cards.
+     * 
+     * @return <tt>true</tt> if directional transitions will be circular;
      * <tt>false</tt> otherwise
      */
     public boolean isCircular() {
@@ -624,20 +621,17 @@ public class CardPaneSkin extends Contai
     /**
      * Sets the circular style, which controls the direction of certain
      * transitions (transitions for which a direction makes sense) when looping
-     * from the first index of a card pane to the last, or vice versa. When
-     * this style is <tt>false</tt> (the default), directional transitions will
+     * from the first index of a card pane to the last, or vice versa. When this
+     * style is <tt>false</tt> (the default), directional transitions will
      * always appear to move forward when transitioning from a lower card index
      * to a higher card index, and vice versa. When this style is <tt>true</tt>,
      * directional transitions will appear to move forward when transitioning
      * from the last card to the first, and backward when they transition from
-     * the first card to the last.
-     * <p>
-     * Note: to avoid ambiguity, the circular style will be ignored if the card
-     * pane has fewer than three cards.
-     *
-     * @param circular
-     * <tt>true</tt> if directional transitions should be circular;
-     * <tt>false</tt> otherwise
+     * the first card to the last. <p> Note: to avoid ambiguity, the circular
+     * style will be ignored if the card pane has fewer than three cards.
+     * 
+     * @param circular <tt>true</tt> if directional transitions should be
+     * circular; <tt>false</tt> otherwise
      */
     public void setCircular(boolean circular) {
         this.circular = circular;
@@ -651,7 +645,7 @@ public class CardPaneSkin extends Contai
 
         super.componentInserted(container, index);
 
-        CardPane cardPane = (CardPane)container;
+        CardPane cardPane = (CardPane) container;
         Component card = cardPane.get(index);
         card.setVisible(false);
 
@@ -670,7 +664,7 @@ public class CardPaneSkin extends Contai
 
         super.componentsRemoved(container, index, removed);
 
-        for (int i = 0, n = removed.getLength(); i < n; i++){
+        for (int i = 0, n = removed.getLength(); i < n; i++) {
             Component card = removed.get(i);
             card.setVisible(true);
         }
@@ -682,29 +676,28 @@ public class CardPaneSkin extends Contai
     public Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex) {
         Vote vote;
 
-        if (cardPane.isShowing()
-            && selectionChangeEffect != null
+        if (cardPane.isShowing() && selectionChangeEffect != null
             && selectionChangeTransition == null) {
             int previousSelectedIndex = cardPane.getSelectedIndex();
 
             switch (selectionChangeEffect) {
                 case CROSSFADE: {
-                    selectionChangeTransition = new CrossfadeTransition(previousSelectedIndex, selectedIndex);
+                    selectionChangeTransition = new CrossfadeTransition(previousSelectedIndex,
+                        selectedIndex);
                     break;
                 }
 
                 case HORIZONTAL_SLIDE:
                 case VERTICAL_SLIDE: {
-                    if (previousSelectedIndex != -1
-                        && selectedIndex != -1) {
-                        selectionChangeTransition = new SlideTransition(previousSelectedIndex, selectedIndex);
+                    if (previousSelectedIndex != -1 && selectedIndex != -1) {
+                        selectionChangeTransition = new SlideTransition(previousSelectedIndex,
+                            selectedIndex);
                     }
                     break;
                 }
 
                 case HORIZONTAL_FLIP: {
-                    if (previousSelectedIndex != -1
-                        && selectedIndex != -1) {
+                    if (previousSelectedIndex != -1 && selectedIndex != -1) {
                         selectionChangeTransition = new FlipTransition(Orientation.HORIZONTAL,
                             previousSelectedIndex, selectedIndex);
                     }
@@ -712,8 +705,7 @@ public class CardPaneSkin extends Contai
                 }
 
                 case VERTICAL_FLIP: {
-                    if (previousSelectedIndex != -1
-                        && selectedIndex != -1) {
+                    if (previousSelectedIndex != -1 && selectedIndex != -1) {
                         selectionChangeTransition = new FlipTransition(Orientation.VERTICAL,
                             previousSelectedIndex, selectedIndex);
                     }
@@ -721,9 +713,9 @@ public class CardPaneSkin extends Contai
                 }
 
                 case ZOOM: {
-                    if (previousSelectedIndex != -1
-                        && selectedIndex != -1) {
-                        selectionChangeTransition = new ZoomTransition(previousSelectedIndex, selectedIndex);
+                    if (previousSelectedIndex != -1 && selectedIndex != -1) {
+                        selectionChangeTransition = new ZoomTransition(previousSelectedIndex,
+                            selectedIndex);
                     }
                     break;
                 }
@@ -737,10 +729,9 @@ public class CardPaneSkin extends Contai
                 selectionChangeTransition.start(new TransitionListener() {
                     @Override
                     public void transitionCompleted(Transition transition) {
-                        CardPane cardPaneLocal = (CardPane)getComponent();
+                        CardPane cardPaneLocal = (CardPane) getComponent();
 
-                        SelectionChangeTransition selectionChangeTransitionLocal =
-                            (SelectionChangeTransition)transition;
+                        SelectionChangeTransition selectionChangeTransitionLocal = (SelectionChangeTransition) transition;
 
                         int selectedIndexLocal = cardPaneLocal.indexOf(selectionChangeTransitionLocal.toCard);
                         cardPaneLocal.setSelectedIndex(selectedIndexLocal);
@@ -750,8 +741,7 @@ public class CardPaneSkin extends Contai
             }
         }
 
-        if (selectionChangeTransition == null
-            || !selectionChangeTransition.isRunning()) {
+        if (selectionChangeTransition == null || !selectionChangeTransition.isRunning()) {
             vote = Vote.APPROVE;
         } else {
             vote = Vote.DEFER;
@@ -762,8 +752,7 @@ public class CardPaneSkin extends Contai
 
     @Override
     public void selectedIndexChangeVetoed(CardPane cardPane, Vote reason) {
-        if (reason == Vote.DENY
-            && selectionChangeTransition != null) {
+        if (reason == Vote.DENY && selectionChangeTransition != null) {
             // NOTE We stop, rather than end, the transition so the completion
             // event isn't fired; if the event fires, the listener will set
             // the selection state
@@ -792,9 +781,7 @@ public class CardPaneSkin extends Contai
                 previousSelectedCard.setVisible(false);
             }
 
-            if (selectedIndex == -1
-                || previousSelectedIndex == -1
-                || sizeToSelection) {
+            if (selectedIndex == -1 || previousSelectedIndex == -1 || sizeToSelection) {
                 invalidateComponent();
             }
         }

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CheckboxSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CheckboxSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CheckboxSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CheckboxSkin.java Fri Oct  4 23:45:40 2013
@@ -19,8 +19,8 @@ package org.apache.pivot.wtk.skin;
 import org.apache.pivot.wtk.Checkbox;
 import org.apache.pivot.wtk.Component;
 import org.apache.pivot.wtk.Keyboard;
-import org.apache.pivot.wtk.Mouse;
 import org.apache.pivot.wtk.Keyboard.KeyCode;
+import org.apache.pivot.wtk.Mouse;
 
 /**
  * Abstract base class for checkbox skins.
@@ -35,7 +35,7 @@ public abstract class CheckboxSkin exten
     public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
         boolean consumed = super.mouseClick(component, button, x, y, count);
 
-        Checkbox checkbox = (Checkbox)getComponent();
+        Checkbox checkbox = (Checkbox) getComponent();
 
         checkbox.requestFocus();
         checkbox.press();
@@ -50,7 +50,7 @@ public abstract class CheckboxSkin exten
     public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
         boolean consumed = false;
 
-        Checkbox checkbox = (Checkbox)getComponent();
+        Checkbox checkbox = (Checkbox) getComponent();
 
         if (keyCode == Keyboard.KeyCode.SPACE) {
             checkbox.press();

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java Fri Oct  4 23:45:40 2013
@@ -30,17 +30,17 @@ import org.apache.pivot.wtk.ContainerMou
 import org.apache.pivot.wtk.Display;
 import org.apache.pivot.wtk.FocusTraversalDirection;
 import org.apache.pivot.wtk.Keyboard;
+import org.apache.pivot.wtk.Keyboard.KeyCode;
+import org.apache.pivot.wtk.Keyboard.Modifier;
 import org.apache.pivot.wtk.Mouse;
 import org.apache.pivot.wtk.Window;
 import org.apache.pivot.wtk.WindowStateListener;
-import org.apache.pivot.wtk.Keyboard.KeyCode;
-import org.apache.pivot.wtk.Keyboard.Modifier;
 
 /**
  * Abstract base class for color chooser button skins.
  */
-public abstract class ColorChooserButtonSkin extends ButtonSkin
-    implements ColorChooserButton.Skin, ColorChooserButtonSelectionListener {
+public abstract class ColorChooserButtonSkin extends ButtonSkin implements ColorChooserButton.Skin,
+    ColorChooserButtonSelectionListener {
     /**
      * A focusable window class used by color chooser button skins.
      */
@@ -74,14 +74,12 @@ public abstract class ColorChooserButton
          * {@link KeyCode#ESCAPE ESCAPE} Close the popup.<br>
          * {@link KeyCode#ENTER ENTER} Choose the selected color.<br>
          * {@link KeyCode#TAB TAB} Choose the selected color and transfer focus
-         * forwards.<br>
-         * {@link KeyCode#TAB TAB} + {@link Modifier#SHIFT SHIFT} Choose the
-         * selected color and transfer focus backwards.
+         * forwards.<br> {@link KeyCode#TAB TAB} + {@link Modifier#SHIFT SHIFT}
+         * Choose the selected color and transfer focus backwards.
          */
         @Override
-        public boolean keyPressed(Component component, int keyCode,
-            Keyboard.KeyLocation keyLocation) {
-            ColorChooserButton colorChooserButton = (ColorChooserButton)getComponent();
+        public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
+            ColorChooserButton colorChooserButton = (ColorChooserButton) getComponent();
 
             switch (keyCode) {
                 case Keyboard.KeyCode.ESCAPE: {
@@ -94,8 +92,8 @@ public abstract class ColorChooserButton
                     colorChooserPopup.close();
 
                     if (keyCode == Keyboard.KeyCode.TAB) {
-                        FocusTraversalDirection direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ?
-                            FocusTraversalDirection.BACKWARD : FocusTraversalDirection.FORWARD;
+                        FocusTraversalDirection direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ? FocusTraversalDirection.BACKWARD
+                            : FocusTraversalDirection.FORWARD;
                         colorChooserButton.transferFocus(direction);
                     }
 
@@ -144,23 +142,18 @@ public abstract class ColorChooserButton
             display.getContainerMouseListeners().remove(displayMouseListener);
 
             Window componentWindow = getComponent().getWindow();
-            if (componentWindow != null
-                && componentWindow.isOpen()
-                && !componentWindow.isClosing()) {
+            if (componentWindow != null && componentWindow.isOpen() && !componentWindow.isClosing()) {
                 componentWindow.moveToFront();
             }
         }
     };
 
-    private ComponentMouseButtonListener colorChooserMouseButtonListener =
-        new ComponentMouseButtonListener.Adapter() {
+    private ComponentMouseButtonListener colorChooserMouseButtonListener = new ComponentMouseButtonListener.Adapter() {
         @Override
-        public boolean mouseClick(Component component, Mouse.Button button, int x, int y,
-            int count) {
-            ColorChooserButton colorChooserButton = (ColorChooserButton)getComponent();
+        public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
+            ColorChooserButton colorChooserButton = (ColorChooserButton) getComponent();
 
-            if (button == Mouse.Button.LEFT
-                && count == 2) {
+            if (button == Mouse.Button.LEFT && count == 2) {
                 colorChooserPopup.close();
 
                 Color color = colorChooser.getSelectedColor();
@@ -174,13 +167,12 @@ public abstract class ColorChooserButton
     private ContainerMouseListener displayMouseListener = new ContainerMouseListener.Adapter() {
         @Override
         public boolean mouseDown(Container container, Mouse.Button button, int x, int y) {
-            ColorChooserButton colorChooserButton = (ColorChooserButton)getComponent();
+            ColorChooserButton colorChooserButton = (ColorChooserButton) getComponent();
 
-            Display display = (Display)container;
+            Display display = (Display) container;
             Component descendant = display.getDescendantAt(x, y);
 
-            if (!colorChooserPopup.isAncestor(descendant)
-                && descendant != colorChooserButton) {
+            if (!colorChooserPopup.isAncestor(descendant) && descendant != colorChooserButton) {
                 colorChooserPopup.close();
 
                 Color color = colorChooser.getSelectedColor();
@@ -214,7 +206,7 @@ public abstract class ColorChooserButton
     public void install(Component component) {
         super.install(component);
 
-        ColorChooserButton colorChooserButton = (ColorChooserButton)component;
+        ColorChooserButton colorChooserButton = (ColorChooserButton) component;
         colorChooserButton.getColorChooserButtonSelectionListeners().add(this);
     }
 
@@ -300,7 +292,7 @@ public abstract class ColorChooserButton
     /**
      * {@link KeyCode#SPACE SPACE} Repaints the component to reflect the pressed
      * state.
-     *
+     * 
      * @see #keyReleased(Component, int,
      * org.apache.pivot.wtk.Keyboard.KeyLocation)
      */

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserSkin.java Fri Oct  4 23:45:40 2013
@@ -21,18 +21,17 @@ import java.awt.Color;
 import org.apache.pivot.wtk.ColorChooser;
 import org.apache.pivot.wtk.ColorChooserSelectionListener;
 import org.apache.pivot.wtk.Component;
-import org.apache.pivot.wtk.skin.ContainerSkin;
 
 /**
  * Abstract base class for color chooser skins.
  */
-public abstract class ColorChooserSkin extends ContainerSkin
-    implements ColorChooserSelectionListener {
+public abstract class ColorChooserSkin extends ContainerSkin implements
+    ColorChooserSelectionListener {
     @Override
     public void install(Component component) {
         super.install(component);
 
-        ColorChooser colorChooser = (ColorChooser)component;
+        ColorChooser colorChooser = (ColorChooser) component;
         colorChooser.getColorChooserSelectionListeners().add(this);
     }
 

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java Fri Oct  4 23:45:40 2013
@@ -50,9 +50,9 @@ import org.apache.pivot.wtk.Tooltip;
 /**
  * Abstract base class for component skins.
  */
-public abstract class ComponentSkin implements Skin, ComponentListener,
-    ComponentStateListener, ComponentMouseListener, ComponentMouseButtonListener,
-    ComponentMouseWheelListener, ComponentKeyListener, ComponentTooltipListener {
+public abstract class ComponentSkin implements Skin, ComponentListener, ComponentStateListener,
+    ComponentMouseListener, ComponentMouseButtonListener, ComponentMouseWheelListener,
+    ComponentKeyListener, ComponentTooltipListener {
     private Component component = null;
 
     private int width = 0;
@@ -91,7 +91,7 @@ public abstract class ComponentSkin impl
 
     @Override
     public void install(Component componentArgument) {
-        assert(this.component == null) : "Skin is already installed on a component.";
+        assert (this.component == null) : "Skin is already installed on a component.";
 
         componentArgument.getComponentListeners().add(this);
         componentArgument.getComponentStateListeners().add(this);
@@ -137,8 +137,8 @@ public abstract class ComponentSkin impl
     }
 
     @Override
-    public void preferredSizeChanged(Component componentArgument,
-        int previousPreferredWidth, int previousPreferredHeight) {
+    public void preferredSizeChanged(Component componentArgument, int previousPreferredWidth,
+        int previousPreferredHeight) {
         // No-op
     }
 
@@ -238,14 +238,15 @@ public abstract class ComponentSkin impl
     }
 
     @Override
-    public boolean mouseClick(Component componentArgument, Mouse.Button button, int x, int y, int count) {
+    public boolean mouseClick(Component componentArgument, Mouse.Button button, int x, int y,
+        int count) {
         return false;
     }
 
     // Component mouse wheel events
     @Override
-    public boolean mouseWheel(Component componentArgument, Mouse.ScrollType scrollType, int scrollAmount,
-        int wheelRotation, int x, int y) {
+    public boolean mouseWheel(Component componentArgument, Mouse.ScrollType scrollType,
+        int scrollAmount, int wheelRotation, int x, int y) {
         return false;
     }
 
@@ -256,25 +257,23 @@ public abstract class ComponentSkin impl
     }
 
     /**
-     * {@link KeyCode#TAB TAB} Transfers focus forwards<br>
-     * {@link KeyCode#TAB TAB} + {@link Modifier#SHIFT SHIFT} Transfers focus
-     * backwards
+     * {@link KeyCode#TAB TAB} Transfers focus forwards<br> {@link KeyCode#TAB
+     * TAB} + {@link Modifier#SHIFT SHIFT} Transfers focus backwards
      */
     @Override
-    public boolean keyPressed(Component componentArgument, int keyCode, Keyboard.KeyLocation keyLocation) {
+    public boolean keyPressed(Component componentArgument, int keyCode,
+        Keyboard.KeyLocation keyLocation) {
         boolean consumed = false;
 
-        if (keyCode == Keyboard.KeyCode.TAB
-            && getComponent().isFocused()) {
-            FocusTraversalDirection direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ?
-                FocusTraversalDirection.BACKWARD : FocusTraversalDirection.FORWARD;
+        if (keyCode == Keyboard.KeyCode.TAB && getComponent().isFocused()) {
+            FocusTraversalDirection direction = (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) ? FocusTraversalDirection.BACKWARD
+                : FocusTraversalDirection.FORWARD;
 
             // Transfer focus to the next component
             Component focusedComponent = component.transferFocus(direction);
 
             // Ensure that the focused component is visible
-            if (component != focusedComponent
-                && focusedComponent != null) {
+            if (component != focusedComponent && focusedComponent != null) {
                 focusedComponent.scrollAreaToVisible(0, 0, focusedComponent.getWidth(),
                     focusedComponent.getHeight());
             }
@@ -286,7 +285,8 @@ public abstract class ComponentSkin impl
     }
 
     @Override
-    public boolean keyReleased(Component componentArgument, int keyCode, Keyboard.KeyLocation keyLocation) {
+    public boolean keyReleased(Component componentArgument, int keyCode,
+        Keyboard.KeyLocation keyLocation) {
         return false;
     }
 
@@ -373,7 +373,8 @@ public abstract class ComponentSkin impl
         }
     }
 
-    protected void repaintComponent(int x, int y, int widthArgument, int heightArgument, boolean immediate) {
+    protected void repaintComponent(int x, int y, int widthArgument, int heightArgument,
+        boolean immediate) {
         if (component != null) {
             component.repaint(x, y, widthArgument, heightArgument, immediate);
         }
@@ -381,9 +382,10 @@ public abstract class ComponentSkin impl
 
     /**
      * Interpret a string as a font specification
-     * @param value Either a JSON dictionary
-     * {@link Theme#deriveFont describing a font relative to the current theme}, or
-     * one of the {@link Font#decode(String) standard Java font specifications}.
+     * 
+     * @param value Either a JSON dictionary {@link Theme#deriveFont describing
+     * a font relative to the current theme}, or one of the
+     * {@link Font#decode(String) standard Java font specifications}.
      */
     public static Font decodeFont(String value) {
         Font font;

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ContainerSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ContainerSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ContainerSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ContainerSkin.java Fri Oct  4 23:45:40 2013
@@ -32,12 +32,11 @@ import org.apache.pivot.wtk.FocusTravers
 import org.apache.pivot.wtk.GraphicsUtilities;
 import org.apache.pivot.wtk.Mouse;
 
-
 /**
  * Abstract base class for container skins.
  */
-public abstract class ContainerSkin extends ComponentSkin
-    implements ContainerListener, ContainerMouseListener {
+public abstract class ContainerSkin extends ComponentSkin implements ContainerListener,
+    ContainerMouseListener {
     /**
      * Focus traversal policy that determines traversal order based on the order
      * of components in the container's component sequence.
@@ -54,7 +53,8 @@ public abstract class ContainerSkin exte
         }
 
         @Override
-        public Component getNextComponent(Container container, Component component, FocusTraversalDirection direction) {
+        public Component getNextComponent(Container container, Component component,
+            FocusTraversalDirection direction) {
             if (container == null) {
                 throw new IllegalArgumentException("container is null.");
             }
@@ -132,7 +132,7 @@ public abstract class ContainerSkin exte
     public void install(Component component) {
         super.install(component);
 
-        Container container = (Container)component;
+        Container container = (Container) component;
 
         // Add this as a container listener
         container.getContainerListeners().add(this);
@@ -161,8 +161,7 @@ public abstract class ContainerSkin exte
     }
 
     /**
-     * @return
-     * <tt>false</tt>; by default, containers are not focusable.
+     * @return <tt>false</tt>; by default, containers are not focusable.
      */
     @Override
     public boolean isFocusable() {
@@ -171,12 +170,12 @@ public abstract class ContainerSkin exte
 
     @Override
     public boolean isOpaque() {
-        return (backgroundPaint != null
-            && backgroundPaint.getTransparency() == Transparency.OPAQUE);
+        return (backgroundPaint != null && backgroundPaint.getTransparency() == Transparency.OPAQUE);
     }
 
     /**
-     * Returns the {@link Paint} object used to paint the background of the container
+     * Returns the {@link Paint} object used to paint the background of the
+     * container
      */
     public Paint getBackgroundPaint() {
         return backgroundPaint;
@@ -184,6 +183,7 @@ public abstract class ContainerSkin exte
 
     /**
      * Sets the object used to paint the background of the container.
+     * 
      * @param backgroundPaint The {@link Paint} object
      */
     public void setBackgroundPaint(Paint backgroundPaint) {
@@ -193,6 +193,7 @@ public abstract class ContainerSkin exte
 
     /**
      * Sets the object used to paint the background of the container.
+     * 
      * @param backgroundPaint A string recognized by Pivot as a
      * {@linkplain GraphicsUtilities#decodePaint(String) Color or Paint value}.
      */
@@ -206,6 +207,7 @@ public abstract class ContainerSkin exte
 
     /**
      * Sets the object used to paint the background of the container.
+     * 
      * @param backgroundPaint A dictionary containing a
      * {@linkplain GraphicsUtilities#decodePaint(Dictionary) Paint description}.
      */
@@ -222,7 +224,7 @@ public abstract class ContainerSkin exte
      * set as the background; otherwise null.
      */
     public Color getBackgroundColor() {
-        return (backgroundPaint instanceof Color) ? (Color)backgroundPaint : null;
+        return (backgroundPaint instanceof Color) ? (Color) backgroundPaint : null;
     }
 
     /**
@@ -234,7 +236,10 @@ public abstract class ContainerSkin exte
 
     /**
      * Sets the background of the container to a solid color.
-     * @param backgroundColor Any of the {@linkplain GraphicsUtilities#decodeColor color values recognized by Pivot}.
+     * 
+     * @param backgroundColor Any of the
+     * {@linkplain GraphicsUtilities#decodeColor color values recognized by
+     * Pivot}.
      */
     public final void setBackgroundColor(String backgroundColor) {
         if (backgroundColor == null) {
@@ -282,8 +287,8 @@ public abstract class ContainerSkin exte
     }
 
     @Override
-    public boolean mouseWheel(Container container, Mouse.ScrollType scrollType,
-        int scrollAmount, int wheelRotation, int x, int y) {
+    public boolean mouseWheel(Container container, Mouse.ScrollType scrollType, int scrollAmount,
+        int wheelRotation, int x, int y) {
         return false;
     }
 }

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/DisplaySkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/DisplaySkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/DisplaySkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/DisplaySkin.java Fri Oct  4 23:45:40 2013
@@ -35,7 +35,8 @@ public class DisplaySkin extends Contain
     @Override
     public void install(Component component) {
         if (!(component instanceof Display)) {
-            throw new IllegalArgumentException("DisplaySkin can only be installed on instances of Display.");
+            throw new IllegalArgumentException(
+                "DisplaySkin can only be installed on instances of Display.");
         }
 
         super.install(component);
@@ -43,11 +44,11 @@ public class DisplaySkin extends Contain
 
     @Override
     public void layout() {
-        Display display = (Display)getComponent();
+        Display display = (Display) getComponent();
 
         // Set all components to their preferred sizes
         for (Component component : display) {
-            Window window = (Window)component;
+            Window window = (Window) component;
 
             if (window.isVisible()) {
                 if (window.isMaximized()) {
@@ -64,4 +65,3 @@ public class DisplaySkin extends Contain
         }
     }
 }
-

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ExpanderSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ExpanderSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ExpanderSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ExpanderSkin.java Fri Oct  4 23:45:40 2013
@@ -24,13 +24,12 @@ import org.apache.pivot.wtk.ExpanderList
 /**
  * Abstract base class for expander skins.
  */
-public abstract class ExpanderSkin extends ContainerSkin
-    implements ExpanderListener {
+public abstract class ExpanderSkin extends ContainerSkin implements ExpanderListener {
     @Override
     public void install(Component component) {
         super.install(component);
 
-        Expander expander = (Expander)component;
+        Expander expander = (Expander) component;
         expander.getExpanderListeners().add(this);
     }
 

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/FileBrowserSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/FileBrowserSkin.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/FileBrowserSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/FileBrowserSkin.java Fri Oct  4 23:45:40 2013
@@ -19,18 +19,17 @@ package org.apache.pivot.wtk.skin;
 import org.apache.pivot.wtk.Component;
 import org.apache.pivot.wtk.FileBrowser;
 import org.apache.pivot.wtk.FileBrowserListener;
-import org.apache.pivot.wtk.skin.ContainerSkin;
 
 /**
  * Abstract base class for file browser skins.
  */
-public abstract class FileBrowserSkin extends ContainerSkin
-    implements FileBrowser.Skin, FileBrowserListener {
+public abstract class FileBrowserSkin extends ContainerSkin implements FileBrowser.Skin,
+    FileBrowserListener {
     @Override
     public void install(Component component) {
         super.install(component);
 
-        FileBrowser fileBrowser = (FileBrowser)component;
+        FileBrowser fileBrowser = (FileBrowser) component;
         fileBrowser.getFileBrowserListeners().add(this);
     }
 }