public interface LayoutControl extends Observer
Modifier and Type | Method and Description |
---|---|
int |
addGeometryAdapterPoint()
Add a new point to geometryAdapter.
|
void |
addLayoutTool(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.
|
AffineTransform |
getAT()
Returns the AffineTransform that is applying in the Layout.
|
JComponent |
getComponent() |
LayoutBehavior |
getCurrentLayoutTool()
Returns the current Layout tool.
|
String |
getCurrentTool()
Returns the name of the current selected tool on this Layout
|
Point |
getFirstPoint()
It returns the first click point of mouse.
|
GeometryAdapter |
getGeometryAdapter()
It returns the current GeometryAdapter.
|
int |
getHeight() |
BufferedImage |
getImage()
Returns the current image of Layout.
|
BufferedImage |
getImgRuler()
Returns the image with the ruler.
|
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.
|
FLayoutZooms |
getLayoutZooms()
Returns the object to make zooms.
|
Point |
getPointAnt()
Returns the previous click of mouse.
|
Point |
getPosition()
Returns the position adjusted point.
|
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.
|
Point |
getRectOrigin()
It returns the point that represents the northwest corner of the Layout.
|
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(Image image)
Changes the pointer of the mouse by the image of parameter.
|
void |
setPointAnt()
Inserts the previous click point of mouse.
|
void |
setPosition(Point point2)
Insert the position point and calculate the new position if the grid is
actived.
|
void |
setRect(Rectangle2D r)
Sets the size and position of the layout sheet in screen coordinates
(pixels), relative to the LayoutControl.
|
void |
setTool(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.
|
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(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.
String getCurrentTool()
void addLayoutTool(String name, LayoutBehavior tool)
name
- Name of tool.tool
- LayoutBehaviorvoid setLayoutContext(LayoutContext lc)
lc
- LayoutContext.BufferedImage getImgRuler()
void fullRect()
BufferedImage getImage()
void setMapCursor(Image image)
image
- Imagevoid setTool(String toolName)
toolName
- Name of identification tool.void setDefaultTool()
void startEdit()
void stopEdit()
Point getRectOrigin()
FLayoutDraw getLayoutDraw()
LayoutBehavior getCurrentLayoutTool()
Point getFirstPoint()
Point getPointAnt()
Point getLastPoint()
void setFirstPoint()
p
- Point.void setPointAnt()
p
- Point.void setLastPoint()
p
- Point.void setPosition(Point point2)
point2
- Position.Point getPosition()
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 canceledRectangle 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.JComponent getComponent()
int getWidth()
int getHeight()
void repaint()