Class FFrameBasic
java.lang.Object
org.gvsig.app.project.documents.layout.fframes.FFrame
org.gvsig.app.project.documents.layout.fframes.FFrameBasic
- All Implemented Interfaces:
Cloneable,IFFrame,org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.observer.Observable,org.gvsig.tools.persistence.Persistent
FFrame básica que contiene una FFrame de cualquier tipo.
- Author:
- Vicente Caballero Navarro
-
Field Summary
FieldsFields inherited from class org.gvsig.app.project.documents.layout.fframes.FFrame
e, frameFactory, iEResize, iNResize, lastAT, layoutManager, LOG, m_BoundBox, m_Selected, n, ne, no, num, o, observers, s, se, so -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanvoiddraw(Graphics2D g, AffineTransform at, Rectangle2D rv, BufferedImage imgBase) Método que dibuja sobre el graphics que se le pasa como parámetro, según la transformada afin que se debe de aplicar y el rectángulo que se debe de dibujar.voidDibuja sobre el graphics el rect�ngulo del fframe en modo borrador.voidDraws the FFrame rectangle on the provided Graphics2D, only showing the FFrame name on an empty rectangle.voidDibuja los handlers sobre el boundingBox en el graphics que se pasa como par�metro.voidDibuja sobre el graphics que se pasa como par�metro el icono que representa que contiene un tag.Returns the bounding box in centimeters of this FFrame, using paper coordinatesReturns the bounding box (in pixels) of this FFrame, based on the provided AffineTransform.intintgetLevel()Devuelve el nivel en el que se encuentra el FFrame.getMovieRect(int difx, int dify) Devuelve el rect�ngulo a partir del desplazamiento en el eje x y el desplazamiento en el eje y.getMovieRect(int difx, int dify, boolean prop) Devuelve el rectángulo a partir del desplazamiento en el eje x y el desplazamiento en el eje y.getName()Devuelve el nombre que representa al fframe.Devuelve el nombre que representa al tipo de FFrame.doubleGets the rotation of the frame, measured in arc degreesintReturns an integer representing the type of selection applied to the FFrame.getTag()Devuelve el tag.booleanintersects(Rectangle2D rv, Rectangle2D r) Devuelve true si el rect�ngulo primero es null o si es distinto de null e intersecta.voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry geom, org.gvsig.compat.print.PrintAttributes printingProperties) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidSets the bounding box in centimeters of this FFrame, using paper coordinates.voidvoidsetFframeGraphics(FFrameGraphics fframeGraphics) voidsetLevel(int l) Inserta el nivel al que se encuentra el FFrame.voidsetNum(int i) Rellena con el n�mero de FFrame.voidvoidsetRotation(double rotation) Sets the rotation of the frame, measured in arc degreesvoidsetSelected(boolean b) Sets the selected status of the frame.voidsetSelected(Point2D p, MouseEvent e) Sets the type of selection performed on the frame, based on the position of the provided Point compared with the boundaries of the FFrame.voidRellena el tag del FFrame.voidupdateRect(Rectangle2D r, AffineTransform at) Actualiza el BoundBox del FFrame a partir de su rect�ngulo en pixels y la matriz de transformaci�n.Methods inherited from class org.gvsig.app.project.documents.layout.fframes.FFrame
addObserver, contains, deleteObserver, deleteObservers, dispose, doSetSelected, frameAdded, frameRemoved, getContains, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getMapCursor, getRotationAT, getVisibleRect, initializeIcons, isSelected, setDocument, setFrameFactory, setLayoutContext
-
Field Details
-
PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
FFrameBasic
public FFrameBasic()
-
-
Method Details
-
setRectangle
-
draw
Método que dibuja sobre el graphics que se le pasa como parámetro, según la transformada afin que se debe de aplicar y el rectángulo que se debe de dibujar. -
getNameFFrame
Description copied from interface:IFFrameDevuelve el nombre que representa al tipo de FFrame.- Returns:
- nombre del elemento.
- See Also:
-
print
public void print(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry geom, org.gvsig.compat.print.PrintAttributes printingProperties) - See Also:
-
getFframe
-
setFframe
-
getFframeGraphics
-
setFframeGraphics
-
drawHandlers
Description copied from class:FFrameDibuja los handlers sobre el boundingBox en el graphics que se pasa como par�metro.- Specified by:
drawHandlersin interfaceIFFrame- Overrides:
drawHandlersin classFFrame- Parameters:
g- Graphics sobre el que dibujar.
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classFFrame- Throws:
CloneNotSupportedException
-
contains
-
drawDraft
Description copied from class:FFrameDibuja sobre el graphics el rect�ngulo del fframe en modo borrador. -
drawEmpty
Description copied from class:FFrameDraws the FFrame rectangle on the provided Graphics2D, only showing the FFrame name on an empty rectangle. -
drawSymbolTag
Description copied from class:FFrameDibuja sobre el graphics que se pasa como par�metro el icono que representa que contiene un tag.- Specified by:
drawSymbolTagin interfaceIFFrame- Overrides:
drawSymbolTagin classFFrame- Parameters:
g- Graphics sobre el que dibujar el icono.
-
getBoundBox
Description copied from class:FFrameReturns the bounding box in centimeters of this FFrame, using paper coordinates- Specified by:
getBoundBoxin interfaceIFFrame- Overrides:
getBoundBoxin classFFrame- Returns:
- The bounding box of this FFrame, measured in centimeters.
-
getBoundingBox
Description copied from class:FFrameReturns the bounding box (in pixels) of this FFrame, based on the provided AffineTransform. If the AffineTransform is null, it returns the last calculated bounding box.- Specified by:
getBoundingBoxin interfaceIFFrame- Overrides:
getBoundingBoxin classFFrame- Parameters:
at- Affine transform to apply to the sheet coordinates to get the bounding box in pixels.- Returns:
- Rectangle representing the bounding box (in pixels) of this FFrame
-
getContains
-
getLevel
public int getLevel()Description copied from class:FFrameDevuelve el nivel en el que se encuentra el FFrame. -
getMovieRect
Description copied from class:FFrameDevuelve el rect�ngulo a partir del desplazamiento en el eje x y el desplazamiento en el eje y.- Specified by:
getMovieRectin interfaceIFFrame- Overrides:
getMovieRectin classFFrame- Parameters:
difx- desplazamiento sobre el eje x.dify- desplazamiento sobre el eje y.- Returns:
- rect�ngulo modificado en funci�n del desplazamiento realizado.
-
getMovieRect
Description copied from interface:IFFrameDevuelve el rectángulo a partir del desplazamiento en el eje x y el desplazamiento en el eje y.- Specified by:
getMovieRectin interfaceIFFrame- Overrides:
getMovieRectin classFFrame- Parameters:
difx- desplazamiento sobre el eje x.dify- desplazamiento sobre el eje y.prop- true para un desplazamiento proporcional- Returns:
- rectángulo modificado en función del desplazamiento realizado.
-
getName
Description copied from interface:IFFrameDevuelve el nombre que representa al fframe.- Returns:
- String nombre del FFrame.
-
getRotation
public double getRotation()Description copied from class:FFrameGets the rotation of the frame, measured in arc degrees- Specified by:
getRotationin interfaceIFFrame- Overrides:
getRotationin classFFrame- Returns:
- Rotation of the frame
-
getSelected
public int getSelected()Description copied from class:FFrameReturns an integer representing the type of selection applied to the FFrame. Valid values are:IFFrame.NOSELECT,IFFrame.NO,IFFrame.N,IFFrame.NE,IFFrame.O,IFFrame.RECT,IFFrame.E,IFFrame.SO,IFFrame.S,IFFrame.SE.- Specified by:
getSelectedin interfaceIFFrame- Overrides:
getSelectedin classFFrame- Returns:
- The type of selection that has been applied
-
getTag
Description copied from class:FFrameDevuelve el tag. -
intersects
Description copied from class:FFrameDevuelve true si el rect�ngulo primero es null o si es distinto de null e intersecta.- Specified by:
intersectsin interfaceIFFrame- Overrides:
intersectsin classFFrame- Parameters:
rv- Rect�ngulor- Rect�ngulo- Returns:
- True si intersecta o es null.
-
setBoundBox
Description copied from class:FFrameSets the bounding box in centimeters of this FFrame, using paper coordinates.- Specified by:
setBoundBoxin interfaceIFFrame- Overrides:
setBoundBoxin classFFrame- Parameters:
r- Rectangle in centimeters
-
setLevel
public void setLevel(int l) Description copied from class:FFrameInserta el nivel al que se encuentra el FFrame. -
setNum
public void setNum(int i) Description copied from class:FFrameRellena con el n�mero de FFrame. -
setRotation
public void setRotation(double rotation) Description copied from class:FFrameSets the rotation of the frame, measured in arc degrees- Specified by:
setRotationin interfaceIFFrame- Overrides:
setRotationin classFFrame- Parameters:
rotation- Rotation to apply to the frame
-
setSelected
public void setSelected(boolean b) Description copied from class:FFrameSets the selected status of the frame.- Specified by:
setSelectedin interfaceIFFrame- Overrides:
setSelectedin classFFrame- Parameters:
b-trueto select the frame,falseto unselect it
-
setSelected
Description copied from class:FFrameSets the type of selection performed on the frame, based on the position of the provided Point compared with the boundaries of the FFrame. This method is usually called when the user clicks on the FFrame- Specified by:
setSelectedin interfaceIFFrame- Overrides:
setSelectedin classFFrame- Parameters:
p- Point which should be evaluated to establish if the FFrame must be selected or note- Mouse event that triggered this method call
-
setTag
Description copied from class:FFrameRellena el tag del FFrame. -
updateRect
Description copied from class:FFrameActualiza el BoundBox del FFrame a partir de su rect�ngulo en pixels y la matriz de transformaci�n.- Specified by:
updateRectin interfaceIFFrame- Overrides:
updateRectin classFFrame- Parameters:
r- Rect�ngulo.at- Matriz de transformaci�n.
-
registerPersistent
public static void registerPersistent() -
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classFFrame- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classFFrame- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-