javatm platform
standard ed. 6

javax.swing.plaf.basic
类 basicarrowbutton

java.lang.object 继承者 java.awt.component 继承者 java.awt.container   继承者 javax.swing.jcomponent   继承者 javax.swing.abstractbutton   继承者 javax.swing.jbutton     继承者 javax.swing.plaf.basic.basicarrowbutton
所有【suǒ yǒu】已实现的接口:
imageobserver, itemselectable, menucontainer, serializable, accessible, swingconstants
直接已知子类:
metalscrollbutton

public class basicarrowbutton
extends jbutton
implements swingconstants

一个 jbutton 对象,它绘制朝某个基本方向的缩放箭头。

警告:此类的序列化对象将与以后的 swing 版本不兼容。当前序列化支持【zhī chí】适用于短期存储,或适用于在运行相同 swing 版本的应用程序之间进行 rmi(remote method invocation,远程方法调用)。从 1.4 版本开始【kāi shǐ】,已在 java.beans 包中添加了支持【zhī chí】所有 javabeanstm 长期存储的功能。请参见 xmlencoder


嵌套类摘要
 
从类 javax.swing.jbutton 继承的嵌套类/接口
jbutton.accessiblejbutton
 
从类 javax.swing.abstractbutton 继承的嵌套类/接口
abstractbutton.accessibleabstractbutton, abstractbutton.buttonchangelistener
 
从类 javax.swing.jcomponent 继承的嵌套类/接口
jcomponent.accessiblejcomponent
 
从类 java.awt.container 继承的嵌套类/接口
container.accessibleawtcontainer
 
从类 java.awt.component 继承的嵌套类/接口
component.accessibleawtcomponent, component.baselineresizebehavior, component.bltbufferstrategy, component.flipbufferstrategy
 
字段摘要
protected  intdirection
          箭头的方向。
 
从类 javax.swing.abstractbutton 继承的字段
actionlistener, border_painted_changed_property, changeevent, changelistener, content_area_filled_changed_property, disabled_icon_changed_property, disabled_selected_icon_changed_property, focus_painted_changed_property, horizontal_alignment_changed_property, horizontal_text_position_changed_property, icon_changed_property, itemlistener, margin_changed_property, mnemonic_changed_property, model, model_changed_property, pressed_icon_changed_property, rollover_enabled_changed_property, rollover_icon_changed_property, rollover_selected_icon_changed_property, selected_icon_changed_property, text_changed_property, vertical_alignment_changed_property, vertical_text_position_changed_property
 
从类 javax.swing.jcomponent 继承的字段
accessiblecontext, listenerlist, tool_tip_text_key, ui, undefined_condition, when_ancestor_of_focused_component, when_focused, when_in_focused_window
 
从类 java.awt.component 继承的字段
bottom_alignment, center_alignment, left_alignment, right_alignment, top_alignment
 
从接口 javax.swing.swingconstants 继承的字段
bottom, center, east, horizontal, leading, left, next, north, north_east, north_west, previous, right, south, south_east, south_west, top, trailing, vertical, west
 
从接口 java.awt.image.imageobserver 继承的字段
abort, allbits, error, framebits, height, properties, somebits, width
 
构造方法摘要
basicarrowbutton(int direction)
          创建一个在指定方向上绘制其箭头的 basicarrowbuttonjs随机数
basicarrowbutton(int direction,color background,color shadow,color darkshadow,color highlight)
          创建一个在指定方向上绘制其箭头并具有指定颜色的 basicarrowbutton
 
方法摘要
 intgetdirection()
          返回箭头的方向。
 dimensiongetmaximumsize()
          返回 basicarrowbutton 的最大【largest】大小。
 dimensiongetminimumsize()
          返回 basicarrowbutton 的最小【zuì xiǎo】大小。
 dimensiongetpreferredsize()
          返回 basicarrowbutton 的首选大小。
 booleanisfocustraversable()
          返回箭头按钮是否应该【yīng gāi】获取焦点。
 voidpaint(graphics g)
          由 swing 调用,以绘制组件。
 voidpainttriangle(graphics g,int x,int y,int size,int direction,boolean isenabled)
          绘制一个三角形。
 voidsetdirection(int dir)
          设置箭头的方向。
 
从类 javax.swing.jbutton 继承的方法
getaccessiblecontext, getuiclassid, isdefaultbutton, isdefaultcapable, paramstring, removenotify, setdefaultcapable, updateui
 
