public class StateModel
extends java.lang.Object
构造器和说明 |
---|
StateModel(FormDesigner designer) |
限定符和类型 | 方法和说明 |
---|---|
void |
changeSelection(java.awt.event.MouseEvent e)
改变选择区域
|
boolean |
dragable()
是否能拖拽
|
void |
dragging(java.awt.event.MouseEvent e)
拖拽
|
void |
draggingCancel()
取消拖拽
|
void |
drawLine(java.awt.event.MouseEvent e)
画所在区域线
|
Direction |
getDirection()
返回direction
|
java.awt.Point |
getEndPoint()
返回当前点位置
|
java.awt.Point |
getMouseXY(java.awt.event.MouseEvent e)
返回鼠标所在的x、y 考虑滚动条的值
|
java.awt.Point |
getStartPoint()
返回开始位置
|
boolean |
isDragging()
是否拖拽
|
boolean |
isSelecting()
是否有组件正被选中
|
void |
paintAbsorptionline(java.awt.Graphics g)
画吸附线
|
boolean |
prepareForDrawLining()
是否可以开始画线
|
void |
releaseDragging(java.awt.event.MouseEvent e)
释放捕获
|
void |
reset()
重置
|
void |
resetModel()
重置model
|
void |
selectCreators(java.awt.event.MouseEvent e)
鼠标释放时所在的区域及圈中的组件
|
void |
setDirection(Direction dir)
设置可拉伸方向
|
void |
setEquidistantLine(Absorptionline line)
等距线赋值
|
void |
setStartPoint(java.awt.Point p)
设置开始位置
|
void |
setXAbsorptionline(Absorptionline line)
x吸附线赋值
|
void |
setYAbsorptionline(Absorptionline line)
y吸附线赋值
|
void |
startDrawLine(java.awt.Point p)
起始点开始DrawLine
|
void |
startResizing(java.awt.event.MouseEvent e)
当前鼠标的xy
|
void |
startSelecting(java.awt.event.MouseEvent e)
当前选中组件
|
public StateModel(FormDesigner designer)
public Direction getDirection()
public boolean isSelecting()
public boolean dragable()
public boolean isDragging()
public boolean prepareForDrawLining()
public void setStartPoint(java.awt.Point p)
p
- point位置public java.awt.Point getStartPoint()
public java.awt.Point getEndPoint()
public void startSelecting(java.awt.event.MouseEvent e)
e
- 鼠标事件public void startResizing(java.awt.event.MouseEvent e)
e
- 鼠标事件public void startDrawLine(java.awt.Point p)
p
- 点位置public void selectCreators(java.awt.event.MouseEvent e)
e
- 鼠标事件public void drawLine(java.awt.event.MouseEvent e)
e
- 鼠标事件public void resetModel()
public void reset()
public void draggingCancel()
public void setDirection(Direction dir)
dir
- 拉伸方向public void setXAbsorptionline(Absorptionline line)
line
- 线public void setYAbsorptionline(Absorptionline line)
line
- 线public void setEquidistantLine(Absorptionline line)
line
- 线public void paintAbsorptionline(java.awt.Graphics g)
g
- Graphics类public void dragging(java.awt.event.MouseEvent e)
e
- 鼠标事件public void releaseDragging(java.awt.event.MouseEvent e)
e
- 鼠标事件public void changeSelection(java.awt.event.MouseEvent e)
e
- 鼠标事件public java.awt.Point getMouseXY(java.awt.event.MouseEvent e)
e
- 鼠标事件