public class FFrameMapBox extends FFrame
Modifier and Type | Field and Description |
---|---|
static double |
MAPBOX_EPSILON |
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
static double |
PIXELS_TOLERANCE |
e, frameFactory, iEResize, iNResize, lastAT, layoutManager, LOG, m_BoundBox, m_Selected, n, ne, no, num, o, observers, s, se, so
Constructor and Description |
---|
FFrameMapBox()
Creates a new FFrameMapBox object.
|
Modifier and Type | Method and Description |
---|---|
void |
click(PointEvent event) |
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
cloneActions(IFFrame frame) |
void |
drag(java.awt.geom.Point2D.Double toSheetPoint) |
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at) |
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 |
drawCell(java.awt.Graphics2D g,
Cell cell,
java.awt.geom.Rectangle2D rect,
boolean selected) |
java.awt.geom.Point2D.Double |
fromMapBoxPointToSheetPoint(java.awt.geom.Point2D.Double mapBoxPoint) |
java.awt.geom.Point2D.Double |
fromSheetPointToMapBoxPoint(java.awt.geom.Point2D.Double sheetPoint) |
MapBoxModel |
getModel() |
java.lang.String |
getName()
Devuelve el nombre que representa al fframe.
|
java.lang.String |
getNameFFrame()
Devuelve el nombre que representa al tipo de FFrame.
|
java.util.List<Cell> |
getSelectedCells() |
SelectionCell |
getSelection() |
void |
initialize() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
moveHorizontalLine(double y0,
double y1) |
void |
moveVerticalLine(double x0,
double x1) |
void |
print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
Geometry geom,
PrintAttributes properties) |
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 |
setModel(MapBoxModel model) |
addObserver, contains, deleteObserver, deleteObservers, dispose, doSetSelected, drawDraft, drawEmpty, drawHandlers, drawSymbolTag, frameAdded, frameRemoved, getBoundBox, getBoundingBox, getContains, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getLevel, getMapCursor, getMovieRect, getMovieRect, getRotation, getRotationAT, getSelected, getTag, getVisibleRect, initializeIcons, intersects, isSelected, setDocument, setFrameFactory, setLayoutContext, setLevel, setNum, setRotation, setSelected, setSelected, setTag, updateRect
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public static final double PIXELS_TOLERANCE
public static final double MAPBOX_EPSILON
public void setModel(MapBoxModel model)
public MapBoxModel getModel()
public SelectionCell getSelection()
public java.util.List<Cell> getSelectedCells()
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, java.awt.geom.Rectangle2D rv, java.awt.image.BufferedImage imgBase)
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform at)
public void drawCell(java.awt.Graphics2D g, Cell cell, java.awt.geom.Rectangle2D rect, boolean selected)
public java.lang.String getNameFFrame()
IFFrame
IFFrame.getNameFFrame()
public java.lang.String getName()
IFFrame
public void initialize()
public void cloneActions(IFFrame frame)
public void print(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, Geometry geom, PrintAttributes properties)
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
public java.lang.Object 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 void setBoundBox(java.awt.geom.Rectangle2D r)
FFrame
setBoundBox
in interface IFFrame
setBoundBox
in class FFrame
r
- Rectangle in centimeterspublic void moveVerticalLine(double x0, double x1)
public void moveHorizontalLine(double y0, double y1)
public void click(PointEvent event)
public void drag(java.awt.geom.Point2D.Double toSheetPoint)
public java.awt.geom.Point2D.Double fromSheetPointToMapBoxPoint(java.awt.geom.Point2D.Double sheetPoint)
public java.awt.geom.Point2D.Double fromMapBoxPointToSheetPoint(java.awt.geom.Point2D.Double mapBoxPoint)