public interface LayoutControl extends Observer
Modifier and Type | Method and Description |
---|---|
int |
addGeometryAdapterPoint()
Add a new point to geometryAdapter.
|
void |
addLayoutTool(java.lang.String name,
LayoutBehavior tool)
Add a new Layout tool.
|
void |
clearMouseImage()
Clear the image of pointer of mouse.
|
void |
delLastPoint()
Remove last point of geometryAdapter.
|
void |
fullRect()
It obtains the rect that is adjusted to the size of the window,
to see the full extent of layout.
|
java.awt.geom.AffineTransform |
getAT()
Returns the AffineTransform that is applying in the Layout.
|
javax.swing.JComponent |
getComponent() |
LayoutBehavior |
getCurrentLayoutTool()
Returns the current Layout tool.
|
java.lang.String |
getCurrentTool()
Returns the name of the current selected tool on this Layout
|
java.awt.Point |
getFirstPoint()
It returns the first click point of mouse.
|
GeometryAdapter |
getGeometryAdapter()
It returns the current GeometryAdapter.
|
int |
getHeight() |
java.awt.image.BufferedImage |
getImage()
Returns the current image of Layout.
|
java.awt.image.BufferedImage |
getImgRuler()
Returns the image with the ruler.
|
java.awt.Point |
getLastPoint()
Returns the last click point of mouse.
|
LayoutContext |
getLayoutContext()
Returns the LayoutContext.
|
FLayoutDraw |
getLayoutDraw()
Returns the object to draw the Layout.
|
FLayoutFunctions |
getLayoutFunctions()
Returns the object of FLayoutFunctions.
|
LayoutBehavior |
getLayoutTool(java.lang.String name) |
FLayoutZooms |
getLayoutZooms()
Returns the object to make zooms.
|
java.awt.Point |
getPointAnt()
Returns the previous click of mouse.
|
java.awt.Point |
getPosition()
Returns the position adjusted point.
|
java.awt.geom.Rectangle2D.Double |
getRect()
Returns a copy of the rectangle that represents the size
and position of the layout sheet (in pixels), relative to
the containing LayoutControl.
|
java.awt.Point |
getRectOrigin()
It returns the point that represents the northwest corner of the Layout.
|
java.awt.Rectangle |
getReSel()
Returns the rectangle of selection.
|
int |
getWidth() |
boolean |
isDrawingCancelled()
It returns true if the drawing has been canceled.
|
boolean |
isReSel()
It returns true if should draw the rectangle of selection and does the
selection.
|
void |
refresh()
Refres the Layout.
|
void |
repaint() |
void |
setCancelDrawing(boolean b)
It cancels the drawing if the parameter is true.
|
void |
setDefaultTool()
Changes the currently selected tool to the default tool
|
void |
setFirstPoint()
Inserts the first click point of mouse.
|
void |
setGeometryAdapter(GeometryAdapter adapter)
Inserts the geometryAdapter.
|
void |
setGeometryAdapterPoinPosition()
Change the position of mousemoved point of geometryAdapter.
|
void |
setIsReSel(boolean b)
Insert true if should draw the rectangle of selection and does the
selection.
|
void |
setLastPoint()
Inserts the last click point of mouse.
|
void |
setLayoutContext(LayoutContext lc)
Inserts the LayoutContext.
|
void |
setMapCursor(java.awt.Image image)
Changes the pointer of the mouse by the image of parameter.
|
void |
setPointAnt()
Inserts the previous click point of mouse.
|
void |
setPosition(java.awt.Point point2)
Insert the position point and calculate the new position if the grid is
actived.
|
void |
setRect(java.awt.geom.Rectangle2D r)
Sets the size and position of the layout sheet in screen coordinates
(pixels), relative to the LayoutControl.
|
void |
setTool(java.lang.String toolName)
It establishes as selected to the tool from its name of identification.
|
void |
startEdit()
Start the vertex edition of graphics.
|
void |
stopEdit()
Stop the vertex edition of graphics.
|
void |
viewFull()
It does a full extent of the layers that contains the view of the
FFrameView selected.
|
java.awt.geom.Rectangle2D.Double getRect()
Returns a copy of the rectangle that represents the size and position of the layout sheet (in pixels), relative to the containing LayoutControl.
Note: you must use setRect(Rectangle2D)
to update
the rectangle, as this method only returns a copy of it.
setRect(Rectangle2D)
void setRect(java.awt.geom.Rectangle2D r)
Sets the size and position of the layout sheet in screen coordinates (pixels), relative to the LayoutControl.
The size of the sheet is usually different from the bounds of the underlying UI control, for instance if we have zoomed in an area of the sheet then the paper size in pixels will be bigger than the actual control size.
java.lang.String getCurrentTool()
void addLayoutTool(java.lang.String name, LayoutBehavior tool)
name
- Name of tool.tool
- LayoutBehaviorLayoutBehavior getLayoutTool(java.lang.String name)
void setLayoutContext(LayoutContext lc)
lc
- LayoutContext.java.awt.image.BufferedImage getImgRuler()
void fullRect()
java.awt.image.BufferedImage getImage()
void setMapCursor(java.awt.Image image)
image
- Imagevoid setTool(java.lang.String toolName)
toolName
- Name of identification tool.void setDefaultTool()
void startEdit()
void stopEdit()
java.awt.Point getRectOrigin()
FLayoutDraw getLayoutDraw()
LayoutBehavior getCurrentLayoutTool()
java.awt.Point getFirstPoint()
java.awt.Point getPointAnt()
java.awt.Point getLastPoint()
void setFirstPoint()
p
- Point.void setPointAnt()
p
- Point.void setLastPoint()
p
- Point.void setPosition(java.awt.Point point2)
point2
- Position.java.awt.Point getPosition()
java.awt.geom.AffineTransform getAT()
GeometryAdapter getGeometryAdapter()
void delLastPoint()
int addGeometryAdapterPoint()
void setGeometryAdapterPoinPosition()
void clearMouseImage()
void refresh()
boolean isDrawingCancelled()
void setCancelDrawing(boolean b)
b
- true if the drawing wants to be canceledjava.awt.Rectangle getReSel()
boolean isReSel()
void setIsReSel(boolean b)
b
- boolean.void viewFull() throws ReadException
ReadDriverException
ReadException
FLayoutZooms getLayoutZooms()
FLayoutFunctions getLayoutFunctions()
LayoutContext getLayoutContext()
void setGeometryAdapter(GeometryAdapter adapter)
adapter
- GeometryAdapter.javax.swing.JComponent getComponent()
int getWidth()
int getHeight()
void repaint()