从类 javax.swing.abstractbutton 继承的方法
actionpropertychanged, addactionlistener, addchangelistener, addimpl, additemlistener, checkhorizontalkey, checkverticalkey, configurepropertiesfromaction, createactionlistener, createactionpropertychangelistener, createchangelistener, createitemlistener, doclick, doclick, fireactionperformed, fireitemstatechanged, firestatechanged, getaction, getactioncommand, getactionlisteners, getchangelisteners, getdisabledicon, getdisabledselectedicon, getdisplayedmnemonicindex, gethideactiontext, gethorizontalalignment, gethorizontaltextposition, geticon, geticontextgap, getitemlisteners, getlabel, getmargin, getmnemonic, getmodel, getmulticlickthreshhold, getpressedicon, getrollovericon, getrolloverselectedicon, getselectedicon, getselectedobjects, gettext, getui, getverticalalignment, getverticaltextposition, imageupdate, init, isborderpainted, iscontentareafilled, isfocuspainted, isrolloverenabled, isselected, paintborder, removeactionlistener, removechangelistener, removeitemlistener, setaction, setactioncommand, setborderpainted, setcontentareafilled, setdisabledicon, setdisabledselectedicon, setdisplayedmnemonicindex, setenabled, setfocuspainted, sethideactiontext, sethorizontalalignment, sethorizontaltextposition, seticon, seticontextgap, setlabel, setlayout, setmargin, setmnemonic, setmnemonic, setmodel, setmulticlickthreshhold, setpressedicon, setrolloverenabled, setrollovericon, setrolloverselectedicon, setselected, setselectedicon, settext, setui, setverticalalignment, setverticaltextposition
 
从类 javax.swing.jcomponent 继承的方法
addancestorlistener, addnotify, addvetoablechangelistener, computevisiblerect, contains, createtooltip, disable, enable, firepropertychange, firepropertychange, firepropertychange, firevetoablechange, getactionforkeystroke, getactionmap, getalignmentx, getalignmenty, getancestorlisteners, getautoscrolls, getbaseline, getbaselineresizebehavior, getborder, getbounds, getclientproperty, getcomponentgraphics, getcomponentpopupmenu, getconditionforkeystroke, getdebuggraphicsoptions, getdefaultlocale, getfontmetrics, getgraphics, getheight, getinheritspopupmenu, getinputmap, getinputmap, getinputverifier, getinsets, getinsets, getlisteners, getlocation, getnextfocusablecomponent, getpopuplocation, getregisteredkeystrokes, getrootpane, getsize, gettooltiplocation, gettooltiptext, gettooltiptext, gettoplevelancestor, gettransferhandler, getverifyinputwhenfocustarget, getvetoablechangelisteners, getvisiblerect, getwidth, getx, gety, grabfocus, isdoublebuffered, islightweightcomponent, ismanagingfocus, isopaque, isoptimizeddrawingenabled, ispaintingforprint, ispaintingtile, isrequestfocusenabled, isvalidateroot, paintchildren, paintcomponent, paintimmediately, paintimmediately, print, printall, printborder, printchildren, printcomponent, processcomponentkeyevent, processkeybinding, processkeyevent, processmouseevent, processmousemotionevent, putclientproperty, registerkeyboardaction, registerkeyboardaction, removeancestorlistener, removevetoablechangelistener, repaint, repaint, requestdefaultfocus, requestfocus, requestfocus, requestfocusinwindow, requestfocusinwindow
根据《印度【yìn dù】【attitudes】时报》报导,当地警方表示,伊萨德其实早就跟女友?z密结婚,只是一直没有告诉家人,所以父母【fù mǔ】才安排他跟另一名较年轻的女孩【nǚ hái】结婚,而伊萨德考虑过后,竟然也决定再娶一次老婆【别人家的好】,
版权声明:图片为版权照片,由CFP视觉中国【zhōng guó】供《ETNEWS新闻云》专用,任何网站、报刊、电视台未经CFP许可,不得部分或全部【quán bù】转载,违者必究!
大萤幕上,瑞典学院人员出今年的文学奖评选结果,得主是英国的石黑一雄,现场200多人的脸上立刻【gogo】露出无比失望,同时发出一声集体叹息
Uber代表安森(Melanie Ensign)表示,苹果之所以会授权这项功能,是因为早期的Apple Watch版本有问题【wèn tí】,无法【to be】充分处理应用程式中的地图输出,
新加坡【xīn jiā pō】总理李显龙在上个月访问【visit】北京后,就传出新加坡【xīn jiā pō】武装部队赴台军训已超过40年的
菲律宾民众担心【 dān xīn】亲友遭不明原因杀害,因此【 yīn cǐ】上街游行呼吁警方停止血腥扫毒
, resetkeyboardactions, reshape, revalidate, scrollrecttovisible, setactionmap, setalignmentx, setalignmenty, setautoscrolls, setbackground, setborder, setcomponentpopupmenu, setdebuggraphicsoptions, setdefaultlocale, setdoublebuffered, setfocustraversalkeys, setfont, setforeground, setinheritspopupmenu, setinputmap, setinputverifier, setmaximumsize, setminimumsize, setnextfocusablecomponent, setopaque, setpreferredsize, setrequestfocusenabled, settooltiptext, settransferhandler, setui, setverifyinputwhenfocustarget, setvisible, unregisterkeyboardaction, update
 
