public class FFrameBasic extends FFrame
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENCE_DEFINITION_NAME |
e, frameFactory, lastAT, layoutManager, LOG, m_BoundBox, m_Selected, n, ne, no, num, o, observers, s, se, so| Constructor and Description |
|---|
FFrameBasic() |
| Modifier and Type | Method and Description |
|---|---|
IFFrame |
clone()
Creates a copy of the object.
|
boolean |
contains(Point2D.Double p) |
void |
draw(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.
|
void |
drawDraft(Graphics2D g)
Dibuja sobre el graphics el rect�ngulo del fframe en modo borrador.
|
void |
drawEmpty(Graphics2D g)
Draws the FFrame rectangle on the provided Graphics2D, only showing the
FFrame name on an empty rectangle.
|
void |
drawHandlers(Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
par�metro.
|
void |
drawSymbolTag(Graphics2D g)
Dibuja sobre el graphics que se pasa como par�metro el icono que
representa que contiene un tag.
|
Rectangle2D.Double |
getBoundBox()
Returns the bounding box in centimeters of this FFrame, using paper
coordinates
|
Rectangle2D.Double |
getBoundingBox(AffineTransform at)
Returns the bounding box (in pixels) of this FFrame, based on the provided
AffineTransform.
|
int |
getContains(Point2D.Double p) |
IFFrame |
getFframe() |
FFrameGraphics |
getFframeGraphics() |
int |
getLevel()
Devuelve el nivel en el que se encuentra el FFrame.
|
Rectangle2D |
getMovieRect(int difx,
int dify)
Devuelve el rect�ngulo a partir del desplazamiento en el eje x y el
desplazamiento en el eje y.
|
String |
getName()
Devuelve el nombre que representa al fframe.
|
String |
getNameFFrame()
Devuelve el nombre que representa al tipo de FFrame.
|
double |
getRotation()
Gets the rotation of the frame, measured in arc degrees
|
int |
getSelected()
Returns an integer representing the type of selection applied to the
FFrame.
|
String |
getTag()
Devuelve el tag.
|
boolean |
intersects(Rectangle2D rv,
Rectangle2D r)
Devuelve true si el rect�ngulo primero es null o si es distinto de null
e intersecta.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(Graphics2D g,
AffineTransform at,
Geometry geom,
PrintAttributes printingProperties) |
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setBoundBox(Rectangle2D r)
Sets the bounding box in centimeters of this FFrame, using paper
coordinates.
|
void |
setFframe(IFFrame fframe) |
void |
setFframeGraphics(FFrameGraphics fframeGraphics) |
void |
setLevel(int l)
Inserta el nivel al que se encuentra el FFrame.
|
void |
setNum(int i)
Rellena con el n�mero de FFrame.
|
void |
setRectangle(Rectangle2D r) |
void |
setRotation(double rotation)
Sets the rotation of the frame, measured in arc degrees
|
void |
setSelected(boolean b)
Sets the selected status of the frame.
|
void |
setSelected(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.
|
void |
setTag(String s)
Rellena el tag del FFrame.
|
void |
updateRect(Rectangle2D r,
AffineTransform at)
Actualiza el BoundBox del FFrame a partir de su rect�ngulo en pixels y
la matriz de transformaci�n.
|
addObserver, contains, deleteObserver, deleteObservers, dispose, doSetSelected, frameAdded, frameRemoved, getContains, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getMapCursor, getRotationAT, getVisibleRect, initializeIcons, isSelected, setDocument, setFrameFactory, setLayoutContextpublic static final String PERSISTENCE_DEFINITION_NAME
public void setRectangle(Rectangle2D r)
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, BufferedImage imgBase)
public String getNameFFrame()
IFFrameIFFrame.getNameFFrame()public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintAttributes printingProperties)
org.gvsig.app.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
java.awt.geom.AffineTransform)public IFFrame getFframe()
public void setFframe(IFFrame fframe)
public FFrameGraphics getFframeGraphics()
public void setFframeGraphics(FFrameGraphics fframeGraphics)
public void drawHandlers(Graphics2D g)
FFramedrawHandlers in interface IFFramedrawHandlers in class FFrameg - Graphics sobre el que dibujar.public IFFrame clone() throws CloneNotSupportedException
Cloneableclone in class FFrameCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public boolean contains(Point2D.Double p)
public void drawDraft(Graphics2D g)
FFramepublic void drawEmpty(Graphics2D g)
FFramepublic void drawSymbolTag(Graphics2D g)
FFramedrawSymbolTag in interface IFFramedrawSymbolTag in class FFrameg - Graphics sobre el que dibujar el icono.public Rectangle2D.Double getBoundBox()
FFramegetBoundBox in interface IFFramegetBoundBox in class FFramepublic Rectangle2D.Double getBoundingBox(AffineTransform at)
FFramegetBoundingBox in interface IFFramegetBoundingBox in class FFrameat - Affine transform to apply to the sheet coordinates to get the
bounding box in pixels.public int getContains(Point2D.Double p)
public int getLevel()
FFramepublic Rectangle2D getMovieRect(int difx, int dify)
FFramegetMovieRect in interface IFFramegetMovieRect in class FFramedifx - desplazamiento sobre el eje x.dify - desplazamiento sobre el eje y.public String getName()
IFFramepublic double getRotation()
FFramegetRotation in interface IFFramegetRotation in class FFramepublic int getSelected()
FFrameIFFrame.NOSELECT,
IFFrame.NO, IFFrame.N, IFFrame.NE,
IFFrame.O, IFFrame.RECT, IFFrame.E,
IFFrame.SO, IFFrame.S, IFFrame.SE.getSelected in interface IFFramegetSelected in class FFrame#isSelected()}, {@link #setSelected(boolean)}public boolean intersects(Rectangle2D rv, Rectangle2D r)
FFrameintersects in interface IFFrameintersects in class FFramerv - Rect�ngulor - Rect�ngulopublic void setBoundBox(Rectangle2D r)
FFramesetBoundBox in interface IFFramesetBoundBox in class FFramer - Rectangle in centimeterspublic void setLevel(int l)
FFramepublic void setNum(int i)
FFramepublic void setRotation(double rotation)
FFramesetRotation in interface IFFramesetRotation in class FFramerotation - Rotation to apply to the framepublic void setSelected(boolean b)
FFramesetSelected in interface IFFramesetSelected in class FFrameb - true to select the frame, false to
unselect it#isSelected()}, {@link #getSelected()}public void setSelected(Point2D p, MouseEvent e)
FFramesetSelected in interface IFFramesetSelected in class FFramep - Point which should be evaluated to establish if the FFrame must
be selected or note - Mouse event that triggered this method call#isSelected()}, {@link #getSelected()}public void setTag(String s)
FFramepublic void updateRect(Rectangle2D r, AffineTransform at)
FFrameupdateRect in interface IFFrameupdateRect in class FFramer - Rect�ngulo.at - Matriz de transformaci�n.public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class FFramePersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class FFramePersistenceException