|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.draw2d.Label
org.eclipse.gmf.runtime.draw2d.ui.figures.LabelEx
public class LabelEx
GEF's Label extended for use in GMF with mapping mode support and the following additional features:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure |
---|
Figure.FigureIterator, Figure.IdentitySearch |
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure |
---|
IFigure.NoInsets |
Field Summary | |
---|---|
protected static int |
MAX_FLAG
The largest flag defined in this class. |
Fields inherited from class org.eclipse.draw2d.Figure |
---|
bgColor, border, bounds, fgColor, flags, font, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.PositionConstants |
---|
ALWAYS_LEFT, ALWAYS_RIGHT, BOTTOM, CENTER, EAST, EAST_WEST, HORIZONTAL, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, NSEW, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, VERTICAL, WEST |
Fields inherited from interface org.eclipse.draw2d.IFigure |
---|
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
---|---|
LabelEx()
Construct an empty Label. |
|
LabelEx(Image i)
Construct a Label with passed Image as its icon. |
|
LabelEx(java.lang.String s)
Construct a Label with passed String as its text. |
|
LabelEx(java.lang.String s,
Image i)
Construct a Label with passed String as text and passed Image as its icon. |
Method Summary | |
---|---|
protected Dimension |
getIconSize()
|
int |
getIconTextGap()
|
TextUtilities |
getTextUtilities()
|
boolean |
hasFocus()
|
boolean |
isSelected()
|
boolean |
isTextStrikedThrough()
|
boolean |
isTextUnderlined()
|
protected void |
paintFigure(Graphics graphics)
|
void |
setFocus(boolean b)
Sets the focus state of this label |
void |
setSelected(boolean b)
Sets the selection state of this label |
void |
setTextStrikeThrough(boolean strikeThrough)
Sets whether the label text should be striked-through |
void |
setTextUnderline(boolean underline)
Sets whether the label text should be underlined |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int MAX_FLAG
Figure.MAX_FLAG
Constructor Detail |
---|
public LabelEx()
public LabelEx(java.lang.String s)
s
- the label textpublic LabelEx(Image i)
i
- the label imagepublic LabelEx(java.lang.String s, Image i)
s
- the label texti
- the label imageMethod Detail |
---|
public void setTextStrikeThrough(boolean strikeThrough)
b
- Whether the label text should be striked-throughpublic boolean isTextStrikedThrough()
public void setTextUnderline(boolean underline)
b
- Whether the label text should be underlinedpublic boolean isTextUnderlined()
public void setSelected(boolean b)
b
- true will cause the label to appear selectedpublic boolean isSelected()
public void setFocus(boolean b)
b
- true will cause a focus rectangle to be drawn around the text
of the Labelpublic boolean hasFocus()
protected void paintFigure(Graphics graphics)
paintFigure
in class Label
protected Dimension getIconSize()
getIconSize
in class Label
public int getIconTextGap()
getIconTextGap
in class Label
public TextUtilities getTextUtilities()
getTextUtilities
in class Label
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.