public interface IFFrame extends IPrintable, Persistent, Cloneable, Observable, Disposable
Modifier and Type | Field and Description |
---|---|
static int |
E
FFrame has been selected by clicking on its East boundary
|
static int |
N
FFrame has been selected by clicking on its North boundary
|
static int |
NE
FFrame has been selected by clicking on its North-East corner
|
static int |
NO
FFrame has been selected by clicking on its North-West corner
|
static int |
NOSELECT
FFrame is not selected
|
static int |
O
FFrame has been selected by clicking on its West boundary
|
static int |
RECT
FFrame has been selected by clicking within the frame rectangle
|
static int |
S
FFrame has been selected by clicking on its South boundary
|
static int |
SE
FFrame has been selected by clicking on its South-East corner
|
static int |
SO
FFrame has been selected by clicking on its South-West corner
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.geom.Point2D p)
Devuelve true, si el punto que se pasa como parámetro esta contenido
dentro del boundingbox del fframe.
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
java.awt.geom.Rectangle2D r,
java.awt.image.BufferedImage imgBase)
Este método se implementa en cada una de las fframe, ya que cada una se
dibuja de una forma diferente sobre el graphics.
|
void |
drawDraft(java.awt.Graphics2D g)
Dibuja un rectángulo de color gris, con el nombre en el centro y
escalado en forma de borrador.
|
void |
drawHandlers(java.awt.Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
parámetro.
|
void |
drawSymbolTag(java.awt.Graphics2D g)
Dibuja el símbolo que indica que el FFrame contiene un tag.
|
void |
frameAdded()
This method is called when the FFrame has been
added to the Layout
|
void |
frameRemoved()
This method is called when the FFrame has been
removed from the Layout
|
java.awt.geom.Rectangle2D.Double |
getBoundBox()
Returns the bounding box in centimeters of this FFrame, using paper
coordinates
|
java.awt.geom.Rectangle2D.Double |
getBoundingBox(java.awt.geom.AffineTransform at)
Returns the bounding box (in pixels) of this FFrame, based on the provided
AffineTransform.
|
int |
getContains(java.awt.geom.Point2D p)
Checks whether the provided point is contained within the FFrame
rectangle.
|
Document |
getDocument() |
FrameFactory |
getFrameFactory() |
java.awt.geom.Rectangle2D |
getLastMoveRect() |
LayoutContext |
getLayoutContext() |
int |
getLevel()
Devuelve el nivel al que se encuentra el FFrame en el Layout.
|
java.awt.Image |
getMapCursor(java.awt.geom.Point2D p)
Devuelve el Cursor adecuado según como esté contenido el punto, si es
para desplazamiento, o cambio de tamaño.
|
java.awt.geom.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.
|
java.awt.geom.Rectangle2D |
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.
|
java.lang.String |
getName()
Devuelve el nombre que representa al fframe.
|
java.lang.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.
|
java.lang.String |
getTag()
Devuelve el valor del tag.
|
boolean |
intersects(java.awt.geom.Rectangle2D rv,
java.awt.geom.Rectangle2D r)
Devuelve true si el rectángulo primero es null o si es distinto de null
e intersecta.
|
boolean |
isSelected()
Gets the selection status of the frame
|
void |
setBoundBox(java.awt.geom.Rectangle2D rect)
Sets the bounding box in centimeters of this FFrame, using paper
coordinates.
|
void |
setDocument(Document document) |
void |
setFrameFactory(FrameFactory frameFactory) |
void |
setLayoutContext(LayoutContext layoutContext) |
void |
setLevel(int l)
Inserta el nivel de dibujado del FFrame respecto del resto de fframes
del Layout.
|
void |
setNum(int i)
Introduce el número de FFrame en el que de que se trata.
|
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(java.awt.geom.Point2D b,
java.awt.event.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(java.lang.String s)
Rellena el tag.
|
void |
updateRect(java.awt.geom.Rectangle2D r,
java.awt.geom.AffineTransform at)
Actualiza el BoundBox del FFrame a partir de su rectángulo en pixels y
la matriz de transformación.
|
print
loadFromState, saveToState
clone, cloneQuietly, cloneQuietly
addObserver, deleteObserver, deleteObservers
dispose
static final int N
static final int NE
static final int E
static final int SE
static final int S
static final int SO
static final int O
static final int NO
static final int RECT
static final int NOSELECT
java.awt.geom.Rectangle2D.Double getBoundingBox(java.awt.geom.AffineTransform at)
at
- Affine transform to apply to the sheet coordinates to get the
bounding box in pixels.java.awt.geom.Rectangle2D.Double getBoundBox()
void setBoundBox(java.awt.geom.Rectangle2D rect)
r
- Rectangle in centimetersvoid draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, java.awt.geom.Rectangle2D r, java.awt.image.BufferedImage imgBase)
g
- Graphicsat
- Transformada afin.r
- rectángulo sobre el que hacer un clip.imgBase
- Imagen para acelerar el dibujado.ReadDriverException
- TODOjava.lang.String getName()
boolean contains(java.awt.geom.Point2D p)
p
- punto a comprobar.void drawHandlers(java.awt.Graphics2D g)
g
- Graphics sobre el que dibujar.void setSelected(java.awt.geom.Point2D b, java.awt.event.MouseEvent e)
p
- 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()}
void setSelected(boolean b)
selected
- true
to select the frame, false
to
unselect it#isSelected()}, {@link #getSelected()}
int getSelected()
NOSELECT
,
NO
, N
, NE
,
O
, RECT
, E
,
SO
, S
, SE
.#isSelected()}, {@link #setSelected(boolean)}
boolean isSelected()
true
if the frame is selected,
false
otherwise#getSelected()}, {@link #setSelected(boolean)}
int getContains(java.awt.geom.Point2D p)
java.awt.Image getMapCursor(java.awt.geom.Point2D p)
p
- punto a comprobar.java.awt.geom.Rectangle2D getMovieRect(int difx, int dify)
difx
- desplazamiento sobre el eje x.dify
- desplazamiento sobre el eje y.java.awt.geom.Rectangle2D getMovieRect(int difx, int dify, boolean prop)
difx
- desplazamiento sobre el eje x.dify
- desplazamiento sobre el eje y.prop
- true para un desplazamiento proporcionalvoid drawDraft(java.awt.Graphics2D g)
g
- Graphics sobre el que se dibuja.void updateRect(java.awt.geom.Rectangle2D r, java.awt.geom.AffineTransform at)
r
- Rectángulo.at
- Matriz de transformación.boolean intersects(java.awt.geom.Rectangle2D rv, java.awt.geom.Rectangle2D r)
rv
- Rectángulor
- Rectángulovoid setNum(int i)
i
- número de FFramejava.lang.String getNameFFrame()
void setTag(java.lang.String s)
s
- valor del tag.java.lang.String getTag()
void drawSymbolTag(java.awt.Graphics2D g)
g
- Graphics sobre el que dibujar.void setRotation(double rotation)
rotation
- Rotation to apply to the framedouble getRotation()
int getLevel()
void setLevel(int l)
l
- nivel.java.awt.geom.Rectangle2D getLastMoveRect()
void setFrameFactory(FrameFactory frameFactory)
FrameFactory getFrameFactory()
Document getDocument()
void setDocument(Document document)
LayoutContext getLayoutContext()
void setLayoutContext(LayoutContext layoutContext)
void frameRemoved()
void frameAdded()