|
Sweet Home 3D 3.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel
public class MultipleLevelsPlanPanel
A panel for multiple levels plans where users can select the displayed level.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Nested classes/interfaces inherited from interface com.eteks.sweethome3d.viewcontroller.PlanView |
|---|
PlanView.CursorType |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MultipleLevelsPlanPanel(Home home,
UserPreferences preferences,
PlanController controller)
|
|
| Method Summary | |
|---|---|
void |
addFocusListener(FocusListener l)
|
void |
addMouseListener(MouseListener l)
|
void |
addMouseMotionListener(MouseMotionListener l)
|
boolean |
canImportDraggedItems(List<Selectable> items,
int x,
int y)
Returns true if the given coordinates belong to the plan displayed by this component. |
int |
convertXModelToScreen(float x)
Returns x converted in screen coordinates space. |
float |
convertXPixelToModel(int x)
Returns x converted in model coordinates space. |
int |
convertYModelToScreen(float y)
Returns y converted in screen coordinates space. |
float |
convertYPixelToModel(int y)
Returns y converted in model coordinates space. |
protected PlanComponent |
createPlanComponent(Home home,
UserPreferences preferences,
PlanController controller)
Creates and returns the main plan component displayed and layout by this component. |
void |
deleteFeedback()
Deletes all elements shown as feedback. |
void |
deleteToolTipFeedback()
Deletes tool tip text from screen. |
View |
getHorizontalRuler()
Returns the component used as an horizontal ruler for the plan displayed by this component. |
float |
getPixelLength()
Returns the length in centimeters of a pixel with the current scale. |
float |
getPrintPreferredScale(Graphics graphics,
PageFormat pageFormat)
Returns the preferred scale to print the plan component. |
float |
getScale()
Returns the scale used to display the plan displayed by this component. |
float[][] |
getTextBounds(String text,
TextStyle style,
float x,
float y,
float angle)
Returns the coordinates of the bounding rectangle of the text displayed at
the point (x,y). |
View |
getVerticalRuler()
Returns the component used as a vertical ruler for the plan displayed by this component. |
void |
makePointVisible(float x,
float y)
Ensures the point at ( x, y) is visible in the plan displayed by this component,
moving its scroll bars if needed. |
void |
makeSelectionVisible()
Ensures selected items are visible in the plan displayed by this component and moves its scroll bars if needed. |
void |
moveView(float dx,
float dy)
Moves the plan displayed by this component from (dx, dy) unit in the scrolling zone it belongs to. |
int |
print(Graphics graphics,
PageFormat pageFormat,
int pageIndex)
Prints the plan component. |
void |
setAlignmentFeedback(Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPoint)
Sets the location point for alignment feedback. |
void |
setAngleFeedback(float xCenter,
float yCenter,
float x1,
float y1,
float x2,
float y2)
Sets the points used to draw an angle in the plan displayed by this component. |
void |
setComponentPopupMenu(JPopupMenu popup)
|
void |
setCursor(PlanView.CursorType cursorType)
Sets the cursor of this component as rotation cursor. |
void |
setDimensionLinesFeedback(List<DimensionLine> dimensionLines)
Sets the given dimension lines to be drawn as feedback. |
void |
setDraggedItemsFeedback(List<Selectable> draggedItems)
Sets the feedback of dragged items drawn during a drag and drop operation, initiated from outside of the plan displayed by this component. |
void |
setRectangleFeedback(float x0,
float y0,
float x1,
float y1)
Sets rectangle selection feedback coordinates. |
void |
setResizeIndicatorVisible(boolean visible)
Sets whether the resize indicator of selected wall or piece of furniture should be visible or not. |
void |
setScale(float scale)
Sets the scale used to display the plan displayed by this component. |
void |
setToolTipEditedProperties(PlanController.EditableProperty[] toolTipEditedProperties,
Object[] toolTipPropertyValues,
float x,
float y)
Set properties edited in tool tip. |
void |
setToolTipFeedback(String toolTipFeedback,
float x,
float y)
Sets tool tip text displayed as feedback. |
void |
setTransferHandler(TransferHandler newHandler)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleLevelsPlanPanel(Home home,
UserPreferences preferences,
PlanController controller)
| Method Detail |
|---|
protected PlanComponent createPlanComponent(Home home,
UserPreferences preferences,
PlanController controller)
public void setTransferHandler(TransferHandler newHandler)
setTransferHandler in class JComponentpublic void setComponentPopupMenu(JPopupMenu popup)
setComponentPopupMenu in class JComponentpublic void addMouseMotionListener(MouseMotionListener l)
addMouseMotionListener in class Componentpublic void addMouseListener(MouseListener l)
addMouseListener in class Componentpublic void addFocusListener(FocusListener l)
addFocusListener in class Component
public void setRectangleFeedback(float x0,
float y0,
float x1,
float y1)
setRectangleFeedback in interface PlanViewpublic void makeSelectionVisible()
makeSelectionVisible in interface PlanView
public void makePointVisible(float x,
float y)
x, y) is visible in the plan displayed by this component,
moving its scroll bars if needed.
makePointVisible in interface PlanViewpublic float getScale()
getScale in interface PlanViewpublic void setScale(float scale)
setScale in interface PlanView
public void moveView(float dx,
float dy)
moveView in interface PlanViewpublic float convertXPixelToModel(int x)
x converted in model coordinates space.
convertXPixelToModel in interface PlanViewpublic float convertYPixelToModel(int y)
y converted in model coordinates space.
convertYPixelToModel in interface PlanViewpublic int convertXModelToScreen(float x)
x converted in screen coordinates space.
convertXModelToScreen in interface PlanViewpublic int convertYModelToScreen(float y)
y converted in screen coordinates space.
convertYModelToScreen in interface PlanViewpublic float getPixelLength()
getPixelLength in interface PlanView
public float[][] getTextBounds(String text,
TextStyle style,
float x,
float y,
float angle)
text displayed at
the point (x,y).
getTextBounds in interface PlanViewpublic void setCursor(PlanView.CursorType cursorType)
setCursor in interface PlanView
public void setToolTipFeedback(String toolTipFeedback,
float x,
float y)
setToolTipFeedback in interface PlanViewtoolTipFeedback - the text displayed in the tool tip
or null to make tool tip disappear.
public void setToolTipEditedProperties(PlanController.EditableProperty[] toolTipEditedProperties,
Object[] toolTipPropertyValues,
float x,
float y)
setToolTipEditedProperties in interface PlanViewpublic void deleteToolTipFeedback()
deleteToolTipFeedback in interface PlanViewpublic void setResizeIndicatorVisible(boolean visible)
setResizeIndicatorVisible in interface PlanView
public void setAlignmentFeedback(Class<? extends Selectable> alignedObjectClass,
Selectable alignedObject,
float x,
float y,
boolean showPoint)
setAlignmentFeedback in interface PlanView
public void setAngleFeedback(float xCenter,
float yCenter,
float x1,
float y1,
float x2,
float y2)
setAngleFeedback in interface PlanViewpublic void setDraggedItemsFeedback(List<Selectable> draggedItems)
setDraggedItemsFeedback in interface PlanViewpublic void setDimensionLinesFeedback(List<DimensionLine> dimensionLines)
setDimensionLinesFeedback in interface PlanViewpublic void deleteFeedback()
deleteFeedback in interface PlanView
public boolean canImportDraggedItems(List<Selectable> items,
int x,
int y)
true if the given coordinates belong to the plan displayed by this component.
canImportDraggedItems in interface PlanViewpublic View getHorizontalRuler()
getHorizontalRuler in interface PlanViewpublic View getVerticalRuler()
getVerticalRuler in interface PlanView
public int print(Graphics graphics,
PageFormat pageFormat,
int pageIndex)
throws PrinterException
print in interface PrintablePrinterException
public float getPrintPreferredScale(Graphics graphics,
PageFormat pageFormat)
|
Sweet Home 3D 3.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2012 eTeks - All rights reserved
Distributed under GNU General Public License |