public class FFrameBasic extends FFrame
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
e, frameFactory, iEResize, iNResize, 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(java.awt.geom.Point2D.Double p) |
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
java.awt.geom.Rectangle2D rv,
java.awt.image.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(java.awt.Graphics2D g)
Dibuja sobre el graphics el rect�ngulo del fframe en modo borrador.
|
void |
drawEmpty(java.awt.Graphics2D g)
Draws the FFrame rectangle on the provided Graphics2D, only showing the
FFrame name on an empty rectangle.
|
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 sobre el graphics que se pasa como par�metro el icono que
representa que contiene un tag.
|
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.Double p) |
IFFrame |
getFframe() |
FFrameGraphics |
getFframeGraphics() |
int |
getLevel()
Devuelve el nivel en el que se encuentra el FFrame.
|
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 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.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(java.awt.Graphics2D g,
java.awt.geom.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(java.awt.geom.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(java.awt.geom.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(java.awt.geom.Point2D p,
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 del FFrame.
|
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.
|
addObserver, contains, deleteObserver, deleteObservers, dispose, doSetSelected, frameAdded, frameRemoved, getContains, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getMapCursor, getRotationAT, getVisibleRect, initializeIcons, isSelected, setDocument, setFrameFactory, setLayoutContext
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public void setRectangle(java.awt.geom.Rectangle2D r)
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, java.awt.geom.Rectangle2D rv, java.awt.image.BufferedImage imgBase)
public java.lang.String getNameFFrame()
IFFrame
IFFrame.getNameFFrame()
public void print(java.awt.Graphics2D g, java.awt.geom.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(java.awt.Graphics2D g)
FFrame
drawHandlers
in interface IFFrame
drawHandlers
in class FFrame
g
- Graphics sobre el que dibujar.public IFFrame clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class FFrame
java.lang.CloneNotSupportedException
- 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(java.awt.geom.Point2D.Double p)
public void drawDraft(java.awt.Graphics2D g)
FFrame
public void drawEmpty(java.awt.Graphics2D g)
FFrame
public void drawSymbolTag(java.awt.Graphics2D g)
FFrame
drawSymbolTag
in interface IFFrame
drawSymbolTag
in class FFrame
g
- Graphics sobre el que dibujar el icono.public java.awt.geom.Rectangle2D.Double getBoundBox()
FFrame
getBoundBox
in interface IFFrame
getBoundBox
in class FFrame
public java.awt.geom.Rectangle2D.Double getBoundingBox(java.awt.geom.AffineTransform at)
FFrame
getBoundingBox
in interface IFFrame
getBoundingBox
in class FFrame
at
- Affine transform to apply to the sheet coordinates to get the
bounding box in pixels.public int getContains(java.awt.geom.Point2D.Double p)
public int getLevel()
FFrame
public java.awt.geom.Rectangle2D getMovieRect(int difx, int dify)
FFrame
getMovieRect
in interface IFFrame
getMovieRect
in class FFrame
difx
- desplazamiento sobre el eje x.dify
- desplazamiento sobre el eje y.public java.awt.geom.Rectangle2D getMovieRect(int difx, int dify, boolean prop)
IFFrame
getMovieRect
in interface IFFrame
getMovieRect
in class FFrame
difx
- desplazamiento sobre el eje x.dify
- desplazamiento sobre el eje y.prop
- true para un desplazamiento proporcionalpublic java.lang.String getName()
IFFrame
public double getRotation()
FFrame
getRotation
in interface IFFrame
getRotation
in class FFrame
public int getSelected()
FFrame
IFFrame.NOSELECT
,
IFFrame.NO
, IFFrame.N
, IFFrame.NE
,
IFFrame.O
, IFFrame.RECT
, IFFrame.E
,
IFFrame.SO
, IFFrame.S
, IFFrame.SE
.getSelected
in interface IFFrame
getSelected
in class FFrame
#isSelected()}, {@link #setSelected(boolean)}
public java.lang.String getTag()
FFrame
public boolean intersects(java.awt.geom.Rectangle2D rv, java.awt.geom.Rectangle2D r)
FFrame
intersects
in interface IFFrame
intersects
in class FFrame
rv
- Rect�ngulor
- Rect�ngulopublic void setBoundBox(java.awt.geom.Rectangle2D r)
FFrame
setBoundBox
in interface IFFrame
setBoundBox
in class FFrame
r
- Rectangle in centimeterspublic void setLevel(int l)
FFrame
public void setNum(int i)
FFrame
public void setRotation(double rotation)
FFrame
setRotation
in interface IFFrame
setRotation
in class FFrame
rotation
- Rotation to apply to the framepublic void setSelected(boolean b)
FFrame
setSelected
in interface IFFrame
setSelected
in class FFrame
b
- true
to select the frame, false
to
unselect it#isSelected()}, {@link #getSelected()}
public void setSelected(java.awt.geom.Point2D p, java.awt.event.MouseEvent e)
FFrame
setSelected
in interface IFFrame
setSelected
in class FFrame
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()}
public void setTag(java.lang.String s)
FFrame
public void updateRect(java.awt.geom.Rectangle2D r, java.awt.geom.AffineTransform at)
FFrame
updateRect
in interface IFFrame
updateRect
in class FFrame
r
- Rect�ngulo.at
- Matriz de transformaci�n.public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class FFrame
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class FFrame
PersistenceException