从类 java.awt.container 继承的方法
add, add, add, add, add, addcontainerlistener, addpropertychangelistener, addpropertychangelistener, applycomponentorientation, arefocustraversalkeysset, countcomponents, deliverevent, dolayout, findcomponentat, findcomponentat, getcomponent, getcomponentat, getcomponentat, getcomponentcount, getcomponents, getcomponentzorder, getcontainerlisteners, getfocustraversalkeys, getfocustraversalpolicy, getlayout, getmouseposition, insets, invalidate, isancestorof, isfocuscycleroot, isfocuscycleroot, isfocustraversalpolicyprovider, isfocustraversalpolicyset, layout, list, list, locate, minimumsize, paintcomponents, preferredsize, printcomponents, processcontainerevent, processevent, remove, remove, removeall, removecontainerlistener, setcomponentzorder, setfocuscycleroot, setfocustraversalpolicy, setfocustraversalpolicyprovider, transferfocusbackward, transferfocusdowncycle, validate, validatetree
 
从类 java.awt.component 继承的方法
action, add, addcomponentlistener, addfocuslistener, addhierarchyboundslistener, addhierarchylistener, addinputmethodlistener, addkeylistener, addmouselistener, addmousemotionlistener, addmousewheellistener, bounds, checkimage, checkimage, coalesceevents, contains, createimage, createimage, createvolatileimage, createvolatileimage, disableevents, dispatchevent, enable, enableevents, enableinputmethods, firepropertychange, firepropertychange, firepropertychange, firepropertychange, firepropertychange, firepropertychange, getbackground, getbounds, getcolormodel, getcomponentlisteners, getcomponentorientation, getcursor, getdroptarget, getfocuscyclerootancestor, getfocuslisteners, getfocustraversalkeysenabled, getfont, getforeground, getgraphicsconfiguration, gethierarchyboundslisteners, gethierarchylisteners, getignorerepaint, getinputcontext, getinputmethodlisteners, getinputmethodrequests, getkeylisteners, getlocale, getlocation, getlocationonscreen, getmouselisteners, getmousemotionlisteners, getmouseposition, getmousewheellisteners, getname, getparent, getpeer, getpropertychangelisteners, getpropertychangelisteners, getsize, gettoolkit, gettreelock, gotfocus, handleevent, hasfocus, hide, inside, isbackgroundset, iscursorset, isdisplayable, isenabled, isfocusable, isfocusowner, isfontset, isforegroundset, islightweight, ismaximumsizeset, isminimumsizeset, ispreferredsizeset, isshowing, isvalid, isvisible, keydown, keyup, list, list, list, location, lostfocus, mousedown, mousedrag, mouseenter, mouseexit, mousemove, mouseup, move, nextfocus, paintall, postevent, prepareimage, prepareimage, processcomponentevent, processfocusevent, processhierarchyboundsevent, processhierarchyevent, processinputmethodevent, processmousewheelevent, remove, removecomponentlistener, removefocuslistener, removehierarchyboundslistener, removehierarchylistener, removeinputmethodlistener, removekeylistener, removemouselistener, removemousemotionlistener, removemousewheellistener, removepropertychangelistener, removepropertychangelistener, repaint, repaint, repaint, resize, resize, setbounds, setbounds, setcomponentorientation, setcursor, setdroptarget, setfocusable, setfocustraversalkeysenabled, setignorerepaint, setlocale, setlocation, setlocation, setname, setsize, setsize, show, show, size, tostring, transferfocus, transferfocusupcycle
 
