Class JDTitledRect
java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
fr.esrf.tangoatk.widget.util.jdraw.JDTitledRect
JDraw Title rectangle graphic object.
-
Field Summary
Fields inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDObject
FILL_STYLE_DOT_PATTERN_1, FILL_STYLE_DOT_PATTERN_2, FILL_STYLE_DOT_PATTERN_3, FILL_STYLE_GRADIENT, FILL_STYLE_LARGE_CROSS_HATCH, FILL_STYLE_LARGE_LEFT_HATCH, FILL_STYLE_LARGE_RIGHT_HATCH, FILL_STYLE_NONE, FILL_STYLE_SMALL_CROSS_HATCH, FILL_STYLE_SMALL_LEFT_HATCH, FILL_STYLE_SMALL_RIGHT_HATCH, FILL_STYLE_SOLID, LINE_STYLE_DASH, LINE_STYLE_DASH_DOT, LINE_STYLE_DOT, LINE_STYLE_LONG_DASH, LINE_STYLE_SOLID, VALUE_CHANGE_ON_XDRAG_LEFT, VALUE_CHANGE_ON_XDRAG_RIGHT, VALUE_CHANGE_ON_YDRAG_BOTTOM, VALUE_CHANGE_ON_YDRAG_TOP, VALUE_INC_ON_CLICK, VALUE_INC_ON_PRESSRELEASE -
Constructor Summary
ConstructorsConstructorDescriptionJDTitledRect(String objectName, String title, int x, int y) Construct a JDTitledRect. -
Method Summary
Modifier and TypeMethodDescriptioncopy(int x, int y) Returns a copy of this object at the specified location.getFont()getTitle()booleanbooleanisInsideObject(int x, int y) voidpaint(JDrawEditor parent, Graphics g) Paints this object.voidSets the line colorvoidSets the line colorvoidsetEtchedBorder(boolean b) Sets the etched border.voidSets the font of this label and resize it if needed and specified.voidSets the title of this titled rectangle.Methods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
getBottom, getHeight, getLeft, getRight, getTop, getWidth, moveSummit, rotate90, setBottom, setHeight, setLeft, setRight, setTop, setWidthMethods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDObject
addExtension, addMouseListener, addValueListener, centerOrigin, clearMouseListener, clearValueListener, getBackground, getBackgroundMapper, getBoundRect, getExtendedParam, getExtendedParam, getExtendedParamDesc, getExtendedParamIndex, getExtendedParamName, getExtendedParamNumber, getFillStyle, getForeground, getForegroundMapper, getHTranslationMapper, getInitValue, getInvertShadowMapper, getLineStyle, getLineWidth, getMaxValue, getMinValue, getName, getObjectsByName, getOrigin, getShadowWidth, getSummit, getSummitNumber, getValue, getValueChangeMode, getVisibilityMapper, getVTranslationMapper, hasBackgroundMapper, hasExtendedParam, hasForegroundMapper, hasHTranslationMapper, hasInverseShadow, hasInvertShadowMapper, hasShadow, hasVisibilityMapper, hasVTranslationMapper, isAntiAliased, isDisabled, isFixedExtendedParam, isInteractive, isProgrammed, isVisible, moveSummitH, moveSummitV, preRefresh, refresh, removeExtension, removeMouseListener, removeValueListener, restoreTransform, saveTransform, scale, scaleTranslate, setAntiAlias, setBackground, setBackgroundMapper, setDisabled, setExtendedParam, setExtendedParam, setExtensionList, setFillStyle, setForeground, setForegroundMapper, setGradientFillParam, setHTranslationMapper, setInitValue, setInteractive, setInverseShadow, setInvertShadowMapper, setLineStyle, setLineWidth, setMaxValue, setMinValue, setName, setOrigin, setShadow, setShadowWidth, setValue, setValueChangeMode, setVisibilityMapper, setVisible, setVTranslationMapper, toString, translate
-
Constructor Details
-
JDTitledRect
Construct a JDTitledRect.- Parameters:
objectName- Object nametitle- Titlex- Up left corner x coordinatey- Up left corner y coordinate
-
-
Method Details
-
copy
Description copied from class:JDObjectReturns a copy of this object at the specified location. -
paint
Description copied from class:JDObjectPaints this object.- Overrides:
paintin classJDRectangular- Parameters:
parent- JdrawEditor parent (Can be null except for JDSwingObject)g- the specified Graphics window
-
isInsideObject
public boolean isInsideObject(int x, int y) - Overrides:
isInsideObjectin classJDObject- Parameters:
x- X coordinate (pixel)y- Y coordinate (pixel)- Returns:
- whether the specified point is inside this object.
-
setFont
Sets the font of this label and resize it if needed and specified.- Parameters:
f- Font
-
getFont
- Returns:
- the current font of this label.
-
setTitle
Sets the title of this titled rectangle.- Parameters:
s- Title
-
getTitle
- Returns:
- the current label text.
-
setColor1
Sets the line color- Parameters:
c- Line color
-
getColor1
- Returns:
- the line color
-
setColor2
Sets the line color- Parameters:
c- Line color
-
getColor2
- Returns:
- the line color
-
hasEtchedBorder
public boolean hasEtchedBorder()- Returns:
- true if etched border is enabled
-
setEtchedBorder
public void setEtchedBorder(boolean b) Sets the etched border.- Parameters:
b- Etched border
-