public class DimensionLineController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
DimensionLineController.DimensionLineOrientation
The possible values for dimension line type.
|
static class |
DimensionLineController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
DimensionLineController(Home home,
float x,
float y,
UserPreferences preferences,
ViewFactory viewFactory,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of dimension line view with undo support.
|
DimensionLineController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of dimension line view with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(DimensionLineController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
createDimensionLine()
Controls the creation of a dimension line.
|
protected DimensionLine |
createDimensionLine(float xStart,
float yStart,
float elevationStart,
float xEnd,
float yEnd,
float elevationEnd,
float offset)
Returns a new dimension line instance added to home.
|
void |
displayView(View parentView)
Displays the view controlled by this controller.
|
java.lang.Integer |
getColor()
Returns the edited color.
|
java.lang.Float |
getDistanceToEndPoint()
Returns the edited distance to end point.
|
java.lang.Float |
getElevationEnd()
Returns the edited elevation of the end point.
|
java.lang.Float |
getElevationStart()
Returns the edited elevation of the start point.
|
java.lang.Float |
getLengthFontSize()
Returns the edited font size.
|
java.lang.Float |
getOffset()
Returns the edited offset.
|
DimensionLineController.DimensionLineOrientation |
getOrientation()
Returns the edited orientation.
|
java.lang.Float |
getPitch()
Returns the edited pitch.
|
DialogView |
getView()
Returns the view associated with this controller.
|
java.lang.Float |
getXEnd()
Returns the edited abscissa of the end point.
|
java.lang.Float |
getXStart()
Returns the edited abscissa of the start point.
|
java.lang.Float |
getYEnd()
Returns the edited ordinate of the end point.
|
java.lang.Float |
getYStart()
Returns the edited ordinate of the start point.
|
boolean |
isEditableDistance()
Returns whether the distance can be be edited or not.
|
java.lang.Boolean |
isVisibleIn3D()
Returns
Boolean.TRUE if all edited dimension lines are viewed in 3D,
or Boolean.FALSE if no dimension line is viewed in 3D. |
void |
modifyDimensionLines()
Controls the modification of selected dimension lines in edited home.
|
void |
removePropertyChangeListener(DimensionLineController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setColor(java.lang.Integer color)
Sets the edited color.
|
void |
setDistanceToEndPoint(java.lang.Float distanceToEndPoint)
Sets the edited distance to end point.
|
void |
setEditableDistance(boolean editableDistance)
Sets whether the distance can be be edited or not.
|
void |
setElevationEnd(java.lang.Float elevationEnd)
Sets the edited elevation of the end point.
|
void |
setElevationStart(java.lang.Float elevationStart)
Sets the edited elevation of the start point.
|
void |
setLengthFontSize(java.lang.Float lengthFontSize)
Sets the edited font size.
|
void |
setOffset(java.lang.Float offset)
Sets the edited offset.
|
void |
setOrientation(DimensionLineController.DimensionLineOrientation orientation)
Sets the edited orientation.
|
void |
setPitch(java.lang.Float pitch)
Sets the edited pitch angle.
|
void |
setVisibleIn3D(java.lang.Boolean visibleIn3D)
Sets whether all edited dimension lines are viewed in 3D.
|
void |
setXEnd(java.lang.Float xEnd)
Sets the edited abscissa of the end point.
|
void |
setXStart(java.lang.Float xStart)
Sets the edited abscissa of the start point.
|
void |
setYEnd(java.lang.Float yEnd)
Sets the edited ordinate of the end point.
|
void |
setYStart(java.lang.Float yStart)
Sets the edited ordinate of the start point.
|
protected void |
updateProperties()
Updates edited properties from selected dimension lines in the home edited by this controller.
|
public DimensionLineController(Home home, UserPreferences preferences, ViewFactory viewFactory, javax.swing.undo.UndoableEditSupport undoSupport)
public DimensionLineController(Home home, float x, float y, UserPreferences preferences, ViewFactory viewFactory, javax.swing.undo.UndoableEditSupport undoSupport)
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(DimensionLineController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(DimensionLineController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public void setXStart(java.lang.Float xStart)
public java.lang.Float getXStart()
public void setYStart(java.lang.Float yStart)
public java.lang.Float getYStart()
public void setElevationStart(java.lang.Float elevationStart)
public java.lang.Float getElevationStart()
public void setXEnd(java.lang.Float xEnd)
public java.lang.Float getXEnd()
public void setYEnd(java.lang.Float yEnd)
public java.lang.Float getYEnd()
public void setElevationEnd(java.lang.Float elevationEnd)
public java.lang.Float getElevationEnd()
public void setDistanceToEndPoint(java.lang.Float distanceToEndPoint)
public java.lang.Float getDistanceToEndPoint()
public void setOrientation(DimensionLineController.DimensionLineOrientation orientation)
public DimensionLineController.DimensionLineOrientation getOrientation()
public void setEditableDistance(boolean editableDistance)
public boolean isEditableDistance()
public void setOffset(java.lang.Float offset)
public java.lang.Float getOffset()
public void setLengthFontSize(java.lang.Float lengthFontSize)
public java.lang.Float getLengthFontSize()
public void setColor(java.lang.Integer color)
public java.lang.Integer getColor()
public void setVisibleIn3D(java.lang.Boolean visibleIn3D)
public java.lang.Boolean isVisibleIn3D()
Boolean.TRUE
if all edited dimension lines are viewed in 3D,
or Boolean.FALSE
if no dimension line is viewed in 3D.public void setPitch(java.lang.Float pitch)
public java.lang.Float getPitch()
protected DimensionLine createDimensionLine(float xStart, float yStart, float elevationStart, float xEnd, float yEnd, float elevationEnd, float offset)
public void createDimensionLine()
public void modifyDimensionLines()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License