Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--uk.co.ist.mwt.ShadowedComponent | +--uk.co.ist.mwt.Separator
Field Summary | |
static int | kDoubleDashedLine
Constant to specify that the separator should be two simple dashed lines. |
static int | kDoubleLine
Constant to specify that the separator should be two simple lines. |
static int | kNoLine
Constant to specify that the separator should have no visible appearance - that it should be blank. |
static int | kShadowEtchedInDash
Constant to specify that the separator should be a dashed etched in line. |
static int | kShadowEtchedIn
Constant to specify that the separator should be an etched in line. |
static int | kShadowEtchedOutDash
Constant to specify that the separator should be a dashed etched out line. |
static int | kShadowEtchedOut
Constant to specify that the separator should be an etched out line. |
static int | kSingleDashedLine
Constant to specify that the separator should be a simple dashed line. |
static int | kSingleLine
Constant to specify that the separator should be a simple line. |
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
Separator(int margin,
boolean vertical,
int type)
Creates a separator |
|
Separator(boolean vertical)
Creates an etched in separator with no margins. |
|
Separator(int margin)
Creates an etched-in horizontal separator. |
|
Separator()
Creates an etched-in horizontal separator with no margins |
Method Summary | |
void | drawLine(java.awt.Graphics g,
int startX,
int startY,
int endX,
int endY)
Draws the separator's line in a particular Graphics object |
int | getMargin()
Gets the space left above and below the separator's line(s) (to the sides if vertical) |
java.awt.Dimension | getMinimumSize()
Finds the smallest size the separator can be |
java.awt.Dimension | getPreferredSize()
Finds the size the separator wants to be |
int | getType()
Gets the type of the separtor. |
boolean | isVertical()
Gets whether the separator is vertical or not |
void | paint(java.awt.Graphics g)
Calculates the area where the separator should be drawn, and calls drawLine to do the work |
void | setMargin(int margin)
Sets the space to leave above and below the separator's line(s) (to the sides if vertical) |
void | setType(int type)
Sets the type of the separtor. |
void | setVertical(boolean val)
Sets whether the separator is vertical or not |
Methods inherited from class uk.co.ist.mwt.ShadowedComponent | |
draw3DRect, draw3DRect, draw3DRect, draw3DRect, drawShadow, drawShadow, getBottomShadowColor, getShadowThickness, getTopShadowColor, setBottomShadowColor, setShadowThickness, setTopShadowColor |
Methods inherited from class java.awt.Canvas | |
addNotify, paint |
Methods inherited from class java.awt.Component | |
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate |
Methods inherited from class java.lang.Object | |
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final int kSingleLine
public static final int kDoubleLine
public static final int kSingleDashedLine
public static final int kDoubleDashedLine
public static final int kNoLine
public static final int kShadowEtchedIn
public static final int kShadowEtchedOut
public static final int kShadowEtchedInDash
public static final int kShadowEtchedOutDash
Constructor Detail |
public Separator(int margin, boolean vertical, int type)
margin
- the space to leave above and below the separator's line(s)
(to the sides if vertical)
vertical
- should the separator be vertical?
type
- one of the constant separator-type specifierspublic Separator(boolean vertical)
vertical
- should the separator be vertical?public Separator(int margin)
margin
- the space to leave above and below the separator's line(s)public Separator()
Method Detail |
public void setMargin(int margin)
public int getMargin()
public void setType(int type)
public int getType()
public void setVertical(boolean val)
public boolean isVertical()
public void paint(java.awt.Graphics g)
public void drawLine(java.awt.Graphics g, int startX, int startY, int endX, int endY)
g
- the Graphics object
startX
- the X co-ordinate to start from
startY
- the Y co-ordinate to start from
endX
- the X co-ordinate to end
endY
- the Y co-ordinate to endpublic java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |