Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 48195 Details for
Bug 154380
Subgraph doesn't obey Graph's direction if EAST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
CompoundTransposeMetrics to fix the problem
CompoundTransposeMetrics.java (text/plain), 1.61 KB, created by
Craig Laurent
on 2006-08-18 14:41:28 EDT
(
hide
)
Description:
CompoundTransposeMetrics to fix the problem
Filename:
MIME Type:
Creator:
Craig Laurent
Created:
2006-08-18 14:41:28 EDT
Size:
1.61 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2006 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * IBM Corporation - initial API and implementation > *******************************************************************************/ > >package org.eclipse.draw2d.graph; > >import org.eclipse.draw2d.PositionConstants; > >public class CompoundTransposeMetrics extends TransposeMetrics { > > // Most calls aren't casting to the Compound...so force it with these. > public void revisit(DirectedGraph g) { > if (g instanceof CompoundDirectedGraph) { > this.revisit((CompoundDirectedGraph) g); > } else { > super.revisit(g); > } > } > > // handle the Compound stuff. > public void revisit(CompoundDirectedGraph g) { > if (g.getDirection() == PositionConstants.SOUTH) > return; > // handle the general setup, nodes, and edges > super.revisit(g); > // process the subgraphs > int temp; > if (g.subgraphs != null) { > for (int i = 0; i < g.subgraphs.size(); i++) { > Subgraph node = (Subgraph)g.subgraphs.get(i); > temp = node.width; > node.width = node.height; > node.height = temp; > temp = node.y; > node.y = node.x; > node.x = temp; > if (node.getPadding() != null) > node.setPadding(t.t(node.getPadding())); > } > } > // size transposing already done in super. >// g.size.transpose(); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 154380
:
48195
|
190608