public class FFrameTable extends FFrameGroup implements IFFrameGroupSelectable
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_DEFINITION_NAME |
fframeViewDependence
e, frameFactory, lastAT, layoutManager, LOG, m_BoundBox, m_Selected, n, ne, no, num, o, observers, s, se, so
Constructor and Description |
---|
FFrameTable() |
Modifier and Type | Method and Description |
---|---|
void |
calculateTable(Rectangle2D r) |
boolean |
contains(Point2D p)
Devuelve true, si el punto que se pasa como par�metro esta contenido
dentro del boundingbox del fframe.
|
boolean |
containsGroup(Point2D p) |
void |
draw(Graphics2D g,
AffineTransform at,
Rectangle2D rv,
BufferedImage imgBase)
DOCUMENT ME!
|
void |
drawBox(Rectangle2D r,
Graphics2D g)
DOCUMENT ME!
|
void |
drawHandlers(Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
par�metro.
|
void |
drawHandlersGroup(Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
par�metro.
|
int |
getContains(Point2D p)
Checks whether the provided point is contained within the FFrame
rectangle.
|
int |
getContainsGroup(Point2D p) |
Image |
getMapCursor(Point2D p)
Devuelve el Cursor adecuado seg�n como est� contenido el punto, si es
para desplazamiento, o cambio de tama�o.
|
Image |
getMapCursorGroup(Point2D p) |
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.
|
Rectangle2D |
getMovieRectGroup(int difX,
int difY) |
String |
getName()
Devuelve el nombre que representa al fframe.
|
String |
getNameFFrame()
DOCUMENT ME!
|
int |
getNumColumns()
DOCUMENT ME!
|
int |
getNumRows()
DOCUMENT ME!
|
int |
getSelectedGroup() |
static void |
initializeIcons()
Initilizes the static icons
|
IFFrame |
joinFFrame() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(Graphics2D g,
AffineTransform at)
DOCUMENT ME!
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
selectFFrame(boolean b) |
void |
setNumColumns(int numColumns)
DOCUMENT ME!
|
void |
setNumRows(int numRows)
DOCUMENT ME!
|
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 |
setSelectedGroup(Point2D p,
MouseEvent e) |
addFFrame, clearFFrames, clone, getFFrameDependence, getFFrames, getRectangle, initialize, print, refreshDependence, removeFFrame, removeFFrame, setAt, setBoundBox, setFFrameDependence, setProject
addObserver, deleteObserver, deleteObservers, dispose, doSetSelected, drawDraft, drawEmpty, drawSymbolTag, frameAdded, frameRemoved, getBoundBox, getBoundingBox, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getLevel, getRotation, getRotationAT, getSelected, getTag, getVisibleRect, intersects, isSelected, setDocument, setFrameFactory, setLayoutContext, setLevel, setNum, setRotation, setSelected, setTag, updateRect
public static final String PERSISTENCE_DEFINITION_NAME
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, BufferedImage imgBase)
draw
in interface IFFrame
draw
in class FFrameGroup
g
- DOCUMENT ME!at
- DOCUMENT ME!rv
- DOCUMENT ME!imgBase
- DOCUMENT ME!public void drawBox(Rectangle2D r, Graphics2D g)
r
- DOCUMENT ME!g
- DOCUMENT ME!public void print(Graphics2D g, AffineTransform at) throws ReadException
g
- DOCUMENT ME!at
- DOCUMENT ME!ReadDriverException
ReadException
public String getNameFFrame()
getNameFFrame
in interface IFFrame
getNameFFrame
in class FFrameGroup
IFFrame.getNameFFrame()
public String getName()
IFFrame
getName
in interface IFFrame
getName
in class FFrameGroup
public int getNumColumns()
public void setNumColumns(int numColumns)
numColumns
- DOCUMENT ME!public int getNumRows()
public void setNumRows(int numRows)
numRows
- DOCUMENT ME!public void calculateTable(Rectangle2D r)
public void selectFFrame(boolean b)
selectFFrame
in interface IFFrameGroupSelectable
public IFFrame joinFFrame()
joinFFrame
in interface IFFrameGroupSelectable
public void setSelected(Point2D p, 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 boolean contains(Point2D p)
FFrame
public void drawHandlers(Graphics2D g)
FFrame
drawHandlers
in interface IFFrame
drawHandlers
in class FFrame
g
- Graphics sobre el que dibujar.public int getContains(Point2D p)
IFFrame
getContains
in interface IFFrame
getContains
in class FFrame
p
- Point to compareIFFrame.NOSELECT
,
IFFrame.NO
, IFFrame.N
, IFFrame.NE
,
IFFrame.O
, IFFrame.RECT
, IFFrame.E
,
IFFrame.SO
, IFFrame.S
, IFFrame.SE
.public 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 Rectangle2D getMovieRectGroup(int difX, int difY)
getMovieRectGroup
in interface IFFrameGroupSelectable
public int getContainsGroup(Point2D p)
getContainsGroup
in interface IFFrameGroupSelectable
public void drawHandlersGroup(Graphics2D g)
drawHandlersGroup
in interface IFFrameGroupSelectable
g
- Graphics sobre el que dibujar.public boolean containsGroup(Point2D p)
containsGroup
in interface IFFrameGroupSelectable
public void setSelectedGroup(Point2D p, MouseEvent e)
setSelectedGroup
in interface IFFrameGroupSelectable
public int getSelectedGroup()
getSelectedGroup
in interface IFFrameGroupSelectable
public Image getMapCursor(Point2D p)
FFrame
getMapCursor
in interface IFFrame
getMapCursor
in class FFrame
p
- punto a comprobar.public Image getMapCursorGroup(Point2D p)
getMapCursorGroup
in interface IFFrameGroupSelectable
public static void initializeIcons()
public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class FFrameGroup
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class FFrameGroup
PersistenceException