Groovy Documentation

com.wordpress.tipsforjava.swing
[Java] Enum MenuScroller.MenuIcon

java.lang.Object
  com.wordpress.tipsforjava.swing.MenuScroller.MenuIcon
All Implemented Interfaces:
Icon

private static enum MenuScroller.MenuIcon

Enum Constant Summary
DOWN

UP

 
Field Summary
int[] xPoints

A class that provides scrolling capabilities to a long menu dropdown or popup menu.

int[] yPoints

 
Method Summary
def MenuIcon(int... yPoints)

int getIconHeight()

int getIconWidth()

void paintIcon(Component c, Graphics g, int x, int y)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

DOWN

MenuScroller.MenuIcon DOWN


UP

MenuScroller.MenuIcon UP


 
Field Detail

xPoints

final int[] xPoints
A class that provides scrolling capabilities to a long menu dropdown or popup menu. A number of items can optionally be frozen at the top and/or bottom of the menu.

Implementation note: The default number of items to display at a time is 15, and the default scrolling interval is 125 milliseconds.

Authors:
Rob Camick
Darryl Burke


yPoints

final int[] yPoints


 
Method Detail

MenuIcon

def MenuIcon(int... yPoints)


getIconHeight

public int getIconHeight()


getIconWidth

public int getIconWidth()


paintIcon

public void paintIcon(Component c, Graphics g, int x, int y)


 

Groovy Documentation