|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.smardec.asc.sliderpanel.SliderPanelGradientBorder
SliderPanelBorder is border for JSliderPanel. Needed to support draging.
| Field Summary | |
static int |
DRAG_BORDER_BOTTOM
The bottom drag border constraint. |
static int |
DRAG_BORDER_LEFT
The left drag border constraint. |
static int |
DRAG_BORDER_RIGHT
The right drag border constraint. |
static int |
DRAG_BORDER_TOP
The top drag border constraint. |
| Constructor Summary | |
SliderPanelGradientBorder(int sliderOrientation)
Constructs a SliderPanelBorder with the specified JSliderPanel's orientation. |
|
SliderPanelGradientBorder(int sliderOrientation,
boolean drawOtherBorders)
Constructs a SliderPanelBorder with the specified JSliderPanel's orientation and
borders look. |
|
SliderPanelGradientBorder(int sliderOrientation,
boolean drawOtherBorders,
int otherBorderWidth)
Constructs a SliderPanelBorder with the specified JSliderPanel's orientation and
borders look. |
|
SliderPanelGradientBorder(int sliderOrientation,
int dragBorderWidth)
Constructs a SliderPanelBorder with the specified JSliderPanel's orientation and
borders look. |
|
SliderPanelGradientBorder(int sliderOrientation,
int dragBorderWidth,
boolean drawOtherBorders)
Constructs a SliderPanelBorder with the specified JSliderPanel's orientation and
borders look. |
|
SliderPanelGradientBorder(int sliderOrientation,
int dragBorderWidth,
boolean drawOtherBorders,
int otherBorderWidth)
Constructs a SliderPanelBorder with the specified JSliderPanel's orientation and
borders look. |
|
| Method Summary | |
java.awt.Insets |
getBorderInsets(java.awt.Component component)
Returns the insets of the border. |
int |
getBottomBorderWidth()
Returns the bottom border width. |
java.awt.Color |
getColor1()
Returns start color for drag border gradient fill. |
java.awt.Color |
getColor2()
Returns end color for drag border gradient fill. |
int |
getLeftBorderWidth()
Returns the left border width. |
int |
getRightBorderWidth()
Returns the right border width. |
int |
getTopBorderWidth()
Returns the top border width. |
void |
paintBorder(java.awt.Component component,
java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
void |
setBorderInsets(java.awt.Insets borderInsets)
Specifies the insets of the border. |
void |
setBottomBorderWidth(int bottom)
Specifies the bottom border width. |
void |
setColor1(java.awt.Color color1)
Specifies start color for drag border gradient fill. |
void |
setColor2(java.awt.Color color2)
Specifies end color for drag border gradient fill. |
void |
setLeftBorderWidth(int left)
Specifies the left border width. |
void |
setRightBorderWidth(int right)
Specifies the right border width. |
void |
setTopBorderWidth(int top)
Specifies the top border width. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.border.Border |
isBorderOpaque |
| Field Detail |
public static final int DRAG_BORDER_LEFT
public static final int DRAG_BORDER_RIGHT
public static final int DRAG_BORDER_TOP
public static final int DRAG_BORDER_BOTTOM
| Constructor Detail |
public SliderPanelGradientBorder(int sliderOrientation)
SliderPanelBorder with the specified JSliderPanel's orientation.
sliderOrientation - the orientation of the JSliderPanel, one of the
following constants defined in JSliderPanel:
JSliderPanel.LEFT_PANEL,
JSliderPanel.RIGHT_PANEL,
JSliderPanel.TOP_PANEL or
JSliderPanel.BOTTOM_PANEL.
public SliderPanelGradientBorder(int sliderOrientation,
int dragBorderWidth)
SliderPanelBorder with the specified JSliderPanel's orientation and
borders look.
sliderOrientation - the orientation of the JSliderPanel, one of the
following constants defined in JSliderPanel:
JSliderPanel.LEFT_PANEL,
JSliderPanel.RIGHT_PANEL,
JSliderPanel.TOP_PANEL or
JSliderPanel.BOTTOM_PANEL.dragBorderWidth - the new width of drag border in pixels
public SliderPanelGradientBorder(int sliderOrientation,
boolean drawOtherBorders)
SliderPanelBorder with the specified JSliderPanel's orientation and
borders look.
sliderOrientation - the orientation of the JSliderPanel, one of the
following constants defined in JSliderPanel:
JSliderPanel.LEFT_PANEL,
JSliderPanel.RIGHT_PANEL,
JSliderPanel.TOP_PANEL or
JSliderPanel.BOTTOM_PANEL.drawOtherBorders - true if all borders except drag border should be
painted, otherwise false
public SliderPanelGradientBorder(int sliderOrientation,
int dragBorderWidth,
boolean drawOtherBorders)
SliderPanelBorder with the specified JSliderPanel's orientation and
borders look.
sliderOrientation - the orientation of the JSliderPanel, one of the
following constants defined in JSliderPanel:
JSliderPanel.LEFT_PANEL,
JSliderPanel.RIGHT_PANEL,
JSliderPanel.TOP_PANEL or
JSliderPanel.BOTTOM_PANEL.dragBorderWidth - the new width of drag border in pixelsdrawOtherBorders - true if all borders except drag border should be
painted, otherwise false
public SliderPanelGradientBorder(int sliderOrientation,
boolean drawOtherBorders,
int otherBorderWidth)
SliderPanelBorder with the specified JSliderPanel's orientation and
borders look.
sliderOrientation - the orientation of the JSliderPanel, one of the
following constants defined in JSliderPanel:
JSliderPanel.LEFT_PANEL,
JSliderPanel.RIGHT_PANEL,
JSliderPanel.TOP_PANEL or
JSliderPanel.BOTTOM_PANEL.drawOtherBorders - true if all borders except drag border should be
painted, otherwise falseotherBorderWidth - the new width of all borders except drag border in pixels
public SliderPanelGradientBorder(int sliderOrientation,
int dragBorderWidth,
boolean drawOtherBorders,
int otherBorderWidth)
SliderPanelBorder with the specified JSliderPanel's orientation and
borders look.
sliderOrientation - the orientation of the JSliderPanel, one of the
following constants defined in JSliderPanel:
JSliderPanel.LEFT_PANEL,
JSliderPanel.RIGHT_PANEL,
JSliderPanel.TOP_PANEL or
JSliderPanel.BOTTOM_PANEL.dragBorderWidth - the new width of drag border in pixelsdrawOtherBorders - true if all borders except drag border should be
painted, otherwise falseotherBorderWidth - the new width of all borders except drag border in pixels| Method Detail |
public java.awt.Color getColor1()
public void setColor1(java.awt.Color color1)
color1 - start color for drag border gradient fillpublic java.awt.Color getColor2()
public void setColor2(java.awt.Color color2)
color2 - end color for drag border gradient fill
public void paintBorder(java.awt.Component component,
java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.Bordercomponent - the component for which this border is being paintedgraphics - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted borderpublic java.awt.Insets getBorderInsets(java.awt.Component component)
getBorderInsets in interface javax.swing.border.Bordercomponent - the component for which this border insets value appliespublic void setBorderInsets(java.awt.Insets borderInsets)
borderInsets - border insetspublic void setLeftBorderWidth(int left)
left - the new width of left border in pixelspublic void setRightBorderWidth(int right)
right - the new width of right border in pixelspublic void setTopBorderWidth(int top)
top - the new width of top border in pixelspublic void setBottomBorderWidth(int bottom)
bottom - the new width of bottom border in pixelspublic int getLeftBorderWidth()
public int getRightBorderWidth()
public int getTopBorderWidth()
public int getBottomBorderWidth()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||