public class TextController extends FigureController
FigureController.ClickHandlerImpl, FigureController.SWTCursorsmanager| Constructor and Description |
|---|
TextController(FigureCanvas canvas,
SymbolController controller,
Text element,
ResourceManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyCommon(Text element) |
protected int |
convertPosition(java.lang.String position,
int defaultValue) |
IFigure |
getPropertyFigure()
Get the figure that is used for controlling the properties of this
controller.
|
void |
setFont(java.lang.String fontName,
java.lang.Integer fontSize) |
void |
setFontBold(boolean bold) |
void |
setFontFull(java.lang.String fontName,
java.lang.Integer fontSize,
java.lang.Boolean bold,
java.lang.Boolean italic) |
void |
setFontItalic(boolean italic) |
void |
setOpaque(java.lang.Boolean flag) |
void |
setText(java.lang.String text) |
applyCommon, create, createColor, getCursor, getFigure, getPreferredSize, handleOnClick, handleOnDoubleClick, makeBorder, makeColorHandler, parseBorderArguments, setBackgroundColor, setBorder, setColor, setCursor, setForegroundColor, setHeight, setOpaque, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setToolTip, setVisible, setWidth, start, stoppublic TextController(FigureCanvas canvas,
SymbolController controller,
Text element,
ResourceManager manager)
public void setOpaque(java.lang.Boolean flag)
setOpaque in class FigureControllerprotected void applyCommon(Text element)
public void setFontBold(boolean bold)
public void setFontItalic(boolean italic)
public void setFont(java.lang.String fontName,
java.lang.Integer fontSize)
public void setFontFull(java.lang.String fontName,
java.lang.Integer fontSize,
java.lang.Boolean bold,
java.lang.Boolean italic)
protected int convertPosition(java.lang.String position,
int defaultValue)
public IFigure getPropertyFigure()
FigureController
The figure returned is by default the same as the FigureController.getFigure().
But in some cases it might be necessary to return a different figure.
getPropertyFigure in class FigureControllerpublic void setText(java.lang.String text)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0