/** * Returns the width of the receiver. * * @return the width * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getWidth () { checkLayout(); return wrapWidth; }
/** * Returns the text segments offsets of the receiver. * * @return the text segments offsets * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getSegments() { checkLayout(); return segments; }
/** * Returns the text segments offsets of the receiver. * * @return the text segments offsets * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getSegments () { checkLayout(); return segments; }
/** * Returns the orientation of the receiver. * * @return the orientation style * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getOrientation() { checkLayout(); return orientation; }
/** * Returns the line spacing of the receiver. * * @return the line spacing * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getSpacing () { checkLayout(); return spacing; }
/** * Returns the text segments offsets of the receiver. * * @return the text segments offsets * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getSegments() { checkLayout(); return segments; }
/** * Returns the default font currently being used by the receiver * to draw and measure text. * * @return the receiver's font * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public Font getFont () { checkLayout(); return font; }
/** * Gets the receiver's text, which will be an empty * string if it has never been set. * * @return the receiver's text * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public String getText () { checkLayout (); return text; }
/** * Returns the orientation of the receiver. * * @return the orientation style * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getOrientation() { checkLayout(); int baseDir = OS.pango_context_get_base_dir(context); return baseDir == OS.PANGO_DIRECTION_RTL ? SWT.RIGHT_TO_LEFT : SWT.LEFT_TO_RIGHT; }
void setIndentInPixels (int indent) { checkLayout(); if (indent < 0) return; if (this.indent == indent) return; this.indent = indent; OS.pango_layout_set_indent(layout, (indent - wrapIndent) * OS.PANGO_SCALE); if (wrapWidth != -1) setWidth(); }
void setIndentInPixels (int indent) { checkLayout(); if (indent < 0) return; if (this.indent == indent) return; this.indent = indent; OS.pango_layout_set_indent(layout, (indent - wrapIndent) * OS.PANGO_SCALE); if (wrapWidth != -1) setWidth(); }
void setIndentInPixels (int indent) { checkLayout(); if (indent < 0) return; if (this.indent == indent) return; this.indent = indent; OS.pango_layout_set_indent(layout, (indent - wrapIndent) * OS.PANGO_SCALE); if (wrapWidth != -1) setWidth(); }
/** * Returns the tab list of the receiver. * * @return the tab list * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getTabs () { checkLayout(); return DPIUtil.autoScaleDown (getTabsInPixels ()); }
/** * Returns the width of the receiver. * * @return the width * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getWidth () { checkLayout (); return DPIUtil.autoScaleDown(getDevice(), getWidthInPixels()); }
/** * Returns the tab list of the receiver. * * @return the tab list * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getTabs() { checkLayout(); return DPIUtil.autoScaleDown (getDevice(), getTabsInPixels ()); }
/** * Returns the tab list of the receiver. * * @return the tab list * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getTabs() { checkLayout(); return DPIUtil.autoScaleDown (getDevice(), getTabsInPixels ()); }
/** * Returns the line spacing of the receiver. * * @return the line spacing * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getSpacing () { checkLayout(); return DPIUtil.autoScaleDown(getDevice(), getSpacingInPixels()); }
/** * Returns the width of the receiver. * * @return the width * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getWidth () { checkLayout (); return DPIUtil.autoScaleDown(getDevice(), getWidthInPixels()); }
/** * Returns the tab list of the receiver. * * @return the tab list * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int[] getTabs() { checkLayout(); return DPIUtil.autoScaleDown (getDevice(), getTabsInPixels ()); }
/** * Returns the line spacing of the receiver. * * @return the line spacing * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public int getSpacing () { checkLayout(); return DPIUtil.autoScaleDown(getDevice(), getSpacingInPixels()); }