Modifier and Type | Method and Description |
---|---|
Dim |
FreeBoxManager.getBoxSize(Rect box,
Dim dimension)
Returns null, as doubleBoxes are not of uniform size.
|
abstract Dim |
BoxManager.getBoxSize(Rect selectedBox,
Dim dimension)
For the supplied dimension of the entire array of boxes, return the size
of one (any) box.
|
Dim |
GridBoxManager.getBoxSize(Rect box,
Dim dimension) |
Dim |
Rect.getDim() |
Dim |
DoubleRect.getDim() |
static Dim |
Dim.getLargest(java.util.Collection<Dim> dims)
Return a dim that is at least as large in width and height as all of the provided Dims.
|
Dim |
GeometryManager.toWatchmakerDim(java.lang.Object awtDimension) |
Dim |
Dim.union(Dim dim) |
Modifier and Type | Method and Description |
---|---|
void |
FreeBoxManager.addBox(Rect r,
Dim scale) |
abstract void |
BoxManager.addBox(Rect margin,
Dim dim) |
void |
GridBoxManager.addBox(Rect box,
Dim dim) |
void |
BoxesDrawer.draw(java.lang.Object graphicsContext,
Dim size,
BoxManager boxes,
boolean midBoxOnly,
java.util.Vector<java.lang.Integer> backgroundColors) |
Rect |
BoxManager.getBox(int boxNo,
Dim size) |
Rect |
BoxManager.getBoxContainingPoint(Point p,
Dim d)
Find the box within the array containing a particular point, in reverse
order to the natural (drawing) order.
|
java.util.Vector<Rect> |
FreeBoxManager.getBoxes(Dim screenSize) |
abstract java.util.Vector<Rect> |
BoxManager.getBoxes(Dim dimension)
For the given dimension of the entire array of boxes, return a vector of
Rectangles describing the corners of each box, in row-major order.
|
java.util.Vector<Rect> |
GridBoxManager.getBoxes(Dim dimension) |
java.util.Vector<Rect> |
BoxManager.getBoxesReversed(Dim scale)
Return the boxes in reverse order, so that offspring are "on top" of
their ancestors.
|
Dim |
FreeBoxManager.getBoxSize(Rect box,
Dim dimension)
Returns null, as doubleBoxes are not of uniform size.
|
abstract Dim |
BoxManager.getBoxSize(Rect selectedBox,
Dim dimension)
For the supplied dimension of the entire array of boxes, return the size
of one (any) box.
|
Dim |
GridBoxManager.getBoxSize(Rect box,
Dim dimension) |
Point |
FreeBoxManager.getMidPoint(Dim scale,
Rect box) |
abstract Point |
BoxManager.getMidPoint(Dim dimension,
Rect box)
Given supplied dimension of the entire array of boxes, return the
midpoint of the nth box (starting with n = 0).
|
Point |
GridBoxManager.getMidPoint(Dim dimension,
Rect box) |
java.util.Vector<Point> |
FreeBoxManager.getMidPoints(Dim scale) |
abstract java.util.Vector<Point> |
BoxManager.getMidPoints(Dim dimension)
For the given dimension of the entire array of boxes, return a vector of
Points describing the midpoints of each box, in row-major order.
|
java.util.Vector<Point> |
GridBoxManager.getMidPoints(Dim dimension) |
Point |
BoxManager.getOrigin(Dim size,
int selectedBoxNo) |
Point |
BoxedMorph.getPosition(Dim dimension) |
int |
Dim.getScale(Dim dimToFit,
double zoomBase)
Returns the logarithm of the scale multiplier required to ensure
that the second dimension fits within the first, to the given logarithmic base.
|
void |
FreeBoxManager.setBox(Rect shadowBox,
Rect newBox,
Dim size) |
void |
BoxManager.setBox(Rect box,
Rect newBox,
Dim size) |
Rect |
DoubleRect.toRect(Dim scale) |
Dim |
Dim.union(Dim dim) |
Modifier and Type | Method and Description |
---|---|
static Dim |
Dim.getLargest(java.util.Collection<Dim> dims)
Return a dim that is at least as large in width and height as all of the provided Dims.
|
Modifier and Type | Method and Description |
---|---|
void |
MorphDrawer.draw(BoxedMorph locatedMorph,
java.lang.Object graphicsContext,
Dim d,
boolean selectionState,
boolean isShowBoundingBoxes,
boolean clip) |
BoxedMorph |
BoxedMorphCollection.getBoxedMorph(Point p,
Dim d)
Calls BoxManager.getBoxContainingPoint() to find the box at the given point
with the given dimensions for the region, then calls getBoxedMorph with
the box to return the BoxedMorph inside it (if any.)
|
Modifier and Type | Method and Description |
---|---|
Dim |
MorphViewPanel.getDim() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleMorphViewPanel.paintMorphViewPanel(java.lang.Object graphicsContext,
Dim size)
Draw the MorphView's breeding box outlines (if showBoxes is set) and its
morphs, on the MorphView's centre panel.
|
void |
MorphViewPanel.paintMorphViewPanel(java.lang.Object graphicsContext,
Dim size) |
void |
MorphViewPanelMouseHandler.processMouseClicked(Point point,
Dim size) |
void |
SimpleMorphViewPanel.processMouseClicked(Point point,
Dim size) |
void |
MorphViewPanel.processMouseClicked(Point point,
Dim size) |
void |
MorphViewPanelMouseHandler.processMouseDragged(Point watchmakerPoint,
Dim watchmakerDim) |
void |
SimpleMorphViewPanel.processMouseDragged(Point watchmakerPoint,
Dim watchmakerDim) |
void |
MorphViewPanel.processMouseDragged(Point watchmakerPoint,
Dim watchmakerDim) |
void |
MorphViewPanelMouseHandler.processMouseMotion(Point myPt,
Dim size) |
void |
MorphViewPanel.processMouseMotion(Point myPt,
Dim size) |
void |
MorphViewPanelMouseHandler.processMousePressed(Point watchmakerPoint,
Dim watchmakerDim) |
void |
SimpleMorphViewPanel.processMousePressed(Point watchmakerPoint,
Dim watchmakerDim) |
void |
MorphViewPanel.processMousePressed(Point watchmakerPoint,
Dim watchmakerDim) |
void |
MorphViewPanelMouseHandler.processMouseReleased(Point watchmakerPoint,
Dim watchmakerDim) |
void |
SimpleMorphViewPanel.processMouseReleased(Point watchmakerPoint,
Dim watchmakerDim) |
void |
MorphViewPanel.processMouseReleased(Point watchmakerPoint,
Dim watchmakerDim) |
Modifier and Type | Method and Description |
---|---|
Dim |
AWTGeometryManager.toWatchmakerDim(java.lang.Object awtDimension) |
Modifier and Type | Method and Description |
---|---|
void |
SwingBreedingMorphViewPanel.paintMorphViewPanel(java.lang.Object graphicsContext,
Dim size) |
void |
SwingBreedingMorphViewPanel.processMouseMotion(Point myPt,
Dim size) |
void |
SwingBreedingMorphViewPanel.processMousePressed(Point myPt,
Dim size) |
Modifier and Type | Method and Description |
---|---|
void |
SwingMorphDrawer.draw(BoxedMorph boxedMorph,
java.lang.Object graphicsContext,
Dim size,
boolean selectionState,
boolean showBoundingBox,
boolean clip) |
void |
SwingBoxesDrawer.draw(java.lang.Object graphicsContext,
Dim dimension,
BoxManager boxes,
boolean midBoxOnly,
java.util.Vector<java.lang.Integer> backgroundColors)
Draw boxes on a Graphics2D context.
|
Modifier and Type | Method and Description |
---|---|
void |
SwingEngineeringMorphViewPanel.processMouseClicked(Point point,
Dim size) |
Modifier and Type | Method and Description |
---|---|
Dim |
SwingMorphViewPanel.getDim() |
Modifier and Type | Method and Description |
---|---|
void |
SwingMorphViewPanel.processMouseClicked(Point myPt,
Dim Size) |
void |
SwingMorphViewPanel.processMouseMotion(Point myPt,
Dim size) |
Modifier and Type | Method and Description |
---|---|
void |
SwingTriangleMorphViewPanel.paintMorphViewPanel(java.lang.Object graphicsContext,
Dim size) |
void |
SwingTriangleMorphViewPanel.processMouseClicked(Point point,
Dim size) |
void |
SwingTriangleMorphViewPanel.processMouseMotion(Point point,
Dim size) |