从类 java.lang.object 继承的方法
clone, equals, finalize, getclass, hashcode, notify, notifyall, wait, wait, wait
 

字段详细小緂ǎn】畔

direction

protected int direction
箭头的方向。swingconstants.northswingconstants.southswingconstants.eastswingconstants.west 之一。

js随机数
构造方法详细信息

basicarrowbutton

public basicarrowbutton(int direction,    color background,    color shadow,    color darkshadow,    color highlight)
创建一个在指定方向上绘制其箭头并具有指定颜色的 basicarrowbutton

参数:
direction - 箭头的方向;swingconstants.northswingconstants.southswingconstants.eastswingconstants.west 之一
background - 按钮的背景色
shadow - 阴影的颜色
darkshadow - 黑阴影的颜色
highlight - 高亮显示的颜色
从以下版本开始【kāi shǐ】:
1.4

basicarrowbutton

public basicarrowbutton(int direction)
创建一个在指定方向上绘制其箭头的 basicarrowbutton

参数:
direction - 箭头的方向;swingconstants.northswingconstants.southswingconstants.eastswingconstants.west 之一
方法详细信息

getdirection

public int getdirection()
返回箭头的方向。

参数:
direction - 箭头的方向;swingconstants.northswingconstants.southswingconstants.eastswingconstants.west 之一

setdirection网站地图 手机端

public void setdirection(int dir)
设置箭头的方向。

参数:
direction - 箭头的方向;swingconstants.northswingconstants.southswingconstants.eastswingconstants.west 之一

paint

public void paint(graphics g)
从类 jcomponent 复制的描述
由 swing 调用,以绘制组件。应用程序不应直接调用 paint,而是应该【yīng gāi】使用 repaint 方法来安排重绘组件。

此方法实际上将绘制工作【gōng zuò】委托给三个受保护的方法:paintcomponentpaintborderpaintchildren。按列出的顺序调用这些方法,以确保子组件出现【chū xiàn】在组件本身的顶部。一般来说,不应在分配给边框的 insets 区域【qū yù】绘制组件及其子组件。子类可以【 kě yǐ】始终重写此方法。只想特殊化 ui(外观)委托的 paint 方法的子类只需重写 paintcomponent

覆盖:
jcomponent 中的 paint
参数:
g - 在其中进行绘制的 graphics 上下文
另请参见:
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)

getpreferredsize

public dimension getpreferredsize()
返回 basicarrowbutton 的首选大小。

覆盖:
jcomponent 中的 getpreferredsize
返回:
首选大小
另请参见:
jcomponent.setpreferredsize(java.awt.dimension),componentui

getminimumsize

public dimension getminimumsize()
返回 basicarrowbutton 的最小【zuì xiǎo】大小。

覆盖:
jcomponent 中的 getminimumsize
返回:
最小大小
另请参见:
jcomponent.setminimumsize(java.awt.dimension),componentui

getmaximumsize

public dimension getmaximumsize()
返回 basicarrowbutton 的最大【largest】大小。

覆盖:
jcomponent 中的 getmaximumsize
返回:
最大大小
另请参见:
jcomponent.setmaximumsize(java.awt.dimension),componentui

isfocustraversable

public boolean isfocustraversable()
返回箭头按钮是否应该获取焦点。basicarrowbutton 用作复合组件(如 jscrollbarjcombobox)的子组件。因为通常是复合组件获取焦点,所以重写此方法以返回 false

覆盖:
component 中的 isfocustraversable
返回:
false
另请参见:
component.setfocusable(boolean)

painttriangle

public void painttriangle(graphics g,     int x,     int y,     int size,     int direction,     boolean isenabled)
绘制一个三角形。

参数:
g - 要在其上进行绘制的 graphics
x - x 坐标
y - y 坐标
size - 要绘制的三角形的大小
direction - 绘制箭头的方向;swingconstants.northswingconstants.southswingconstants.eastswingconstants.west 之一
isenabled - 是否已启用绘制箭头

javatm platform
standard ed. 6

提交错误或意见【yì jian】
有关更多的 api 参考资料和开发【developing】人员文档,请参阅 java se 开发【developing】人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作【gōng zuò】代码示例。

版权所有 2007 sun microsystems, inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策