public class PolylineController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
PolylineController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
PolylineController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of polyline view with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PolylineController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller.
|
Polyline.CapStyle |
getCapStyle()
Returns the edited capStyle.
|
java.lang.Integer |
getColor()
Returns the edited color.
|
java.lang.Float |
getDashOffset()
Returns the edited dash offset.
|
float[] |
getDashPattern()
Returns the edited dash pattern.
|
Polyline.DashStyle |
getDashStyle()
Returns the edited dash style.
|
java.lang.Float |
getElevation()
Returns the edited elevation.
|
Polyline.ArrowStyle |
getEndArrowStyle()
Returns the edited end arrow style.
|
Polyline.JoinStyle |
getJoinStyle()
Returns the edited joinStyle.
|
Polyline.ArrowStyle |
getStartArrowStyle()
Returns the edited start arrow style.
|
java.lang.Float |
getThickness()
Returns the edited thickness.
|
DialogView |
getView()
Returns the view associated with this controller.
|
boolean |
isArrowsStyleEditable()
Returns
true if arrows style is editable. |
boolean |
isCapStyleEditable()
Returns
true if cap style is editable. |
java.lang.Boolean |
isElevationEnabled()
Returns
Boolean.TRUE if all edited polylines are viewed in 3D,
or Boolean.FALSE if no polyline is viewed in 3D. |
boolean |
isJoinStyleEditable()
Returns
true if join style is editable. |
void |
modifyPolylines()
Controls the modification of selected polylines in edited home.
|
void |
removePropertyChangeListener(PolylineController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setCapStyle(Polyline.CapStyle capStyle)
Sets the edited capStyle.
|
void |
setColor(java.lang.Integer color)
Sets the edited color.
|
void |
setDashOffset(java.lang.Float dashOffset)
Sets the edited dash offset.
|
void |
setDashPattern(float[] dashPattern)
Sets the edited dash pattern.
|
void |
setDashStyle(Polyline.DashStyle dashStyle)
Sets the edited dash style.
|
void |
setElevation(java.lang.Float elevation)
Sets the edited elevation.
|
void |
setEndArrowStyle(Polyline.ArrowStyle endArrowStyle)
Sets the edited end arrow style.
|
void |
setJoinStyle(Polyline.JoinStyle joinStyle)
Sets the edited joinStyle.
|
void |
setStartArrowStyle(Polyline.ArrowStyle startArrowStyle)
Sets the edited start arrow style.
|
void |
setThickness(java.lang.Float thickness)
Sets the edited thickness.
|
protected void |
updateProperties()
Updates edited properties from selected polylines in the home edited by this controller.
|
public PolylineController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(PolylineController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(PolylineController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public void setThickness(java.lang.Float thickness)
public java.lang.Float getThickness()
public void setCapStyle(Polyline.CapStyle capStyle)
public Polyline.CapStyle getCapStyle()
public boolean isCapStyleEditable()
true
if cap style is editable.public void setJoinStyle(Polyline.JoinStyle joinStyle)
public Polyline.JoinStyle getJoinStyle()
public boolean isJoinStyleEditable()
true
if join style is editable.public void setDashStyle(Polyline.DashStyle dashStyle)
public Polyline.DashStyle getDashStyle()
public void setDashPattern(float[] dashPattern)
public float[] getDashPattern()
public void setDashOffset(java.lang.Float dashOffset)
public java.lang.Float getDashOffset()
public void setStartArrowStyle(Polyline.ArrowStyle startArrowStyle)
public Polyline.ArrowStyle getStartArrowStyle()
public void setEndArrowStyle(Polyline.ArrowStyle endArrowStyle)
public Polyline.ArrowStyle getEndArrowStyle()
public boolean isArrowsStyleEditable()
true
if arrows style is editable.public void setColor(java.lang.Integer color)
public java.lang.Integer getColor()
public void setElevation(java.lang.Float elevation)
public java.lang.Float getElevation()
public java.lang.Boolean isElevationEnabled()
Boolean.TRUE
if all edited polylines are viewed in 3D,
or Boolean.FALSE
if no polyline is viewed in 3D.public void modifyPolylines()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License