|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.action.Action
org.malai.action.library.InstrumentAction
org.malai.action.library.ActivateInstrument
net.sf.latexdraw.actions.InitTextSetter
public class InitTextSetter
This action activates and moves the text setter to a given position.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
20/12/2010
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.malai.action.Action |
---|
Action.ActionStatus |
Field Summary | |
---|---|
protected IPoint |
absolutePoint
The position that does not taks account of the zoom (for the text field). |
protected IPoint |
relativePoint
The position that takes account of the zoom. |
protected TextSetter |
setter
The text setter to move. |
protected java.lang.String |
text
The text to set to the setter. |
protected IText |
textShape
The text (shape) to modify throw the setter. |
Fields inherited from class org.malai.action.library.InstrumentAction |
---|
instrument |
Fields inherited from class org.malai.action.Action |
---|
status |
Constructor Summary | |
---|---|
InitTextSetter()
|
Method Summary | |
---|---|
boolean |
canDo()
|
protected void |
doActionBody()
This method contains the core code to execute when the action is executed. |
void |
flush()
When an action is no more useful it can be flushes to release the used data. |
boolean |
isRegisterable()
Specifies if the action must be saved in the action register. |
void |
setAbsolutePoint(IPoint pt)
|
void |
setRelativePoint(IPoint pt)
|
void |
setText(java.lang.String text)
Sets the text to display into the text setter. |
void |
setTextSetter(TextSetter textSetter)
|
void |
setTextShape(IText textShape)
Sets the text shape to modify. |
Methods inherited from class org.malai.action.library.InstrumentAction |
---|
getInstrument, setInstrument |
Methods inherited from class org.malai.action.Action |
---|
abort, cancelledBy, doIt, done, getStatus, hadEffect, isDone, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TextSetter setter
protected java.lang.String text
protected IPoint relativePoint
protected IPoint absolutePoint
protected IText textShape
Constructor Detail |
---|
public InitTextSetter()
Method Detail |
---|
public void flush()
Action
flush
in class InstrumentAction
public void setTextShape(IText textShape)
textShape
- The text (shape) to modify throw the setter. Can be null.public void setText(java.lang.String text)
text
- The text to set.public void setTextSetter(TextSetter textSetter)
textSetter
- the textSetter to set.public boolean isRegisterable()
Action
isRegisterable
in class ActivateInstrument
public void setRelativePoint(IPoint pt)
pt
- The position that takes account of the zoom.public void setAbsolutePoint(IPoint pt)
pt
- The position that does not taks account of the zoom (for the text field).public boolean canDo()
canDo
in class InstrumentAction
protected void doActionBody()
Action
doActionBody
in class ActivateInstrument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |