站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

SeparatorWidget (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.widget
Class SeparatorWidget

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.SeparatorWidget

public class SeparatorWidget
extends Widget

This is a separator widget. Renders a rectangle that is usually expand across the width or height of the parent widget based on an orientation.


Nested Class Summary
static class SeparatorWidget.Orientation
          The separator orientation
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
 
Constructor Summary
SeparatorWidget(Scene scene, SeparatorWidget.Orientation orientation)
          Creates a separator widget.
 
Method Summary
protected  Rectangle calculateClientArea()
          Calculates a client area of the separator widget.
 SeparatorWidget.Orientation getOrientation()
          Returns a separator orientation
 int getThickness()
          Returns a thickness of the separator.
protected  void paintWidget()
          Paints the separator widget.
 void setOrientation(SeparatorWidget.Orientation orientation)
          Sets a separator orientation
 void setThickness(int thickness)
          Sets a thickness of the seperator.
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setForeground, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setState, setToolTipText, setVisible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeparatorWidget

public SeparatorWidget(Scene scene,
                       SeparatorWidget.Orientation orientation)
Creates a separator widget.

Parameters:
scene - the scene
orientation - the separator orientation
Method Detail

getOrientation

public SeparatorWidget.Orientation getOrientation()
Returns a separator orientation

Returns:
the separator orientation

setOrientation

public void setOrientation(SeparatorWidget.Orientation orientation)
Sets a separator orientation

Parameters:
orientation - the separator orientation

getThickness

public int getThickness()
Returns a thickness of the separator.

Returns:
the thickness

setThickness

public void setThickness(int thickness)
Sets a thickness of the seperator.

Parameters:
thickness - the thickness

calculateClientArea

protected Rectangle calculateClientArea()
Calculates a client area of the separator widget.

Overrides:
calculateClientArea in class Widget
Returns:
the calculated client area

paintWidget

protected void paintWidget()
Paints the separator widget.

Overrides:
paintWidget in class Widget

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.