org.jhotdraw.figures
Class FontSizeHandle
java.lang.Object
org.jhotdraw.standard.AbstractHandle
org.jhotdraw.standard.LocatorHandle
org.jhotdraw.figures.FontSizeHandle
- All Implemented Interfaces:
- Handle
public class FontSizeHandle
- extends LocatorHandle
A Handle to change the font size by direct manipulation.
- Version:
- <$CURRENT_VERSION$>
Method Summary |
void |
draw(java.awt.Graphics g)
Draws this handle. |
void |
invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks the end of the interaction. |
void |
invokeStart(int x,
int y,
DrawingView view)
Tracks the start of the interaction. |
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks a step of the interaction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontSizeHandle
public FontSizeHandle(Figure owner,
Locator l)
invokeStart
public void invokeStart(int x,
int y,
DrawingView view)
- Description copied from interface:
Handle
- Tracks the start of the interaction. The default implementation
does nothing.
- Specified by:
invokeStart
in interface Handle
- Overrides:
invokeStart
in class AbstractHandle
- Parameters:
x
- the x position where the interaction startedy
- the y position where the interaction startedview
- the handles container- See Also:
Handle.invokeStart(int, int, org.jhotdraw.framework.DrawingView)
invokeStep
public void invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
- Description copied from class:
AbstractHandle
- Tracks a step of the interaction.
- Specified by:
invokeStep
in interface Handle
- Overrides:
invokeStep
in class AbstractHandle
- Parameters:
x
- the current x positiony
- the current y positionanchorX
- the x position where the interaction startedanchorY
- the y position where the interaction started- See Also:
Handle.invokeStep(int, int, int, int, org.jhotdraw.framework.DrawingView)
invokeEnd
public void invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
- Description copied from class:
AbstractHandle
- Tracks the end of the interaction.
- Specified by:
invokeEnd
in interface Handle
- Overrides:
invokeEnd
in class AbstractHandle
- Parameters:
x
- the current x positiony
- the current y positionanchorX
- the x position where the interaction startedanchorY
- the y position where the interaction started- See Also:
Handle.invokeEnd(int, int, int, int, org.jhotdraw.framework.DrawingView)
draw
public void draw(java.awt.Graphics g)
- Description copied from class:
AbstractHandle
- Draws this handle.
- Specified by:
draw
in interface Handle
- Overrides:
draw
in class AbstractHandle
- See Also:
Handle.draw(java.awt.Graphics)