Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.AbstractButton | +--javax.swing.JButton | +--javax.swing.plaf.basic.BasicArrowButton | +--javax.swing.plaf.metal.MetalScrollButton
JButton object for Metal scrollbar arrows.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
Inner classes inherited from class javax.swing.JButton |
JButton.AccessibleJButton |
Inner classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton,
AbstractButton.ButtonChangeListener |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class javax.swing.plaf.basic.BasicArrowButton |
direction |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
MetalScrollButton(int direction,
int width,
boolean freeStanding)
|
Method Summary | |
int |
getButtonWidth()
|
Dimension |
getMaximumSize()
If the maximumSize has been set to a non-null value just return it. |
Dimension |
getMinimumSize()
If the minimumSize has been set to a non-null value just return it. |
Dimension |
getPreferredSize()
If the preferredSize has been set to a non-null value just return it. |
void |
paint(Graphics g)
This method is invoked by Swing to draw components. |
void |
setFreeStanding(boolean freeStanding)
|
Methods inherited from class javax.swing.plaf.basic.BasicArrowButton |
getDirection,
isFocusTraversable,
paintTriangle,
setDirection |
Methods inherited from class javax.swing.JButton |
getAccessibleContext,
getUIClassID,
isDefaultButton,
isDefaultCapable,
paramString,
setDefaultCapable,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public MetalScrollButton(int direction, int width, boolean freeStanding)
Method Detail |
public void setFreeStanding(boolean freeStanding)
public void paint(Graphics g)
repaint
method to
schedule the component for redrawing.
This method actually delegates the work of painting to three
protected methods: paintComponent
, paintBorder
,
and paintChildren
. They're called in the order
listed to ensure that children appear on top of component itself.
Generally speaking, the component and its children should not
paint in the insets area allocated to the border. Subclasses can
just override this method, as always. A subclass that just
wants to specialize the UI (look and feel) delegates paint
method should just override paintComponent
.
JComponent.paintComponent(java.awt.Graphics)
,
JComponent.paintBorder(java.awt.Graphics)
,
JComponent.paintChildren(java.awt.Graphics)
,
JComponent.getComponentGraphics(java.awt.Graphics)
,
JComponent.repaint(long, int, int, int, int)
public Dimension getPreferredSize()
JComponent.setPreferredSize(java.awt.Dimension)
public Dimension getMinimumSize()
JComponent.setMinimumSize(java.awt.Dimension)
public Dimension getMaximumSize()
JComponent.setMaximumSize(java.awt.Dimension)
public int getButtonWidth()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |