| javax.swing.plaf.metal.MetalScrollButton com.jgoodies.looks.plastic.PlasticArrowButton
PlasticArrowButton | class PlasticArrowButton extends MetalScrollButton (Code) | | Renders the arrow buttons in scroll bars and spinners.
author: Karsten Lentzsch version: $Revision: 1.4 $ |
Constructor Summary | |
public | PlasticArrowButton(int direction, int width, boolean freeStanding) |
Method Summary | |
protected int | calculateArrowHeight(int height, int width) Computes and returns the arrow height based on the specified
buttons height and width.
Parameters: height - the height of the button to be used for calculation. Parameters: width - the width of the button to be used for calculation. | protected int | calculateArrowOffset() | protected boolean | isPaintingNorthBottom() | public void | paint(Graphics g) | protected void | paintNorth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset, boolean paintBottom) | protected void | paintSouth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset) | public void | setFreeStanding(boolean freeStanding) |
isFreeStanding | protected boolean isFreeStanding(Code) | | |
PlasticArrowButton | public PlasticArrowButton(int direction, int width, boolean freeStanding)(Code) | | |
calculateArrowHeight | protected int calculateArrowHeight(int height, int width)(Code) | | Computes and returns the arrow height based on the specified
buttons height and width.
Parameters: height - the height of the button to be used for calculation. Parameters: width - the width of the button to be used for calculation. the height of the arrow |
calculateArrowOffset | protected int calculateArrowOffset()(Code) | | |
isPaintingNorthBottom | protected boolean isPaintingNorthBottom()(Code) | | |
paintNorth | protected void paintNorth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset, boolean paintBottom)(Code) | | |
paintSouth | protected void paintSouth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset)(Code) | | |
setFreeStanding | public void setFreeStanding(boolean freeStanding)(Code) | | |
|
|