org.moxieapps.gwt.highcharts.client
Class Frame.FramePanel

java.lang.Object
  extended by org.moxieapps.gwt.highcharts.client.Configurable<Frame.FramePanel>
      extended by org.moxieapps.gwt.highcharts.client.Frame.FramePanel
Enclosing class:
Frame

public static class Frame.FramePanel
extends Configurable<Frame.FramePanel>

Inner class to support setting 'frame' attributes in a 3d chart. This class should not be instantiated on its own, but as a parameter to a method of the Frame class. Suggested usage:


     chart.setOptions3d()
          .setFrame(new Frame()
              .setSide(new FramePanel()
                  .setColor(new Color(0, 0, 0, .5))
                  .setSize(2)
              )
          )
      ;
 


Constructor Summary
Frame.FramePanel()
           
 
Method Summary
 Frame.FramePanel setColor(Color color)
          Convenience method for setting the 'color' attribute of a panel.
 Frame.FramePanel setSize(Number size)
          Convenience method for setting the 'size' attribute of a panel.
 
Methods inherited from class org.moxieapps.gwt.highcharts.client.Configurable
getOptions, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Frame.FramePanel

public Frame.FramePanel()
Method Detail

setColor

public Frame.FramePanel setColor(Color color)
Convenience method for setting the 'color' attribute of a panel. Equivalent to:

      framePanel.setOption("color", new Color());
 

Parameters:
color - The color of the panel. Defaults to transparent.
Returns:
A reference to this Frame.FramePanel instance for convenient method chaining.

setSize

public Frame.FramePanel setSize(Number size)
Convenience method for setting the 'size' attribute of a panel. Equivalent to:

       framePanel.setOption("size", 5);
 

Parameters:
size - Thickness of the panel. Defaults to 1.
Returns:
A reference to this Frame.FramePanel instance for convenient method chaining.


Copyright © 2015. All Rights Reserved.